erc1155

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 (c *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(inputs *model.MethodReadBalanceOf) (uint64, error)

func (*Contract) ReadBalanceOfBatch

func (c *Contract) ReadBalanceOfBatch(inputs *model.MethodReadBalanceOfBatchInputs) (*[]uint64, error)

func (*Contract) ReadIsApprovedForAll

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

func (*Contract) ReadSupportsInterface

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

func (*Contract) ReadUri

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

func (*Contract) ReleaseResource

func (c *Contract) ReleaseResource()

func (*Contract) WriteSafeBatchTransferFrom

func (c *Contract) WriteSafeBatchTransferFrom(txNonce uint64, inputs *model.MethodWriteSafeBatchTransferFromInputs) (string, error)

func (*Contract) WriteSafeTransferFrom

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

func (*Contract) WriteSetApprovalForAll

func (c *Contract) WriteSetApprovalForAll(senderAddress string, txNonce uint64, inputs *model.MethodWriteSetApprovalForAllInputs) (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