From 5dde7bf924695dded46ca5df34d218f4769f447c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Wed, 20 Dec 2023 09:52:27 +0200 Subject: [PATCH] Framework upgrade 0.45.2 --- bridged-tokens-wrapper/Cargo.toml | 8 +++++--- bridged-tokens-wrapper/meta/Cargo.toml | 4 +++- bridged-tokens-wrapper/wasm/Cargo.toml | 4 +++- common/eth-address/Cargo.toml | 3 ++- common/fee-estimator-module/Cargo.toml | 6 ++++-- common/max-bridged-amount-module/Cargo.toml | 6 ++++-- common/token-module/Cargo.toml | 6 ++++-- common/transaction/Cargo.toml | 3 ++- common/tx-batch-module/Cargo.toml | 6 ++++-- esdt-safe/Cargo.toml | 8 +++++--- esdt-safe/meta/Cargo.toml | 4 +++- esdt-safe/wasm/Cargo.toml | 4 +++- multi-transfer-esdt/Cargo.toml | 6 ++++-- multi-transfer-esdt/meta/Cargo.toml | 4 +++- multi-transfer-esdt/wasm/Cargo.toml | 4 +++- multisig/Cargo.toml | 8 +++++--- multisig/meta/Cargo.toml | 4 +++- multisig/src/setup.rs | 2 +- multisig/wasm/Cargo.toml | 4 +++- 19 files changed, 64 insertions(+), 30 deletions(-) diff --git a/bridged-tokens-wrapper/Cargo.toml b/bridged-tokens-wrapper/Cargo.toml index dc1bbfd7..94e3a1f4 100644 --- a/bridged-tokens-wrapper/Cargo.toml +++ b/bridged-tokens-wrapper/Cargo.toml @@ -7,13 +7,15 @@ publish = false [lib] path = "src/lib.rs" + [dependencies.transaction] path = "../common/transaction" [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" [dependencies.multiversx-sc-modules] -version = "0.41.3" +version = "0.45.2" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/bridged-tokens-wrapper/meta/Cargo.toml b/bridged-tokens-wrapper/meta/Cargo.toml index 55bf3058..0c7eaff8 100644 --- a/bridged-tokens-wrapper/meta/Cargo.toml +++ b/bridged-tokens-wrapper/meta/Cargo.toml @@ -3,8 +3,10 @@ name = "bridged-tokens-wrapper-meta" version = "0.0.0" edition = "2018" publish = false + [dependencies.bridged-tokens-wrapper] path = ".." [dependencies.multiversx-sc-meta] -version = "0.41.3" +version = "0.45.2" +default-features = false diff --git a/bridged-tokens-wrapper/wasm/Cargo.toml b/bridged-tokens-wrapper/wasm/Cargo.toml index 05ea6ac7..3a81fb89 100644 --- a/bridged-tokens-wrapper/wasm/Cargo.toml +++ b/bridged-tokens-wrapper/wasm/Cargo.toml @@ -7,17 +7,19 @@ publish = false [lib] crate-type = ["cdylib"] + [profile.release] codegen-units = 1 opt-level = "z" lto = true debug = false panic = "abort" + [dependencies.bridged-tokens-wrapper] path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "0.41.3" +version = "0.45.2" [workspace] members = ["."] diff --git a/common/eth-address/Cargo.toml b/common/eth-address/Cargo.toml index b0f24f38..e4b8dadc 100644 --- a/common/eth-address/Cargo.toml +++ b/common/eth-address/Cargo.toml @@ -6,5 +6,6 @@ edition = "2018" [lib] path = "src/lib.rs" + [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" diff --git a/common/fee-estimator-module/Cargo.toml b/common/fee-estimator-module/Cargo.toml index 5ae1347c..88663e5d 100644 --- a/common/fee-estimator-module/Cargo.toml +++ b/common/fee-estimator-module/Cargo.toml @@ -3,7 +3,9 @@ name = "fee-estimator-module" version = "0.0.0" authors = ["dorin-iancu "] edition = "2018" + [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/common/max-bridged-amount-module/Cargo.toml b/common/max-bridged-amount-module/Cargo.toml index 8c9527b9..010ce5a2 100644 --- a/common/max-bridged-amount-module/Cargo.toml +++ b/common/max-bridged-amount-module/Cargo.toml @@ -3,7 +3,9 @@ name = "max-bridged-amount-module" version = "0.0.0" authors = ["dorin-iancu "] edition = "2018" + [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/common/token-module/Cargo.toml b/common/token-module/Cargo.toml index 04386c99..207621c7 100644 --- a/common/token-module/Cargo.toml +++ b/common/token-module/Cargo.toml @@ -3,10 +3,12 @@ name = "token-module" version = "0.0.0" authors = ["dorin-iancu "] edition = "2018" + [dependencies.fee-estimator-module] path = "../fee-estimator-module" [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/common/transaction/Cargo.toml b/common/transaction/Cargo.toml index a3c78a10..c1f3d18c 100644 --- a/common/transaction/Cargo.toml +++ b/common/transaction/Cargo.toml @@ -6,8 +6,9 @@ edition = "2018" [lib] path = "src/lib.rs" + [dependencies.eth-address] path = "../eth-address" [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" diff --git a/common/tx-batch-module/Cargo.toml b/common/tx-batch-module/Cargo.toml index 45b50869..3d58cda8 100644 --- a/common/tx-batch-module/Cargo.toml +++ b/common/tx-batch-module/Cargo.toml @@ -3,10 +3,12 @@ name = "tx-batch-module" version = "0.0.0" authors = ["dorin-iancu "] edition = "2018" + [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" [dependencies.transaction] path = "../transaction" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/esdt-safe/Cargo.toml b/esdt-safe/Cargo.toml index d3c4062d..a7ce3334 100644 --- a/esdt-safe/Cargo.toml +++ b/esdt-safe/Cargo.toml @@ -7,6 +7,7 @@ publish = false [lib] path = "src/lib.rs" + [dependencies.transaction] path = "../common/transaction" @@ -26,9 +27,10 @@ path = "../common/tx-batch-module" path = "../common/max-bridged-amount-module" [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" [dependencies.multiversx-sc-modules] -version = "0.41.3" +version = "0.45.2" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/esdt-safe/meta/Cargo.toml b/esdt-safe/meta/Cargo.toml index a16eeefd..00e7a9e7 100644 --- a/esdt-safe/meta/Cargo.toml +++ b/esdt-safe/meta/Cargo.toml @@ -6,8 +6,10 @@ edition = "2018" publish = false [dev-dependencies] + [dependencies.esdt-safe] path = ".." [dependencies.multiversx-sc-meta] -version = "0.41.3" +version = "0.45.2" +default-features = false diff --git a/esdt-safe/wasm/Cargo.toml b/esdt-safe/wasm/Cargo.toml index d49dabc8..ef36f173 100644 --- a/esdt-safe/wasm/Cargo.toml +++ b/esdt-safe/wasm/Cargo.toml @@ -12,14 +12,16 @@ crate-type = ["cdylib"] members = ["."] [dev-dependencies] + [profile.release] codegen-units = 1 opt-level = "z" lto = true debug = false panic = "abort" + [dependencies.esdt-safe] path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "0.41.3" +version = "0.45.2" diff --git a/multi-transfer-esdt/Cargo.toml b/multi-transfer-esdt/Cargo.toml index 18c9455e..5d50c179 100644 --- a/multi-transfer-esdt/Cargo.toml +++ b/multi-transfer-esdt/Cargo.toml @@ -7,6 +7,7 @@ publish = false [lib] path = "src/lib.rs" + [dependencies.transaction] path = "../common/transaction" @@ -20,6 +21,7 @@ path = "../common/max-bridged-amount-module" path = "../bridged-tokens-wrapper" [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/multi-transfer-esdt/meta/Cargo.toml b/multi-transfer-esdt/meta/Cargo.toml index 9a489dd5..7582654f 100644 --- a/multi-transfer-esdt/meta/Cargo.toml +++ b/multi-transfer-esdt/meta/Cargo.toml @@ -6,8 +6,10 @@ edition = "2018" publish = false [dev-dependencies] + [dependencies.multi-transfer-esdt] path = ".." [dependencies.multiversx-sc-meta] -version = "0.41.3" +version = "0.45.2" +default-features = false diff --git a/multi-transfer-esdt/wasm/Cargo.toml b/multi-transfer-esdt/wasm/Cargo.toml index 8dcc8c0f..556ef5f9 100644 --- a/multi-transfer-esdt/wasm/Cargo.toml +++ b/multi-transfer-esdt/wasm/Cargo.toml @@ -12,14 +12,16 @@ crate-type = ["cdylib"] members = ["."] [dev-dependencies] + [profile.release] codegen-units = 1 opt-level = "z" lto = true debug = false panic = "abort" + [dependencies.multi-transfer-esdt] path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "0.41.3" +version = "0.45.2" diff --git a/multisig/Cargo.toml b/multisig/Cargo.toml index 6a8ff88d..d6f77141 100644 --- a/multisig/Cargo.toml +++ b/multisig/Cargo.toml @@ -7,6 +7,7 @@ publish = false [lib] path = "src/lib.rs" + [dependencies.transaction] path = "../common/transaction" @@ -32,9 +33,10 @@ path = "../esdt-safe" path = "../multi-transfer-esdt" [dependencies.multiversx-sc] -version = "0.41.3" +version = "0.45.2" [dependencies.multiversx-sc-modules] -version = "0.41.3" +version = "0.45.2" + [dev-dependencies.multiversx-sc-scenario] -version = "0.41.3" +version = "0.45.2" diff --git a/multisig/meta/Cargo.toml b/multisig/meta/Cargo.toml index d57b4414..ec3e8100 100644 --- a/multisig/meta/Cargo.toml +++ b/multisig/meta/Cargo.toml @@ -4,8 +4,10 @@ version = "0.0.0" authors = ["Andrei Marinica , Dorin Iancu "] edition = "2018" publish = false + [dependencies.multisig] path = ".." [dependencies.multiversx-sc-meta] -version = "0.41.3" +version = "0.45.2" +default-features = false diff --git a/multisig/src/setup.rs b/multisig/src/setup.rs index 4fa369b0..624b1c98 100644 --- a/multisig/src/setup.rs +++ b/multisig/src/setup.rs @@ -33,7 +33,7 @@ pub trait SetupModule: } let gas = self.blockchain().get_gas_left(); - Self::Api::send_api_impl().upgrade_from_source_contract( + self.send_raw().upgrade_from_source_contract( &child_sc_address, gas, &BigUint::zero(), diff --git a/multisig/wasm/Cargo.toml b/multisig/wasm/Cargo.toml index cbe703b5..bd2110a1 100644 --- a/multisig/wasm/Cargo.toml +++ b/multisig/wasm/Cargo.toml @@ -7,17 +7,19 @@ publish = false [lib] crate-type = ["cdylib"] + [profile.release] codegen-units = 1 opt-level = "z" lto = true debug = false panic = "abort" + [dependencies.multisig] path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "0.41.3" +version = "0.45.2" [workspace] members = ["."]