Documentation
¶
Index ¶
Constants ¶
View Source
const ( ShortAddressLength = 4 CallDataLength = 32 // call data must have a length of a multiple of 32 bytes )
Variables ¶
This section is empty.
Functions ¶
func AbiEncodeString ¶
Types ¶
type CallData ¶
type CallData []byte
calldata represents the data for an ERC721 function call.
func NewCallData ¶
NewCalldata creates a new calldata instance from a hexadecimal string.
func (CallData) GetCallData ¶
func (CallData) GetParam ¶
GetParam returns the value of a specific parameter in the input arguments of the calldata.
func (CallData) UniversalMintingMethod ¶
func (b CallData) UniversalMintingMethod() (Erc721method, bool, error)
Method returns if the calldata is a supported remote minting ERC721 method and the method.
type Erc721method ¶
type Erc721method int
erc721method represents the supported ERC721 methods.
const ( NotSupported Erc721method = iota OwnerOf BalanceOf TotalSupply TokenOfOwnerByIndex TokenByIndex SupportsInterface TokenURI )
Click to show internal directories.
Click to hide internal directories.