This is SBT contract and modifiy ERC1155.
Foundry consists of:
- Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
- Chisel: Fast, utilitarian, and verbose solidity REPL.
$ forge build
$ forge test
$ forge fmt
$ forge snapshot
$ anvil
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
$ cast <subcommand>
$ forge --help
$ anvil --help
$ cast --help
cast call 0x2EC5CfDE6F37029aa8cc018ED71CF4Ef67C704AE --rpc-url https://network.ambrosus-test.io "balanceOf(address,uint256)(uint256)" 0xBEbAF2a9ad714fEb9Dd151d81Dd6d61Ae0535646 0
cast call 0x2EC5CfDE6F37029aa8cc018ED71CF4Ef67C704AE --rpc-url https://network.ambrosus-test.io "balanceOf(address,uint256)(uint256)" 0xBEbAF2a9ad714fEb9Dd151d81Dd6d61Ae0535646 0x0
cast call 0x2EC5CfDE6F37029aa8cc018ED71CF4Ef67C704AE --rpc-url https://network.ambrosus-test.io "isApprovedForAll(address,address)(bool)" 0xBEbAF2a9ad714fEb9Dd151d81Dd6d61Ae0535646 0xBEbAF2a9ad714fEb9Dd151d81Dd6d61Ae0535646