diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f9a85f..acb1a1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### [1.11.0](https://github.com/ElvenTools/elven-nft-minter-sc/releases/tag/v1.11.0) (2023-01-06) +- elrond-wasm framework update to 0.38.0 + ### [1.10.0](https://github.com/ElvenTools/elven-nft-minter-sc/releases/tag/v1.10.0) (2022-09-18) - The number of the edition in the NFT name is now optional. It will be used by default, but you can opt-out (example: "nft_name #12" when there is 12.png and 12.json. When disabled: "nft_name") diff --git a/Cargo.lock b/Cargo.lock index 08d066b..4772910 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", @@ -224,7 +211,7 @@ dependencies = [ [[package]] name = "elven-nft-minter" -version = "1.10.0" +version = "1.11.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 = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" [[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.36" @@ -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 e875f47..0c93589 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,18 @@ [package] name = "elven-nft-minter" -version = "1.10.0" +version = "1.11.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/README.md b/README.md index 5deb1b6..31ae67c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Be aware that the Smart Contract doesn't have any audits. It has complete functi ### What is it? -You are reading about the Smart Contract designed for the Elrond blockchain. Its primary purpose is to provide a simple logic for minting and buying a previously configured collection of NFTs. It does it in a randomized way. Version 1 of it supports: +You are reading about the Smart Contract designed for the MultiversX (Elrond) blockchain. Its primary purpose is to provide a simple logic for minting and buying a previously configured collection of NFTs. It does it in a randomized way. Version 1 of it supports: - issuing the collection token - setting the proper roles @@ -22,7 +22,7 @@ You are reading about the Smart Contract designed for the Elrond blockchain. Its - minting multiple NFTs in one transaction - giveaway options + multiple addresses distribution in one transaction - possibility to split the process into drops (waves/batches). It is named 'drop' -- configuring the allowlist, populate from a file or provide by hand +- configuring the allowlist, populating from a file or providing by hand - claiming the developer rewards - changing basic setup where it is possible - and more... @@ -35,7 +35,7 @@ Also, check how simple it is to deploy and interact with it using [elven-tools-c ### Check out possible workflows -Examples of how you can configure your Smart Contract in a couple of scenarios and how to use the CLI to do this faster and more efficient: [www.elven.tools/docs/elven-tools-workflows.html](https://www.elven.tools/docs/elven-tools-workflows.html) +Examples of how you can configure your Smart Contract in a couple of scenarios and how to use the CLI to do this faster and more efficiently: [www.elven.tools/docs/elven-tools-workflows.html](https://www.elven.tools/docs/elven-tools-workflows.html)](https://www.elven.tools/docs/elven-tools-workflows.html) ### All endpoints with short descriptions @@ -43,7 +43,7 @@ For all commands, check out the docs: [www.elven.tools/docs/sc-endpoints.html](h ### Other ways of using it -You can always clone it and change it as you need. The best is to use the Elven Tools CLI tool, which can also be configured after changes. But nothing stops you from using the [erdpy](https://docs.elrond.com/sdk-and-tools/erdpy/erdpy/). It is all up to you. Of course you will need to do more work when using the erdpy. +You can always clone it and change it as you need. The best is to use the Elven Tools CLI tool, which can also be configured after changes. But nothing stops you from using the [erdpy](https://docs.elrond.com/sdk-and-tools/erdpy/erdpy/). It is all up to you. Of course, you will need to do more work when using the erdpy. ### Tracking the progress @@ -51,14 +51,13 @@ You can always clone it and change it as you need. The best is to use the Elven ### Contact -- [Telegram](https://t.me/juliancwirko) - [Twitter](https://twitter.com/JulianCwirko) ### You may also like - [elven.js](https://github.com/juliancwirko/elven.js) - simplified wrapper over erdjs, designed to work as a plug-n-play solution for browser based use cases. No build steps and frameworks, just one file to rule it all! Check usage examples! - [NFT Art Maker](https://github.com/juliancwirko/nft-art-maker) - generates images and metadata files and packs them into CAR files, all from provided PNG layers. -- [Buildo Begins](https://github.com/ElrondDevGuild/buildo-begins) - CLI toolset for interacting with the Elrond blockchain, APIs and smart contracts +- [Buildo Begins](https://github.com/xdevguild/buildo-begins) - CLI toolset for interacting with the MultiversX (Elrond) blockchain, APIs and smart contracts - [Export collection owners to CSV](https://github.com/ElvenTools/elven-tools-collection-owners-csv) ### Issues and ideas diff --git a/meta/Cargo.lock b/meta/Cargo.lock index d97e5c3..e8741f0 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", @@ -224,14 +211,14 @@ dependencies = [ [[package]] name = "elven-nft-minter" -version = "1.10.0" +version = "1.11.0" dependencies = [ "elrond-wasm", ] [[package]] name = "elven-nft-minter-meta" -version = "1.10.0" +version = "1.11.0" dependencies = [ "elrond-wasm-debug", "elven-nft-minter", @@ -275,28 +262,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" @@ -306,6 +271,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" @@ -318,6 +289,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" @@ -347,9 +328,9 @@ checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" [[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", @@ -426,12 +407,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.36" @@ -667,6 +642,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 92916a3..333c829 100644 --- a/meta/Cargo.toml +++ b/meta/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "elven-nft-minter-meta" -version = "1.10.0" +version = "1.11.0" authors = ["Julian Ćwirko "] -edition = "2018" +edition = "2021" publish = false [dependencies.elven-nft-minter] path = ".." [dependencies.elrond-wasm-debug] -version = "0.34.1" +version = "0.38.0" diff --git a/output/elven-nft-minter.abi.json b/output/elven-nft-minter.abi.json index 8f23782..3891e34 100644 --- a/output/elven-nft-minter.abi.json +++ b/output/elven-nft-minter.abi.json @@ -1,20 +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": "elven-nft-minter", - "version": "1.10.0", - "git_version": "c8a1569-modified" + "version": "1.11.0" }, "framework": { "name": "elrond-wasm", - "version": "0.34.1" + "version": "0.38.0" } }, "name": "ElvenTools", diff --git a/output/elven-nft-minter.wasm b/output/elven-nft-minter.wasm index 07d2f7d..d6623ce 100755 Binary files a/output/elven-nft-minter.wasm and b/output/elven-nft-minter.wasm differ diff --git a/src/lib.rs b/src/lib.rs index 138c1e5..a19d123 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,5 @@ #![no_std] -use core::convert::TryInto; - const NFT_AMOUNT: u32 = 1; const ROYALTIES_MAX: u32 = 10_000; // This is the most popular gateway, but it doesn't matter the most important is IPFS CID @@ -104,6 +102,7 @@ pub trait ElvenTools { can_freeze: false, can_wipe: false, can_pause: false, + can_transfer_create_role: false, can_change_owner: false, can_upgrade: false, can_add_special_roles: true, @@ -480,7 +479,7 @@ pub trait ElvenTools { let uid = self.tokens_left_to_mint(); let uid_len = uid.len(); - let mut rand_source = RandomnessSource::::new(); + let mut rand_source = RandomnessSource::new(); let index = rand_source.next_usize_in_range(1, uid_len + 1); diff --git a/wasm/Cargo.lock b/wasm/Cargo.lock index 8ba4e38..402e348 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", @@ -116,14 +115,14 @@ dependencies = [ [[package]] name = "elven-nft-minter" -version = "1.10.0" +version = "1.11.0" dependencies = [ "elrond-wasm", ] [[package]] name = "elven-nft-minter-wasm" -version = "1.10.0" +version = "1.11.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.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" -[[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.36" diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index 3fccda8..843e674 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "elven-nft-minter-wasm" -version = "1.10.0" +version = "1.11.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 2816d4b..c34b691 100644 --- a/wasm/src/lib.rs +++ b/wasm/src/lib.rs @@ -1,48 +1,55 @@ +// Code generated by the elrond-wasm multi-contract system. DO NOT EDIT. + //////////////////////////////////////////////////// ////////////////// AUTO-GENERATED ////////////////// //////////////////////////////////////////////////// +// Init: 1 +// Endpoints: 36 +// Async Callback: 1 +// Total number of exported functions: 38 + #![no_std] elrond_wasm_node::wasm_endpoints! { elven_nft_minter ( - callBack + issueToken + setLocalRoles + pauseMinting + startMinting + setDrop + unsetDrop + setNewPrice changeBaseCids + setNewTokensLimitPerAddress + giveaway claimScFunds - clearAllowlist - disableAllowlist enableAllowlist - getAllowlistAddressCheck - getAllowlistSize - getCollectionTokenName + disableAllowlist + populateAllowlist + clearAllowlist + removeAllowlistAddress + mint + shuffle getDropTokensLeft + getTotalTokensLeft getMintedPerAddressPerDrop - getMintedPerAddressTotal - getNftPrice + getAllowlistAddressCheck + getAllowlistSize getNftTokenId + getCollectionTokenName getNftTokenName + getNftPrice getProvenanceHash - getTokensLimitPerAddressPerDrop getTokensLimitPerAddressTotal - getTotalSupply - getTotalSupplyOfCurrentDrop - getTotalTokensLeft - giveaway + getMintedPerAddressTotal + getTokensLimitPerAddressPerDrop isAllowlistEnabled isDropActive + getTotalSupply isMintingPaused - issueToken - mint - pauseMinting - populateAllowlist - removeAllowlistAddress - setDrop - setLocalRoles - setNewPrice - setNewTokensLimitPerAddress - shuffle - startMinting - unsetDrop + getTotalSupplyOfCurrentDrop + callBack ) }