From 74d9ffce6054e2782bab3d4c1298c873f70626dd Mon Sep 17 00:00:00 2001 From: Juan Manuel Date: Thu, 21 Dec 2023 11:41:27 -0500 Subject: [PATCH] Update did contract wasm and update ledgers --- deployer_contract/did_contract.wasm | Bin 18488 -> 18362 bytes vault_contract/src/contract.rs | 8 +++++--- vc_issuance_contract/src/contract.rs | 8 +++++--- 3 files changed, 10 insertions(+), 6 deletions(-) mode change 100755 => 100644 deployer_contract/did_contract.wasm diff --git a/deployer_contract/did_contract.wasm b/deployer_contract/did_contract.wasm old mode 100755 new mode 100644 index a4be7d00b74c3f86d2a92dceb6c4b047592d0c17..df6c26339e2ed3a1df348af3d86eb272c0525a8c GIT binary patch delta 2303 zcmZ8iYiv|i5I%EXdw1_HJ*@>wOX<1WZRxfa+bwOyXYVafiM*tVF=^-nG}H$uk(l_{ ztrQgzElyMnpdiwMT2R+ll!WyWqtQfu_=`l+Kbl}5#2EF5Mx42Ki`L!jJ#*&Fd}rpH znY$m2!pG0SXrt7!S5N!c4!j<2H;)+uo*T8vG>*C8(V}14?#N} z+(RnR7k8UhMA)_+jXAM+%(N0SgwU+G883-zmUML8)?=k*F-)x`qG5JX6thK2W;UA1)dyAk<5s=)^_1>+-Cdu zp4pG@+ntcZi}o-KExBmf1hXtCnJbEO&QExb;+G@nA}r%tYpiKpG}LC34a#4au&Xmn2oDsTh;^D^o46F zk=E6kgdR5>76pmC%HpclEJ^4-xRxgZdm~QqhIW)lU>B?ep^=#pn2|ZrFoiCBu`WS; zk?|EtmHA?A0)imOiz&!qymY+s{UEuRvQ$)ta+H}@<`Vp_^lCVPf0dqwBl%Nh3aI!$ zTs1<)A1L2P@}K2T!EkPjWPs%1Y~9N!z~+JN&OH7r~0c3m6nyQbmagcHVMWV8r#Y23l zSHL%`(lcccT<(*n4Y{irpO?c6RWHRp)D58g=!bje&cW{V5~7X(bV+tO;qz0jC#Wff zddfAZOd_b7;aU`(p{Ov_Tr_t|R~BBHH!Eu@jf$6y_&Og&I7N$KN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hIm}+Go0_u_=+L8BSW>8Q9@{L}@c+roZl^vYV#({DOQf6L5Dqh(2oA9)13a9=Sa*ux&IVZ5t@I?5S zpq2}2IiS;6kJED(z|$B@#V;lxAxCwvr?<*Agjg}C-46A@VP3#7TvCGQRRKjk;WSC4 zeW46I**L2$ptx2;&=cAf)P);bg(->$c~WCX8Sb5v=mT31VQH(pPdmz#X#l;Ckms|@ zqI8;kU%MlQ?d_n&G?SD5JK$K;LYL6Ze`R@OCEYB~6ebJI?WkM^Iy?D*-XncZ>D(!n zD~-3u@zbUoWAX#-F3&fK{>tY1*(D~Z@E{d!>EZ=Rtn{H?Q1J{$n^gnNb4py34C$Jg z3YBsXX~7D7r@3u|P+|8B-0H##8kUd;15rcSa<4uxQ7KB5Ycg!N;3wZ$O&;8F$jNtg zIJ1>iYRz4arI-hIIV{3#tZNzWKI+%^kbe3`n~0&jWRj_Xd{~?H$;_v4AC!;dHon|) zAsoe1Ep5fiRRCytwX=@y+@nsKrsErDlevTs(@wl1nIY${0PmkYdX{6MF9G5?_%DvBZJOh@ zR<#mJ0A`6}v#O6L!KapMYE69w(K!VuFLvvjh731Vq(@g1?rUuU3nyBeno5k7?pCHR zH11A7Sr!U!t*N#BB1+Wb=dBHVn&HJA^--V0a>s1EyzN@Lh7Yy1!We$k_A7jgC(aun zOJq(%&Dmj6$+0cc4Wey_f7PZD&n<3S$lFFw|>4D6Ro zU@l3I*<-~Y=Do)oM@9y>-L`4#Eox}PrY(aTFHl)l{lS9^mtp&gW|3hd*uUbuD?1mY zt4?d%$jHXc+XuIiWpU@C1@xJ}?S{_Ti!zzc^V5rmGTB8-2A5=qvgx6o?#}EDgPF`= VPiA8#-I>XD4tAwk@u!7e-9L}_GaLW_ diff --git a/vault_contract/src/contract.rs b/vault_contract/src/contract.rs index 6f3c890..1c55e1c 100644 --- a/vault_contract/src/contract.rs +++ b/vault_contract/src/contract.rs @@ -10,8 +10,10 @@ use soroban_sdk::{ contract, contractimpl, contractmeta, panic_with_error, Address, Env, IntoVal, Map, String, Vec, }; -const LEDGERS_THRESHOLD: u32 = 1; -const LEDGERS_TO_EXTEND: u32 = 535_000; +// MAXIMUM ENTRY TTL: +// 31 days, 12 ledger close per minute. +// (12 * 60 * 24 * 31) - 1 +const LEDGERS_TO_EXTEND: u32 = 535_679; contractmeta!( key = "Description", @@ -33,7 +35,7 @@ impl VaultTrait for VaultContract { e.storage() .instance() - .extend_ttl(LEDGERS_THRESHOLD, LEDGERS_TO_EXTEND); + .extend_ttl(LEDGERS_TO_EXTEND, LEDGERS_TO_EXTEND); } fn authorize_issuer(e: Env, admin: Address, issuer: Address, did: String) { diff --git a/vc_issuance_contract/src/contract.rs b/vc_issuance_contract/src/contract.rs index 2db830c..e329ede 100644 --- a/vc_issuance_contract/src/contract.rs +++ b/vc_issuance_contract/src/contract.rs @@ -8,8 +8,10 @@ use soroban_sdk::{ contract, contractimpl, contractmeta, map, panic_with_error, Address, Env, Map, String, Vec, }; -const LEDGERS_THRESHOLD: u32 = 1; -const LEDGERS_TO_EXTEND: u32 = 535_000; +// MAXIMUM ENTRY TTL: +// 31 days, 12 ledger close per minute. +// (12 * 60 * 24 * 31) - 1 +const LEDGERS_TO_EXTEND: u32 = 535_679; const DEFAULT_AMOUNT: u32 = 20; const MAX_AMOUNT: u32 = 100; @@ -40,7 +42,7 @@ impl VCIssuanceTrait for VCIssuanceContract { e.storage() .instance() - .extend_ttl(LEDGERS_THRESHOLD, LEDGERS_TO_EXTEND); + .extend_ttl(LEDGERS_TO_EXTEND, LEDGERS_TO_EXTEND); } fn issue( e: Env,