The SFT minter will be a complementary tool of the new NFT minter but will also be used as an independent tool in many other use cases. Because there is no actual ETA for the new NFT minter, the SFT minter will have basic functionality at first and will be developed in time. But please add your requirements. Use the GitHub issues for that.
- issue collection
- configure and manage a collection
- limit per one address
- mint, create, buy and send SFTs (payment with EGLD)
- claim funds from smart contract
The simplest way would be with Elven Tools CLI. You can find all the guidance here: SFT Workflow jump start. Check out short walkthrough video: youtu.be/rMF3ItijHUA.
You could also use mxpy tool.
Also check the interaction snippets included in the repository. Remember to set the path to your PEM file. You can do this in devnet.snippets.sh
file.
In the latest version of VSCode MultiversX IDE extension, there is no more an option to run snippets, but you can do this by hand in the terminal (in the project root run):
deploy:
. interactions/devnet.snippets.sh && deploy
issueToken:
. interactions/devnet.snippets.sh && issueToken
setLocalRoles:
. interactions/devnet.snippets.sh && setLocalRoles
createToken:
. interactions/devnet.snippets.sh && createToken
buy:
. interactions/devnet.snippets.sh && buy
The code is open source, and there is an ABI file.
You will find tests in tests/elven_tools_sft_minter_sc_rust_test.rs. To run a test, you can click on the Run Test button from under the test name in VS Code or you can run it with
cargo test --test elven_tools_sft_minter_sc_rust_test
(Tests need some more love)