diff --git a/Cargo.lock b/Cargo.lock index 53957b1..11eb872 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,17 +59,6 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" -[[package]] -name = "cargo_toml" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "363c7cfaa15f101415c4ac9e68706ca4a2277773932828b33f96e59d28c68e62" -dependencies = [ - "serde", - "serde_derive", - "toml", -] - [[package]] name = "cfg-if" version = "0.1.10" @@ -144,9 +133,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "elrond-codec" -version = "0.12.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fbbf6988baa57f4d02500f63694712be2f833182954646c620354f3e0816ee9" +checksum = "464f138aad7a8f8605ee709793863989b46d050f444bf65c4dc9f4bb481e1425" dependencies = [ "arrayvec", "elrond-codec-derive", @@ -156,9 +145,9 @@ dependencies = [ [[package]] name = "elrond-codec-derive" -version = "0.12.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736d13efce07a5882d92427680214047a4803e2758799b908ccc12200f0e24f9" +checksum = "307ece5b7a6347c517a02f7c3d6fc40d516bbc2d5b2fe0468a1cb2bb4b36403e" dependencies = [ "hex", "proc-macro2", @@ -168,15 +157,14 @@ dependencies = [ [[package]] name = "elrond-wasm" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c6aa890074c3516673e44108005f2d1f49123c26863794b0955e08413b988d3" +checksum = "ce51a244a7dffb88af6426fbdf38d037750053e07269fec32f0b99b56c45f0ac" dependencies = [ "bitflags", "elrond-codec", "elrond-wasm-derive", - "git-version", - "hashbrown", + "hashbrown 0.11.2", "hex-literal", "num-traits", "wee_alloc", @@ -184,12 +172,11 @@ dependencies = [ [[package]] name = "elrond-wasm-debug" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35750fa6a2dcf1b1f36f2c45ad800fbfbbabf9ff2d256f22789df3700be971c8" +checksum = "864a9a59b8f85a2ad2d230985d68de326bd5ab360f3b39c21a34e0fba8224a65" dependencies = [ "bech32", - "cargo_toml", "ed25519-dalek", "elrond-wasm", "hex", @@ -211,9 +198,9 @@ dependencies = [ [[package]] name = "elrond-wasm-derive" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b28966144ba1b46be09e75afabd12a5a3fa621f73a6bef994c62ae22f37f430" +checksum = "5b597e6a65aa96fdb2d6ed46c9d9fd1c224b857f4933022f89ab5ef5ada4f2ed" dependencies = [ "hex", "proc-macro2", @@ -230,7 +217,7 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" [[package]] name = "esdt-faucet-sc" -version = "0.1.0" +version = "0.2.0" dependencies = [ "elrond-wasm", "elrond-wasm-debug", @@ -271,28 +258,6 @@ dependencies = [ "wasi 0.10.2+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" @@ -302,6 +267,12 @@ dependencies = [ "ahash", ] +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + [[package]] name = "hex" version = "0.4.3" @@ -314,6 +285,16 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" +[[package]] +name = "indexmap" +version = "1.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", +] + [[package]] name = "itertools" version = "0.10.3" @@ -343,9 +324,9 @@ checksum = "8521a1b57e76b1ec69af7599e75e38e7b7fad6610f037db8c79b127201b5d119" [[package]] name = "mandos" -version = "0.16.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b59d9be2a3338508010e435adfbee689a4f02620fa834fb93eae7ed7007ccb0d" +checksum = "57cfadc5266c179dee0b5fd1aeba0934771af5ef250b278691b7944c261e7454" dependencies = [ "bech32", "hex", @@ -422,12 +403,6 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" -[[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.32" @@ -663,6 +638,7 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" dependencies = [ + "indexmap", "serde", ] diff --git a/Cargo.toml b/Cargo.toml index f888b65..0577fac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,18 @@ [package] name = "esdt-faucet-sc" -version = "0.1.0" +version = "0.2.0" authors = ["Julian Ćwirko "] -edition = "2018" +edition = "2021" publish = false [lib] path = "src/lib.rs" [dependencies.elrond-wasm] -version = "0.34.1" +version = "0.38.0" [dev-dependencies.elrond-wasm-debug] -version = "0.34.1" +version = "0.38.0" [dev-dependencies] num-bigint = "0.4.2" diff --git a/meta/Cargo.lock b/meta/Cargo.lock index 4723da3..877d2b3 100644 --- a/meta/Cargo.lock +++ b/meta/Cargo.lock @@ -59,17 +59,6 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" -[[package]] -name = "cargo_toml" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "363c7cfaa15f101415c4ac9e68706ca4a2277773932828b33f96e59d28c68e62" -dependencies = [ - "serde", - "serde_derive", - "toml", -] - [[package]] name = "cfg-if" version = "0.1.10" @@ -144,9 +133,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "elrond-codec" -version = "0.12.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fbbf6988baa57f4d02500f63694712be2f833182954646c620354f3e0816ee9" +checksum = "464f138aad7a8f8605ee709793863989b46d050f444bf65c4dc9f4bb481e1425" dependencies = [ "arrayvec", "elrond-codec-derive", @@ -156,9 +145,9 @@ dependencies = [ [[package]] name = "elrond-codec-derive" -version = "0.12.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736d13efce07a5882d92427680214047a4803e2758799b908ccc12200f0e24f9" +checksum = "307ece5b7a6347c517a02f7c3d6fc40d516bbc2d5b2fe0468a1cb2bb4b36403e" dependencies = [ "hex", "proc-macro2", @@ -168,15 +157,14 @@ dependencies = [ [[package]] name = "elrond-wasm" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c6aa890074c3516673e44108005f2d1f49123c26863794b0955e08413b988d3" +checksum = "ce51a244a7dffb88af6426fbdf38d037750053e07269fec32f0b99b56c45f0ac" dependencies = [ "bitflags", "elrond-codec", "elrond-wasm-derive", - "git-version", - "hashbrown", + "hashbrown 0.11.2", "hex-literal", "num-traits", "wee_alloc", @@ -184,12 +172,11 @@ dependencies = [ [[package]] name = "elrond-wasm-debug" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35750fa6a2dcf1b1f36f2c45ad800fbfbbabf9ff2d256f22789df3700be971c8" +checksum = "864a9a59b8f85a2ad2d230985d68de326bd5ab360f3b39c21a34e0fba8224a65" dependencies = [ "bech32", - "cargo_toml", "ed25519-dalek", "elrond-wasm", "hex", @@ -211,9 +198,9 @@ dependencies = [ [[package]] name = "elrond-wasm-derive" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b28966144ba1b46be09e75afabd12a5a3fa621f73a6bef994c62ae22f37f430" +checksum = "5b597e6a65aa96fdb2d6ed46c9d9fd1c224b857f4933022f89ab5ef5ada4f2ed" dependencies = [ "hex", "proc-macro2", @@ -230,14 +217,14 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" [[package]] name = "esdt-faucet-sc" -version = "0.1.0" +version = "0.2.0" dependencies = [ "elrond-wasm", ] [[package]] name = "esdt-faucet-sc-meta" -version = "0.1.0" +version = "0.2.0" dependencies = [ "elrond-wasm", "elrond-wasm-debug", @@ -276,28 +263,6 @@ dependencies = [ "wasi 0.10.2+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" @@ -307,6 +272,12 @@ dependencies = [ "ahash", ] +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + [[package]] name = "hex" version = "0.4.3" @@ -319,6 +290,16 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" +[[package]] +name = "indexmap" +version = "1.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", +] + [[package]] name = "itertools" version = "0.10.3" @@ -348,9 +329,9 @@ checksum = "8521a1b57e76b1ec69af7599e75e38e7b7fad6610f037db8c79b127201b5d119" [[package]] name = "mandos" -version = "0.16.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b59d9be2a3338508010e435adfbee689a4f02620fa834fb93eae7ed7007ccb0d" +checksum = "57cfadc5266c179dee0b5fd1aeba0934771af5ef250b278691b7944c261e7454" dependencies = [ "bech32", "hex", @@ -427,12 +408,6 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" -[[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.32" @@ -668,6 +643,7 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" dependencies = [ + "indexmap", "serde", ] diff --git a/meta/Cargo.toml b/meta/Cargo.toml index 8b37abb..c10c4b3 100644 --- a/meta/Cargo.toml +++ b/meta/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "esdt-faucet-sc-meta" -version = "0.1.0" +version = "0.2.0" authors = ["Julian Ćwirko "] -edition = "2018" +edition = "2021" publish = false [dependencies.esdt-faucet-sc] path = ".." [dependencies.elrond-wasm] -version = "0.34.1" +version = "0.38.0" [dependencies.elrond-wasm-debug] -version = "0.34.1" +version = "0.38.0" diff --git a/output/esdt-faucet-sc.abi.json b/output/esdt-faucet-sc.abi.json index 4183bce..6664e58 100644 --- a/output/esdt-faucet-sc.abi.json +++ b/output/esdt-faucet-sc.abi.json @@ -1,19 +1,19 @@ { "buildInfo": { "rustc": { - "version": "1.61.0-nightly", - "commitHash": "4b043faba34ccc053a4d0110634c323f6c03765e", - "commitDate": "2022-02-24", + "version": "1.68.0-nightly", + "commitHash": "388538fc963e07a94e3fc3ac8948627fd2d28d29", + "commitDate": "2023-01-05", "channel": "Nightly", - "short": "rustc 1.61.0-nightly (4b043faba 2022-02-24)" + "short": "rustc 1.68.0-nightly (388538fc9 2023-01-05)" }, "contractCrate": { "name": "esdt-faucet-sc", - "version": "0.1.0" + "version": "0.2.0" }, "framework": { "name": "elrond-wasm", - "version": "0.34.1" + "version": "0.38.0" } }, "name": "EsdtFaucet", diff --git a/output/esdt-faucet-sc.wasm b/output/esdt-faucet-sc.wasm index 5160d8f..b468a0d 100755 Binary files a/output/esdt-faucet-sc.wasm and b/output/esdt-faucet-sc.wasm differ diff --git a/wasm/Cargo.lock b/wasm/Cargo.lock index 5af65b7..acdd24e 100644 --- a/wasm/Cargo.lock +++ b/wasm/Cargo.lock @@ -45,9 +45,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "elrond-codec" -version = "0.12.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fbbf6988baa57f4d02500f63694712be2f833182954646c620354f3e0816ee9" +checksum = "464f138aad7a8f8605ee709793863989b46d050f444bf65c4dc9f4bb481e1425" dependencies = [ "arrayvec", "elrond-codec-derive", @@ -56,9 +56,9 @@ dependencies = [ [[package]] name = "elrond-codec-derive" -version = "0.12.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736d13efce07a5882d92427680214047a4803e2758799b908ccc12200f0e24f9" +checksum = "307ece5b7a6347c517a02f7c3d6fc40d516bbc2d5b2fe0468a1cb2bb4b36403e" dependencies = [ "hex", "proc-macro2", @@ -68,14 +68,13 @@ dependencies = [ [[package]] name = "elrond-wasm" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c6aa890074c3516673e44108005f2d1f49123c26863794b0955e08413b988d3" +checksum = "ce51a244a7dffb88af6426fbdf38d037750053e07269fec32f0b99b56c45f0ac" dependencies = [ "bitflags", "elrond-codec", "elrond-wasm-derive", - "git-version", "hashbrown", "hex-literal", "num-traits", @@ -84,9 +83,9 @@ dependencies = [ [[package]] name = "elrond-wasm-derive" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b28966144ba1b46be09e75afabd12a5a3fa621f73a6bef994c62ae22f37f430" +checksum = "5b597e6a65aa96fdb2d6ed46c9d9fd1c224b857f4933022f89ab5ef5ada4f2ed" dependencies = [ "hex", "proc-macro2", @@ -97,18 +96,18 @@ dependencies = [ [[package]] name = "elrond-wasm-node" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97c064177e85f7cdb29c5200bc005cfcf08ae138a120f3644bfaf26035389278" +checksum = "daa830e234e3970f453d3a650d2980483f3abba26ca7f884b6bc035bbe5be571" dependencies = [ "elrond-wasm", ] [[package]] name = "elrond-wasm-output" -version = "0.34.1" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a39099722aa779fab4e24280179741f88bc9f3583fade35f8aa7cd2502e23628" +checksum = "7bc44ada94a25dcb60b6eb51bb5bd021eb5fd87a3d21d96ece51d7faf5c438b7" dependencies = [ "elrond-wasm-node", "wee_alloc", @@ -122,14 +121,14 @@ checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d" [[package]] name = "esdt-faucet-sc" -version = "0.1.0" +version = "0.2.0" dependencies = [ "elrond-wasm", ] [[package]] name = "esdt-faucet-sc-wasm" -version = "0.1.0" +version = "0.2.0" dependencies = [ "elrond-wasm-node", "elrond-wasm-output", @@ -147,28 +146,6 @@ dependencies = [ "wasi", ] -[[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" @@ -223,12 +200,6 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" -[[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.32" diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index b2b4f90..fdf9c20 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "esdt-faucet-sc-wasm" -version = "0.1.0" +version = "0.2.0" authors = ["Julian Ćwirko "] -edition = "2018" +edition = "2021" publish = false [lib] @@ -19,10 +19,10 @@ panic = "abort" path = ".." [dependencies.elrond-wasm-node] -version = "0.34.1" +version = "0.38.0" [dependencies.elrond-wasm-output] -version = "0.34.1" +version = "0.38.0" features = ["wasm-output-mode"] [workspace] diff --git a/wasm/src/lib.rs b/wasm/src/lib.rs index 8ef56a7..d02927f 100644 --- a/wasm/src/lib.rs +++ b/wasm/src/lib.rs @@ -1,15 +1,22 @@ +// Code generated by the elrond-wasm multi-contract system. DO NOT EDIT. + //////////////////////////////////////////////////// ////////////////// AUTO-GENERATED ////////////////// //////////////////////////////////////////////////// +// Init: 1 +// Endpoints: 3 +// Async Callback (empty): 1 +// Total number of exported functions: 5 + #![no_std] elrond_wasm_node::wasm_endpoints! { esdt_faucet_sc ( + setLimit claim getMaxTokensPerTransaction - setLimit ) }