NftPeg
Calls
reclaimBlockedNfts
Withdraw blocked tokens, must be called by the destination defined in BlockedTokens
Namespace
api.tx.nftPeg.reclaimBlockedNftsType
function reclaimBlockedNfts(
blocked_mint_id: u32,
destination: H160
)setContractAddress
Namespace
api.tx.nftPeg.setContractAddressType
function setContractAddress(
contract: H160
)withdraw
Namespace
api.tx.nftPeg.withdrawType
function withdraw(
collection_ids: Vec<u32>,
serial_numbers: Vec<Vec<u32>>,
destination: H160
)Storage
blockedTokens
Namespace
api.query.nftPeg.blockedTokensType
function blockedTokens(
u32
): Option<PalletNftPegBlockedTokenInfo>contractAddress
Namespace
api.query.nftPeg.contractAddressType
function contractAddress(
): H160ethToRootNft
Namespace
api.query.nftPeg.ethToRootNftType
function ethToRootNft(
H160
): Option<u32>nextBlockedMintId
The next available BlockedMintId
Namespace
api.query.nftPeg.nextBlockedMintIdType
function nextBlockedMintId(
): u32rootNftToErc721
Namespace
api.query.nftPeg.rootNftToErc721Type
function rootNftToErc721(
u32
): Option<H160>Events
ContractAddressSet
The NFT-peg contract address was set
Namespace
api.events.nftPeg.ContractAddressSetType
type ContractAddressSet = {
contract: H160
}ERC721Blocked
Bridged ERC721 tokens were unable to be minted due to collection limit being reached
Namespace
api.events.nftPeg.ERC721BlockedType
type ERC721Blocked = {
blocked_mint_id: u32,
destination_address: SeedPrimitivesSignatureAccountId20,
collection_id: u32,
serial_numbers: Vec<u32>
}Erc721Deposit
An ERC721 deposit was made
Namespace
api.events.nftPeg.Erc721DepositType
type Erc721Deposit = {
destination: SeedPrimitivesSignatureAccountId20
}Erc721Mint
Bridged ERC721 tokens were minted
Namespace
api.events.nftPeg.Erc721MintType
type Erc721Mint = {
collection_id: u32,
serial_numbers: Vec<u32>,
owner: SeedPrimitivesSignatureAccountId20
}Erc721Withdraw
An ERC721 withdraw was made
Namespace
api.events.nftPeg.Erc721WithdrawType
type Erc721Withdraw = {
origin: SeedPrimitivesSignatureAccountId20,
collection_ids: Vec<u32>,
serial_numbers: Vec<Vec<u32>>,
destination: H160
}Errors
ExceedsMaxAddresses
Send more addresses than are allowed
Namespace
api.errors.nftPeg.ExceedsMaxAddressesExceedsMaxTokens
Sent more tokens than are allowed
Namespace
api.errors.nftPeg.ExceedsMaxTokensExceedsMaxVecLength
The length of the given vec exceeds the maximal allowed length limit
Namespace
api.errors.nftPeg.ExceedsMaxVecLengthInvalidAbiEncoding
The abi data passed in could not be decoded
Namespace
api.errors.nftPeg.InvalidAbiEncodingInvalidAbiPrefix
The prefix uint in the abi encoded data was invalid
Namespace
api.errors.nftPeg.InvalidAbiPrefixNoBlockedTokensFound
No blocked tokens for the given id
Namespace
api.errors.nftPeg.NoBlockedTokensFoundNoCollectionFound
No collection info exists
Namespace
api.errors.nftPeg.NoCollectionFoundNoMappedTokenExists
No mapped token was stored for bridging the token back to the bridged chain
Namespace
api.errors.nftPeg.NoMappedTokenExistsNoPermissionToBridge
Tried to bridge a token that originates from Root, which is not yet supported
Namespace
api.errors.nftPeg.NoPermissionToBridgeNotBlockedTokenDestination
Blocked tokens can only be reclaimed by the destination address
Namespace
api.errors.nftPeg.NotBlockedTokenDestinationStateSyncDisabled
The state sync decoding feature is not implemented
Namespace
api.errors.nftPeg.StateSyncDisabledTokenListLengthMismatch
Multiple tokens were passed from contract, but amounts were unqeual per each array
Namespace
api.errors.nftPeg.TokenListLengthMismatchConstants
delayLength
Namespace
api.consts.nftPeg.delayLengthType
type delayLength = u32