Documentation ¶
Index ¶
- type Contract
- func (c *Contract) AddEvents(events []model.ContractEvent) error
- func (c *Contract) AddTransactors(privateKeys []string) error
- func (c *Contract) FilterEvents(startBlockNum uint64, stopBlockNum *uint64) ([]*chainModel.EthereumEventMessage, error)
- func (c *Contract) GetCallerClient() *ethclient.Client
- func (c *Contract) ReadBalanceOf(inputs *model.MethodReadBalanceOf) (uint64, error)
- func (c *Contract) ReadBalanceOfBatch(inputs *model.MethodReadBalanceOfBatchInputs) (*[]uint64, error)
- func (c *Contract) ReadIsApprovedForAll(inputs *model.MethodReadIsApprovedForAllInputs) (bool, error)
- func (c *Contract) ReadSupportsInterface(interfaceId string) (bool, error)
- func (c *Contract) ReadUri(id string) (string, error)
- func (c *Contract) ReleaseResource()
- func (c *Contract) WriteSafeBatchTransferFrom(txNonce uint64, inputs *model.MethodWriteSafeBatchTransferFromInputs) (string, error)
- func (c *Contract) WriteSafeTransferFrom(txNonce uint64, inputs *model.MethodWriteSafeTransferFromInputs) (string, error)
- func (c *Contract) WriteSetApprovalForAll(senderAddress string, txNonce uint64, ...) (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 (c *Contract) FilterEvents(startBlockNum uint64, stopBlockNum *uint64) ([]*chainModel.EthereumEventMessage, error)
func (*Contract) GetCallerClient ¶
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 (*Contract) ReleaseResource ¶
func (c *Contract) ReleaseResource()
func (*Contract) WriteSafeBatchTransferFrom ¶
func (*Contract) WriteSafeTransferFrom ¶
func (*Contract) WriteSetApprovalForAll ¶
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.