erc721

package
v0.0.0-...-9bbcd85 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

func NewContract

func NewContract(ops *ContractOpts) (*Contract, error)

func (*Contract) AddEvents

func (c *Contract) AddEvents(events []model.ContractEvent) error

func (*Contract) AddTransactors

func (c *Contract) AddTransactors(privateKeys []string) error

func (*Contract) FilterEvents

func (_Contract *Contract) FilterEvents(startBlockNum uint64, stopBlockNum *uint64) ([]*chainModel.EthereumEventMessage, error)

func (*Contract) GetCallerClient

func (c *Contract) GetCallerClient() *ethclient.Client

func (*Contract) ReadBalanceOf

func (c *Contract) ReadBalanceOf(owner string) (uint64, error)

func (*Contract) ReadGetApproved

func (c *Contract) ReadGetApproved(tokenId string) (string, error)

func (*Contract) ReadIsApprovedForAll

func (c *Contract) ReadIsApprovedForAll(inputs *model.MethodReadIsApprovedForAllInputs) (bool, error)

func (*Contract) ReadName

func (c *Contract) ReadName() (string, error)

func (*Contract) ReadOwnerOf

func (c *Contract) ReadOwnerOf(tokenId string) (string, error)

func (*Contract) ReadSupportsInterface

func (c *Contract) ReadSupportsInterface(interfaceId string) (bool, error)

func (*Contract) ReadSymbol

func (c *Contract) ReadSymbol() (string, error)

func (*Contract) ReadTokenByIndex

func (c *Contract) ReadTokenByIndex(id string) (uint64, error)

func (*Contract) ReadTokenOfOwnerByIndex

func (c *Contract) ReadTokenOfOwnerByIndex(inputs *model.MethodReadTokenOfOwnerByIndexInputs) (string, error)

func (*Contract) ReadTokenURI

func (c *Contract) ReadTokenURI(id string) (string, error)

func (*Contract) ReadTotalSupply

func (c *Contract) ReadTotalSupply() (uint64, error)

func (*Contract) ReleaseResource

func (_Contract *Contract) ReleaseResource()

func (*Contract) WriteApprove

func (_Contract *Contract) WriteApprove(senderAddress string, txNonce uint64, inputs *model.MethodWriteApproveInputs) (string, error)

func (*Contract) WriteSafeTransferFrom

func (c *Contract) WriteSafeTransferFrom(txNonce uint64, inputs *model.MethodWriteSafeTransferFromInputs) (string, error)

func (*Contract) WriteSafeTransferFromWithoutData

func (c *Contract) WriteSafeTransferFromWithoutData(txNonce uint64, inputs *model.MethodWriteSafeTransferFromWithoutDataInputs) (string, error)

func (*Contract) WriteSetApprovalForAll

func (_Contract *Contract) WriteSetApprovalForAll(senderAddress string, txNonce uint64, inputs *model.MethodWriteSetApprovalForAllInputs) (string, error)

func (*Contract) WriteTransferFrom

func (_Contract *Contract) WriteTransferFrom(txNonce uint64, inputs *model.MethodWriteTransferFromInputs) (string, error)

type ContractOpts

type ContractOpts struct {
	Rpc                string // rpc
	ContractAddr       string // contract address
	EnableTransactors  bool   // enable transactors
	EnableFilter       bool   // enable filter
	FilterStep         uint64 // the step size of the block interval obtained each time
	FilterFuzzyAddress bool   // fuzzy bind contract address(listen for the full number of matching topic events)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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