From c4274e392aa4e162331f920f53a85fd05f2ef0fc Mon Sep 17 00:00:00 2001 From: Ryang-21 Date: Thu, 21 Mar 2024 11:20:10 -0500 Subject: [PATCH 1/2] chore: bump soroban-sdk version --- Cargo.lock | 40 ++++++++++++++++++++-------------------- Cargo.toml | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 18d5a99b..a956d9ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1053,9 +1053,9 @@ checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" [[package]] name = "soroban-builtin-sdk-macros" -version = "20.2.2" +version = "20.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55ef302d2118a14267e441e50e33705adc4f0da56616e7d2d9f198448d5714b2" +checksum = "7cc32c6e817f3ca269764ec0d7d14da6210b74a5bf14d4e745aa3ee860558900" dependencies = [ "itertools", "proc-macro2", @@ -1065,9 +1065,9 @@ dependencies = [ [[package]] name = "soroban-env-common" -version = "20.2.2" +version = "20.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc40ac91f70bb93aed7dff6057caac8810d49a8c451f44286e1e49243c799beb" +checksum = "c14e18d879c520ff82612eaae0590acaf6a7f3b977407e1abb1c9e31f94c7814" dependencies = [ "arbitrary", "crate-git-revision", @@ -1083,9 +1083,9 @@ dependencies = [ [[package]] name = "soroban-env-guest" -version = "20.2.2" +version = "20.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "949587b3608cb05fe1d5eecce24aed1c33063c38fa79402f2e5b1c2a29466350" +checksum = "5122ca2abd5ebcc1e876a96b9b44f87ce0a0e06df8f7c09772ddb58b159b7454" dependencies = [ "soroban-env-common", "static_assertions", @@ -1093,9 +1093,9 @@ dependencies = [ [[package]] name = "soroban-env-host" -version = "20.2.2" +version = "20.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faaa4e738232cacae7deb7947adfd4718e47cd2b50676e9518a8a38ee00930c9" +checksum = "114a0fa0d0cc39d0be16b1ee35b6e5f4ee0592ddcf459bde69391c02b03cf520" dependencies = [ "backtrace", "curve25519-dalek", @@ -1120,9 +1120,9 @@ dependencies = [ [[package]] name = "soroban-env-macros" -version = "20.2.2" +version = "20.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff09cd5f1e4968e6dbac40eb4fbb2bdbb478fa989a96088fe0466d09e8ff40c6" +checksum = "b13e3f8c86f812e0669e78fcb3eae40c385c6a9dd1a4886a1de733230b4fcf27" dependencies = [ "itertools", "proc-macro2", @@ -1144,9 +1144,9 @@ dependencies = [ [[package]] name = "soroban-ledger-snapshot" -version = "20.3.2" +version = "20.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a7b822725a73a90ef650bc1f325d13c8bae7a808156c101953092327e2edee" +checksum = "61a54708f44890e0546180db6b4f530e2a88d83b05a9b38a131caa21d005e25a" dependencies = [ "serde", "serde_json", @@ -1158,9 +1158,9 @@ dependencies = [ [[package]] name = "soroban-sdk" -version = "20.3.2" +version = "20.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdff4b5fc50f554499b81aa6ecbb4045beb84742ecda9777ebbdc90c0d93ec62" +checksum = "84fc8be9068dd4e0212d8b13ad61089ea87e69ac212c262914503a961c8dc3a3" dependencies = [ "arbitrary", "bytes-lit", @@ -1178,9 +1178,9 @@ dependencies = [ [[package]] name = "soroban-sdk-macros" -version = "20.3.2" +version = "20.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12d147c3ce37842919893946a4467632aa012f567a7ab2286abe19e5ecc25e05" +checksum = "db20def4ead836663633f58d817d0ed8e1af052c9650a04adf730525af85b964" dependencies = [ "crate-git-revision", "darling", @@ -1198,9 +1198,9 @@ dependencies = [ [[package]] name = "soroban-spec" -version = "20.3.2" +version = "20.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b7a132b7c234edf6ef3add4ffb17807f3b25a4ce5ab944ebbaf4d2326470eb1" +checksum = "3eefeb5d373b43f6828145d00f0c5cc35e96db56a6671ae9614f84beb2711cab" dependencies = [ "base64 0.13.1", "stellar-xdr", @@ -1210,9 +1210,9 @@ dependencies = [ [[package]] name = "soroban-spec-rust" -version = "20.3.2" +version = "20.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8d396f3b29800138e8abf2562aba0b579d09d8c2d2b956379fc9e68914a6e62" +checksum = "3152bca4737ef734ac37fe47b225ee58765c9095970c481a18516a2b287c7a33" dependencies = [ "prettyplease", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 626de7d4..edd992d6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ codegen-units = 1 lto = true [workspace.dependencies.soroban-sdk] -version = "20.3.2" +version = "20.5.0" [workspace.dependencies.soroban-fixed-point-math] version = "1.0.0" From 9213ed9cea783166f3e4a6ec880fe9d6801505dc Mon Sep 17 00:00:00 2001 From: Ryang-21 Date: Tue, 26 Mar 2024 11:49:53 -0500 Subject: [PATCH 2/2] update comet wasm and update usage --- backstop/src/emissions/claim.rs | 4 +++- backstop/src/testutils.rs | 2 +- comet.wasm | Bin 34229 -> 35061 bytes pool/src/testutils.rs | 2 +- test-suites/src/liquidity_pool.rs | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/backstop/src/emissions/claim.rs b/backstop/src/emissions/claim.rs index b98482c7..dd9f808c 100644 --- a/backstop/src/emissions/claim.rs +++ b/backstop/src/emissions/claim.rs @@ -27,18 +27,20 @@ pub fn execute_claim(e: &Env, from: &Address, pool_addresses: &Vec
, to: if claimed > 0 { let blnd_id = storage::get_blnd_token(e); let lp_id = storage::get_backstop_token(e); + let approval_ledger = (e.ledger().sequence() / 100000 + 1) * 100000; let args: Vec = vec![ e, (&e.current_contract_address()).into_val(e), (&lp_id).into_val(e), (&claimed).into_val(e), + (&approval_ledger).into_val(e), ]; e.authorize_as_current_contract(vec![ &e, InvokerContractAuthEntry::Contract(SubContractInvocation { context: ContractContext { contract: blnd_id.clone(), - fn_name: Symbol::new(e, "transfer"), + fn_name: Symbol::new(e, "approve"), args: args.clone(), }, sub_invocations: vec![e], diff --git a/backstop/src/testutils.rs b/backstop/src/testutils.rs index e21967f7..935482e3 100644 --- a/backstop/src/testutils.rs +++ b/backstop/src/testutils.rs @@ -154,8 +154,8 @@ pub(crate) fn create_comet_lp_pool<'a>( ); client.set_swap_fee(&0_0030000, &admin); - client.finalize(); client.set_public_swap(&admin, &true); + client.finalize(); (contract_address, client) } diff --git a/comet.wasm b/comet.wasm index bd2bc139170616c7d255910b5ee637235a3e2359..dd81e86b78318d3e77c5a077fa1ea252ebb1aab4 100644 GIT binary patch delta 12947 zcmcIq33OD~d4Bi3H|v{`p7v$5+<6j03yUPsVnEisVG|%gl38Uy3mQNRl8}TAuFc3X zIBuMPotxNhn>ge&P2$?PB#uw)ICj9vX*tef>XW8v;sx8So5X4Aq}hCO68HP>n;9)Y zoaUUO!@T$I^56gd|MxFP5!yf9s&@ zFsoM-(av^mcIUW*!CbF5FT?N6O!NBlwKTQBgMWn{Z^$U}rTbkj7xUqd`P>2eGu-$y z(_HB;UzRI9;BuL!qHCIx!Bp`Mv*LcnvOJ#Rl1!Jzlni%)7H9VK^aaI;EB4E$oaYsK zdVcO&;yxTZJT`G$RrJBp!6_wX^dB7^7>V`t4~`Bf2Xy&3=$?qlmqYHOqw;0Ydth+1 zZ)EVcm@=#%JUTM2jQEDe21k3w$Hvk}l*7K*vB4?&7*R&WSv8l9iPw(gv2pRDYOy1t zbu#Rl;I|G;h({+%*rXVqvf@*L$=FoS^wHlp(l@$4rraUk(+XCc$f2@Cm)l|kJ-5aN z4<4FQ;&P11@iA~XF^J~VEI=(&)45Z0>V@$Su(ZL+Idiy+1yGU{=74gNdGXyp1|=w` zn6GbSWb9Ts{@u*eH$FZwc1uk8AoC=-`b*}Wn&=yyJOBZGhy|1H5X#tL^aa&r5|D5f!O{*%z08d&Gg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1(Sw*GusE(V}vgZ#*6F`AVl0Vp!jCrcd$#lRLE(cfi zOyJ!v?ZW7;F>2=i6jOkQ&|!-1<_`9D=;#d7tt1Tu2+>Le1SfU=#Q`VBN-=f;h6cRo zGK6~ep|LxVyl;?nhuLJgT+%#_7z>>F>rREv{uou8BO zeFtV7TrZX%-}jk&H{Q6v>E0in+FxQ`G_XEVcTjFfb98euq_@!@u9qnEhW@i7dHx~8|FIgG`k(gp@0D~ zG77DJJ=uO+ye^)S{dq+7`2KP z#C-OxvM>RJ{^aC=O!>rtdM2N{e&8pJN%_T*+w$uEarx|_@@x_Js+(00V#gi$p%+?m z|LV{Qc0~@2?P0IT>tjVSG~Sui&TCxrX_|Hs&on$ggD1!HdHe?Od=bweo-^CI-`#q* zpWB|UQ1=ZS!iC_YeZynZ{ee#{IyKIM=>gQ;Vf$7yZg3ABAJ@6&N5gJ(@Zz}{Phxb3 z^iBL_(2uVkyqWTg6D8?oc%yGsc&6j2$?r|n)jRi&om<0nVc5AWtetUaKju(5ulnDf z_uR@4Je|SHp8NNQ{2pnZ{UjXp<+BCzYHMmsTk7ivhnfZl7YsEt)eQ~~F05~?Z*JVv X&|JT_xp`01;J|{$J@tco7i#|t`V<4v diff --git a/pool/src/testutils.rs b/pool/src/testutils.rs index 3c55b22f..c51f98cd 100644 --- a/pool/src/testutils.rs +++ b/pool/src/testutils.rs @@ -170,8 +170,8 @@ pub(crate) fn create_comet_lp_pool<'a>( ); client.set_swap_fee(&0_0030000, &admin); - client.finalize(); client.set_public_swap(&admin, &true); + client.finalize(); (contract_address, client) } diff --git a/test-suites/src/liquidity_pool.rs b/test-suites/src/liquidity_pool.rs index 9fcbe8b8..0afa5c88 100644 --- a/test-suites/src/liquidity_pool.rs +++ b/test-suites/src/liquidity_pool.rs @@ -41,8 +41,8 @@ pub(crate) fn create_lp_pool<'a>( ); client.set_swap_fee(&0_0030000, &admin); - client.finalize(); client.set_public_swap(&admin, &true); + client.finalize(); (contract_address, client) }