Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
elven-tools
Advanced tools
Interacting with custom NFT related Smart Contracts on the Elrond blockchain
It is a very early version of elven-tools, a CLI especially designed to be useful when interacting with custom NFT related Smart Contracts on the Elrond blockchain. For now it is designed to deploy this contract: elven-nft-minter-sc.
It will change over time because Smart Contract will also change. So be aware of that.
The elven-tools CLI will simplify a couple of operations:
The smart contract on which it operates is in a very early stage. It isn't suited for proper NFT launches. But this will change, and then elven-tools CLI will get more functionality. For now, you can deploy and prepare this simple, smart contract. Then you can use tools like nft-art-maker and elven-mint to play around. Watch the repo to be up to date. What connects all three libraries is that they are prepared to use the smart contract linked above.
The plan is to have the tool which will simplify the NFT launches. It should be usable for people with very little technical knowledge and who want to do everything in their local environment. The tool searches for the smart contract in the GitHub repository, but the code is open-source, so everyone can fork the smart contract and alter its code if needed, then the elven-tools cli can deploy it from the local file system.
The tool will allow passing base CID and all required data when deploying the contract. Then there will be an option to use it for interaction with the smart contract.
Smart contract itself will get a lot more improvements like mint when buying, so lazy mint without minting all at once. Shuffling on contract to avoid sniping the rarest nfts. There are a couple of useful functions like start, stop selling, time boxes for it, etc. Let me know your ideas, and if you can help with that, it would be awesome.
npm install elven-tools -g
or yarn add elven-tools -g
elven-tools <command>
elven tools derive-pem
- derives the PEM file from your mnemonic (seed phrase)elven-tools deploy nft-minter
- deploys the nft minter contract - uses a config file, PEM file, and WASM file with sc code (or it will download the wasm from the repo)elven-tools nft-minter issue-collection-token
- issues the ESDT token for your NFT collectionelven-tools nft-minter set-roles
- adds required roles - uses config file and PEM fileThe config is optional. Because there are predefined values already, they will change after changes in the linked above smart contract.
Below is the config structure with example values which are the defaults.
{
"chain": "devnet",
"nftMinterSc": {
"version": "main",
"deployNftMinterSC": "",
"deployGasLimit": 80000000,
"issueCollectionTokenGasLimit": 60000000,
"issueCollectionTokenValue": 0.05,
"assignRolesGasLimit": 60000000,
"issueTokenFnName": "issueToken",
"setLocalRolesFnName": "setLocalRoles",
"getNftTokenIdFnName": "getNftTokenId"
}
}
You can use the config file in the same place where you will run the elven-tools
. Create .elventoolsrc
file and paste the contents with the structure from above.
See the config.ts
file for more info.
npm run dev:prettier
npm run dev:lint
Please post an issue if you'll find any bugs.
FAQs
Interacting with custom NFT/SFT-related smart contracts on the MultiversX blockchain
The npm package elven-tools receives a total of 16 weekly downloads. As such, elven-tools popularity was classified as not popular.
We found that elven-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.