Skip to main content
Version: v1.4

ISC

ISC

This library contains various interfaces and functions related to the IOTA Smart Contracts (ISC) system. It provides access to the ISCSandbox, ISCAccounts, ISCUtil, ERC20BaseTokens, ERC20NativeTokens, ERC721NFTs, and ERC721NFTCollection contracts.

sandbox

contract ISCSandbox sandbox

accounts

contract ISCAccounts accounts

util

contract ISCUtil util

baseTokens

contract ERC20BaseTokens baseTokens

nativeTokens

function nativeTokens(uint32 foundrySN) internal view returns (contract ERC20NativeTokens)

Get the ERC20NativeTokens contract for the given foundry serial number

Parameters

NameTypeDescription
foundrySNuint32The serial number of the foundry

Return Values

NameTypeDescription
[0]contract ERC20NativeTokensThe ERC20NativeTokens contract corresponding to the given foundry serial number

nfts

contract ERC721NFTs nfts

erc721NFTCollection

function erc721NFTCollection(NFTID collectionID) internal view returns (contract ERC721NFTCollection)

Get the ERC721NFTCollection contract for the given collection

Parameters

NameTypeDescription
collectionIDNFTIDThe ID of the NFT collection

Return Values

NameTypeDescription
[0]contract ERC721NFTCollectionThe ERC721NFTCollection contract corresponding to the given collection ID