diff --git a/.github/workflows/on_pull_request_build_contracts.yml b/.github/workflows/on_pull_request_build_contracts.yml new file mode 100644 index 000000000..32ddf4c4f --- /dev/null +++ b/.github/workflows/on_pull_request_build_contracts.yml @@ -0,0 +1,15 @@ +name: On pull request, build contracts + +on: + pull_request: + +permissions: + contents: write + +jobs: + build: + uses: multiversx/mx-sc-actions/.github/workflows/reproducible-build.yml@v2.3.4 + with: + image_tag: v4.2.1 + package_whole_project_src: true + skip_preliminary_checks: true diff --git a/.gitignore b/.gitignore index 6d80f2d9d..319a84b30 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,6 @@ # will have compiled files and executables **/target/ **/output/ -# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries -# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html -Cargo.lock # These are backup files generated by rustfmt **/*.rs.bk diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 000000000..8f5ecf379 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,1296 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "ahash" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +dependencies = [ + "getrandom 0.2.8", + "once_cell", + "version_check", +] + +[[package]] +name = "arrayvec" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" + +[[package]] +name = "autocfg" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" + +[[package]] +name = "bech32" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "block-padding", + "generic-array", +] + +[[package]] +name = "block-padding" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "cargo_toml" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cc7aa568f9b7e9d7865dee91157e45cb45378635590f11898f7d2bdbd425208" +dependencies = [ + "serde", + "serde_derive", + "toml", +] + +[[package]] +name = "cfg-if" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "common_errors" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.36.1", +] + +[[package]] +name = "common_errors_old" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", +] + +[[package]] +name = "common_structs" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.36.1", +] + +[[package]] +name = "common_structs_old" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", +] + +[[package]] +name = "config" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "elrond-wasm 0.28.0", + "token_send", +] + +[[package]] +name = "contexts" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm 0.28.0", + "farm_token", + "rewards", + "token_merge_old", + "token_send", +] + +[[package]] +name = "cpufeatures" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" +dependencies = [ + "libc", +] + +[[package]] +name = "curve25519-dalek" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f9d052967f590a76e62eb387bd0bbb1b000182c3cefe5364db6b7211651bc0" +dependencies = [ + "byteorder", + "digest", + "rand_core 0.5.1", + "subtle", + "zeroize", +] + +[[package]] +name = "dex-tests" +version = "0.0.0" +dependencies = [ + "common_structs", + "config", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "factory", + "farm", + "farm-staking", + "farm-staking-proxy", + "farm_with_lock", + "migration_from_v1_2", + "num-bigint", + "pair", + "rewards", + "router", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "distribution" +version = "0.0.0" +dependencies = [ + "common_structs", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "factory", +] + +[[package]] +name = "distribution-abi" +version = "0.0.0" +dependencies = [ + "distribution", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", +] + +[[package]] +name = "distribution-tests" +version = "0.0.0" +dependencies = [ + "distribution", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "factory", + "farm", + "farm_with_lock", + "pair", + "proxy_dex", + "router", +] + +[[package]] +name = "ed25519" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +dependencies = [ + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +dependencies = [ + "curve25519-dalek", + "ed25519", + "rand 0.7.3", + "serde", + "sha2", + "zeroize", +] + +[[package]] +name = "either" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" + +[[package]] +name = "elrond-codec" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6d85f2b7c969a12da26157a989f759f59d1df2b0e2f4ae7b2ebb011334a63c1" +dependencies = [ + "arrayvec", + "elrond-codec-derive 0.9.0", + "wee_alloc", +] + +[[package]] +name = "elrond-codec" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c85c5951864dd4816e1df2ceaccb0f22c64ff117ddcde1f53351ace4d785c47" +dependencies = [ + "arrayvec", + "elrond-codec-derive 0.14.0", + "num-bigint", + "wee_alloc", +] + +[[package]] +name = "elrond-codec-derive" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae84b062b57562daf6b90d12c6568a6df21ef355625f6dd21a3106d774456a51" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "elrond-codec-derive" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a8987a7f506ae5b352ad7ac28fb13b9f600355c8b88a444881f86bc565c75cf" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "elrond-wasm" +version = "0.28.0" +source = "git+https://github.com/multiversx/mx-sdk-rs?branch=reproducible/v0.28.0#dfa58490472b52282af2f4a134e312bc2b96dec4" +dependencies = [ + "bitflags", + "elrond-codec 0.9.0", + "elrond-wasm-derive 0.28.0", + "hashbrown", + "hex-literal", + "wee_alloc", +] + +[[package]] +name = "elrond-wasm" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ff7dd10f4a7133a2c6feb3f79e04953f9a3c1eda9f8444b43c1300f302e02fd" +dependencies = [ + "bitflags", + "elrond-codec 0.14.0", + "elrond-wasm-derive 0.36.1", + "git-version", + "hashbrown", + "hex-literal", + "num-traits", + "wee_alloc", +] + +[[package]] +name = "elrond-wasm-debug" +version = "0.28.0" +source = "git+https://github.com/multiversx/mx-sdk-rs?branch=reproducible/v0.28.0#dfa58490472b52282af2f4a134e312bc2b96dec4" +dependencies = [ + "cargo_toml", + "elrond-wasm 0.28.0", + "hex", + "mandos 0.12.0", + "num-bigint", + "num-traits", + "pathdiff", + "rand 0.8.5", + "rand_pcg", + "rand_seeder", + "rustc_version", + "serde", + "serde_json", + "sha2", + "sha3", + "toml", +] + +[[package]] +name = "elrond-wasm-debug" +version = "0.36.1" +source = "git+https://github.com/multiversx/mx-sdk-rs?branch=reproducible/v0.36.1#c907f3abf5686e41c59a93515d001985286232e8" +dependencies = [ + "bech32", + "cargo_toml", + "ed25519-dalek", + "elrond-wasm 0.36.1", + "hex", + "itertools", + "mandos 0.17.0", + "num-bigint", + "num-traits", + "pathdiff", + "rand 0.8.5", + "rand_pcg", + "rand_seeder", + "rustc_version", + "serde", + "serde_json", + "sha2", + "sha3", + "toml", +] + +[[package]] +name = "elrond-wasm-derive" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a3e0e238435b3e1ac971e15ac345bf4f75efc88c8ee0032e286cf67dbff9681" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "radix_trie", + "syn", +] + +[[package]] +name = "elrond-wasm-derive" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60358989163ae1c28b79d7c687869874c765001bbdfa12a31dfd920350bc7a22" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "radix_trie", + "syn", +] + +[[package]] +name = "elrond-wasm-modules" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "868f3dd7ae064f23b626cb197c83caa3bdadadd9cbc58d5a8ceff99942d04a47" +dependencies = [ + "elrond-wasm 0.36.1", +] + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "events" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "contexts", + "elrond-wasm 0.28.0", +] + +[[package]] +name = "factory" +version = "0.0.0" +dependencies = [ + "common_errors", + "common_structs", + "elrond-wasm 0.36.1", + "elrond-wasm-debug 0.36.1", + "elrond-wasm-modules", + "hex", + "num-bigint", + "num-traits", + "token_merge", +] + +[[package]] +name = "factory-abi" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.36.1", + "elrond-wasm-debug 0.36.1", + "factory", +] + +[[package]] +name = "farm" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "contexts", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "events", + "farm_token", + "migration_from_v1_2", + "rewards", + "token_merge_old", + "token_send", +] + +[[package]] +name = "farm-abi" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "farm", +] + +[[package]] +name = "farm-staking" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "farm_token", + "num-bigint", + "rewards", + "token_merge_old", + "token_send", +] + +[[package]] +name = "farm-staking-abi" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "farm-staking", +] + +[[package]] +name = "farm-staking-proxy" +version = "0.0.0" +dependencies = [ + "common_structs", + "elrond-wasm 0.36.1", + "elrond-wasm-debug 0.36.1", + "hex-literal", + "num-bigint", + "token_merge", +] + +[[package]] +name = "farm-staking-proxy-meta" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.36.1", + "elrond-wasm-debug 0.36.1", + "farm-staking-proxy", +] + +[[package]] +name = "farm_token" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm 0.28.0", + "token_send", +] + +[[package]] +name = "farm_v1_2_mock" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", +] + +[[package]] +name = "farm_v1_2_mock-abi" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "farm_v1_2_mock", +] + +[[package]] +name = "farm_with_lock" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "contexts", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "events", + "farm_token", + "migration_from_v1_2", + "rewards", + "token_merge_old", + "token_send", +] + +[[package]] +name = "farm_with_lock-abi" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "farm_with_lock", +] + +[[package]] +name = "fuzz" +version = "0.0.0" +dependencies = [ + "common_structs", + "config", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "factory", + "farm", + "farm-staking", + "farm_with_lock", + "num-bigint", + "pair", + "rand 0.8.5", + "rewards", + "router", +] + +[[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.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", +] + +[[package]] +name = "git-version" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b0decc02f4636b9ccad390dcbe77b722a77efedfa393caf8379a51d5c61899" +dependencies = [ + "git-version-macro", + "proc-macro-hack", +] + +[[package]] +name = "git-version-macro" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe69f1cbdb6e28af2bac214e943b99ce8a0a06b447d15d3e61161b0423139f3f" +dependencies = [ + "proc-macro-hack", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "hashbrown" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +dependencies = [ + "ahash", +] + +[[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.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" + +[[package]] +name = "integration-test-lib" +version = "0.1.0" +dependencies = [ + "common_structs", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "farm", + "farm_v1_2_mock", + "num-bigint", + "proxy_dex", +] + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" + +[[package]] +name = "keccak" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "libc" +version = "0.2.138" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6d7e329c562c5dfab7a46a2afabc8b987ab9a4834c9d1ca04dc54c1546cef8" + +[[package]] +name = "mandos" +version = "0.12.0" +source = "git+https://github.com/multiversx/mx-sdk-rs?branch=reproducible/v0.28.0#dfa58490472b52282af2f4a134e312bc2b96dec4" +dependencies = [ + "hex", + "num-bigint", + "num-traits", + "serde", + "serde_json", + "sha3", +] + +[[package]] +name = "mandos" +version = "0.17.0" +source = "git+https://github.com/multiversx/mx-sdk-rs?branch=reproducible/v0.36.1#c907f3abf5686e41c59a93515d001985286232e8" +dependencies = [ + "bech32", + "hex", + "num-bigint", + "num-traits", + "serde", + "serde_json", + "sha3", +] + +[[package]] +name = "memory_units" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" + +[[package]] +name = "migration_from_v1_2" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm 0.28.0", + "farm_token", + "rewards", + "token_send", +] + +[[package]] +name = "nibble_vec" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d77f3db4bce033f4d04db08079b2ef1c3d02b44e86f25d08886fafa7756ffa" + +[[package]] +name = "num-bigint" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-integer" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" +dependencies = [ + "autocfg", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" +dependencies = [ + "autocfg", +] + +[[package]] +name = "once_cell" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" + +[[package]] +name = "opaque-debug" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" + +[[package]] +name = "pair" +version = "0.0.0" +dependencies = [ + "common_structs", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "itertools", + "token_send", +] + +[[package]] +name = "pair-abi" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "pair", +] + +[[package]] +name = "pair-mock" +version = "0.0.0" +dependencies = [ + "common_errors", + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "itertools", +] + +[[package]] +name = "pair-mock-meta" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "pair-mock", +] + +[[package]] +name = "pathdiff" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" + +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "price-discovery" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "hex", + "hex-literal", + "num-bigint", + "num-traits", + "pair", + "pair-mock", + "token_merge", +] + +[[package]] +name = "price-discovery-meta" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "price-discovery", +] + +[[package]] +name = "proc-macro-hack" +version = "0.5.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" + +[[package]] +name = "proc-macro2" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "proxy_dex" +version = "0.0.0" +dependencies = [ + "common_structs", + "elrond-wasm 0.36.1", + "elrond-wasm-debug 0.36.1", + "factory", + "token_merge", +] + +[[package]] +name = "proxy_dex-meta" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.36.1", + "elrond-wasm-debug 0.36.1", + "proxy_dex", +] + +[[package]] +name = "quote" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radix_trie" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3681b28cd95acfb0560ea9441f82d6a4504fa3b15b97bd7b6e952131820e95" +dependencies = [ + "endian-type", + "nibble_vec", +] + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[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 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.8", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_seeder" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf2890aaef0aa82719a50e808de264f9484b74b442e1a3a0e5ee38243ac40bdb" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "rewards" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm 0.28.0", + "farm_token", + "token_send", +] + +[[package]] +name = "router" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "pair", + "token_send", +] + +[[package]] +name = "router-abi" +version = "0.0.0" +dependencies = [ + "elrond-wasm 0.28.0", + "elrond-wasm-debug 0.28.0", + "router", +] + +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver", +] + +[[package]] +name = "ryu" +version = "1.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" + +[[package]] +name = "semver" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" + +[[package]] +name = "serde" +version = "1.0.150" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e326c9ec8042f1b5da33252c8a37e9ffbd2c9bef0155215b6e6c80c790e05f91" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.150" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42a3df25b0713732468deadad63ab9da1f1fd75a48a15024b50363f128db627e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020ff22c755c2ed3f8cf162dbb41a7268d934702f3ed3631656ea597e08fc3db" +dependencies = [ + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer", + "cfg-if 1.0.0", + "cpufeatures", + "digest", + "opaque-debug", +] + +[[package]] +name = "sha3" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" +dependencies = [ + "block-buffer", + "digest", + "keccak", + "opaque-debug", +] + +[[package]] +name = "signature" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + +[[package]] +name = "subtle" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" + +[[package]] +name = "syn" +version = "1.0.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b9b43d45702de4c839cb9b51d9f529c5dd26a4aff255b42b1ebc03e88ee908" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "unicode-xid", +] + +[[package]] +name = "token_merge" +version = "0.0.0" +dependencies = [ + "common_errors", + "common_structs", + "elrond-wasm 0.36.1", +] + +[[package]] +name = "token_merge_old" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "elrond-wasm 0.28.0", +] + +[[package]] +name = "token_send" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "elrond-wasm 0.28.0", +] + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" + +[[package]] +name = "unicode-xid" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wee_alloc" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbb3b5a6b2bb17cb6ad44a2e68a43e8d2722c997da10e928665c72ec6c0a0b8e" +dependencies = [ + "cfg-if 0.1.10", + "libc", + "memory_units", + "winapi", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "zeroize" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44bf07cb3e50ea2003396695d58bf46bc9887a1f362260446fad6bc4e79bd36c" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] diff --git a/Cargo.toml b/Cargo.toml index 568946dfb..abd988b27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,3 +32,9 @@ members = [ "integration-test-lib", ] + +[patch.crates-io] +elrond-wasm-debug0 = { version = "0.28.0", git = "https://github.com/multiversx/mx-sdk-rs", package = "elrond-wasm-debug", branch = "reproducible/v0.28.0" } +elrond-wasm-debug1 = { version = "0.36.1", git = "https://github.com/multiversx/mx-sdk-rs", package = "elrond-wasm-debug", branch = "reproducible/v0.36.1" } +elrond-wasm0 = { version = "0.28.0", git = "https://github.com/multiversx/mx-sdk-rs", package = "elrond-wasm", branch = "reproducible/v0.28.0" } + diff --git a/common/common_errors_old/Cargo.toml b/common/common_errors_old/Cargo.toml index 15b0c65bf..a2d8ff9ce 100644 --- a/common/common_errors_old/Cargo.toml +++ b/common/common_errors_old/Cargo.toml @@ -8,4 +8,4 @@ edition = "2018" path = "src/lib.rs" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/common_structs_old/Cargo.toml b/common/common_structs_old/Cargo.toml index cbedc3660..25389edb9 100644 --- a/common/common_structs_old/Cargo.toml +++ b/common/common_structs_old/Cargo.toml @@ -8,4 +8,4 @@ edition = "2018" path = "src/lib.rs" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/farm/config/Cargo.toml b/common/modules/farm/config/Cargo.toml index 34ab1166b..6d3ba961e 100644 --- a/common/modules/farm/config/Cargo.toml +++ b/common/modules/farm/config/Cargo.toml @@ -17,4 +17,4 @@ path = "../../../common_errors_old" path = "../../token_send" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/farm/contexts/Cargo.toml b/common/modules/farm/contexts/Cargo.toml index 9bbf1fba5..243c51101 100644 --- a/common/modules/farm/contexts/Cargo.toml +++ b/common/modules/farm/contexts/Cargo.toml @@ -29,4 +29,4 @@ path = "../../token_merge_old" path = "../config" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/farm/events/Cargo.toml b/common/modules/farm/events/Cargo.toml index f70eaa334..b9c8ee7d9 100644 --- a/common/modules/farm/events/Cargo.toml +++ b/common/modules/farm/events/Cargo.toml @@ -17,4 +17,4 @@ path = "../../../common_errors_old" path = "../contexts" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/farm/farm_token/Cargo.toml b/common/modules/farm/farm_token/Cargo.toml index 25e0b553d..e57192b43 100644 --- a/common/modules/farm/farm_token/Cargo.toml +++ b/common/modules/farm/farm_token/Cargo.toml @@ -20,4 +20,4 @@ path = "../config" path = "../../token_send" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/farm/migration_from_v1_2/Cargo.toml b/common/modules/farm/migration_from_v1_2/Cargo.toml index cf898cbf5..517c5fac7 100644 --- a/common/modules/farm/migration_from_v1_2/Cargo.toml +++ b/common/modules/farm/migration_from_v1_2/Cargo.toml @@ -26,4 +26,4 @@ path = "../../token_send" path = "../rewards" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/farm/rewards/Cargo.toml b/common/modules/farm/rewards/Cargo.toml index 0f958ee7e..6ec5f935a 100644 --- a/common/modules/farm/rewards/Cargo.toml +++ b/common/modules/farm/rewards/Cargo.toml @@ -23,4 +23,4 @@ path = "../farm_token" path = "../../token_send" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/token_merge_old/Cargo.toml b/common/modules/token_merge_old/Cargo.toml index 98390c8ce..9a279d0f6 100644 --- a/common/modules/token_merge_old/Cargo.toml +++ b/common/modules/token_merge_old/Cargo.toml @@ -14,4 +14,4 @@ path = "../../common_structs_old" path = "../../common_errors_old" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/common/modules/token_send/Cargo.toml b/common/modules/token_send/Cargo.toml index 0de408e6b..ac5108400 100644 --- a/common/modules/token_send/Cargo.toml +++ b/common/modules/token_send/Cargo.toml @@ -14,4 +14,4 @@ path = "../../common_structs_old" path = "../../common_errors_old" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" diff --git a/dex/Cargo.toml b/dex/Cargo.toml index 48d5471f8..607f55731 100644 --- a/dex/Cargo.toml +++ b/dex/Cargo.toml @@ -5,10 +5,10 @@ edition = "2018" publish = false [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies] num-bigint = "0.4.2" diff --git a/dex/farm-staking-proxy/elrond.json b/dex/farm-staking-proxy/multiversx.json similarity index 100% rename from dex/farm-staking-proxy/elrond.json rename to dex/farm-staking-proxy/multiversx.json diff --git a/dex/farm-staking/Cargo.toml b/dex/farm-staking/Cargo.toml index 9200ac706..b4f37e103 100644 --- a/dex/farm-staking/Cargo.toml +++ b/dex/farm-staking/Cargo.toml @@ -30,11 +30,11 @@ path = "../../common/common_structs_old" path = "../../common/common_errors_old" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" features = ["cb_closure_managed_deser"] [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies] num-bigint = "0.4.2" diff --git a/dex/farm-staking/wasm/Cargo.toml b/dex/farm-staking/wasm/Cargo.toml index 3e1e046a0..5a18a6a73 100644 --- a/dex/farm-staking/wasm/Cargo.toml +++ b/dex/farm-staking/wasm/Cargo.toml @@ -25,8 +25,8 @@ default-features = false path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = ["wasm-output-mode"] diff --git a/dex/farm/Cargo.toml b/dex/farm/Cargo.toml index eef751f03..3640fa59c 100644 --- a/dex/farm/Cargo.toml +++ b/dex/farm/Cargo.toml @@ -39,8 +39,8 @@ path = "../../common/common_structs_old" path = "../../common/common_errors_old" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" features = ["cb_closure_managed_deser"] [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/dex/farm/meta/Cargo.toml b/dex/farm/meta/Cargo.toml index 4159e9bfa..6f29fda5f 100644 --- a/dex/farm/meta/Cargo.toml +++ b/dex/farm/meta/Cargo.toml @@ -10,7 +10,7 @@ publish = false path = ".." [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/dex/farm/wasm/Cargo.toml b/dex/farm/wasm/Cargo.toml index 102fe7b59..5d6457173 100644 --- a/dex/farm/wasm/Cargo.toml +++ b/dex/farm/wasm/Cargo.toml @@ -25,8 +25,8 @@ default-features = false path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = ["wasm-output-mode"] diff --git a/dex/farm_v1_2_mock/Cargo.toml b/dex/farm_v1_2_mock/Cargo.toml index 4b46bf4f7..8203a4f99 100644 --- a/dex/farm_v1_2_mock/Cargo.toml +++ b/dex/farm_v1_2_mock/Cargo.toml @@ -9,7 +9,7 @@ publish = false path = "src/lib.rs" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/dex/farm_v1_2_mock/wasm/Cargo.toml b/dex/farm_v1_2_mock/wasm/Cargo.toml index 1732b07a4..05f0b5695 100644 --- a/dex/farm_v1_2_mock/wasm/Cargo.toml +++ b/dex/farm_v1_2_mock/wasm/Cargo.toml @@ -25,8 +25,8 @@ default-features = false path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = ["wasm-output-mode"] diff --git a/dex/farm_with_lock/Cargo.toml b/dex/farm_with_lock/Cargo.toml index f5b016a68..0f38c3075 100644 --- a/dex/farm_with_lock/Cargo.toml +++ b/dex/farm_with_lock/Cargo.toml @@ -39,8 +39,8 @@ path = "../../common/common_structs_old" path = "../../common/common_errors_old" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" features = ["cb_closure_managed_deser"] [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/dex/farm_with_lock/elrond.json b/dex/farm_with_lock/multiversx.json similarity index 100% rename from dex/farm_with_lock/elrond.json rename to dex/farm_with_lock/multiversx.json diff --git a/dex/farm_with_lock/wasm/Cargo.lock b/dex/farm_with_lock/wasm/Cargo.lock new file mode 100644 index 000000000..b69a3dc33 --- /dev/null +++ b/dex/farm_with_lock/wasm/Cargo.lock @@ -0,0 +1,388 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "ahash" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +dependencies = [ + "getrandom", + "once_cell", + "version_check", +] + +[[package]] +name = "arrayvec" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "cfg-if" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "common_errors_old" +version = "0.0.0" +dependencies = [ + "elrond-wasm", +] + +[[package]] +name = "common_structs_old" +version = "0.0.0" +dependencies = [ + "elrond-wasm", +] + +[[package]] +name = "config" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "elrond-wasm", + "token_send", +] + +[[package]] +name = "contexts" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm", + "farm_token", + "rewards", + "token_merge_old", + "token_send", +] + +[[package]] +name = "elrond-codec" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6d85f2b7c969a12da26157a989f759f59d1df2b0e2f4ae7b2ebb011334a63c1" +dependencies = [ + "arrayvec", + "elrond-codec-derive", + "wee_alloc", +] + +[[package]] +name = "elrond-codec-derive" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae84b062b57562daf6b90d12c6568a6df21ef355625f6dd21a3106d774456a51" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "elrond-wasm" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c99bd13acbd995a1b048fcc791a8acd8d2d4ab1085738c9077607d218fb2a42f" +dependencies = [ + "bitflags", + "elrond-codec", + "elrond-wasm-derive", + "hashbrown", + "hex-literal", + "wee_alloc", +] + +[[package]] +name = "elrond-wasm-derive" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a3e0e238435b3e1ac971e15ac345bf4f75efc88c8ee0032e286cf67dbff9681" +dependencies = [ + "hex", + "proc-macro2", + "quote", + "radix_trie", + "syn", +] + +[[package]] +name = "elrond-wasm-node" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad55a0495ab1760ab532766529bc4b1cda04c918e44cfb2d84e1ac066d574397" +dependencies = [ + "elrond-wasm", +] + +[[package]] +name = "elrond-wasm-output" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a1b54eef1004bb8b622b7f8cbe0100c715dfd58699bb7b0c5a50d23c3a87f38" +dependencies = [ + "elrond-wasm-node", + "wee_alloc", +] + +[[package]] +name = "endian-type" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" + +[[package]] +name = "events" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "contexts", + "elrond-wasm", +] + +[[package]] +name = "farm_token" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm", + "token_send", +] + +[[package]] +name = "farm_with_lock" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "contexts", + "elrond-wasm", + "events", + "farm_token", + "migration_from_v1_2", + "rewards", + "token_merge_old", + "token_send", +] + +[[package]] +name = "farm_with_lock-wasm" +version = "0.0.0" +dependencies = [ + "elrond-wasm-node", + "elrond-wasm-output", + "farm_with_lock", +] + +[[package]] +name = "getrandom" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "wasi", +] + +[[package]] +name = "hashbrown" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +dependencies = [ + "ahash", +] + +[[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.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" + +[[package]] +name = "libc" +version = "0.2.138" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6d7e329c562c5dfab7a46a2afabc8b987ab9a4834c9d1ca04dc54c1546cef8" + +[[package]] +name = "memory_units" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" + +[[package]] +name = "migration_from_v1_2" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm", + "farm_token", + "rewards", + "token_send", +] + +[[package]] +name = "nibble_vec" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d77f3db4bce033f4d04db08079b2ef1c3d02b44e86f25d08886fafa7756ffa" + +[[package]] +name = "once_cell" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" + +[[package]] +name = "proc-macro2" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "radix_trie" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3681b28cd95acfb0560ea9441f82d6a4504fa3b15b97bd7b6e952131820e95" +dependencies = [ + "endian-type", + "nibble_vec", +] + +[[package]] +name = "rewards" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "config", + "elrond-wasm", + "farm_token", + "token_send", +] + +[[package]] +name = "syn" +version = "1.0.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b9b43d45702de4c839cb9b51d9f529c5dd26a4aff255b42b1ebc03e88ee908" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "token_merge_old" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "elrond-wasm", +] + +[[package]] +name = "token_send" +version = "0.0.0" +dependencies = [ + "common_errors_old", + "common_structs_old", + "elrond-wasm", +] + +[[package]] +name = "unicode-ident" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" + +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + +[[package]] +name = "wasi" +version = "0.10.2+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" + +[[package]] +name = "wee_alloc" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbb3b5a6b2bb17cb6ad44a2e68a43e8d2722c997da10e928665c72ec6c0a0b8e" +dependencies = [ + "cfg-if 0.1.10", + "libc", + "memory_units", + "winapi", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/dex/farm_with_lock/wasm/Cargo.toml b/dex/farm_with_lock/wasm/Cargo.toml index c76489aa7..f41793c18 100644 --- a/dex/farm_with_lock/wasm/Cargo.toml +++ b/dex/farm_with_lock/wasm/Cargo.toml @@ -25,8 +25,8 @@ default-features = false path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = ["wasm-output-mode"] diff --git a/dex/farm_with_lock/wasm/src/lib.rs b/dex/farm_with_lock/wasm/src/lib.rs index 1ca52c0b1..04b43ae8d 100644 --- a/dex/farm_with_lock/wasm/src/lib.rs +++ b/dex/farm_with_lock/wasm/src/lib.rs @@ -9,10 +9,7 @@ elrond_wasm_node::wasm_endpoints! { ( callBack calculateRewardsForGivenPosition - claimRewards - compoundRewards end_produce_rewards - enterFarm exitFarm getBurnGasLimit getDivisionSafetyConstant @@ -32,7 +29,6 @@ elrond_wasm_node::wasm_endpoints! { getRewardTokenId getState getTransferExecGasLimit - mergeFarmTokens migrateFromV1_2Farm pause registerFarmToken @@ -40,8 +36,8 @@ elrond_wasm_node::wasm_endpoints! { setFarmMigrationConfig setFarmTokenSupply setLocalRolesFarmToken - setPerBlockRewardAmount setRpsAndStartRewards + setTransferRoleFarmToken set_burn_gas_limit set_minimum_farming_epochs set_penalty_percent diff --git a/dex/fuzz/Cargo.toml b/dex/fuzz/Cargo.toml index c52f6b113..faa4a9ed0 100644 --- a/dex/fuzz/Cargo.toml +++ b/dex/fuzz/Cargo.toml @@ -8,10 +8,10 @@ edition = "2018" path = "src/lib.rs" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dependencies.config] path = "../../common/modules/farm/config" diff --git a/dex/pair/Cargo.toml b/dex/pair/Cargo.toml index 478634acf..76611dd56 100644 --- a/dex/pair/Cargo.toml +++ b/dex/pair/Cargo.toml @@ -16,10 +16,10 @@ version = "0.10.1" default-features = false [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dependencies.common_structs] path = "../../common/common_structs" diff --git a/dex/pair/meta/Cargo.toml b/dex/pair/meta/Cargo.toml index a4adeba2f..9a734af1f 100644 --- a/dex/pair/meta/Cargo.toml +++ b/dex/pair/meta/Cargo.toml @@ -10,8 +10,8 @@ publish = false path = ".." [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/dex/pair/wasm/Cargo.toml b/dex/pair/wasm/Cargo.toml index df98d271b..a8de14312 100644 --- a/dex/pair/wasm/Cargo.toml +++ b/dex/pair/wasm/Cargo.toml @@ -24,8 +24,8 @@ panic = "abort" path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = ["wasm-output-mode"] diff --git a/dex/router/Cargo.toml b/dex/router/Cargo.toml index e6ffc359f..009d6e5d5 100644 --- a/dex/router/Cargo.toml +++ b/dex/router/Cargo.toml @@ -12,11 +12,11 @@ path = "src/contract.rs" path = "../../common/modules/token_send" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" features = ["cb_closure_managed_deser"] [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dependencies.pair] path = "../pair" diff --git a/dex/router/meta/Cargo.toml b/dex/router/meta/Cargo.toml index f78f03948..a846135d7 100644 --- a/dex/router/meta/Cargo.toml +++ b/dex/router/meta/Cargo.toml @@ -10,7 +10,7 @@ publish = false path = ".." [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/dex/router/wasm/Cargo.toml b/dex/router/wasm/Cargo.toml index 8390fd27f..f874a6770 100644 --- a/dex/router/wasm/Cargo.toml +++ b/dex/router/wasm/Cargo.toml @@ -25,8 +25,8 @@ default-features = false path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = ["wasm-output-mode"] diff --git a/integration-test-lib/Cargo.toml b/integration-test-lib/Cargo.toml index c933e8316..29a48c68d 100644 --- a/integration-test-lib/Cargo.toml +++ b/integration-test-lib/Cargo.toml @@ -9,10 +9,10 @@ edition = "2018" num-bigint = "0.4.2" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dependencies.proxy_dex] path = "../locked-asset/proxy_dex" diff --git a/locked-asset/Cargo.toml b/locked-asset/Cargo.toml index 5c509f473..ad0a7d751 100644 --- a/locked-asset/Cargo.toml +++ b/locked-asset/Cargo.toml @@ -5,10 +5,10 @@ edition = "2018" publish = false [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dependencies.farm] path = "../dex/farm" diff --git a/locked-asset/distribution/Cargo.toml b/locked-asset/distribution/Cargo.toml index 6abae605e..2120e4dc2 100644 --- a/locked-asset/distribution/Cargo.toml +++ b/locked-asset/distribution/Cargo.toml @@ -14,7 +14,7 @@ path = "../../common/common_structs" path = "../factory" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/locked-asset/distribution/meta/Cargo.toml b/locked-asset/distribution/meta/Cargo.toml index 1010d4300..7785ca238 100644 --- a/locked-asset/distribution/meta/Cargo.toml +++ b/locked-asset/distribution/meta/Cargo.toml @@ -10,8 +10,8 @@ publish = false path = ".." [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/locked-asset/distribution/wasm/Cargo.toml b/locked-asset/distribution/wasm/Cargo.toml index f267009f1..94e616b86 100644 --- a/locked-asset/distribution/wasm/Cargo.toml +++ b/locked-asset/distribution/wasm/Cargo.toml @@ -25,9 +25,9 @@ default-features = false path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = ["wasm-output-mode"] diff --git a/locked-asset/factory/elrond.json b/locked-asset/factory/multiversx.json similarity index 100% rename from locked-asset/factory/elrond.json rename to locked-asset/factory/multiversx.json diff --git a/locked-asset/proxy_dex/elrond.json b/locked-asset/proxy_dex/multiversx.json similarity index 100% rename from locked-asset/proxy_dex/elrond.json rename to locked-asset/proxy_dex/multiversx.json diff --git a/pair-mock/Cargo.toml b/pair-mock/Cargo.toml index 4ab888522..24c4c9215 100644 --- a/pair-mock/Cargo.toml +++ b/pair-mock/Cargo.toml @@ -12,10 +12,10 @@ path = "src/pair.rs" path = "../common/common_errors" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dependencies.itertools] version = "0.10.1" diff --git a/pair-mock/meta/Cargo.toml b/pair-mock/meta/Cargo.toml index 9791cc612..a2995ed78 100644 --- a/pair-mock/meta/Cargo.toml +++ b/pair-mock/meta/Cargo.toml @@ -11,7 +11,7 @@ authors = [ "you",] path = ".." [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" diff --git a/pair-mock/wasm/Cargo.toml b/pair-mock/wasm/Cargo.toml index 72f801955..eb037c92c 100644 --- a/pair-mock/wasm/Cargo.toml +++ b/pair-mock/wasm/Cargo.toml @@ -24,8 +24,8 @@ panic = "abort" path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = [ "wasm-output-mode",] diff --git a/price-discovery/Cargo.toml b/price-discovery/Cargo.toml index a97f93b2d..198b4c46e 100644 --- a/price-discovery/Cargo.toml +++ b/price-discovery/Cargo.toml @@ -9,7 +9,7 @@ publish = false path = "src/lib.rs" [dependencies.elrond-wasm] -version = "0.28.0" +version = "=0.28.0" [dependencies] hex-literal = "0.3.1" @@ -21,7 +21,7 @@ path = "../dex/pair" path = "../common/modules/token_merge" [dev-dependencies.elrond-wasm-debug] -version = "0.28.0" +version = "=0.28.0" [dev-dependencies] num-bigint = "0.4.2" diff --git a/price-discovery/wasm/Cargo.toml b/price-discovery/wasm/Cargo.toml index 60fa30d0c..05fea93a0 100644 --- a/price-discovery/wasm/Cargo.toml +++ b/price-discovery/wasm/Cargo.toml @@ -24,8 +24,8 @@ panic = "abort" path = ".." [dependencies.elrond-wasm-node] -version = "0.28.0" +version = "=0.28.0" [dependencies.elrond-wasm-output] -version = "0.28.0" +version = "=0.28.0" features = [ "wasm-output-mode",]