erc721

package
v0.0.0-...-0ff5682 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 6 Imported by: 0

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

func AbiEncodeString(value string) (string, error)

Types

type CallData

type CallData []byte

calldata represents the data for an ERC721 function call.

func NewCallData

func NewCallData(s string) (CallData, error)

NewCalldata creates a new calldata instance from a hexadecimal string.

func (CallData) GetCallData

func (b CallData) GetCallData() string

func (CallData) GetParam

func (b CallData) GetParam(param string) (interface{}, error)

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL