Documentation ¶
Index ¶
- Variables
- type Token
- type TokenApproval
- type TokenApprovalIterator
- type TokenCaller
- func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type TokenCallerRaw
- type TokenCallerSession
- func (_Token *TokenCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) Decimals() (uint8, error)
- func (_Token *TokenCallerSession) Name() (string, error)
- func (_Token *TokenCallerSession) Symbol() (string, error)
- func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)
- type TokenDeposit
- type TokenDepositIterator
- type TokenFilterer
- func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*TokenApprovalIterator, error)
- func (_Token *TokenFilterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*TokenDepositIterator, error)
- func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*TokenTransferIterator, error)
- func (_Token *TokenFilterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*TokenWithdrawalIterator, error)
- func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)
- func (_Token *TokenFilterer) ParseDeposit(log types.Log) (*TokenDeposit, error)
- func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)
- func (_Token *TokenFilterer) ParseWithdrawal(log types.Log) (*TokenWithdrawal, error)
- func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, src []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *TokenDeposit, dst []common.Address) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, src []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *TokenWithdrawal, src []common.Address) (event.Subscription, error)
- type TokenRaw
- func (_Token *TokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenSession
- func (_Token *TokenSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Token *TokenSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Token *TokenSession) Decimals() (uint8, error)
- func (_Token *TokenSession) Deposit() (*types.Transaction, error)
- func (_Token *TokenSession) Name() (string, error)
- func (_Token *TokenSession) Receive() (*types.Transaction, error)
- func (_Token *TokenSession) Symbol() (string, error)
- func (_Token *TokenSession) TotalSupply() (*big.Int, error)
- func (_Token *TokenSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) Withdraw(wad *big.Int) (*types.Transaction, error)
- type TokenTransactor
- func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)
- type TokenTransactorRaw
- type TokenTransactorSession
- func (_Token *TokenTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Deposit() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Receive() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error)
- type TokenTransfer
- type TokenTransferIterator
- type TokenWithdrawal
- type TokenWithdrawalIterator
Constants ¶
This section is empty.
Variables ¶
var TokenABI = TokenMetaData.ABI
TokenABI is the input ABI used to generate the binding from. Deprecated: Use TokenMetaData.ABI instead.
var TokenMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
TokenMetaData contains all meta data concerning the Token contract.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { TokenCaller // Read-only binding to the contract TokenTransactor // Write-only binding to the contract TokenFilterer // Log filterer for contract events }
Token is an auto generated Go binding around an Ethereum contract.
type TokenApproval ¶
type TokenApproval struct { Src common.Address Guy common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenApproval represents a Approval event raised by the Token contract.
type TokenApprovalIterator ¶
type TokenApprovalIterator struct { Event *TokenApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.
func (*TokenApprovalIterator) Close ¶
func (it *TokenApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenApprovalIterator) Error ¶
func (it *TokenApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenApprovalIterator) Next ¶
func (it *TokenApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type TokenCaller ¶
type TokenCaller struct {
// contains filtered or unexported fields
}
TokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenCaller ¶
func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)
NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.
func (*TokenCaller) Allowance ¶
func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*TokenCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*TokenCaller) Decimals ¶
func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*TokenCaller) Name ¶
func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenCaller) Symbol ¶
func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*TokenCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type TokenCallerRaw ¶
type TokenCallerRaw struct {
Contract *TokenCaller // Generic read-only contract binding to access the raw methods on
}
TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenCallerRaw) Call ¶
func (_Token *TokenCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type TokenCallerSession ¶
type TokenCallerSession struct { Contract *TokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokenCallerSession) Allowance ¶
func (_Token *TokenCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*TokenCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*TokenCallerSession) Decimals ¶
func (_Token *TokenCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*TokenCallerSession) Name ¶
func (_Token *TokenCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenCallerSession) Symbol ¶
func (_Token *TokenCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*TokenCallerSession) TotalSupply ¶
func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type TokenDeposit ¶
type TokenDeposit struct { Dst common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenDeposit represents a Deposit event raised by the Token contract.
type TokenDepositIterator ¶
type TokenDepositIterator struct { Event *TokenDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Token contract.
func (*TokenDepositIterator) Close ¶
func (it *TokenDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenDepositIterator) Error ¶
func (it *TokenDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenDepositIterator) Next ¶
func (it *TokenDepositIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type TokenFilterer ¶
type TokenFilterer struct {
// contains filtered or unexported fields
}
TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenFilterer ¶
func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)
NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.
func (*TokenFilterer) FilterApproval ¶
func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*TokenApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*TokenFilterer) FilterDeposit ¶
func (_Token *TokenFilterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*TokenDepositIterator, error)
FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*TokenFilterer) FilterTransfer ¶
func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*TokenTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*TokenFilterer) FilterWithdrawal ¶
func (_Token *TokenFilterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*TokenWithdrawalIterator, error)
FilterWithdrawal is a free log retrieval operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
func (*TokenFilterer) ParseApproval ¶
func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*TokenFilterer) ParseDeposit ¶
func (_Token *TokenFilterer) ParseDeposit(log types.Log) (*TokenDeposit, error)
ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*TokenFilterer) ParseTransfer ¶
func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*TokenFilterer) ParseWithdrawal ¶
func (_Token *TokenFilterer) ParseWithdrawal(log types.Log) (*TokenWithdrawal, error)
ParseWithdrawal is a log parse operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
func (*TokenFilterer) WatchApproval ¶
func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, src []common.Address, guy []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*TokenFilterer) WatchDeposit ¶
func (_Token *TokenFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *TokenDeposit, dst []common.Address) (event.Subscription, error)
WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*TokenFilterer) WatchTransfer ¶
func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, src []common.Address, dst []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*TokenFilterer) WatchWithdrawal ¶
func (_Token *TokenFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *TokenWithdrawal, src []common.Address) (event.Subscription, error)
WatchWithdrawal is a free log subscription operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
type TokenRaw ¶
type TokenRaw struct {
Contract *Token // Generic contract binding to access the raw methods on
}
TokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenRaw) Call ¶
func (_Token *TokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*TokenRaw) Transact ¶
func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenRaw) Transfer ¶
func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type TokenSession ¶
type TokenSession struct { Contract *Token // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*TokenSession) Approve ¶
func (_Token *TokenSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*TokenSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*TokenSession) Decimals ¶
func (_Token *TokenSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*TokenSession) Deposit ¶
func (_Token *TokenSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*TokenSession) Name ¶
func (_Token *TokenSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenSession) Receive ¶
func (_Token *TokenSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*TokenSession) Symbol ¶
func (_Token *TokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*TokenSession) TotalSupply ¶
func (_Token *TokenSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*TokenSession) Transfer ¶
func (_Token *TokenSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*TokenSession) TransferFrom ¶
func (_Token *TokenSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*TokenSession) Withdraw ¶
func (_Token *TokenSession) Withdraw(wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type TokenTransactor ¶
type TokenTransactor struct {
// contains filtered or unexported fields
}
TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenTransactor ¶
func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)
NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.
func (*TokenTransactor) Approve ¶
func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*TokenTransactor) Deposit ¶
func (_Token *TokenTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*TokenTransactor) Receive ¶
func (_Token *TokenTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*TokenTransactor) Transfer ¶
func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*TokenTransactor) TransferFrom ¶
func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*TokenTransactor) Withdraw ¶
func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type TokenTransactorRaw ¶
type TokenTransactorRaw struct {
Contract *TokenTransactor // Generic write-only contract binding to access the raw methods on
}
TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenTransactorRaw) Transact ¶
func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenTransactorRaw) Transfer ¶
func (_Token *TokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type TokenTransactorSession ¶
type TokenTransactorSession struct { Contract *TokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenTransactorSession) Approve ¶
func (_Token *TokenTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*TokenTransactorSession) Deposit ¶
func (_Token *TokenTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*TokenTransactorSession) Receive ¶
func (_Token *TokenTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*TokenTransactorSession) Transfer ¶
func (_Token *TokenTransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*TokenTransactorSession) TransferFrom ¶
func (_Token *TokenTransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*TokenTransactorSession) Withdraw ¶
func (_Token *TokenTransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type TokenTransfer ¶
type TokenTransfer struct { Src common.Address Dst common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenTransfer represents a Transfer event raised by the Token contract.
type TokenTransferIterator ¶
type TokenTransferIterator struct { Event *TokenTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.
func (*TokenTransferIterator) Close ¶
func (it *TokenTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenTransferIterator) Error ¶
func (it *TokenTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenTransferIterator) Next ¶
func (it *TokenTransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type TokenWithdrawal ¶
type TokenWithdrawal struct { Src common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenWithdrawal represents a Withdrawal event raised by the Token contract.
type TokenWithdrawalIterator ¶
type TokenWithdrawalIterator struct { Event *TokenWithdrawal // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the Token contract.
func (*TokenWithdrawalIterator) Close ¶
func (it *TokenWithdrawalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWithdrawalIterator) Error ¶
func (it *TokenWithdrawalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWithdrawalIterator) Next ¶
func (it *TokenWithdrawalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.