Documentation ¶
Index ¶
- type Token
- func (t *Token) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (t *Token) Approve(spender common.Address, amount *big.Int) (*eth.Transaction, error)
- func (t *Token) ApproveFrom(w *types.Wallet, spender common.Address, amount *big.Int) (*eth.Transaction, error)
- func (t *Token) BalanceOf(owner common.Address) (*big.Int, error)
- func (t *Token) GetCustomTxSendOptions(w *types.Wallet) *bind.TransactOpts
- func (t *Token) GetTxCallOptions() *bind.CallOpts
- func (t *Token) GetTxSendOptions() (*bind.TransactOpts, error)
- func (t *Token) ListenToTransferEvents() (chan *contractsinterfaces.TokenTransfer, error)
- func (t *Token) PrintTransferEvents() error
- func (t *Token) SetTxSender(w *types.Wallet)
- func (t *Token) TotalSupply() (*big.Int, error)
- func (t *Token) Transfer(receiver common.Address, amount *big.Int) (*eth.Transaction, error)
- func (t *Token) TransferFrom(sender, receiver common.Address, amount *big.Int) (*eth.Transaction, error)
- func (t *Token) TransferFromCustomWallet(w *types.Wallet, receiver common.Address, amount *big.Int) (*eth.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { WalletService interfaces.WalletService TxService interfaces.TxService Interface *contractsinterfaces.Token }
func NewToken ¶
func NewToken( w interfaces.WalletService, tx interfaces.TxService, contractAddress common.Address, backend bind.ContractBackend, ) (*Token, error)
func (*Token) ApproveFrom ¶
func (*Token) GetCustomTxSendOptions ¶
func (t *Token) GetCustomTxSendOptions(w *types.Wallet) *bind.TransactOpts
func (*Token) GetTxCallOptions ¶
func (*Token) GetTxSendOptions ¶
func (t *Token) GetTxSendOptions() (*bind.TransactOpts, error)
func (*Token) ListenToTransferEvents ¶
func (t *Token) ListenToTransferEvents() (chan *contractsinterfaces.TokenTransfer, error)
func (*Token) PrintTransferEvents ¶
func (*Token) SetTxSender ¶
func (*Token) TransferFrom ¶
Click to show internal directories.
Click to hide internal directories.