Documentation ¶
Index ¶
- type Contract
- func (c *Contract) AddEvents(events []model.ContractEvent) error
- func (c *Contract) AddTransactors(privateKeys []string) error
- func (_Contract *Contract) FilterEvents(startBlockNum uint64, stopBlockNum *uint64) ([]*chainModel.EthereumEventMessage, error)
- func (c *Contract) GetCallerClient() *ethclient.Client
- func (c *Contract) ReadBalanceOf(owner string) (uint64, error)
- func (c *Contract) ReadGetApproved(tokenId string) (string, error)
- func (c *Contract) ReadIsApprovedForAll(inputs *model.MethodReadIsApprovedForAllInputs) (bool, error)
- func (c *Contract) ReadName() (string, error)
- func (c *Contract) ReadOwnerOf(tokenId string) (string, error)
- func (c *Contract) ReadSupportsInterface(interfaceId string) (bool, error)
- func (c *Contract) ReadSymbol() (string, error)
- func (c *Contract) ReadTokenByIndex(id string) (uint64, error)
- func (c *Contract) ReadTokenOfOwnerByIndex(inputs *model.MethodReadTokenOfOwnerByIndexInputs) (string, error)
- func (c *Contract) ReadTokenURI(id string) (string, error)
- func (c *Contract) ReadTotalSupply() (uint64, error)
- func (_Contract *Contract) ReleaseResource()
- func (_Contract *Contract) WriteApprove(senderAddress string, txNonce uint64, inputs *model.MethodWriteApproveInputs) (string, error)
- func (c *Contract) WriteSafeTransferFrom(txNonce uint64, inputs *model.MethodWriteSafeTransferFromInputs) (string, error)
- func (c *Contract) WriteSafeTransferFromWithoutData(txNonce uint64, inputs *model.MethodWriteSafeTransferFromWithoutDataInputs) (string, error)
- func (_Contract *Contract) WriteSetApprovalForAll(senderAddress string, txNonce uint64, ...) (string, error)
- func (_Contract *Contract) WriteTransferFrom(txNonce uint64, inputs *model.MethodWriteTransferFromInputs) (string, error)
- type ContractOpts
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) AddTransactors ¶
func (*Contract) FilterEvents ¶
func (_Contract *Contract) FilterEvents(startBlockNum uint64, stopBlockNum *uint64) ([]*chainModel.EthereumEventMessage, error)
func (*Contract) GetCallerClient ¶
func (*Contract) ReadGetApproved ¶
func (*Contract) ReadIsApprovedForAll ¶
func (c *Contract) ReadIsApprovedForAll(inputs *model.MethodReadIsApprovedForAllInputs) (bool, error)
func (*Contract) ReadSupportsInterface ¶
func (*Contract) ReadSymbol ¶
func (*Contract) ReadTokenOfOwnerByIndex ¶
func (c *Contract) ReadTokenOfOwnerByIndex(inputs *model.MethodReadTokenOfOwnerByIndexInputs) (string, error)
func (*Contract) ReadTotalSupply ¶
func (*Contract) ReleaseResource ¶
func (_Contract *Contract) ReleaseResource()
func (*Contract) WriteApprove ¶
func (*Contract) WriteSafeTransferFrom ¶
func (*Contract) WriteSafeTransferFromWithoutData ¶
func (*Contract) WriteSetApprovalForAll ¶
func (*Contract) WriteTransferFrom ¶
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) }
Click to show internal directories.
Click to hide internal directories.