From 153327f9a1e484dd0c184a8fb1605e6a62958e50 Mon Sep 17 00:00:00 2001 From: Artur Abliazimov Date: Thu, 23 May 2024 10:31:18 +0300 Subject: [PATCH] Update Soroban SDK to 20.4.0 --- Cargo.lock | 44 +++--- Cargo.toml | 4 +- .../tests/snapshots/budget_utilization.snap | 132 +++++++++--------- 3 files changed, 90 insertions(+), 90 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3fd87757..dc6d249a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1058,9 +1058,9 @@ checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" [[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", @@ -1070,9 +1070,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", @@ -1088,9 +1088,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", @@ -1098,9 +1098,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", @@ -1125,9 +1125,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", @@ -1149,9 +1149,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", @@ -1163,9 +1163,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", @@ -1183,9 +1183,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", @@ -1203,9 +1203,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", @@ -1215,9 +1215,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", @@ -1231,9 +1231,9 @@ dependencies = [ [[package]] name = "soroban-token-sdk" -version = "20.3.2" +version = "20.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138918303061803d181a87ec8101e6593a17a49dc8cb763b18fc397c61603bfe" +checksum = "ee8ed0ae2e5d5e67b7939200bba3712b4c81dcf87b2ccd68bba049bec64c780f" dependencies = [ "soroban-sdk", ] diff --git a/Cargo.toml b/Cargo.toml index 312dd9a5..c5f48bf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,10 +32,10 @@ inherits = "release" debug-assertions = true [workspace.dependencies.soroban-sdk] -version = "20.3.2" +version = "20.4.0" [workspace.dependencies.soroban-token-sdk] -version = "20.3.2" +version = "20.4.0" [workspace.dependencies.soroban-fixed-point-math] version = "1.0.0" diff --git a/contracts/pool/src/tests/snapshots/budget_utilization.snap b/contracts/pool/src/tests/snapshots/budget_utilization.snap index 5f44fae7..410905b9 100644 --- a/contracts/pool/src/tests/snapshots/budget_utilization.snap +++ b/contracts/pool/src/tests/snapshots/budget_utilization.snap @@ -1,66 +1,66 @@ ['pool::tests::budget::account_position'] = { - "cpu_cost": 33315489, - "memory_cost": 7473673, + "cpu_cost": 33316948, + "memory_cost": 7473174, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::borrow'] = { - "cpu_cost": 46879353, - "memory_cost": 11509551, + "cpu_cost": 46907124, + "memory_cost": 11511690, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::collat_coeff'] = { - "cpu_cost": 26759257, - "memory_cost": 4306632, + "cpu_cost": 26758700, + "memory_cost": 4306357, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::configure_as_collateral'] = { - "cpu_cost": 27188077, - "memory_cost": 4380060, + "cpu_cost": 27187808, + "memory_cost": 4379737, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::debt_coeff'] = { - "cpu_cost": 26376380, - "memory_cost": 4234519, + "cpu_cost": 26375391, + "memory_cost": 4234292, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::deposit'] = { - "cpu_cost": 36372806, - "memory_cost": 6705630, + "cpu_cost": 36398889, + "memory_cost": 6708009, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::enable_borrowing_on_reserve'] = { - "cpu_cost": 26633119, - "memory_cost": 4293948, + "cpu_cost": 26632274, + "memory_cost": 4293689, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::flash_loan_fee'] = { - "cpu_cost": 26142826, - "memory_cost": 4195108, + "cpu_cost": 26141693, + "memory_cost": 4194897, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::flash_loan_with_borrow'] = { - "cpu_cost": 89966602, - "memory_cost": 24981410, + "cpu_cost": 90086661, + "memory_cost": 24994469, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::flash_loan_without_borrow'] = { - "cpu_cost": 55039918, - "memory_cost": 12576142, + "cpu_cost": 55112393, + "memory_cost": 12584245, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::get_reserve'] = { - "cpu_cost": 26203792, - "memory_cost": 4196958, + "cpu_cost": 26202659, + "memory_cost": 4196747, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } @@ -71,86 +71,86 @@ "memory_limit_exceeded": false, } ['pool::tests::budget::ir_params'] = { - "cpu_cost": 26208250, - "memory_cost": 4210523, + "cpu_cost": 26207117, + "memory_cost": 4210312, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::liquidate_receive_stoken_when_borrower_has_two_debts'] = { - "cpu_cost": 49191737, - "memory_cost": 11783951, + "cpu_cost": 49212060, + "memory_cost": 11786010, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::liquidate_receive_underlying_when_borrower_has_one_debt'] = { - "cpu_cost": 48976169, - "memory_cost": 11819300, + "cpu_cost": 48995876, + "memory_cost": 11821311, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::liquidate_receive_underlying_when_borrower_has_two_debts'] = { - "cpu_cost": 49251328, - "memory_cost": 11795603, + "cpu_cost": 49271179, + "memory_cost": 11797630, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::paused'] = { - "cpu_cost": 26137424, - "memory_cost": 4194898, + "cpu_cost": 26136291, + "memory_cost": 4194687, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::price_feed'] = { - "cpu_cost": 26150603, - "memory_cost": 4195435, + "cpu_cost": 26149470, + "memory_cost": 4195224, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::repay_full'] = { - "cpu_cost": 32876593, - "memory_cost": 6360762, + "cpu_cost": 32877332, + "memory_cost": 6360327, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::repay_partial'] = { - "cpu_cost": 32910538, - "memory_cost": 6351180, + "cpu_cost": 32911277, + "memory_cost": 6350745, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::s_token_transfer'] = { - "cpu_cost": 41175748, - "memory_cost": 9585445, + "cpu_cost": 41198323, + "memory_cost": 9587776, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::set_as_collateral'] = { - "cpu_cost": 32445228, - "memory_cost": 7335441, + "cpu_cost": 32445679, + "memory_cost": 7335054, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::set_base_asset'] = { - "cpu_cost": 26458218, - "memory_cost": 4270534, + "cpu_cost": 26457229, + "memory_cost": 4270291, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::set_flash_loan_fee'] = { - "cpu_cost": 26454029, - "memory_cost": 4270366, + "cpu_cost": 26453040, + "memory_cost": 4270123, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::set_ir_params'] = { - "cpu_cost": 26468276, - "memory_cost": 4271111, + "cpu_cost": 26467287, + "memory_cost": 4270868, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::set_pause'] = { - "cpu_cost": 26452142, - "memory_cost": 4270384, + "cpu_cost": 26451153, + "memory_cost": 4270141, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } @@ -161,14 +161,14 @@ "memory_limit_exceeded": false, } ['pool::tests::budget::set_reserve_status'] = { - "cpu_cost": 26632570, - "memory_cost": 4293939, + "cpu_cost": 26631725, + "memory_cost": 4293680, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::stoken_underlying_balance'] = { - "cpu_cost": 26157015, - "memory_cost": 4198186, + "cpu_cost": 26155882, + "memory_cost": 4197975, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } @@ -179,38 +179,38 @@ "memory_limit_exceeded": false, } ['pool::tests::budget::upgrade'] = { - "cpu_cost": 26359734, - "memory_cost": 4251362, + "cpu_cost": 26357881, + "memory_cost": 4251119, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::upgrade_debt_token'] = { - "cpu_cost": 30105150, - "memory_cost": 5841764, + "cpu_cost": 30104593, + "memory_cost": 5841537, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::upgrade_s_token'] = { - "cpu_cost": 33933718, - "memory_cost": 6279516, + "cpu_cost": 33956201, + "memory_cost": 6282087, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::user_configuration'] = { - "cpu_cost": 25948373, - "memory_cost": 4166581, + "cpu_cost": 25946808, + "memory_cost": 4166386, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::withdraw_full'] = { - "cpu_cost": 43150968, - "memory_cost": 9858654, + "cpu_cost": 43179315, + "memory_cost": 9860825, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, } ['pool::tests::budget::withdraw_partial'] = { - "cpu_cost": 42757462, - "memory_cost": 9848642, + "cpu_cost": 42785809, + "memory_cost": 9850813, "cpu_limit_exceeded": false, "memory_limit_exceeded": false, }