From 2e7c1626647a717ce6d0c915aa453d11599e907f Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Mon, 18 Nov 2024 09:38:11 +0200 Subject: [PATCH 01/28] Generated new `sovereign-forge` contract Signed-off-by: Andrei Baltariu --- Cargo.toml | 2 + sovereign-forge/Cargo.lock | 1223 +++++++++++++++++ sovereign-forge/Cargo.toml | 21 + sovereign-forge/meta/Cargo.toml | 12 + sovereign-forge/meta/src/main.rs | 3 + sovereign-forge/multiversx.json | 3 + .../scenarios/sovereign_forge.scen.json | 39 + sovereign-forge/src/lib.rs | 16 + sovereign-forge/src/phases.rs | 0 sovereign-forge/src/storage.rs | 0 .../tests/sovereign_forge_scenario_go_test.rs | 10 + .../tests/sovereign_forge_scenario_rs_test.rs | 14 + 12 files changed, 1343 insertions(+) create mode 100644 sovereign-forge/Cargo.lock create mode 100644 sovereign-forge/Cargo.toml create mode 100644 sovereign-forge/meta/Cargo.toml create mode 100644 sovereign-forge/meta/src/main.rs create mode 100644 sovereign-forge/multiversx.json create mode 100644 sovereign-forge/scenarios/sovereign_forge.scen.json create mode 100644 sovereign-forge/src/lib.rs create mode 100644 sovereign-forge/src/phases.rs create mode 100644 sovereign-forge/src/storage.rs create mode 100644 sovereign-forge/tests/sovereign_forge_scenario_go_test.rs create mode 100644 sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs diff --git a/Cargo.toml b/Cargo.toml index 8760a0ba..f5d639a3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,4 +20,6 @@ members = [ "token-handler/meta", "testing-sc", "testing-sc/meta", + "sovereign-forge", + "sovereign-forge/meta", ] diff --git a/sovereign-forge/Cargo.lock b/sovereign-forge/Cargo.lock new file mode 100644 index 00000000..d81c7ae8 --- /dev/null +++ b/sovereign-forge/Cargo.lock @@ -0,0 +1,1223 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "ahash" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "anstream" +version = "0.6.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" + +[[package]] +name = "anstyle-parse" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" +dependencies = [ + "anstyle", + "windows-sys 0.59.0", +] + +[[package]] +name = "anyhow" +version = "1.0.93" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64ct" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" + +[[package]] +name = "bech32" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d" + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bumpalo" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "clap" +version = "4.5.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.5.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "clap_lex" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" + +[[package]] +name = "colorchoice" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" + +[[package]] +name = "colored" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8" +dependencies = [ + "lazy_static", + "windows-sys 0.48.0", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "cpufeatures" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ca741a962e1b0bff6d724a1a0958b686406e853bb14061f218562e1896f95e6" +dependencies = [ + "libc", +] + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest", + "fiat-crypto", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "der" +version = "0.7.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" +dependencies = [ + "const-oid", + "zeroize", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "ed25519" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" +dependencies = [ + "pkcs8", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" +dependencies = [ + "curve25519-dalek", + "ed25519", + "serde", + "sha2", + "subtle", + "zeroize", +] + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash", + "serde", +] + +[[package]] +name = "hashbrown" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-literal" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" + +[[package]] +name = "indexmap" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +dependencies = [ + "equivalent", + "hashbrown 0.15.1", + "serde", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" + +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "leb128" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" + +[[package]] +name = "libc" +version = "0.2.164" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" + +[[package]] +name = "log" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "multiversx-chain-core" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c483122550dca9dd4286f970000d855e9d0184e4fe5c5527209a131ac1207638" +dependencies = [ + "bitflags", + "multiversx-sc-codec", +] + +[[package]] +name = "multiversx-chain-scenario-format" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcca77966bf5eb9c9f96d0597f17a4fa7b64681cc7b83e39bdf31f8c6ca04d44" +dependencies = [ + "bech32", + "hex", + "num-bigint", + "num-traits", + "serde", + "serde_json", + "sha3", +] + +[[package]] +name = "multiversx-chain-vm" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb84ccafc930d8a9d84de56758cef7070bfce951475d3f751be447acd4404d7a" +dependencies = [ + "bitflags", + "colored", + "ed25519-dalek", + "hex", + "hex-literal", + "itertools", + "multiversx-chain-core", + "multiversx-chain-vm-executor", + "num-bigint", + "num-traits", + "rand", + "rand_seeder", + "sha2", + "sha3", +] + +[[package]] +name = "multiversx-chain-vm-executor" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b59072fa0624b55ae5ae3fa6bfa91515bbeb4ac440214bc4a509e2c8806d6e9f" + +[[package]] +name = "multiversx-sc" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +dependencies = [ + "bitflags", + "hex-literal", + "multiversx-chain-core", + "multiversx-sc-codec", + "multiversx-sc-derive", + "num-traits", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b72f7f6a3e0828c5e38fe0e98298706837f8337fe06bca3ff21df22c84b6256" +dependencies = [ + "arrayvec", + "multiversx-sc-codec-derive", + "num-bigint", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec-derive" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b915f0f463fd1811de124b51d68cb2067f5a4796cde2a9570316780cf18961" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "multiversx-sc-derive" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "radix_trie", + "syn", +] + +[[package]] +name = "multiversx-sc-meta-lib" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90ff342ab443d1815b1ec3c0be10048d3004fa62146307fc507f13787fe1503f" +dependencies = [ + "clap", + "colored", + "convert_case", + "hex", + "lazy_static", + "multiversx-sc", + "rustc_version", + "semver", + "serde", + "serde_json", + "toml", + "wasmparser 0.216.0", + "wasmprinter", + "wat", +] + +[[package]] +name = "multiversx-sc-scenario" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a4ad9cef428cd8f92012aedf43c68f677bb606efec199b0157b62d384fc17eb" +dependencies = [ + "base64", + "bech32", + "colored", + "hex", + "itertools", + "log", + "multiversx-chain-scenario-format", + "multiversx-chain-vm", + "multiversx-chain-vm-executor", + "multiversx-sc", + "multiversx-sc-meta-lib", + "num-bigint", + "num-traits", + "pathdiff", + "serde", + "serde_json", + "sha2", + "unwrap-infallible", +] + +[[package]] +name = "nibble_vec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43" +dependencies = [ + "smallvec", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "once_cell" +version = "1.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" + +[[package]] +name = "pathdiff" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d61c5ce1153ab5b689d0c074c4e7fc613e942dfb7dd9eea5ab202d2ad91fe361" + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro2" +version = "1.0.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radix_trie" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd" +dependencies = [ + "endian-type", + "nibble_vec", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + +[[package]] +name = "rand_seeder" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9febe641d2842ffc76ee962668a17578767c4e01735e4802b21ed9a24b2e4e" +dependencies = [ + "rand_core", +] + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "ryu" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" + +[[package]] +name = "semver" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" + +[[package]] +name = "serde" +version = "1.0.210" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.210" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.133" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", +] + +[[package]] +name = "serde_spanned" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + +[[package]] +name = "sha2" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest", + "keccak", +] + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "rand_core", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "sovereign-forge" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "multiversx-sc-scenario", + "num-bigint", +] + +[[package]] +name = "sovereign-forge-meta" +version = "0.0.0" +dependencies = [ + "multiversx-sc-meta-lib", + "sovereign-forge", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "toml" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + +[[package]] +name = "toml_datetime" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.22.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "winnow", +] + +[[package]] +name = "typenum" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" + +[[package]] +name = "unicode-ident" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + +[[package]] +name = "unwrap-infallible" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasm-encoder" +version = "0.220.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebf48234b389415b226a4daef6562933d38c7b28a8b8f64c5c4130dad1561ab7" +dependencies = [ + "leb128", + "wasmparser 0.220.0", +] + +[[package]] +name = "wasmparser" +version = "0.216.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcdee6bea3619d311fb4b299721e89a986c3470f804b6d534340e412589028e3" +dependencies = [ + "ahash", + "bitflags", + "hashbrown 0.14.5", + "indexmap", + "semver", + "serde", +] + +[[package]] +name = "wasmparser" +version = "0.220.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e246c2772ce3ebc83f89a2d4487ac5794cad6c309b2071818a88c7db7c36d87b" +dependencies = [ + "bitflags", + "indexmap", +] + +[[package]] +name = "wasmprinter" +version = "0.216.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f82916f3892e53620639217d6ec78fe15c678352a3fbf3f3745b6417d0bd70f" +dependencies = [ + "anyhow", + "termcolor", + "wasmparser 0.216.0", +] + +[[package]] +name = "wast" +version = "220.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e708c8de08751fd66e70961a32bae9d71901f14a70871e181cb8461a3bb3165" +dependencies = [ + "bumpalo", + "leb128", + "memchr", + "unicode-width", + "wasm-encoder", +] + +[[package]] +name = "wat" +version = "1.220.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de4f1d7d59614ba690541360102b995c4eb1b9ed373701d5102cc1a968b1c5a3" +dependencies = [ + "wast", +] + +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.6.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +dependencies = [ + "memchr", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zeroize" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" diff --git a/sovereign-forge/Cargo.toml b/sovereign-forge/Cargo.toml new file mode 100644 index 00000000..1d6a5be0 --- /dev/null +++ b/sovereign-forge/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "sovereign-forge" +version = "0.0.0" +publish = false +edition = "2021" +authors = ["you"] + +[lib] +path = "src/lib.rs" + +[dependencies.multiversx-sc] +version = "0.54.2" + +[dev-dependencies] +num-bigint = "0.4" + +[dev-dependencies.multiversx-sc-scenario] +version = "0.54.2" + +[dependencies.multiversx-sc-modules] +version = "0.54.2" diff --git a/sovereign-forge/meta/Cargo.toml b/sovereign-forge/meta/Cargo.toml new file mode 100644 index 00000000..49bec5ee --- /dev/null +++ b/sovereign-forge/meta/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "sovereign-forge-meta" +version = "0.0.0" +edition = "2021" +publish = false + +[dependencies.sovereign-forge] +path = ".." + +[dependencies.multiversx-sc-meta-lib] +version = "0.54.2" +default-features = false diff --git a/sovereign-forge/meta/src/main.rs b/sovereign-forge/meta/src/main.rs new file mode 100644 index 00000000..7ea22ec0 --- /dev/null +++ b/sovereign-forge/meta/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + multiversx_sc_meta_lib::cli_main::(); +} diff --git a/sovereign-forge/multiversx.json b/sovereign-forge/multiversx.json new file mode 100644 index 00000000..73655396 --- /dev/null +++ b/sovereign-forge/multiversx.json @@ -0,0 +1,3 @@ +{ + "language": "rust" +} \ No newline at end of file diff --git a/sovereign-forge/scenarios/sovereign_forge.scen.json b/sovereign-forge/scenarios/sovereign_forge.scen.json new file mode 100644 index 00000000..c3c748a4 --- /dev/null +++ b/sovereign-forge/scenarios/sovereign_forge.scen.json @@ -0,0 +1,39 @@ +{ + "name": "empty", + "steps": [ + { + "step": "setState", + "accounts": { + "address:owner": { + "nonce": "1", + "balance": "0" + } + }, + "newAddresses": [ + { + "creatorAddress": "address:owner", + "creatorNonce": "1", + "newAddress": "sc:empty" + } + ] + }, + { + "step": "scDeploy", + "id": "deploy", + "tx": { + "from": "address:owner", + "contractCode": "mxsc:../output/sovereign-forge.mxsc.json", + "arguments": [], + "gasLimit": "5,000,000", + "gasPrice": "0" + }, + "expect": { + "out": [], + "status": "", + "logs": [], + "gas": "*", + "refund": "*" + } + } + ] +} diff --git a/sovereign-forge/src/lib.rs b/sovereign-forge/src/lib.rs new file mode 100644 index 00000000..53948d61 --- /dev/null +++ b/sovereign-forge/src/lib.rs @@ -0,0 +1,16 @@ +#![no_std] + +#[allow(unused_imports)] +use multiversx_sc::imports::*; + +mod phases; +mod storage; + +#[multiversx_sc::contract] +pub trait SovereignForge { + #[init] + fn init(&self) {} + + #[upgrade] + fn upgrade(&self) {} +} diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs new file mode 100644 index 00000000..e69de29b diff --git a/sovereign-forge/src/storage.rs b/sovereign-forge/src/storage.rs new file mode 100644 index 00000000..e69de29b diff --git a/sovereign-forge/tests/sovereign_forge_scenario_go_test.rs b/sovereign-forge/tests/sovereign_forge_scenario_go_test.rs new file mode 100644 index 00000000..50442fdf --- /dev/null +++ b/sovereign-forge/tests/sovereign_forge_scenario_go_test.rs @@ -0,0 +1,10 @@ +use multiversx_sc_scenario::*; + +fn world() -> ScenarioWorld { + ScenarioWorld::vm_go() +} + +#[test] +fn empty_go() { + world().run("scenarios/sovereign_forge.scen.json"); +} diff --git a/sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs b/sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs new file mode 100644 index 00000000..37e0de46 --- /dev/null +++ b/sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs @@ -0,0 +1,14 @@ +use multiversx_sc_scenario::*; + +fn world() -> ScenarioWorld { + let mut blockchain = ScenarioWorld::new(); + + // blockchain.set_current_dir_from_workspace("relative path to your workspace, if applicable"); + blockchain.register_contract("mxsc:output/sovereign-forge.mxsc.json", sovereign_forge::ContractBuilder); + blockchain +} + +#[test] +fn empty_rs() { + world().run("scenarios/sovereign_forge.scen.json"); +} From f0466209582ca91b67abe37c956830812d0e7a68 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Mon, 18 Nov 2024 14:57:55 +0200 Subject: [PATCH 02/28] Built contract Signed-off-by: Andrei Baltariu --- Cargo.lock | 18 +++ sovereign-forge/wasm/Cargo.lock | 209 ++++++++++++++++++++++++++++++++ sovereign-forge/wasm/Cargo.toml | 34 ++++++ sovereign-forge/wasm/src/lib.rs | 26 ++++ 4 files changed, 287 insertions(+) create mode 100644 sovereign-forge/wasm/Cargo.lock create mode 100644 sovereign-forge/wasm/Cargo.toml create mode 100644 sovereign-forge/wasm/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index e2816d22..a7734970 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2132,6 +2132,24 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "sovereign-forge" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "multiversx-sc-modules", + "multiversx-sc-scenario", + "num-bigint", +] + +[[package]] +name = "sovereign-forge-meta" +version = "0.0.0" +dependencies = [ + "multiversx-sc-meta-lib", + "sovereign-forge", +] + [[package]] name = "spki" version = "0.7.3" diff --git a/sovereign-forge/wasm/Cargo.lock b/sovereign-forge/wasm/Cargo.lock new file mode 100644 index 00000000..e3052f88 --- /dev/null +++ b/sovereign-forge/wasm/Cargo.lock @@ -0,0 +1,209 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-literal" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" + +[[package]] +name = "multiversx-chain-core" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c483122550dca9dd4286f970000d855e9d0184e4fe5c5527209a131ac1207638" +dependencies = [ + "bitflags", + "multiversx-sc-codec", +] + +[[package]] +name = "multiversx-sc" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +dependencies = [ + "bitflags", + "hex-literal", + "multiversx-chain-core", + "multiversx-sc-codec", + "multiversx-sc-derive", + "num-traits", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b72f7f6a3e0828c5e38fe0e98298706837f8337fe06bca3ff21df22c84b6256" +dependencies = [ + "arrayvec", + "multiversx-sc-codec-derive", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec-derive" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b915f0f463fd1811de124b51d68cb2067f5a4796cde2a9570316780cf18961" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "multiversx-sc-derive" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "radix_trie", + "syn", +] + +[[package]] +name = "multiversx-sc-modules" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "multiversx-sc-wasm-adapter" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "nibble_vec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43" +dependencies = [ + "smallvec", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "proc-macro2" +version = "1.0.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radix_trie" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd" +dependencies = [ + "endian-type", + "nibble_vec", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "sovereign-forge" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "multiversx-sc-modules", +] + +[[package]] +name = "sovereign-forge-wasm" +version = "0.0.0" +dependencies = [ + "multiversx-sc-wasm-adapter", + "sovereign-forge", +] + +[[package]] +name = "syn" +version = "2.0.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" + +[[package]] +name = "unwrap-infallible" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" diff --git a/sovereign-forge/wasm/Cargo.toml b/sovereign-forge/wasm/Cargo.toml new file mode 100644 index 00000000..faa67f83 --- /dev/null +++ b/sovereign-forge/wasm/Cargo.toml @@ -0,0 +1,34 @@ +# Code generated by the multiversx-sc build system. DO NOT EDIT. + +# ########################################## +# ############## AUTO-GENERATED ############# +# ########################################## + +[package] +name = "sovereign-forge-wasm" +version = "0.0.0" +edition = "2021" +publish = false + +[lib] +crate-type = ["cdylib"] + +[profile.release] +codegen-units = 1 +opt-level = "z" +lto = true +debug = false +panic = "abort" +overflow-checks = false + +[profile.dev] +panic = "abort" + +[dependencies.sovereign-forge] +path = ".." + +[dependencies.multiversx-sc-wasm-adapter] +version = "0.54.2" + +[workspace] +members = ["."] diff --git a/sovereign-forge/wasm/src/lib.rs b/sovereign-forge/wasm/src/lib.rs new file mode 100644 index 00000000..a30785de --- /dev/null +++ b/sovereign-forge/wasm/src/lib.rs @@ -0,0 +1,26 @@ +// Code generated by the multiversx-sc build system. DO NOT EDIT. + +//////////////////////////////////////////////////// +////////////////// AUTO-GENERATED ////////////////// +//////////////////////////////////////////////////// + +// Init: 1 +// Upgrade: 1 +// Endpoints: 0 +// Async Callback (empty): 1 +// Total number of exported functions: 3 + +#![no_std] + +multiversx_sc_wasm_adapter::allocator!(); +multiversx_sc_wasm_adapter::panic_handler!(); + +multiversx_sc_wasm_adapter::endpoints! { + sovereign_forge + ( + init => init + upgrade => upgrade + ) +} + +multiversx_sc_wasm_adapter::async_callback_empty! {} From 4a5e6e014b64d9df9bbaa500876e3d098674c72e Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 08:24:52 +0200 Subject: [PATCH 03/28] Added modules Signed-off-by: Andrei Baltariu --- sovereign-forge/src/phases.rs | 2 ++ sovereign-forge/src/storage.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index e69de29b..22365dc5 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -0,0 +1,2 @@ +#[multiversx_sc::module] +pub trait PhasesModule {} diff --git a/sovereign-forge/src/storage.rs b/sovereign-forge/src/storage.rs index e69de29b..ac4998d6 100644 --- a/sovereign-forge/src/storage.rs +++ b/sovereign-forge/src/storage.rs @@ -0,0 +1,2 @@ +#[multiversx_sc::module] +pub trait StorageModule {} From b0943b190734a1b51f388387471402185748a687 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 08:40:29 +0200 Subject: [PATCH 04/28] Added `chain-id` generation Signed-off-by: Andrei Baltariu --- sovereign-forge/src/lib.rs | 2 +- sovereign-forge/src/phases.rs | 27 ++++++++++++++++++++++++++- sovereign-forge/src/storage.rs | 8 +++++++- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/sovereign-forge/src/lib.rs b/sovereign-forge/src/lib.rs index 53948d61..d2089994 100644 --- a/sovereign-forge/src/lib.rs +++ b/sovereign-forge/src/lib.rs @@ -7,7 +7,7 @@ mod phases; mod storage; #[multiversx_sc::contract] -pub trait SovereignForge { +pub trait SovereignForge: phases::PhasesModule + storage::StorageModule { #[init] fn init(&self) {} diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 22365dc5..b103642f 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -1,2 +1,27 @@ +use crate::err_msg; +use crate::storage::{self}; + #[multiversx_sc::module] -pub trait PhasesModule {} +pub trait PhasesModule: storage::StorageModule { + fn generate_chain_id(&self) -> ManagedBuffer { + loop { + let new_chain_id = self.generated_random_4_char_string(); + let mut chain_id_history_mapper = self.chain_ids(); + if !chain_id_history_mapper.contains(&new_chain_id) { + chain_id_history_mapper.insert(new_chain_id.clone()); + return new_chain_id; + } + } + } + + fn generated_random_4_char_string(&self) -> ManagedBuffer { + let mut byte_array: [u8; 4] = [0; 4]; + let charset: &[u8] = b"0123456789abcdefghijklmnopqrstuvwxyz"; + let mut rand = RandomnessSource::new(); + (0..4).for_each(|i| { + let rand_index = rand.next_u8_in_range(0, charset.len() as u8) as usize; + byte_array[i] = charset[rand_index]; + }); + ManagedBuffer::new_from_bytes(&byte_array) + } +} diff --git a/sovereign-forge/src/storage.rs b/sovereign-forge/src/storage.rs index ac4998d6..c23babf7 100644 --- a/sovereign-forge/src/storage.rs +++ b/sovereign-forge/src/storage.rs @@ -1,2 +1,8 @@ +use multiversx_sc::imports::UnorderedSetMapper; + #[multiversx_sc::module] -pub trait StorageModule {} +pub trait StorageModule { + #[view(getAllChainIds)] + #[storage_mapper("allChainIds")] + fn chain_ids(&self) -> UnorderedSetMapper; +} From ad49eee773a1f6c56111eb79fb729378f543eb6a Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 08:43:52 +0200 Subject: [PATCH 05/28] Added `deploy-cost` Signed-off-by: Andrei Baltariu --- sovereign-forge/src/lib.rs | 5 ++++- sovereign-forge/src/storage.rs | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sovereign-forge/src/lib.rs b/sovereign-forge/src/lib.rs index d2089994..db5797a1 100644 --- a/sovereign-forge/src/lib.rs +++ b/sovereign-forge/src/lib.rs @@ -9,7 +9,10 @@ mod storage; #[multiversx_sc::contract] pub trait SovereignForge: phases::PhasesModule + storage::StorageModule { #[init] - fn init(&self) {} + fn init(&self, deploy_cost: BigUint) { + require!(deploy_cost > 0, "The deploy cost can't be a 0 value"); + self.deploy_cost().set(deploy_cost); + } #[upgrade] fn upgrade(&self) {} diff --git a/sovereign-forge/src/storage.rs b/sovereign-forge/src/storage.rs index c23babf7..7fc591a6 100644 --- a/sovereign-forge/src/storage.rs +++ b/sovereign-forge/src/storage.rs @@ -1,7 +1,11 @@ -use multiversx_sc::imports::UnorderedSetMapper; +use multiversx_sc::imports::{SingleValueMapper, UnorderedSetMapper}; #[multiversx_sc::module] pub trait StorageModule { + #[view(getDeployCost)] + #[storage_mapper("deployCost")] + fn deploy_cost(&self) -> SingleValueMapper; + #[view(getAllChainIds)] #[storage_mapper("allChainIds")] fn chain_ids(&self) -> UnorderedSetMapper; From 56b1468f8ae1deb8db8aee55d578d133e53e9bf8 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 08:45:17 +0200 Subject: [PATCH 06/28] Added sc-config Signed-off-by: Andrei Baltariu --- sovereign-forge/sc-config.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sovereign-forge/sc-config.toml diff --git a/sovereign-forge/sc-config.toml b/sovereign-forge/sc-config.toml new file mode 100644 index 00000000..163cb6f7 --- /dev/null +++ b/sovereign-forge/sc-config.toml @@ -0,0 +1,19 @@ +[settings] +main = "main" + +[contracts.main] +name = "sovereign-forge" + +[contracts.full] +name = "sovereign-forge-full" +add-unlabelled = true +add-labels = ["sovereign-forge-external-view"] + +[contracts.view] +name = "soveriegn-forge-view" +external-view = true +add-unlabelled = false +add-labels = ["sovereign-forge-external-view"] + +[[proxy]] +path = "../common/proxies/src/sovereign_forge_proxy.rs" From 8df79e04e75eb01138182ad2d746bbdf200c0637 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 09:13:28 +0200 Subject: [PATCH 07/28] Created common module Signed-off-by: Andrei Baltariu --- Cargo.lock | 1 + sovereign-forge/Cargo.toml | 3 + sovereign-forge/src/common/mod.rs | 2 + sovereign-forge/src/{ => common}/storage.rs | 8 +++ sovereign-forge/src/common/utils.rs | 67 +++++++++++++++++++++ sovereign-forge/src/lib.rs | 8 ++- sovereign-forge/src/phases.rs | 32 +++------- 7 files changed, 96 insertions(+), 25 deletions(-) create mode 100644 sovereign-forge/src/common/mod.rs rename sovereign-forge/src/{ => common}/storage.rs (62%) create mode 100644 sovereign-forge/src/common/utils.rs diff --git a/Cargo.lock b/Cargo.lock index a7734970..33832380 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2140,6 +2140,7 @@ dependencies = [ "multiversx-sc-modules", "multiversx-sc-scenario", "num-bigint", + "proxies", ] [[package]] diff --git a/sovereign-forge/Cargo.toml b/sovereign-forge/Cargo.toml index 1d6a5be0..f673f77b 100644 --- a/sovereign-forge/Cargo.toml +++ b/sovereign-forge/Cargo.toml @@ -19,3 +19,6 @@ version = "0.54.2" [dependencies.multiversx-sc-modules] version = "0.54.2" + +[dependencies.proxies] +path = "../common/proxies" diff --git a/sovereign-forge/src/common/mod.rs b/sovereign-forge/src/common/mod.rs new file mode 100644 index 00000000..7826b9e3 --- /dev/null +++ b/sovereign-forge/src/common/mod.rs @@ -0,0 +1,2 @@ +pub mod storage; +pub mod utils; diff --git a/sovereign-forge/src/storage.rs b/sovereign-forge/src/common/storage.rs similarity index 62% rename from sovereign-forge/src/storage.rs rename to sovereign-forge/src/common/storage.rs index 7fc591a6..c76a6e1b 100644 --- a/sovereign-forge/src/storage.rs +++ b/sovereign-forge/src/common/storage.rs @@ -1,7 +1,15 @@ use multiversx_sc::imports::{SingleValueMapper, UnorderedSetMapper}; +use super::utils::ChainContractsMap; + #[multiversx_sc::module] pub trait StorageModule { + #[storage_mapper("sovereignsMapper")] + fn sovereigns_mapper( + &self, + sovereign_creator: &ManagedAddress, + ) -> SingleValueMapper>; + #[view(getDeployCost)] #[storage_mapper("deployCost")] fn deploy_cost(&self) -> SingleValueMapper; diff --git a/sovereign-forge/src/common/utils.rs b/sovereign-forge/src/common/utils.rs new file mode 100644 index 00000000..41dcb980 --- /dev/null +++ b/sovereign-forge/src/common/utils.rs @@ -0,0 +1,67 @@ +use multiversx_sc::{ + api::ManagedTypeApi, + codec, + derive::{type_abi, ManagedVecItem, TypeAbi}, + proxy_imports::{NestedDecode, NestedEncode, TopDecode, TopEncode}, + require, + types::{ManagedAddress, ManagedBuffer, ManagedVec}, +}; + +use crate::err_msg; + +#[derive(TypeAbi, TopEncode, TopDecode, NestedEncode, NestedDecode, ManagedVecItem)] +pub struct ContractInfo { + pub id: ScArray, + pub address: ManagedAddress, +} + +#[derive(TypeAbi, TopEncode, TopDecode, NestedEncode, NestedDecode, ManagedVecItem)] +pub struct ChainContractsMap { + pub chain_id: ManagedBuffer, + pub contracts_info: ManagedVec>, +} + +#[type_abi] +#[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, Clone, ManagedVecItem, PartialEq)] +pub enum ScArray { + ChainFactory, + Controller, + SovereignHeaderVerifier, + SovereignCrossChainOperation, + FeeMarket, + TokenHandler, + ChainConfig, + Slashing, +} + +#[multiversx_sc::module] +pub trait UtilsModule: super::storage::StorageModule { + fn generate_chain_id(&self) -> ManagedBuffer { + loop { + let new_chain_id = self.generated_random_4_char_string(); + let mut chain_id_history_mapper = self.chain_ids(); + if !chain_id_history_mapper.contains(&new_chain_id) { + chain_id_history_mapper.insert(new_chain_id.clone()); + return new_chain_id; + } + } + } + + fn generated_random_4_char_string(&self) -> ManagedBuffer { + let mut byte_array: [u8; 4] = [0; 4]; + let charset: &[u8] = b"0123456789abcdefghijklmnopqrstuvwxyz"; + let mut rand = RandomnessSource::new(); + (0..4).for_each(|i| { + let rand_index = rand.next_u8_in_range(0, charset.len() as u8) as usize; + byte_array[i] = charset[rand_index]; + }); + ManagedBuffer::new_from_bytes(&byte_array) + } + + fn require_correct_deploy_cost(&self, call_value: &BigUint) { + require!( + call_value == &self.deploy_cost().get(), + "The given deploy cost is not equal to the standard amount" + ); + } +} diff --git a/sovereign-forge/src/lib.rs b/sovereign-forge/src/lib.rs index db5797a1..99ab2dd6 100644 --- a/sovereign-forge/src/lib.rs +++ b/sovereign-forge/src/lib.rs @@ -1,13 +1,15 @@ #![no_std] -#[allow(unused_imports)] +use crate::err_msg; use multiversx_sc::imports::*; +mod common; mod phases; -mod storage; #[multiversx_sc::contract] -pub trait SovereignForge: phases::PhasesModule + storage::StorageModule { +pub trait SovereignForge: + phases::PhasesModule + common::storage::StorageModule + common::utils::UtilsModule +{ #[init] fn init(&self, deploy_cost: BigUint) { require!(deploy_cost > 0, "The deploy cost can't be a 0 value"); diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index b103642f..581693e6 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -1,27 +1,15 @@ -use crate::err_msg; -use crate::storage::{self}; +use core::ops::Deref; + +use crate::{common, err_msg}; #[multiversx_sc::module] -pub trait PhasesModule: storage::StorageModule { - fn generate_chain_id(&self) -> ManagedBuffer { - loop { - let new_chain_id = self.generated_random_4_char_string(); - let mut chain_id_history_mapper = self.chain_ids(); - if !chain_id_history_mapper.contains(&new_chain_id) { - chain_id_history_mapper.insert(new_chain_id.clone()); - return new_chain_id; - } - } - } +pub trait PhasesModule: common::utils::UtilsModule + common::storage::StorageModule { + #[payable("EGLD")] + #[endpoint(deployPhaseOne)] + fn deploy_phase_one(&self) { + let call_value = self.call_value().egld_value(); + self.require_correct_deploy_cost(call_value.deref()); - fn generated_random_4_char_string(&self) -> ManagedBuffer { - let mut byte_array: [u8; 4] = [0; 4]; - let charset: &[u8] = b"0123456789abcdefghijklmnopqrstuvwxyz"; - let mut rand = RandomnessSource::new(); - (0..4).for_each(|i| { - let rand_index = rand.next_u8_in_range(0, charset.len() as u8) as usize; - byte_array[i] = charset[rand_index]; - }); - ManagedBuffer::new_from_bytes(&byte_array) + let chain_id = self.generate_chain_id(); } } From 335ff3b3d6f8e90336813b13377c1dc36150be9b Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 14:51:40 +0200 Subject: [PATCH 08/28] Moved type alias to `common` module Signed-off-by: Andrei Baltariu --- chain-config/Cargo.toml | 3 +++ chain-config/src/lib.rs | 3 +-- chain-factory/Cargo.toml | 3 +++ chain-factory/src/factory.rs | 3 +-- common/transaction/src/lib.rs | 1 + 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/chain-config/Cargo.toml b/chain-config/Cargo.toml index bf6c7374..c5efb5a9 100644 --- a/chain-config/Cargo.toml +++ b/chain-config/Cargo.toml @@ -19,3 +19,6 @@ version = "=0.54.2" [dependencies.multiversx-sc-modules] version = "=0.54.2" + +[dependencies.transaction] +path = "../common/transaction" diff --git a/chain-config/src/lib.rs b/chain-config/src/lib.rs index 4484cd3f..6620bbb4 100644 --- a/chain-config/src/lib.rs +++ b/chain-config/src/lib.rs @@ -1,6 +1,7 @@ #![no_std] use multiversx_sc_modules::only_admin; +use transaction::StakeMultiArg; use validator_rules::TokenIdAmountPair; multiversx_sc::imports!(); @@ -8,8 +9,6 @@ multiversx_sc::imports!(); pub mod bridge; pub mod validator_rules; -pub type StakeMultiArg = MultiValue2, BigUint>; - #[multiversx_sc::contract] pub trait ChainConfigContract: bridge::BridgeModule + validator_rules::ValidatorRulesModule + only_admin::OnlyAdminModule diff --git a/chain-factory/Cargo.toml b/chain-factory/Cargo.toml index 73dffcb1..a55ae7de 100644 --- a/chain-factory/Cargo.toml +++ b/chain-factory/Cargo.toml @@ -28,3 +28,6 @@ path = "../chain-config" [dependencies.proxies] path = "../common/proxies" + +[dependencies.transaction] +path = "../common/transaction" diff --git a/chain-factory/src/factory.rs b/chain-factory/src/factory.rs index dea0860b..3d930041 100644 --- a/chain-factory/src/factory.rs +++ b/chain-factory/src/factory.rs @@ -1,5 +1,3 @@ -use chain_config::StakeMultiArg; - use multiversx_sc::imports::*; use proxies::{ chain_config_proxy::ChainConfigContractProxy, @@ -7,6 +5,7 @@ use proxies::{ fee_market_proxy::{FeeMarketProxy, FeeStruct}, header_verifier_proxy::HeaderverifierProxy, }; +use transaction::StakeMultiArg; multiversx_sc::derive_imports!(); #[multiversx_sc::module] diff --git a/common/transaction/src/lib.rs b/common/transaction/src/lib.rs index 93d5ceba..201e2980 100644 --- a/common/transaction/src/lib.rs +++ b/common/transaction/src/lib.rs @@ -32,6 +32,7 @@ pub type ExtractedFeeResult = MultiValue2>, ManagedVec>>; pub type OptionalValueTransferDataTuple = OptionalValue, ManagedVec>>>; +pub type StakeMultiArg = MultiValue2, BigUint>; #[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, TypeAbi, ManagedVecItem, Clone)] pub struct Operation { From 9630f7938753eab181a3ea74d78c93fcc9a378ab Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 14:52:33 +0200 Subject: [PATCH 09/28] Added endpoints to register token-handler and chain-factory addresses Signed-off-by: Andrei Baltariu --- sovereign-forge/src/lib.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/sovereign-forge/src/lib.rs b/sovereign-forge/src/lib.rs index 99ab2dd6..15cb6cd6 100644 --- a/sovereign-forge/src/lib.rs +++ b/sovereign-forge/src/lib.rs @@ -16,6 +16,32 @@ pub trait SovereignForge: self.deploy_cost().set(deploy_cost); } + #[endpoint(registerTokenHandler)] + fn register_token_handler(&self, token_handler_address: ManagedAddress) { + require!( + self.blockchain().is_smart_contract(&token_handler_address), + "The given address is not a valid SC address" + ); + + let caller = self.blockchain().get_caller(); + let caller_shard = self.blockchain().get_shard_of_address(&caller); + + self.token_handlers(caller_shard).set(token_handler_address); + } + + #[endpoint(registerChainFactory)] + fn register_chain_factory(&self, chain_factory_address: ManagedAddress) { + require!( + self.blockchain().is_smart_contract(&chain_factory_address), + "The given address is not a valid SC address" + ); + + let caller = self.blockchain().get_caller(); + let caller_shard = self.blockchain().get_shard_of_address(&caller); + + self.token_handlers(caller_shard).set(chain_factory_address); + } + #[upgrade] fn upgrade(&self) {} } From 8f7b13e6956f0a74a95859ed4bcdb5b6aee94bed Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 14:52:53 +0200 Subject: [PATCH 10/28] Added token-handler and chain-factory addresses mappers Signed-off-by: Andrei Baltariu --- sovereign-forge/src/common/storage.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sovereign-forge/src/common/storage.rs b/sovereign-forge/src/common/storage.rs index c76a6e1b..6c8ba251 100644 --- a/sovereign-forge/src/common/storage.rs +++ b/sovereign-forge/src/common/storage.rs @@ -10,6 +10,12 @@ pub trait StorageModule { sovereign_creator: &ManagedAddress, ) -> SingleValueMapper>; + #[storage_mapper("chainFactories")] + fn chain_factories(&self, shard_id: u32) -> SingleValueMapper; + + #[storage_mapper("tokenHadlersFactories")] + fn token_handlers(&self, shard_id: u32) -> SingleValueMapper; + #[view(getDeployCost)] #[storage_mapper("deployCost")] fn deploy_cost(&self) -> SingleValueMapper; From 4fa75fed529b9b6f20250dd0359e07ea8d41e1c4 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:10:24 +0200 Subject: [PATCH 11/28] Modified validator size to be `u64` Signed-off-by: Andrei Baltariu --- chain-config/src/lib.rs | 4 ++-- chain-config/src/validator_rules.rs | 4 ++-- chain-factory/src/factory.rs | 4 ++-- common/proxies/src/chain_config_proxy.rs | 8 ++++---- common/proxies/src/chain_factory_proxy.rs | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/chain-config/src/lib.rs b/chain-config/src/lib.rs index 6620bbb4..7850e21b 100644 --- a/chain-config/src/lib.rs +++ b/chain-config/src/lib.rs @@ -16,8 +16,8 @@ pub trait ChainConfigContract: #[init] fn init( &self, - min_validators: usize, - max_validators: usize, + min_validators: u64, + max_validators: u64, min_stake: BigUint, admin: ManagedAddress, additional_stake_required: MultiValueEncoded>, diff --git a/chain-config/src/validator_rules.rs b/chain-config/src/validator_rules.rs index 971f65e2..f6b850fb 100644 --- a/chain-config/src/validator_rules.rs +++ b/chain-config/src/validator_rules.rs @@ -15,11 +15,11 @@ pub struct TokenIdAmountPair { pub trait ValidatorRulesModule { #[view(getMinValidators)] #[storage_mapper("minValidators")] - fn min_validators(&self) -> SingleValueMapper; + fn min_validators(&self) -> SingleValueMapper; #[view(getMaxValidators)] #[storage_mapper("maxValidators")] - fn max_validators(&self) -> SingleValueMapper; + fn max_validators(&self) -> SingleValueMapper; // TODO: Read user stake and verify #[view(getMinStake)] diff --git a/chain-factory/src/factory.rs b/chain-factory/src/factory.rs index 3d930041..1c75fd24 100644 --- a/chain-factory/src/factory.rs +++ b/chain-factory/src/factory.rs @@ -14,8 +14,8 @@ pub trait FactoryModule { #[endpoint(deploySovereignChainConfigContract)] fn deploy_sovereign_chain_config_contract( &self, - min_validators: usize, - max_validators: usize, + min_validators: u64, + max_validators: u64, min_stake: BigUint, additional_stake_required: MultiValueEncoded>, ) -> ManagedAddress { diff --git a/common/proxies/src/chain_config_proxy.rs b/common/proxies/src/chain_config_proxy.rs index 291e16d3..ed5e1468 100644 --- a/common/proxies/src/chain_config_proxy.rs +++ b/common/proxies/src/chain_config_proxy.rs @@ -44,8 +44,8 @@ where Gas: TxGas, { pub fn init< - Arg0: ProxyArg, - Arg1: ProxyArg, + Arg0: ProxyArg, + Arg1: ProxyArg, Arg2: ProxyArg>, Arg3: ProxyArg>, Arg4: ProxyArg, BigUint>>>, @@ -118,7 +118,7 @@ where pub fn min_validators( self, - ) -> TxTypedCall { + ) -> TxTypedCall { self.wrapped_tx .payment(NotPayable) .raw_call("getMinValidators") @@ -127,7 +127,7 @@ where pub fn max_validators( self, - ) -> TxTypedCall { + ) -> TxTypedCall { self.wrapped_tx .payment(NotPayable) .raw_call("getMaxValidators") diff --git a/common/proxies/src/chain_factory_proxy.rs b/common/proxies/src/chain_factory_proxy.rs index 58e7e8c9..87fa8164 100644 --- a/common/proxies/src/chain_factory_proxy.rs +++ b/common/proxies/src/chain_factory_proxy.rs @@ -95,8 +95,8 @@ where Gas: TxGas, { pub fn deploy_sovereign_chain_config_contract< - Arg0: ProxyArg, - Arg1: ProxyArg, + Arg0: ProxyArg, + Arg1: ProxyArg, Arg2: ProxyArg>, Arg3: ProxyArg, BigUint>>>, >( From 332ec0d79b3ccb559a1fcfd619745c756958d245 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:10:55 +0200 Subject: [PATCH 12/28] Added `new()` function for the custom structs Signed-off-by: Andrei Baltariu --- sovereign-forge/src/common/utils.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sovereign-forge/src/common/utils.rs b/sovereign-forge/src/common/utils.rs index 41dcb980..1c7afb2c 100644 --- a/sovereign-forge/src/common/utils.rs +++ b/sovereign-forge/src/common/utils.rs @@ -15,12 +15,27 @@ pub struct ContractInfo { pub address: ManagedAddress, } +impl ContractInfo { + pub fn new(id: ScArray, address: ManagedAddress) -> Self { + ContractInfo { id, address } + } +} + #[derive(TypeAbi, TopEncode, TopDecode, NestedEncode, NestedDecode, ManagedVecItem)] pub struct ChainContractsMap { pub chain_id: ManagedBuffer, pub contracts_info: ManagedVec>, } +impl ChainContractsMap { + pub fn new(chain_id: ManagedBuffer, contracts_info: ManagedVec>) -> Self { + ChainContractsMap { + chain_id, + contracts_info, + } + } +} + #[type_abi] #[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, Clone, ManagedVecItem, PartialEq)] pub enum ScArray { From 2617cac1be1e4d0b4d0ff00f61604dcf508fce00 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:25:19 +0200 Subject: [PATCH 13/28] Added variable for blockchain wrapper Signed-off-by: Andrei Baltariu --- sovereign-forge/src/lib.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sovereign-forge/src/lib.rs b/sovereign-forge/src/lib.rs index 15cb6cd6..776b0e16 100644 --- a/sovereign-forge/src/lib.rs +++ b/sovereign-forge/src/lib.rs @@ -23,10 +23,12 @@ pub trait SovereignForge: "The given address is not a valid SC address" ); - let caller = self.blockchain().get_caller(); - let caller_shard = self.blockchain().get_shard_of_address(&caller); + let blockchain_api = self.blockchain(); + let caller = blockchain_api.get_caller(); + let caller_shard_id = blockchain_api.get_shard_of_address(&caller); - self.token_handlers(caller_shard).set(token_handler_address); + self.token_handlers(caller_shard_id) + .set(token_handler_address); } #[endpoint(registerChainFactory)] @@ -37,9 +39,10 @@ pub trait SovereignForge: ); let caller = self.blockchain().get_caller(); - let caller_shard = self.blockchain().get_shard_of_address(&caller); + let caller_shard_id = self.blockchain().get_shard_of_address(&caller); - self.token_handlers(caller_shard).set(chain_factory_address); + self.token_handlers(caller_shard_id) + .set(chain_factory_address); } #[upgrade] From 88d9205fb9cd7b529362dba3154123f9a5a110c6 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:25:40 +0200 Subject: [PATCH 14/28] Added endpoint for chain_factory call Signed-off-by: Andrei Baltariu --- sovereign-forge/src/phases.rs | 75 ++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 581693e6..9a21854d 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -1,15 +1,86 @@ use core::ops::Deref; +use proxies::chain_factory_proxy::ChainFactoryContractProxy; +use transaction::StakeMultiArg; -use crate::{common, err_msg}; +use multiversx_sc::{ + require, + types::{ManagedVec, MultiValueEncoded, ReturnsResult}, +}; + +use crate::{ + common::{ + self, + utils::{ChainContractsMap, ContractInfo, ScArray}, + }, + err_msg, +}; #[multiversx_sc::module] pub trait PhasesModule: common::utils::UtilsModule + common::storage::StorageModule { #[payable("EGLD")] #[endpoint(deployPhaseOne)] - fn deploy_phase_one(&self) { + fn deploy_phase_one( + &self, + min_validators: u64, + max_validators: u64, + min_stake: BigUint, + additional_stake_required: MultiValueEncoded>, + ) { let call_value = self.call_value().egld_value(); self.require_correct_deploy_cost(call_value.deref()); + let blockchain_api = self.blockchain(); + let caller = blockchain_api.get_caller(); + let caller_shard_id = blockchain_api.get_shard_of_address(&caller); + let chain_id = self.generate_chain_id(); + let chain_factory_address = self.chain_factories(caller_shard_id).get(); + + let chain_config_address = self.deploy_chain_config( + chain_factory_address, + min_validators, + max_validators, + min_stake, + additional_stake_required, + ); + + let sovereigns_mapper = self.sovereigns_mapper(&caller); + require!( + !sovereigns_mapper + .get() + .contracts_info + .iter() + .any(|ci| ci.id == ScArray::ChainConfig), + "There is already a registered ChainConfig SC for this chain" + ); + + let chain_factory_contract_info = + ContractInfo::new(ScArray::ChainConfig, chain_config_address); + let mut contracts_info = ManagedVec::new(); + contracts_info.push(chain_factory_contract_info); + let chain_contracts_map = ChainContractsMap::new(chain_id, contracts_info); + + sovereigns_mapper.set(chain_contracts_map); + } + + fn deploy_chain_config( + &self, + chain_factory_address: ManagedAddress, + min_validators: u64, + max_validators: u64, + min_stake: BigUint, + additional_stake_required: MultiValueEncoded>, + ) -> ManagedAddress { + self.tx() + .to(chain_factory_address) + .typed(ChainFactoryContractProxy) + .deploy_sovereign_chain_config_contract( + min_validators, + max_validators, + min_stake, + additional_stake_required, + ) + .returns(ReturnsResult) + .sync_call() } } From 65f86fb427ae607a2c2168d8e03df2f61d09a98e Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:25:56 +0200 Subject: [PATCH 15/28] Added common transaction module dependency Signed-off-by: Andrei Baltariu --- sovereign-forge/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sovereign-forge/Cargo.toml b/sovereign-forge/Cargo.toml index f673f77b..0670401c 100644 --- a/sovereign-forge/Cargo.toml +++ b/sovereign-forge/Cargo.toml @@ -22,3 +22,6 @@ version = "0.54.2" [dependencies.proxies] path = "../common/proxies" + +[dependencies.transaction] +path = "../common/transaction" From 228b3d67430fae488738050efb2f309a20fb67ae Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:26:46 +0200 Subject: [PATCH 16/28] Sovereign-forge proxy Signed-off-by: Andrei Baltariu --- common/proxies/src/sovereign_forge_proxy.rs | 152 ++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 common/proxies/src/sovereign_forge_proxy.rs diff --git a/common/proxies/src/sovereign_forge_proxy.rs b/common/proxies/src/sovereign_forge_proxy.rs new file mode 100644 index 00000000..9fea454d --- /dev/null +++ b/common/proxies/src/sovereign_forge_proxy.rs @@ -0,0 +1,152 @@ +// Code generated by the multiversx-sc proxy generator. DO NOT EDIT. + +//////////////////////////////////////////////////// +////////////////// AUTO-GENERATED ////////////////// +//////////////////////////////////////////////////// + +#![allow(dead_code)] +#![allow(clippy::all)] + +use multiversx_sc::proxy_imports::*; + +pub struct SovereignForgeProxy; + +impl TxProxyTrait for SovereignForgeProxy +where + Env: TxEnv, + From: TxFrom, + To: TxTo, + Gas: TxGas, +{ + type TxProxyMethods = SovereignForgeProxyMethods; + + fn proxy_methods(self, tx: Tx) -> Self::TxProxyMethods { + SovereignForgeProxyMethods { wrapped_tx: tx } + } +} + +pub struct SovereignForgeProxyMethods +where + Env: TxEnv, + From: TxFrom, + To: TxTo, + Gas: TxGas, +{ + wrapped_tx: Tx, +} + +#[rustfmt::skip] +impl SovereignForgeProxyMethods +where + Env: TxEnv, + Env::Api: VMApi, + From: TxFrom, + Gas: TxGas, +{ + pub fn init< + Arg0: ProxyArg>, + >( + self, + deploy_cost: Arg0, + ) -> TxTypedDeploy { + self.wrapped_tx + .payment(NotPayable) + .raw_deploy() + .argument(&deploy_cost) + .original_result() + } +} + +#[rustfmt::skip] +impl SovereignForgeProxyMethods +where + Env: TxEnv, + Env::Api: VMApi, + From: TxFrom, + To: TxTo, + Gas: TxGas, +{ + pub fn upgrade( + self, + ) -> TxTypedUpgrade { + self.wrapped_tx + .payment(NotPayable) + .raw_upgrade() + .original_result() + } +} + +#[rustfmt::skip] +impl SovereignForgeProxyMethods +where + Env: TxEnv, + Env::Api: VMApi, + From: TxFrom, + To: TxTo, + Gas: TxGas, +{ + pub fn register_token_handler< + Arg0: ProxyArg>, + >( + self, + token_handler_address: Arg0, + ) -> TxTypedCall { + self.wrapped_tx + .payment(NotPayable) + .raw_call("registerTokenHandler") + .argument(&token_handler_address) + .original_result() + } + + pub fn register_chain_factory< + Arg0: ProxyArg>, + >( + self, + chain_factory_address: Arg0, + ) -> TxTypedCall { + self.wrapped_tx + .payment(NotPayable) + .raw_call("registerChainFactory") + .argument(&chain_factory_address) + .original_result() + } + + pub fn deploy_phase_one< + Arg0: ProxyArg, + Arg1: ProxyArg, + Arg2: ProxyArg>, + Arg3: ProxyArg, BigUint>>>, + >( + self, + min_validators: Arg0, + max_validators: Arg1, + min_stake: Arg2, + additional_stake_required: Arg3, + ) -> TxTypedCall { + self.wrapped_tx + .raw_call("deployPhaseOne") + .argument(&min_validators) + .argument(&max_validators) + .argument(&min_stake) + .argument(&additional_stake_required) + .original_result() + } + + pub fn deploy_cost( + self, + ) -> TxTypedCall> { + self.wrapped_tx + .payment(NotPayable) + .raw_call("getDeployCost") + .original_result() + } + + pub fn chain_ids( + self, + ) -> TxTypedCall>> { + self.wrapped_tx + .payment(NotPayable) + .raw_call("getAllChainIds") + .original_result() + } +} From 04c4bf700b6fbc0bea6d4e6e6c480b5a78a19b29 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:27:00 +0200 Subject: [PATCH 17/28] Built contracts Signed-off-by: Andrei Baltariu --- Cargo.lock | 3 + .../wasm-chain-config-full/Cargo.lock | 8 + .../wasm-chain-config-view/Cargo.lock | 8 + chain-config/wasm/Cargo.lock | 8 + .../wasm-chain-factory-full/Cargo.lock | 2 + .../wasm-chain-factory-view/Cargo.lock | 2 + chain-factory/wasm/Cargo.lock | 2 + .../wasm-enshrine-esdt-safe-full/Cargo.lock | 2 + .../wasm-enshrine-esdt-safe-view/Cargo.lock | 2 + enshrine-esdt-safe/wasm/Cargo.lock | 2 + .../wasm-sovereign-forge-full/Cargo.lock | 235 ++++++++++++++++++ .../wasm-sovereign-forge-full/Cargo.toml | 34 +++ .../wasm-sovereign-forge-full/src/lib.rs | 31 +++ .../wasm-soveriegn-forge-view/Cargo.lock | 235 ++++++++++++++++++ .../wasm-soveriegn-forge-view/Cargo.toml | 34 +++ .../wasm-soveriegn-forge-view/src/lib.rs | 25 ++ sovereign-forge/wasm/Cargo.lock | 26 ++ sovereign-forge/wasm/src/lib.rs | 9 +- .../wasm-token-handler-full/Cargo.lock | 2 + .../wasm-token-handler-view/Cargo.lock | 2 + token-handler/wasm/Cargo.lock | 2 + 21 files changed, 672 insertions(+), 2 deletions(-) create mode 100644 sovereign-forge/wasm-sovereign-forge-full/Cargo.lock create mode 100644 sovereign-forge/wasm-sovereign-forge-full/Cargo.toml create mode 100644 sovereign-forge/wasm-sovereign-forge-full/src/lib.rs create mode 100644 sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock create mode 100644 sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml create mode 100644 sovereign-forge/wasm-soveriegn-forge-view/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 33832380..1de81c54 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,6 +243,7 @@ dependencies = [ "multiversx-sc-modules", "multiversx-sc-scenario", "num-bigint", + "transaction", ] [[package]] @@ -263,6 +264,7 @@ dependencies = [ "multiversx-sc-scenario", "num-bigint", "proxies", + "transaction", "utils", ] @@ -2141,6 +2143,7 @@ dependencies = [ "multiversx-sc-scenario", "num-bigint", "proxies", + "transaction", ] [[package]] diff --git a/chain-config/wasm-chain-config-full/Cargo.lock b/chain-config/wasm-chain-config-full/Cargo.lock index f3270f05..140622d6 100644 --- a/chain-config/wasm-chain-config-full/Cargo.lock +++ b/chain-config/wasm-chain-config-full/Cargo.lock @@ -26,6 +26,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -196,6 +197,13 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "transaction" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "unicode-ident" version = "1.0.12" diff --git a/chain-config/wasm-chain-config-view/Cargo.lock b/chain-config/wasm-chain-config-view/Cargo.lock index 0f26ff34..9e4d3139 100644 --- a/chain-config/wasm-chain-config-view/Cargo.lock +++ b/chain-config/wasm-chain-config-view/Cargo.lock @@ -26,6 +26,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -196,6 +197,13 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "transaction" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "unicode-ident" version = "1.0.12" diff --git a/chain-config/wasm/Cargo.lock b/chain-config/wasm/Cargo.lock index 5a95b64e..9f02c710 100644 --- a/chain-config/wasm/Cargo.lock +++ b/chain-config/wasm/Cargo.lock @@ -26,6 +26,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -196,6 +197,13 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "transaction" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "unicode-ident" version = "1.0.13" diff --git a/chain-factory/wasm-chain-factory-full/Cargo.lock b/chain-factory/wasm-chain-factory-full/Cargo.lock index 4afa8c72..29722b85 100644 --- a/chain-factory/wasm-chain-factory-full/Cargo.lock +++ b/chain-factory/wasm-chain-factory-full/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/chain-factory/wasm-chain-factory-view/Cargo.lock b/chain-factory/wasm-chain-factory-view/Cargo.lock index 7fc54ae5..c449f8cb 100644 --- a/chain-factory/wasm-chain-factory-view/Cargo.lock +++ b/chain-factory/wasm-chain-factory-view/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/chain-factory/wasm/Cargo.lock b/chain-factory/wasm/Cargo.lock index e6610c3c..4d438c53 100644 --- a/chain-factory/wasm/Cargo.lock +++ b/chain-factory/wasm/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock index 216ecfff..1c382b19 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock index fc281d92..25891b56 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/enshrine-esdt-safe/wasm/Cargo.lock b/enshrine-esdt-safe/wasm/Cargo.lock index fccec8d8..1279f84a 100644 --- a/enshrine-esdt-safe/wasm/Cargo.lock +++ b/enshrine-esdt-safe/wasm/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock new file mode 100644 index 00000000..eeb6c65d --- /dev/null +++ b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock @@ -0,0 +1,235 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-literal" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" + +[[package]] +name = "multiversx-chain-core" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c483122550dca9dd4286f970000d855e9d0184e4fe5c5527209a131ac1207638" +dependencies = [ + "bitflags", + "multiversx-sc-codec", +] + +[[package]] +name = "multiversx-sc" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +dependencies = [ + "bitflags", + "hex-literal", + "multiversx-chain-core", + "multiversx-sc-codec", + "multiversx-sc-derive", + "num-traits", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b72f7f6a3e0828c5e38fe0e98298706837f8337fe06bca3ff21df22c84b6256" +dependencies = [ + "arrayvec", + "multiversx-sc-codec-derive", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec-derive" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b915f0f463fd1811de124b51d68cb2067f5a4796cde2a9570316780cf18961" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "multiversx-sc-derive" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "radix_trie", + "syn", +] + +[[package]] +name = "multiversx-sc-modules" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "multiversx-sc-wasm-adapter" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "nibble_vec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43" +dependencies = [ + "smallvec", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "proc-macro2" +version = "1.0.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "proxies" +version = "0.1.0" +dependencies = [ + "multiversx-sc", + "transaction", + "tx-batch-module", +] + +[[package]] +name = "quote" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radix_trie" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd" +dependencies = [ + "endian-type", + "nibble_vec", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "sovereign-forge" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "multiversx-sc-modules", + "proxies", + "transaction", +] + +[[package]] +name = "sovereign-forge-full-wasm" +version = "0.0.0" +dependencies = [ + "multiversx-sc-wasm-adapter", + "sovereign-forge", +] + +[[package]] +name = "syn" +version = "2.0.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "transaction" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "tx-batch-module" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "transaction", +] + +[[package]] +name = "unicode-ident" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" + +[[package]] +name = "unwrap-infallible" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" diff --git a/sovereign-forge/wasm-sovereign-forge-full/Cargo.toml b/sovereign-forge/wasm-sovereign-forge-full/Cargo.toml new file mode 100644 index 00000000..3fe0a1d3 --- /dev/null +++ b/sovereign-forge/wasm-sovereign-forge-full/Cargo.toml @@ -0,0 +1,34 @@ +# Code generated by the multiversx-sc build system. DO NOT EDIT. + +# ########################################## +# ############## AUTO-GENERATED ############# +# ########################################## + +[package] +name = "sovereign-forge-full-wasm" +version = "0.0.0" +edition = "2021" +publish = false + +[lib] +crate-type = ["cdylib"] + +[profile.release] +codegen-units = 1 +opt-level = "z" +lto = true +debug = false +panic = "abort" +overflow-checks = false + +[profile.dev] +panic = "abort" + +[dependencies.sovereign-forge] +path = ".." + +[dependencies.multiversx-sc-wasm-adapter] +version = "0.54.2" + +[workspace] +members = ["."] diff --git a/sovereign-forge/wasm-sovereign-forge-full/src/lib.rs b/sovereign-forge/wasm-sovereign-forge-full/src/lib.rs new file mode 100644 index 00000000..f13e315c --- /dev/null +++ b/sovereign-forge/wasm-sovereign-forge-full/src/lib.rs @@ -0,0 +1,31 @@ +// Code generated by the multiversx-sc build system. DO NOT EDIT. + +//////////////////////////////////////////////////// +////////////////// AUTO-GENERATED ////////////////// +//////////////////////////////////////////////////// + +// Init: 1 +// Upgrade: 1 +// Endpoints: 5 +// Async Callback (empty): 1 +// Total number of exported functions: 8 + +#![no_std] + +multiversx_sc_wasm_adapter::allocator!(); +multiversx_sc_wasm_adapter::panic_handler!(); + +multiversx_sc_wasm_adapter::endpoints! { + sovereign_forge + ( + init => init + upgrade => upgrade + registerTokenHandler => register_token_handler + registerChainFactory => register_chain_factory + deployPhaseOne => deploy_phase_one + getDeployCost => deploy_cost + getAllChainIds => chain_ids + ) +} + +multiversx_sc_wasm_adapter::async_callback_empty! {} diff --git a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock new file mode 100644 index 00000000..1e3451f7 --- /dev/null +++ b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock @@ -0,0 +1,235 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hex-literal" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" + +[[package]] +name = "multiversx-chain-core" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c483122550dca9dd4286f970000d855e9d0184e4fe5c5527209a131ac1207638" +dependencies = [ + "bitflags", + "multiversx-sc-codec", +] + +[[package]] +name = "multiversx-sc" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +dependencies = [ + "bitflags", + "hex-literal", + "multiversx-chain-core", + "multiversx-sc-codec", + "multiversx-sc-derive", + "num-traits", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b72f7f6a3e0828c5e38fe0e98298706837f8337fe06bca3ff21df22c84b6256" +dependencies = [ + "arrayvec", + "multiversx-sc-codec-derive", + "unwrap-infallible", +] + +[[package]] +name = "multiversx-sc-codec-derive" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b915f0f463fd1811de124b51d68cb2067f5a4796cde2a9570316780cf18961" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "multiversx-sc-derive" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "radix_trie", + "syn", +] + +[[package]] +name = "multiversx-sc-modules" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "multiversx-sc-wasm-adapter" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "nibble_vec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43" +dependencies = [ + "smallvec", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "proc-macro2" +version = "1.0.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "proxies" +version = "0.1.0" +dependencies = [ + "multiversx-sc", + "transaction", + "tx-batch-module", +] + +[[package]] +name = "quote" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radix_trie" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd" +dependencies = [ + "endian-type", + "nibble_vec", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "sovereign-forge" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "multiversx-sc-modules", + "proxies", + "transaction", +] + +[[package]] +name = "soveriegn-forge-view-wasm" +version = "0.0.0" +dependencies = [ + "multiversx-sc-wasm-adapter", + "sovereign-forge", +] + +[[package]] +name = "syn" +version = "2.0.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "transaction" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "tx-batch-module" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "transaction", +] + +[[package]] +name = "unicode-ident" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" + +[[package]] +name = "unwrap-infallible" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151ac09978d3c2862c4e39b557f4eceee2cc72150bc4cb4f16abf061b6e381fb" diff --git a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml new file mode 100644 index 00000000..7c862dcc --- /dev/null +++ b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml @@ -0,0 +1,34 @@ +# Code generated by the multiversx-sc build system. DO NOT EDIT. + +# ########################################## +# ############## AUTO-GENERATED ############# +# ########################################## + +[package] +name = "soveriegn-forge-view-wasm" +version = "0.0.0" +edition = "2021" +publish = false + +[lib] +crate-type = ["cdylib"] + +[profile.release] +codegen-units = 1 +opt-level = "z" +lto = true +debug = false +panic = "abort" +overflow-checks = false + +[profile.dev] +panic = "abort" + +[dependencies.sovereign-forge] +path = ".." + +[dependencies.multiversx-sc-wasm-adapter] +version = "0.54.2" + +[workspace] +members = ["."] diff --git a/sovereign-forge/wasm-soveriegn-forge-view/src/lib.rs b/sovereign-forge/wasm-soveriegn-forge-view/src/lib.rs new file mode 100644 index 00000000..12fba290 --- /dev/null +++ b/sovereign-forge/wasm-soveriegn-forge-view/src/lib.rs @@ -0,0 +1,25 @@ +// Code generated by the multiversx-sc build system. DO NOT EDIT. + +//////////////////////////////////////////////////// +////////////////// AUTO-GENERATED ////////////////// +//////////////////////////////////////////////////// + +// Init: 1 +// Endpoints: 0 +// Async Callback (empty): 1 +// Total number of exported functions: 2 + +#![no_std] + +multiversx_sc_wasm_adapter::allocator!(); +multiversx_sc_wasm_adapter::panic_handler!(); + +multiversx_sc_wasm_adapter::external_view_init! {} + +multiversx_sc_wasm_adapter::external_view_endpoints! { + sovereign_forge + ( + ) +} + +multiversx_sc_wasm_adapter::async_callback_empty! {} diff --git a/sovereign-forge/wasm/Cargo.lock b/sovereign-forge/wasm/Cargo.lock index e3052f88..9a19642b 100644 --- a/sovereign-forge/wasm/Cargo.lock +++ b/sovereign-forge/wasm/Cargo.lock @@ -144,6 +144,15 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "proxies" +version = "0.1.0" +dependencies = [ + "multiversx-sc", + "transaction", + "tx-batch-module", +] + [[package]] name = "quote" version = "1.0.37" @@ -175,6 +184,8 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "proxies", + "transaction", ] [[package]] @@ -196,6 +207,21 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "transaction" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + +[[package]] +name = "tx-batch-module" +version = "0.0.0" +dependencies = [ + "multiversx-sc", + "transaction", +] + [[package]] name = "unicode-ident" version = "1.0.13" diff --git a/sovereign-forge/wasm/src/lib.rs b/sovereign-forge/wasm/src/lib.rs index a30785de..f13e315c 100644 --- a/sovereign-forge/wasm/src/lib.rs +++ b/sovereign-forge/wasm/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 0 +// Endpoints: 5 // Async Callback (empty): 1 -// Total number of exported functions: 3 +// Total number of exported functions: 8 #![no_std] @@ -20,6 +20,11 @@ multiversx_sc_wasm_adapter::endpoints! { ( init => init upgrade => upgrade + registerTokenHandler => register_token_handler + registerChainFactory => register_chain_factory + deployPhaseOne => deploy_phase_one + getDeployCost => deploy_cost + getAllChainIds => chain_ids ) } diff --git a/token-handler/wasm-token-handler-full/Cargo.lock b/token-handler/wasm-token-handler-full/Cargo.lock index 34712b6e..ee1cab4c 100644 --- a/token-handler/wasm-token-handler-full/Cargo.lock +++ b/token-handler/wasm-token-handler-full/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/token-handler/wasm-token-handler-view/Cargo.lock b/token-handler/wasm-token-handler-view/Cargo.lock index 373b1be8..edfea2c9 100644 --- a/token-handler/wasm-token-handler-view/Cargo.lock +++ b/token-handler/wasm-token-handler-view/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] diff --git a/token-handler/wasm/Cargo.lock b/token-handler/wasm/Cargo.lock index 345234dd..ce7e22d9 100644 --- a/token-handler/wasm/Cargo.lock +++ b/token-handler/wasm/Cargo.lock @@ -34,6 +34,7 @@ version = "0.0.0" dependencies = [ "multiversx-sc", "multiversx-sc-modules", + "transaction", ] [[package]] @@ -44,6 +45,7 @@ dependencies = [ "multiversx-sc", "multiversx-sc-modules", "proxies", + "transaction", "utils", ] From 9131f0be79c806704e20f43ef70da821e1a3aaad Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:30:23 +0200 Subject: [PATCH 18/28] Made `charset` a constant Signed-off-by: Andrei Baltariu --- sovereign-forge/src/common/utils.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sovereign-forge/src/common/utils.rs b/sovereign-forge/src/common/utils.rs index 1c7afb2c..e994ab2d 100644 --- a/sovereign-forge/src/common/utils.rs +++ b/sovereign-forge/src/common/utils.rs @@ -7,6 +7,8 @@ use multiversx_sc::{ types::{ManagedAddress, ManagedBuffer, ManagedVec}, }; +const CHARSET: &[u8] = b"0123456789abcdefghijklmnopqrstuvwxyz"; + use crate::err_msg; #[derive(TypeAbi, TopEncode, TopDecode, NestedEncode, NestedDecode, ManagedVecItem)] @@ -64,11 +66,10 @@ pub trait UtilsModule: super::storage::StorageModule { fn generated_random_4_char_string(&self) -> ManagedBuffer { let mut byte_array: [u8; 4] = [0; 4]; - let charset: &[u8] = b"0123456789abcdefghijklmnopqrstuvwxyz"; let mut rand = RandomnessSource::new(); (0..4).for_each(|i| { - let rand_index = rand.next_u8_in_range(0, charset.len() as u8) as usize; - byte_array[i] = charset[rand_index]; + let rand_index = rand.next_u8_in_range(0, CHARSET.len() as u8) as usize; + byte_array[i] = CHARSET[rand_index]; }); ManagedBuffer::new_from_bytes(&byte_array) } From f5c03d14365301fc7caf75cbf270885be5b49293 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:31:38 +0200 Subject: [PATCH 19/28] Whitespaces Signed-off-by: Andrei Baltariu --- sovereign-forge/src/phases.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 9a21854d..7c2b729e 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -56,8 +56,10 @@ pub trait PhasesModule: common::utils::UtilsModule + common::storage::StorageMod let chain_factory_contract_info = ContractInfo::new(ScArray::ChainConfig, chain_config_address); + let mut contracts_info = ManagedVec::new(); contracts_info.push(chain_factory_contract_info); + let chain_contracts_map = ChainContractsMap::new(chain_id, contracts_info); sovereigns_mapper.set(chain_contracts_map); From d633ba55c1fed9fc0216b564d2c2eac87009cb2d Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 15:47:19 +0200 Subject: [PATCH 20/28] Modified existance of Sovereign Chain condition Signed-off-by: Andrei Baltariu --- sovereign-forge/src/phases.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 7c2b729e..7deb835e 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -46,12 +46,8 @@ pub trait PhasesModule: common::utils::UtilsModule + common::storage::StorageMod let sovereigns_mapper = self.sovereigns_mapper(&caller); require!( - !sovereigns_mapper - .get() - .contracts_info - .iter() - .any(|ci| ci.id == ScArray::ChainConfig), - "There is already a registered ChainConfig SC for this chain" + sovereigns_mapper.is_empty(), + "There is already a deployed Sovereign Chain for this user" ); let chain_factory_contract_info = From 036966bb553138ad34db4ae7aaf0687f6779ae04 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 16:02:08 +0200 Subject: [PATCH 21/28] Fixed tests Signed-off-by: Andrei Baltariu --- chain-factory/tests/chain_factory_tests.rs | 2 +- testing-sc/tests/testing_sc_scenario_go_test.rs | 10 ---------- testing-sc/tests/testing_sc_scenario_rs_test.rs | 13 ------------- .../tests/token_handler_scenario_rs_test.rs | 5 ----- 4 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 testing-sc/tests/testing_sc_scenario_go_test.rs delete mode 100644 testing-sc/tests/testing_sc_scenario_rs_test.rs diff --git a/chain-factory/tests/chain_factory_tests.rs b/chain-factory/tests/chain_factory_tests.rs index a6d7bc1a..6a33411f 100644 --- a/chain-factory/tests/chain_factory_tests.rs +++ b/chain-factory/tests/chain_factory_tests.rs @@ -1,6 +1,5 @@ use std::env::current_dir; -use chain_config::StakeMultiArg; use multiversx_sc::types::{ BigUint, CodeMetadata, MultiValueEncoded, TestAddress, TestSCAddress, TokenIdentifier, }; @@ -10,6 +9,7 @@ use multiversx_sc_scenario::{ use proxies::{ chain_config_proxy::ChainConfigContractProxy, chain_factory_proxy::ChainFactoryContractProxy, }; +use transaction::StakeMultiArg; const FACTORY_ADDRESS: TestSCAddress = TestSCAddress::new("chain-factory"); const CODE_PATH: MxscPath = MxscPath::new("output/chain-factory.mxsc.json"); diff --git a/testing-sc/tests/testing_sc_scenario_go_test.rs b/testing-sc/tests/testing_sc_scenario_go_test.rs deleted file mode 100644 index 7609a96b..00000000 --- a/testing-sc/tests/testing_sc_scenario_go_test.rs +++ /dev/null @@ -1,10 +0,0 @@ -use multiversx_sc_scenario::*; - -fn world() -> ScenarioWorld { - ScenarioWorld::vm_go() -} - -#[test] -fn empty_go() { - world().run("scenarios/testing_sc.scen.json"); -} diff --git a/testing-sc/tests/testing_sc_scenario_rs_test.rs b/testing-sc/tests/testing_sc_scenario_rs_test.rs deleted file mode 100644 index b338ed33..00000000 --- a/testing-sc/tests/testing_sc_scenario_rs_test.rs +++ /dev/null @@ -1,13 +0,0 @@ -use multiversx_sc_scenario::*; - -fn world() -> ScenarioWorld { - let mut blockchain = ScenarioWorld::new(); - - blockchain.register_contract("mxsc:output/testing-sc.mxsc.json", testing_sc::ContractBuilder); - blockchain -} - -#[test] -fn empty_rs() { - world().run("scenarios/testing_sc.scen.json"); -} diff --git a/token-handler/tests/token_handler_scenario_rs_test.rs b/token-handler/tests/token_handler_scenario_rs_test.rs index ef046cf2..769abd45 100644 --- a/token-handler/tests/token_handler_scenario_rs_test.rs +++ b/token-handler/tests/token_handler_scenario_rs_test.rs @@ -9,8 +9,3 @@ fn world() -> ScenarioWorld { ); blockchain } - -#[test] -fn empty_rs() { - world().run("scenarios/token_handler.scen.json"); -} From e21695b5c2922ae0c2a554ea972455c2bde35252 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 16:04:17 +0200 Subject: [PATCH 22/28] Removed scenario tests Signed-off-by: Andrei Baltariu --- .../tests/sovereign_forge_scenario_go_test.rs | 10 ---------- .../tests/sovereign_forge_scenario_rs_test.rs | 14 -------------- 2 files changed, 24 deletions(-) delete mode 100644 sovereign-forge/tests/sovereign_forge_scenario_go_test.rs delete mode 100644 sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs diff --git a/sovereign-forge/tests/sovereign_forge_scenario_go_test.rs b/sovereign-forge/tests/sovereign_forge_scenario_go_test.rs deleted file mode 100644 index 50442fdf..00000000 --- a/sovereign-forge/tests/sovereign_forge_scenario_go_test.rs +++ /dev/null @@ -1,10 +0,0 @@ -use multiversx_sc_scenario::*; - -fn world() -> ScenarioWorld { - ScenarioWorld::vm_go() -} - -#[test] -fn empty_go() { - world().run("scenarios/sovereign_forge.scen.json"); -} diff --git a/sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs b/sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs deleted file mode 100644 index 37e0de46..00000000 --- a/sovereign-forge/tests/sovereign_forge_scenario_rs_test.rs +++ /dev/null @@ -1,14 +0,0 @@ -use multiversx_sc_scenario::*; - -fn world() -> ScenarioWorld { - let mut blockchain = ScenarioWorld::new(); - - // blockchain.set_current_dir_from_workspace("relative path to your workspace, if applicable"); - blockchain.register_contract("mxsc:output/sovereign-forge.mxsc.json", sovereign_forge::ContractBuilder); - blockchain -} - -#[test] -fn empty_rs() { - world().run("scenarios/sovereign_forge.scen.json"); -} From 0a2e10c0d1ce12d765d548d44165356fa7c2b2f9 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 17:08:47 +0200 Subject: [PATCH 23/28] Modified endpoints to use `shard_id` as argument Signed-off-by: Andrei Baltariu --- sovereign-forge/src/lib.rs | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/sovereign-forge/src/lib.rs b/sovereign-forge/src/lib.rs index 776b0e16..26b2bd65 100644 --- a/sovereign-forge/src/lib.rs +++ b/sovereign-forge/src/lib.rs @@ -16,33 +16,26 @@ pub trait SovereignForge: self.deploy_cost().set(deploy_cost); } + #[only_owner] #[endpoint(registerTokenHandler)] - fn register_token_handler(&self, token_handler_address: ManagedAddress) { + fn register_token_handler(&self, shard_id: u32, token_handler_address: ManagedAddress) { require!( self.blockchain().is_smart_contract(&token_handler_address), "The given address is not a valid SC address" ); - let blockchain_api = self.blockchain(); - let caller = blockchain_api.get_caller(); - let caller_shard_id = blockchain_api.get_shard_of_address(&caller); - - self.token_handlers(caller_shard_id) - .set(token_handler_address); + self.token_handlers(shard_id).set(token_handler_address); } + #[only_owner] #[endpoint(registerChainFactory)] - fn register_chain_factory(&self, chain_factory_address: ManagedAddress) { + fn register_chain_factory(&self, shard_id: u32, chain_factory_address: ManagedAddress) { require!( self.blockchain().is_smart_contract(&chain_factory_address), "The given address is not a valid SC address" ); - let caller = self.blockchain().get_caller(); - let caller_shard_id = self.blockchain().get_shard_of_address(&caller); - - self.token_handlers(caller_shard_id) - .set(chain_factory_address); + self.token_handlers(shard_id).set(chain_factory_address); } #[upgrade] From fcd158140fb715cc57b172a1e5c42ee8a06390f9 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 17:12:54 +0200 Subject: [PATCH 24/28] Added require + proxy regen Signed-off-by: Andrei Baltariu --- common/proxies/src/sovereign_forge_proxy.rs | 14 ++++++++++---- sovereign-forge/src/phases.rs | 9 ++++++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/common/proxies/src/sovereign_forge_proxy.rs b/common/proxies/src/sovereign_forge_proxy.rs index 9fea454d..e7d74a67 100644 --- a/common/proxies/src/sovereign_forge_proxy.rs +++ b/common/proxies/src/sovereign_forge_proxy.rs @@ -86,27 +86,33 @@ where Gas: TxGas, { pub fn register_token_handler< - Arg0: ProxyArg>, + Arg0: ProxyArg, + Arg1: ProxyArg>, >( self, - token_handler_address: Arg0, + shard_id: Arg0, + token_handler_address: Arg1, ) -> TxTypedCall { self.wrapped_tx .payment(NotPayable) .raw_call("registerTokenHandler") + .argument(&shard_id) .argument(&token_handler_address) .original_result() } pub fn register_chain_factory< - Arg0: ProxyArg>, + Arg0: ProxyArg, + Arg1: ProxyArg>, >( self, - chain_factory_address: Arg0, + shard_id: Arg0, + chain_factory_address: Arg1, ) -> TxTypedCall { self.wrapped_tx .payment(NotPayable) .raw_call("registerChainFactory") + .argument(&shard_id) .argument(&chain_factory_address) .original_result() } diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 7deb835e..52b5549b 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -34,7 +34,14 @@ pub trait PhasesModule: common::utils::UtilsModule + common::storage::StorageMod let caller_shard_id = blockchain_api.get_shard_of_address(&caller); let chain_id = self.generate_chain_id(); - let chain_factory_address = self.chain_factories(caller_shard_id).get(); + + let chain_factories_mapper = self.chain_factories(caller_shard_id); + require!( + !chain_factories_mapper.is_empty(), + "There is no Chain-Factory address registered" + ); + + let chain_factory_address = chain_factories_mapper.get(); let chain_config_address = self.deploy_chain_config( chain_factory_address, From b6361a5fb07e86dca001ce5a7a5cb733dd9a7455 Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Tue, 19 Nov 2024 21:14:57 +0200 Subject: [PATCH 25/28] Added formated `require!` error message Signed-off-by: Andrei Baltariu --- sovereign-forge/src/phases.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 52b5549b..31936c79 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -38,7 +38,8 @@ pub trait PhasesModule: common::utils::UtilsModule + common::storage::StorageMod let chain_factories_mapper = self.chain_factories(caller_shard_id); require!( !chain_factories_mapper.is_empty(), - "There is no Chain-Factory address registered" + "There is no Chain-Factory address registered in the {} chain", + chain_id ); let chain_factory_address = chain_factories_mapper.get(); From 8b5561b3dd6c68bd0df052155c4a201956d6c6cd Mon Sep 17 00:00:00 2001 From: Andrei Baltariu <102856257+andreiblt1304@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:09:37 +0200 Subject: [PATCH 26/28] Update sovereign-forge/src/phases.rs Co-authored-by: Octavian Axente <45915201+axenteoctavian@users.noreply.github.com> --- sovereign-forge/src/phases.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sovereign-forge/src/phases.rs b/sovereign-forge/src/phases.rs index 31936c79..0eea910c 100644 --- a/sovereign-forge/src/phases.rs +++ b/sovereign-forge/src/phases.rs @@ -38,8 +38,8 @@ pub trait PhasesModule: common::utils::UtilsModule + common::storage::StorageMod let chain_factories_mapper = self.chain_factories(caller_shard_id); require!( !chain_factories_mapper.is_empty(), - "There is no Chain-Factory address registered in the {} chain", - chain_id + "There is no Chain-Factory address registered in shard {}", + caller_shard_id ); let chain_factory_address = chain_factories_mapper.get(); From 817e0ef50703d189a474941d01606e384e7fcf5b Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Wed, 20 Nov 2024 10:35:50 +0200 Subject: [PATCH 27/28] Fw-upgrade to 0.54.3 Signed-off-by: Andrei Baltariu --- Cargo.lock | 24 +++++++++---------- chain-config/Cargo.toml | 6 ++--- chain-config/meta/Cargo.toml | 2 +- .../wasm-chain-config-full/Cargo.lock | 16 ++++++------- .../wasm-chain-config-full/Cargo.toml | 2 +- .../wasm-chain-config-view/Cargo.lock | 16 ++++++------- .../wasm-chain-config-view/Cargo.toml | 2 +- chain-config/wasm/Cargo.lock | 16 ++++++------- chain-config/wasm/Cargo.toml | 2 +- chain-factory/Cargo.toml | 6 ++--- chain-factory/meta/Cargo.toml | 2 +- .../wasm-chain-factory-full/Cargo.lock | 16 ++++++------- .../wasm-chain-factory-full/Cargo.toml | 2 +- .../wasm-chain-factory-view/Cargo.lock | 16 ++++++------- .../wasm-chain-factory-view/Cargo.toml | 2 +- chain-factory/wasm/Cargo.lock | 16 ++++++------- chain-factory/wasm/Cargo.toml | 2 +- common/bls-signature/Cargo.toml | 4 ++-- common/max-bridged-amount-module/Cargo.toml | 4 ++-- common/proxies/Cargo.toml | 2 +- common/setup-phase/Cargo.toml | 4 ++-- common/token-whitelist/Cargo.toml | 4 ++-- common/transaction/Cargo.toml | 2 +- common/tx-batch-module/Cargo.toml | 4 ++-- common/utils/Cargo.toml | 2 +- enshrine-esdt-safe/Cargo.toml | 6 ++--- enshrine-esdt-safe/interactor/Cargo.toml | 4 ++-- enshrine-esdt-safe/meta/Cargo.toml | 2 +- .../wasm-enshrine-esdt-safe-full/Cargo.lock | 16 ++++++------- .../wasm-enshrine-esdt-safe-full/Cargo.toml | 2 +- .../wasm-enshrine-esdt-safe-view/Cargo.lock | 16 ++++++------- .../wasm-enshrine-esdt-safe-view/Cargo.toml | 2 +- enshrine-esdt-safe/wasm/Cargo.lock | 16 ++++++------- enshrine-esdt-safe/wasm/Cargo.toml | 2 +- esdt-safe/Cargo.toml | 6 ++--- esdt-safe/interactor/Cargo.toml | 6 ++--- esdt-safe/meta/Cargo.toml | 2 +- esdt-safe/wasm-esdt-safe-full/Cargo.lock | 16 ++++++------- esdt-safe/wasm-esdt-safe-full/Cargo.toml | 2 +- esdt-safe/wasm-esdt-safe-view/Cargo.lock | 16 ++++++------- esdt-safe/wasm-esdt-safe-view/Cargo.toml | 2 +- esdt-safe/wasm/Cargo.lock | 16 ++++++------- esdt-safe/wasm/Cargo.toml | 2 +- fee-market/Cargo.toml | 4 ++-- fee-market/meta/Cargo.toml | 2 +- fee-market/wasm-fee-market-view/Cargo.lock | 12 +++++----- fee-market/wasm-fee-market-view/Cargo.toml | 2 +- fee-market/wasm-fee-market/Cargo.lock | 12 +++++----- fee-market/wasm-fee-market/Cargo.toml | 2 +- fee-market/wasm/Cargo.lock | 12 +++++----- fee-market/wasm/Cargo.toml | 2 +- header-verifier/Cargo.toml | 4 ++-- header-verifier/meta/Cargo.toml | 2 +- .../wasm-header-verifier-full/Cargo.lock | 12 +++++----- .../wasm-header-verifier-full/Cargo.toml | 2 +- header-verifier/wasm-multisig-view/Cargo.lock | 12 +++++----- header-verifier/wasm-multisig-view/Cargo.toml | 2 +- header-verifier/wasm/Cargo.lock | 12 +++++----- header-verifier/wasm/Cargo.toml | 2 +- testing-sc/Cargo.toml | 4 ++-- testing-sc/meta/Cargo.toml | 2 +- testing-sc/wasm-testing-sc-full/Cargo.lock | 12 +++++----- testing-sc/wasm-testing-sc-full/Cargo.toml | 2 +- testing-sc/wasm-testing-view/Cargo.lock | 12 +++++----- testing-sc/wasm-testing-view/Cargo.toml | 2 +- testing-sc/wasm/Cargo.lock | 12 +++++----- testing-sc/wasm/Cargo.toml | 2 +- token-handler/Cargo.toml | 4 ++-- token-handler/meta/Cargo.toml | 2 +- .../wasm-token-handler-full/Cargo.lock | 16 ++++++------- .../wasm-token-handler-full/Cargo.toml | 2 +- .../wasm-token-handler-view/Cargo.lock | 16 ++++++------- .../wasm-token-handler-view/Cargo.toml | 2 +- token-handler/wasm/Cargo.lock | 16 ++++++------- token-handler/wasm/Cargo.toml | 2 +- 75 files changed, 256 insertions(+), 256 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e2816d22..f88a5fdc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1294,9 +1294,9 @@ checksum = "b59072fa0624b55ae5ae3fa6bfa91515bbeb4ac440214bc4a509e2c8806d6e9f" [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -1333,9 +1333,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -1346,9 +1346,9 @@ dependencies = [ [[package]] name = "multiversx-sc-meta-lib" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ff342ab443d1815b1ec3c0be10048d3004fa62146307fc507f13787fe1503f" +checksum = "50f8b388c4fa403e503c3fb8b13f47b87f6fff8142770cddcfaf4a9cef69c918" dependencies = [ "clap", "colored", @@ -1368,18 +1368,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-scenario" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a4ad9cef428cd8f92012aedf43c68f677bb606efec199b0157b62d384fc17eb" +checksum = "ca28aaa11a1393476f15ae9042b62c9cadd11494b85cfefa40901e9294aeebde" dependencies = [ "base64", "bech32", @@ -1403,9 +1403,9 @@ dependencies = [ [[package]] name = "multiversx-sc-snippets" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c5c6e422be5be0764fb87d004bb9903773ea23c1297c3164d6f0d2e010aa78d" +checksum = "49f60efd614fbbca6b91fafb4cd9e7c2dd51e65084f54e5af64f5a30137a928f" dependencies = [ "anyhow", "base64", diff --git a/chain-config/Cargo.toml b/chain-config/Cargo.toml index bf6c7374..dd929fd4 100644 --- a/chain-config/Cargo.toml +++ b/chain-config/Cargo.toml @@ -12,10 +12,10 @@ path = "src/lib.rs" num-bigint = "0.4.2" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc-modules] -version = "=0.54.2" +version = "=0.54.3" diff --git a/chain-config/meta/Cargo.toml b/chain-config/meta/Cargo.toml index 513e8a5b..a820d9b9 100644 --- a/chain-config/meta/Cargo.toml +++ b/chain-config/meta/Cargo.toml @@ -11,4 +11,4 @@ authors = ["you"] path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" diff --git a/chain-config/wasm-chain-config-full/Cargo.lock b/chain-config/wasm-chain-config-full/Cargo.lock index f3270f05..616ce35f 100644 --- a/chain-config/wasm-chain-config-full/Cargo.lock +++ b/chain-config/wasm-chain-config-full/Cargo.lock @@ -66,9 +66,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -104,9 +104,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -117,18 +117,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/chain-config/wasm-chain-config-full/Cargo.toml b/chain-config/wasm-chain-config-full/Cargo.toml index 620f9e1e..52d666d0 100644 --- a/chain-config/wasm-chain-config-full/Cargo.toml +++ b/chain-config/wasm-chain-config-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/chain-config/wasm-chain-config-view/Cargo.lock b/chain-config/wasm-chain-config-view/Cargo.lock index 0f26ff34..9f60492b 100644 --- a/chain-config/wasm-chain-config-view/Cargo.lock +++ b/chain-config/wasm-chain-config-view/Cargo.lock @@ -66,9 +66,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -104,9 +104,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -117,18 +117,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/chain-config/wasm-chain-config-view/Cargo.toml b/chain-config/wasm-chain-config-view/Cargo.toml index bb23885d..be3e4605 100644 --- a/chain-config/wasm-chain-config-view/Cargo.toml +++ b/chain-config/wasm-chain-config-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/chain-config/wasm/Cargo.lock b/chain-config/wasm/Cargo.lock index 5a95b64e..b70befbd 100644 --- a/chain-config/wasm/Cargo.lock +++ b/chain-config/wasm/Cargo.lock @@ -66,9 +66,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -104,9 +104,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -117,18 +117,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/chain-config/wasm/Cargo.toml b/chain-config/wasm/Cargo.toml index aa552637..8c001d3e 100644 --- a/chain-config/wasm/Cargo.toml +++ b/chain-config/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/chain-factory/Cargo.toml b/chain-factory/Cargo.toml index 73dffcb1..66125e1e 100644 --- a/chain-factory/Cargo.toml +++ b/chain-factory/Cargo.toml @@ -12,13 +12,13 @@ path = "src/lib.rs" num-bigint = "0.4.2" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc-modules] -version = "=0.54.2" +version = "=0.54.3" [dependencies.utils] path = "../common/utils" diff --git a/chain-factory/meta/Cargo.toml b/chain-factory/meta/Cargo.toml index 7c4239b6..7b07df19 100644 --- a/chain-factory/meta/Cargo.toml +++ b/chain-factory/meta/Cargo.toml @@ -11,4 +11,4 @@ authors = ["you"] path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" diff --git a/chain-factory/wasm-chain-factory-full/Cargo.lock b/chain-factory/wasm-chain-factory-full/Cargo.lock index 4afa8c72..4bb31605 100644 --- a/chain-factory/wasm-chain-factory-full/Cargo.lock +++ b/chain-factory/wasm-chain-factory-full/Cargo.lock @@ -85,9 +85,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -123,9 +123,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -136,18 +136,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/chain-factory/wasm-chain-factory-full/Cargo.toml b/chain-factory/wasm-chain-factory-full/Cargo.toml index 31f2e243..6a22a5a7 100644 --- a/chain-factory/wasm-chain-factory-full/Cargo.toml +++ b/chain-factory/wasm-chain-factory-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/chain-factory/wasm-chain-factory-view/Cargo.lock b/chain-factory/wasm-chain-factory-view/Cargo.lock index 7fc54ae5..3f395b1f 100644 --- a/chain-factory/wasm-chain-factory-view/Cargo.lock +++ b/chain-factory/wasm-chain-factory-view/Cargo.lock @@ -85,9 +85,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -123,9 +123,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -136,18 +136,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/chain-factory/wasm-chain-factory-view/Cargo.toml b/chain-factory/wasm-chain-factory-view/Cargo.toml index d18655d9..746cd9e5 100644 --- a/chain-factory/wasm-chain-factory-view/Cargo.toml +++ b/chain-factory/wasm-chain-factory-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/chain-factory/wasm/Cargo.lock b/chain-factory/wasm/Cargo.lock index e6610c3c..66d2b30e 100644 --- a/chain-factory/wasm/Cargo.lock +++ b/chain-factory/wasm/Cargo.lock @@ -85,9 +85,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -123,9 +123,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -136,18 +136,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/chain-factory/wasm/Cargo.toml b/chain-factory/wasm/Cargo.toml index bd1c6f2d..f85c903a 100644 --- a/chain-factory/wasm/Cargo.toml +++ b/chain-factory/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/common/bls-signature/Cargo.toml b/common/bls-signature/Cargo.toml index 243640ac..37561b50 100644 --- a/common/bls-signature/Cargo.toml +++ b/common/bls-signature/Cargo.toml @@ -5,10 +5,10 @@ authors = ["dorin-iancu "] edition = "2018" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.transaction] path = "../transaction" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/common/max-bridged-amount-module/Cargo.toml b/common/max-bridged-amount-module/Cargo.toml index 901cb539..c35f5b66 100644 --- a/common/max-bridged-amount-module/Cargo.toml +++ b/common/max-bridged-amount-module/Cargo.toml @@ -5,7 +5,7 @@ authors = ["dorin-iancu "] edition = "2018" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/common/proxies/Cargo.toml b/common/proxies/Cargo.toml index 13e44790..c70ae87e 100644 --- a/common/proxies/Cargo.toml +++ b/common/proxies/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.transaction] path = "../transaction" diff --git a/common/setup-phase/Cargo.toml b/common/setup-phase/Cargo.toml index d426f499..7235fa69 100644 --- a/common/setup-phase/Cargo.toml +++ b/common/setup-phase/Cargo.toml @@ -5,7 +5,7 @@ authors = ["dorin-iancu "] edition = "2018" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/common/token-whitelist/Cargo.toml b/common/token-whitelist/Cargo.toml index 13065680..6709c61a 100644 --- a/common/token-whitelist/Cargo.toml +++ b/common/token-whitelist/Cargo.toml @@ -14,7 +14,7 @@ path = "../setup-phase" path = "../utils" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/common/transaction/Cargo.toml b/common/transaction/Cargo.toml index ce064de0..5a4031fb 100644 --- a/common/transaction/Cargo.toml +++ b/common/transaction/Cargo.toml @@ -8,4 +8,4 @@ edition = "2018" path = "src/lib.rs" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" diff --git a/common/tx-batch-module/Cargo.toml b/common/tx-batch-module/Cargo.toml index c3cce8cb..b34e49a1 100644 --- a/common/tx-batch-module/Cargo.toml +++ b/common/tx-batch-module/Cargo.toml @@ -5,10 +5,10 @@ authors = ["dorin-iancu "] edition = "2018" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.transaction] path = "../transaction" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/common/utils/Cargo.toml b/common/utils/Cargo.toml index 1d9a21b2..3bed23a7 100644 --- a/common/utils/Cargo.toml +++ b/common/utils/Cargo.toml @@ -11,5 +11,5 @@ path = "src/lib.rs" path = "../bls-signature" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" features = ["esdt-token-payment-legacy-decode"] diff --git a/enshrine-esdt-safe/Cargo.toml b/enshrine-esdt-safe/Cargo.toml index 5f2660d2..0d4b1a04 100644 --- a/enshrine-esdt-safe/Cargo.toml +++ b/enshrine-esdt-safe/Cargo.toml @@ -42,10 +42,10 @@ path = "../header-verifier" path = "../token-handler" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc-modules] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies] num-bigint = "0.4.2" @@ -53,4 +53,4 @@ num-traits = "0.2" hex = "0.4" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/enshrine-esdt-safe/interactor/Cargo.toml b/enshrine-esdt-safe/interactor/Cargo.toml index 02ef4946..be20ccaf 100644 --- a/enshrine-esdt-safe/interactor/Cargo.toml +++ b/enshrine-esdt-safe/interactor/Cargo.toml @@ -46,10 +46,10 @@ path = "../../token-handler" path = "../../common/proxies" [dependencies.multiversx-sc-snippets] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies] clap = { version = "4.4.7", features = ["derive"] } diff --git a/enshrine-esdt-safe/meta/Cargo.toml b/enshrine-esdt-safe/meta/Cargo.toml index 8a444555..1f2b2412 100644 --- a/enshrine-esdt-safe/meta/Cargo.toml +++ b/enshrine-esdt-safe/meta/Cargo.toml @@ -8,5 +8,5 @@ publish = false path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" default-features = false diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock index 216ecfff..9eb5e9d1 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.lock @@ -132,9 +132,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -170,9 +170,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -183,18 +183,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.toml b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.toml index 332e1382..23ba1aa2 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.toml +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock index fc281d92..3f77e089 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.lock @@ -132,9 +132,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -170,9 +170,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -183,18 +183,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.toml b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.toml index 2f9e6300..11220a16 100644 --- a/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.toml +++ b/enshrine-esdt-safe/wasm-enshrine-esdt-safe-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/enshrine-esdt-safe/wasm/Cargo.lock b/enshrine-esdt-safe/wasm/Cargo.lock index fccec8d8..6776a8bd 100644 --- a/enshrine-esdt-safe/wasm/Cargo.lock +++ b/enshrine-esdt-safe/wasm/Cargo.lock @@ -132,9 +132,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -170,9 +170,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -183,18 +183,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/enshrine-esdt-safe/wasm/Cargo.toml b/enshrine-esdt-safe/wasm/Cargo.toml index 9c81833d..b2840d8c 100644 --- a/enshrine-esdt-safe/wasm/Cargo.toml +++ b/enshrine-esdt-safe/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/esdt-safe/Cargo.toml b/esdt-safe/Cargo.toml index 579560a8..9b1bf7ed 100644 --- a/esdt-safe/Cargo.toml +++ b/esdt-safe/Cargo.toml @@ -39,10 +39,10 @@ path = "../fee-market" path = "../header-verifier" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc-modules] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies] num-bigint = "0.4.2" @@ -50,4 +50,4 @@ num-traits = "0.2" hex = "0.4" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/esdt-safe/interactor/Cargo.toml b/esdt-safe/interactor/Cargo.toml index 01f06320..1bb435a6 100644 --- a/esdt-safe/interactor/Cargo.toml +++ b/esdt-safe/interactor/Cargo.toml @@ -28,13 +28,13 @@ path = "../../common/tx-batch-module" path = "../../fee-market" [dependencies.multiversx-sc-snippets] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" [dependencies.clap] version = "4.4.7" diff --git a/esdt-safe/meta/Cargo.toml b/esdt-safe/meta/Cargo.toml index 52b9792e..7e423422 100644 --- a/esdt-safe/meta/Cargo.toml +++ b/esdt-safe/meta/Cargo.toml @@ -11,4 +11,4 @@ publish = false path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" diff --git a/esdt-safe/wasm-esdt-safe-full/Cargo.lock b/esdt-safe/wasm-esdt-safe-full/Cargo.lock index 2bc465a2..2c42545e 100644 --- a/esdt-safe/wasm-esdt-safe-full/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-full/Cargo.lock @@ -112,9 +112,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -150,9 +150,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -163,18 +163,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/esdt-safe/wasm-esdt-safe-full/Cargo.toml b/esdt-safe/wasm-esdt-safe-full/Cargo.toml index 85cb0c20..a6ae1bd8 100644 --- a/esdt-safe/wasm-esdt-safe-full/Cargo.toml +++ b/esdt-safe/wasm-esdt-safe-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/esdt-safe/wasm-esdt-safe-view/Cargo.lock b/esdt-safe/wasm-esdt-safe-view/Cargo.lock index da3beef1..8d8ddf92 100644 --- a/esdt-safe/wasm-esdt-safe-view/Cargo.lock +++ b/esdt-safe/wasm-esdt-safe-view/Cargo.lock @@ -112,9 +112,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -150,9 +150,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -163,18 +163,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/esdt-safe/wasm-esdt-safe-view/Cargo.toml b/esdt-safe/wasm-esdt-safe-view/Cargo.toml index 9e07137b..08ab7101 100644 --- a/esdt-safe/wasm-esdt-safe-view/Cargo.toml +++ b/esdt-safe/wasm-esdt-safe-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/esdt-safe/wasm/Cargo.lock b/esdt-safe/wasm/Cargo.lock index 6452903c..5da8a30e 100644 --- a/esdt-safe/wasm/Cargo.lock +++ b/esdt-safe/wasm/Cargo.lock @@ -112,9 +112,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -150,9 +150,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -163,18 +163,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/esdt-safe/wasm/Cargo.toml b/esdt-safe/wasm/Cargo.toml index 716114c0..924d15be 100644 --- a/esdt-safe/wasm/Cargo.toml +++ b/esdt-safe/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/fee-market/Cargo.toml b/fee-market/Cargo.toml index f03126ea..218e9b12 100644 --- a/fee-market/Cargo.toml +++ b/fee-market/Cargo.toml @@ -21,10 +21,10 @@ path = "../common/bls-signature" path = "../common/proxies" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies] num-bigint = "0.4.2" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/fee-market/meta/Cargo.toml b/fee-market/meta/Cargo.toml index 8204234d..94075820 100644 --- a/fee-market/meta/Cargo.toml +++ b/fee-market/meta/Cargo.toml @@ -8,5 +8,5 @@ publish = false path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" default-features = false diff --git a/fee-market/wasm-fee-market-view/Cargo.lock b/fee-market/wasm-fee-market-view/Cargo.lock index f741cc14..1235cd07 100644 --- a/fee-market/wasm-fee-market-view/Cargo.lock +++ b/fee-market/wasm-fee-market-view/Cargo.lock @@ -77,9 +77,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -128,9 +128,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/fee-market/wasm-fee-market-view/Cargo.toml b/fee-market/wasm-fee-market-view/Cargo.toml index 9f4b0382..ac0c7ccc 100644 --- a/fee-market/wasm-fee-market-view/Cargo.toml +++ b/fee-market/wasm-fee-market-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/fee-market/wasm-fee-market/Cargo.lock b/fee-market/wasm-fee-market/Cargo.lock index 585e39e2..9166eb3d 100644 --- a/fee-market/wasm-fee-market/Cargo.lock +++ b/fee-market/wasm-fee-market/Cargo.lock @@ -77,9 +77,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -128,9 +128,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/fee-market/wasm-fee-market/Cargo.toml b/fee-market/wasm-fee-market/Cargo.toml index e3358aa3..a6cc0867 100644 --- a/fee-market/wasm-fee-market/Cargo.toml +++ b/fee-market/wasm-fee-market/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/fee-market/wasm/Cargo.lock b/fee-market/wasm/Cargo.lock index 585e39e2..9166eb3d 100644 --- a/fee-market/wasm/Cargo.lock +++ b/fee-market/wasm/Cargo.lock @@ -77,9 +77,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -128,9 +128,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/fee-market/wasm/Cargo.toml b/fee-market/wasm/Cargo.toml index e3358aa3..a6cc0867 100644 --- a/fee-market/wasm/Cargo.toml +++ b/fee-market/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/header-verifier/Cargo.toml b/header-verifier/Cargo.toml index 8ad87198..e5bc52a1 100644 --- a/header-verifier/Cargo.toml +++ b/header-verifier/Cargo.toml @@ -9,7 +9,7 @@ publish = false path = "src/lib.rs" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dependencies.bls-signature] path = "../common/bls-signature" @@ -24,4 +24,4 @@ path = "../common/proxies" num-bigint = "0.4.2" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/header-verifier/meta/Cargo.toml b/header-verifier/meta/Cargo.toml index 2e2f21de..13bcd237 100644 --- a/header-verifier/meta/Cargo.toml +++ b/header-verifier/meta/Cargo.toml @@ -8,5 +8,5 @@ publish = false path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" default-features = false diff --git a/header-verifier/wasm-header-verifier-full/Cargo.lock b/header-verifier/wasm-header-verifier-full/Cargo.lock index 5f13a4a8..18ace981 100644 --- a/header-verifier/wasm-header-verifier-full/Cargo.lock +++ b/header-verifier/wasm-header-verifier-full/Cargo.lock @@ -76,9 +76,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -114,9 +114,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -127,9 +127,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/header-verifier/wasm-header-verifier-full/Cargo.toml b/header-verifier/wasm-header-verifier-full/Cargo.toml index b1ccfea0..13fa4d5e 100644 --- a/header-verifier/wasm-header-verifier-full/Cargo.toml +++ b/header-verifier/wasm-header-verifier-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/header-verifier/wasm-multisig-view/Cargo.lock b/header-verifier/wasm-multisig-view/Cargo.lock index 99096088..2f2895a7 100644 --- a/header-verifier/wasm-multisig-view/Cargo.lock +++ b/header-verifier/wasm-multisig-view/Cargo.lock @@ -76,9 +76,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -114,9 +114,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -127,9 +127,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/header-verifier/wasm-multisig-view/Cargo.toml b/header-verifier/wasm-multisig-view/Cargo.toml index 495ad55e..37bbdd29 100644 --- a/header-verifier/wasm-multisig-view/Cargo.toml +++ b/header-verifier/wasm-multisig-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/header-verifier/wasm/Cargo.lock b/header-verifier/wasm/Cargo.lock index 8d581f9a..c18d62da 100644 --- a/header-verifier/wasm/Cargo.lock +++ b/header-verifier/wasm/Cargo.lock @@ -76,9 +76,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -114,9 +114,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -127,9 +127,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/header-verifier/wasm/Cargo.toml b/header-verifier/wasm/Cargo.toml index 352b2edb..7bca57bd 100644 --- a/header-verifier/wasm/Cargo.toml +++ b/header-verifier/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/testing-sc/Cargo.toml b/testing-sc/Cargo.toml index b9abf6ae..dc075094 100644 --- a/testing-sc/Cargo.toml +++ b/testing-sc/Cargo.toml @@ -9,10 +9,10 @@ authors = ["you"] path = "src/lib.rs" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies] num-bigint = "0.4" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/testing-sc/meta/Cargo.toml b/testing-sc/meta/Cargo.toml index e9e2962c..50a74557 100644 --- a/testing-sc/meta/Cargo.toml +++ b/testing-sc/meta/Cargo.toml @@ -8,5 +8,5 @@ publish = false path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" default-features = false diff --git a/testing-sc/wasm-testing-sc-full/Cargo.lock b/testing-sc/wasm-testing-sc-full/Cargo.lock index b6a66c3a..1dfd4930 100644 --- a/testing-sc/wasm-testing-sc-full/Cargo.lock +++ b/testing-sc/wasm-testing-sc-full/Cargo.lock @@ -50,9 +50,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -88,9 +88,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -101,9 +101,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/testing-sc/wasm-testing-sc-full/Cargo.toml b/testing-sc/wasm-testing-sc-full/Cargo.toml index d39f2ef8..ce87a94a 100644 --- a/testing-sc/wasm-testing-sc-full/Cargo.toml +++ b/testing-sc/wasm-testing-sc-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/testing-sc/wasm-testing-view/Cargo.lock b/testing-sc/wasm-testing-view/Cargo.lock index 30edda92..daef9d60 100644 --- a/testing-sc/wasm-testing-view/Cargo.lock +++ b/testing-sc/wasm-testing-view/Cargo.lock @@ -50,9 +50,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -88,9 +88,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -101,9 +101,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/testing-sc/wasm-testing-view/Cargo.toml b/testing-sc/wasm-testing-view/Cargo.toml index 71ed9f5b..7e32ed3e 100644 --- a/testing-sc/wasm-testing-view/Cargo.toml +++ b/testing-sc/wasm-testing-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/testing-sc/wasm/Cargo.lock b/testing-sc/wasm/Cargo.lock index 3aacd29d..c2573d4d 100644 --- a/testing-sc/wasm/Cargo.lock +++ b/testing-sc/wasm/Cargo.lock @@ -50,9 +50,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -88,9 +88,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -101,9 +101,9 @@ dependencies = [ [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/testing-sc/wasm/Cargo.toml b/testing-sc/wasm/Cargo.toml index 54a3c37e..9d2913db 100644 --- a/testing-sc/wasm/Cargo.toml +++ b/testing-sc/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/token-handler/Cargo.toml b/token-handler/Cargo.toml index ce36790e..207deb24 100644 --- a/token-handler/Cargo.toml +++ b/token-handler/Cargo.toml @@ -18,10 +18,10 @@ path = "../common/proxies" path = "../chain-factory" [dependencies.multiversx-sc] -version = "=0.54.2" +version = "=0.54.3" [dev-dependencies] num-bigint = "0.4" [dev-dependencies.multiversx-sc-scenario] -version = "=0.54.2" +version = "=0.54.3" diff --git a/token-handler/meta/Cargo.toml b/token-handler/meta/Cargo.toml index a3fc53a5..0d9e777c 100644 --- a/token-handler/meta/Cargo.toml +++ b/token-handler/meta/Cargo.toml @@ -8,5 +8,5 @@ publish = false path = ".." [dependencies.multiversx-sc-meta-lib] -version = "=0.54.2" +version = "=0.54.3" default-features = false diff --git a/token-handler/wasm-token-handler-full/Cargo.lock b/token-handler/wasm-token-handler-full/Cargo.lock index 34712b6e..8aa19164 100644 --- a/token-handler/wasm-token-handler-full/Cargo.lock +++ b/token-handler/wasm-token-handler-full/Cargo.lock @@ -77,9 +77,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -128,18 +128,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/token-handler/wasm-token-handler-full/Cargo.toml b/token-handler/wasm-token-handler-full/Cargo.toml index a4cf58e2..b45d8549 100644 --- a/token-handler/wasm-token-handler-full/Cargo.toml +++ b/token-handler/wasm-token-handler-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/token-handler/wasm-token-handler-view/Cargo.lock b/token-handler/wasm-token-handler-view/Cargo.lock index 373b1be8..cb8ba643 100644 --- a/token-handler/wasm-token-handler-view/Cargo.lock +++ b/token-handler/wasm-token-handler-view/Cargo.lock @@ -77,9 +77,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -128,18 +128,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/token-handler/wasm-token-handler-view/Cargo.toml b/token-handler/wasm-token-handler-view/Cargo.toml index 13a52e1e..8b9b29b9 100644 --- a/token-handler/wasm-token-handler-view/Cargo.toml +++ b/token-handler/wasm-token-handler-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/token-handler/wasm/Cargo.lock b/token-handler/wasm/Cargo.lock index 345234dd..cde6cbbe 100644 --- a/token-handler/wasm/Cargo.lock +++ b/token-handler/wasm/Cargo.lock @@ -77,9 +77,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -128,18 +128,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/token-handler/wasm/Cargo.toml b/token-handler/wasm/Cargo.toml index c1ee10c6..ad93b5d2 100644 --- a/token-handler/wasm/Cargo.toml +++ b/token-handler/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "=0.54.2" +version = "=0.54.3" [workspace] members = ["."] From 60ba9f81fbf279a696a976b1f4d84841d4a57b0d Mon Sep 17 00:00:00 2001 From: Andrei Baltariu Date: Wed, 20 Nov 2024 11:11:40 +0200 Subject: [PATCH 28/28] Upgraded sovereign-forge to last fw version Signed-off-by: Andrei Baltariu --- chain-config/Cargo.toml | 3 +++ sovereign-forge/Cargo.toml | 6 +++--- .../wasm-sovereign-forge-full/Cargo.lock | 16 ++++++++-------- .../wasm-sovereign-forge-full/Cargo.toml | 2 +- .../wasm-soveriegn-forge-view/Cargo.lock | 16 ++++++++-------- .../wasm-soveriegn-forge-view/Cargo.toml | 2 +- sovereign-forge/wasm/Cargo.lock | 16 ++++++++-------- sovereign-forge/wasm/Cargo.toml | 2 +- 8 files changed, 33 insertions(+), 30 deletions(-) diff --git a/chain-config/Cargo.toml b/chain-config/Cargo.toml index dd929fd4..582ecb9b 100644 --- a/chain-config/Cargo.toml +++ b/chain-config/Cargo.toml @@ -19,3 +19,6 @@ version = "=0.54.3" [dependencies.multiversx-sc-modules] version = "=0.54.3" + +[dependencies.transaction] +path = "../common/transaction" diff --git a/sovereign-forge/Cargo.toml b/sovereign-forge/Cargo.toml index 0670401c..d5e301b2 100644 --- a/sovereign-forge/Cargo.toml +++ b/sovereign-forge/Cargo.toml @@ -9,16 +9,16 @@ authors = ["you"] path = "src/lib.rs" [dependencies.multiversx-sc] -version = "0.54.2" +version = "=0.54.3" [dev-dependencies] num-bigint = "0.4" [dev-dependencies.multiversx-sc-scenario] -version = "0.54.2" +version = "=0.54.3" [dependencies.multiversx-sc-modules] -version = "0.54.2" +version = "=0.54.3" [dependencies.proxies] path = "../common/proxies" diff --git a/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock index eeb6c65d..f23de92f 100644 --- a/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock +++ b/sovereign-forge/wasm-sovereign-forge-full/Cargo.lock @@ -50,9 +50,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -88,9 +88,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -101,18 +101,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/sovereign-forge/wasm-sovereign-forge-full/Cargo.toml b/sovereign-forge/wasm-sovereign-forge-full/Cargo.toml index 3fe0a1d3..b360236e 100644 --- a/sovereign-forge/wasm-sovereign-forge-full/Cargo.toml +++ b/sovereign-forge/wasm-sovereign-forge-full/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock index 1e3451f7..545c4754 100644 --- a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock +++ b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.lock @@ -50,9 +50,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -88,9 +88,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -101,18 +101,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml index 7c862dcc..c1e6346b 100644 --- a/sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml +++ b/sovereign-forge/wasm-soveriegn-forge-view/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "0.54.2" +version = "=0.54.3" [workspace] members = ["."] diff --git a/sovereign-forge/wasm/Cargo.lock b/sovereign-forge/wasm/Cargo.lock index 9a19642b..f0b8267c 100644 --- a/sovereign-forge/wasm/Cargo.lock +++ b/sovereign-forge/wasm/Cargo.lock @@ -50,9 +50,9 @@ dependencies = [ [[package]] name = "multiversx-sc" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e8edabd1e3eea1c85f96485d88116a95f57429b8e4f002444d6465608d1bf5" +checksum = "ef92d6ad383937403c2055b273153d8d487d7535e4882c614626d0bc2e55ae03" dependencies = [ "bitflags", "hex-literal", @@ -88,9 +88,9 @@ dependencies = [ [[package]] name = "multiversx-sc-derive" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8712fed727b0f22094616c6398c821899e03f5998dab619acd54ece669de3e8" +checksum = "e823a3b80b6a864ad992c22808e851dacee4387e6d22006bdb1bd9de32f7c9d8" dependencies = [ "hex", "proc-macro2", @@ -101,18 +101,18 @@ dependencies = [ [[package]] name = "multiversx-sc-modules" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b172d4130662f912e8812ca5f58ec92c7f566ac5adcb244a8e68f1289ece886" +checksum = "74b31cfc990a3052a0e014f749104752a0208f3d11d4dee3c0dd6e6d4ce1908c" dependencies = [ "multiversx-sc", ] [[package]] name = "multiversx-sc-wasm-adapter" -version = "0.54.2" +version = "0.54.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c143d26d1b683d96b10c49f373d980fe573c77f5f7826f97a2214cfd65348f3" +checksum = "d780e724ea8262df19e49cf3c06bab8716b6508e785809dc770747e9341282a8" dependencies = [ "multiversx-sc", ] diff --git a/sovereign-forge/wasm/Cargo.toml b/sovereign-forge/wasm/Cargo.toml index faa67f83..cdf514c9 100644 --- a/sovereign-forge/wasm/Cargo.toml +++ b/sovereign-forge/wasm/Cargo.toml @@ -28,7 +28,7 @@ panic = "abort" path = ".." [dependencies.multiversx-sc-wasm-adapter] -version = "0.54.2" +version = "=0.54.3" [workspace] members = ["."]