Documentation ¶
Index ¶
- Constants
- type Token
- type TokenBurn
- type TokenBurnIterator
- 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 TokenContractWrapper
- func (_Token *TokenContractWrapper) BalanceOfByBlockNumber(opts *bind.CallOpts, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_Token *TokenContractWrapper) ParseTransferLogs(receipt *types.Receipt) (fromList []common.Address, toList []common.Address, valueList []*big.Int, ...)
- func (_Token *TokenContractWrapper) RawTransact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Token *TokenContractWrapper) RawTransfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenContractWrapper) UnpackTransfer(data []byte) (to common.Address, value *big.Int, err error)
- type TokenFilterer
- func (_Token *TokenFilterer) FilterBurn(opts *bind.FilterOpts, from []common.Address) (*TokenBurnIterator, error)
- func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, error)
- func (_Token *TokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *TokenBurn, from []common.Address) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, ...) (event.Subscription, error)
- type TokenRaw
- func (_Token *TokenRaw) Call(opts *bind.CallOpts, results *[]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 TokenRecipient
- type TokenRecipientCaller
- type TokenRecipientCallerRaw
- type TokenRecipientCallerSession
- type TokenRecipientFilterer
- type TokenRecipientRaw
- func (_TokenRecipient *TokenRecipientRaw) Call(opts *bind.CallOpts, results *[]interface{}, method string, ...) error
- func (_TokenRecipient *TokenRecipientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TokenRecipient *TokenRecipientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenRecipientSession
- type TokenRecipientTransactor
- type TokenRecipientTransactorRaw
- type TokenRecipientTransactorSession
- type TokenSession
- func (_Token *TokenSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Token *TokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
- func (_Token *TokenSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Token *TokenSession) Burn(_value *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) Decimals() (uint8, error)
- func (_Token *TokenSession) Name() (string, error)
- func (_Token *TokenSession) Symbol() (string, error)
- func (_Token *TokenSession) TotalSupply() (*big.Int, error)
- func (_Token *TokenSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type TokenTransactor
- func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _value *big.Int, ...) (*types.Transaction, error)
- func (_Token *TokenTransactor) Burn(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) BurnFrom(opts *bind.TransactOpts, _from common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type TokenTransactorRaw
- type TokenTransactorSession
- func (_Token *TokenTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Burn(_value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type TokenTransfer
- type TokenTransferIterator
Constants ¶
const TokenABI = "" /* 3474-byte string literal not displayed */
TokenABI is the input ABI used to generate the binding from.
const TokenBin = `` /* 5008-byte string literal not displayed */
TokenBin is the compiled bytecode used for deploying new contracts.
const TokenRecipientABI = "" /* 327-byte string literal not displayed */
TokenRecipientABI is the input ABI used to generate the binding from.
const TokenRecipientBin = `0x`
TokenRecipientBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
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.
func DeployToken ¶
func DeployToken(auth *bind.TransactOpts, backend bind.ContractBackend, initialSupply *big.Int, tokenName string, tokenSymbol string) (common.Address, *types.Transaction, *Token, error)
DeployToken deploys a new Ethereum contract, binding an instance of Token to it.
type TokenBurn ¶
type TokenBurn struct { From common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenBurn represents a Burn event raised by the Token contract.
type TokenBurnIterator ¶
type TokenBurnIterator struct { Event *TokenBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Token contract.
func (*TokenBurnIterator) Close ¶
func (it *TokenBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenBurnIterator) Error ¶
func (it *TokenBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenBurnIterator) Next ¶
func (it *TokenBurnIterator) 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) constant returns(uint256)
func (*TokenCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf( address) constant 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() constant 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() constant 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() constant returns(string)
func (*TokenCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant 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, results *[]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) constant returns(uint256)
func (*TokenCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf( address) constant 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() constant 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() constant 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() constant 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() constant returns(uint256)
type TokenContractWrapper ¶
type TokenContractWrapper struct {
// contains filtered or unexported fields
}
TokenContractWrapper for external wrapping
func NewTokenContractWrapper ¶
func NewTokenContractWrapper(address common.Address, backend bind.ContractBackend) (*TokenContractWrapper, error)
NewTokenContractWrapper creates TokenContract wrapper for reference
func (*TokenContractWrapper) BalanceOfByBlockNumber ¶
func (_Token *TokenContractWrapper) BalanceOfByBlockNumber(opts *bind.CallOpts, account common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceOfByBlockNumber with given block number
func (*TokenContractWrapper) ParseTransferLogs ¶
func (_Token *TokenContractWrapper) ParseTransferLogs(receipt *types.Receipt) ( fromList []common.Address, toList []common.Address, valueList []*big.Int, err error)
ParseTransferLogs parses log binding the contract event Transfer.
func (*TokenContractWrapper) RawTransact ¶
func (_Token *TokenContractWrapper) RawTransact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
RawTransact invokes the (paid) contract method with params as input values. from go-ethereum/accounts/abi/bind/solana.go modification: do not sign or send the transaction
func (*TokenContractWrapper) RawTransfer ¶
func (_Token *TokenContractWrapper) RawTransfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
RawTransfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
func (*TokenContractWrapper) UnpackTransfer ¶
func (_Token *TokenContractWrapper) UnpackTransfer(data []byte) (to common.Address, value *big.Int, err error)
UnpackTransfer unpack parameters binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
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) FilterBurn ¶
func (_Token *TokenFilterer) FilterBurn(opts *bind.FilterOpts, from []common.Address) (*TokenBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
Solidity: event Burn(from indexed address, value uint256)
func (*TokenFilterer) FilterTransfer ¶
func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(from indexed address, to indexed address, value uint256)
func (*TokenFilterer) WatchBurn ¶
func (_Token *TokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *TokenBurn, from []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
Solidity: event Burn(from indexed address, value uint256)
func (*TokenFilterer) WatchTransfer ¶
func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(from indexed address, to indexed address, value uint256)
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, results *[]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 TokenRecipient ¶
type TokenRecipient struct { TokenRecipientCaller // Read-only binding to the contract TokenRecipientTransactor // Write-only binding to the contract TokenRecipientFilterer // Log filterer for contract events }
TokenRecipient is an auto generated Go binding around an Ethereum contract.
func DeployTokenRecipient ¶
func DeployTokenRecipient(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TokenRecipient, error)
DeployTokenRecipient deploys a new Ethereum contract, binding an instance of TokenRecipient to it.
func NewTokenRecipient ¶
func NewTokenRecipient(address common.Address, backend bind.ContractBackend) (*TokenRecipient, error)
NewTokenRecipient creates a new instance of TokenRecipient, bound to a specific deployed contract.
type TokenRecipientCaller ¶
type TokenRecipientCaller struct {
// contains filtered or unexported fields
}
TokenRecipientCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenRecipientCaller ¶
func NewTokenRecipientCaller(address common.Address, caller bind.ContractCaller) (*TokenRecipientCaller, error)
NewTokenRecipientCaller creates a new read-only instance of TokenRecipient, bound to a specific deployed contract.
type TokenRecipientCallerRaw ¶
type TokenRecipientCallerRaw struct {
Contract *TokenRecipientCaller // Generic read-only contract binding to access the raw methods on
}
TokenRecipientCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenRecipientCallerRaw) Call ¶
func (_TokenRecipient *TokenRecipientCallerRaw) Call(opts *bind.CallOpts, results *[]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 TokenRecipientCallerSession ¶
type TokenRecipientCallerSession struct { Contract *TokenRecipientCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokenRecipientCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type TokenRecipientFilterer ¶
type TokenRecipientFilterer struct {
// contains filtered or unexported fields
}
TokenRecipientFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenRecipientFilterer ¶
func NewTokenRecipientFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenRecipientFilterer, error)
NewTokenRecipientFilterer creates a new log filterer instance of TokenRecipient, bound to a specific deployed contract.
type TokenRecipientRaw ¶
type TokenRecipientRaw struct {
Contract *TokenRecipient // Generic contract binding to access the raw methods on
}
TokenRecipientRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenRecipientRaw) Call ¶
func (_TokenRecipient *TokenRecipientRaw) Call(opts *bind.CallOpts, results *[]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 (*TokenRecipientRaw) Transact ¶
func (_TokenRecipient *TokenRecipientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenRecipientRaw) Transfer ¶
func (_TokenRecipient *TokenRecipientRaw) 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 TokenRecipientSession ¶
type TokenRecipientSession struct { Contract *TokenRecipient // 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 }
TokenRecipientSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenRecipientSession) ReceiveApproval ¶
func (_TokenRecipient *TokenRecipientSession) ReceiveApproval(_from common.Address, _value *big.Int, _token common.Address, _extraData []byte) (*types.Transaction, error)
ReceiveApproval is a paid mutator transaction binding the contract method 0x8f4ffcb1.
Solidity: function receiveApproval(_from address, _value uint256, _token address, _extraData bytes) returns()
type TokenRecipientTransactor ¶
type TokenRecipientTransactor struct {
// contains filtered or unexported fields
}
TokenRecipientTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenRecipientTransactor ¶
func NewTokenRecipientTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenRecipientTransactor, error)
NewTokenRecipientTransactor creates a new write-only instance of TokenRecipient, bound to a specific deployed contract.
func (*TokenRecipientTransactor) ReceiveApproval ¶
func (_TokenRecipient *TokenRecipientTransactor) ReceiveApproval(opts *bind.TransactOpts, _from common.Address, _value *big.Int, _token common.Address, _extraData []byte) (*types.Transaction, error)
ReceiveApproval is a paid mutator transaction binding the contract method 0x8f4ffcb1.
Solidity: function receiveApproval(_from address, _value uint256, _token address, _extraData bytes) returns()
type TokenRecipientTransactorRaw ¶
type TokenRecipientTransactorRaw struct {
Contract *TokenRecipientTransactor // Generic write-only contract binding to access the raw methods on
}
TokenRecipientTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenRecipientTransactorRaw) Transact ¶
func (_TokenRecipient *TokenRecipientTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenRecipientTransactorRaw) Transfer ¶
func (_TokenRecipient *TokenRecipientTransactorRaw) 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 TokenRecipientTransactorSession ¶
type TokenRecipientTransactorSession struct { Contract *TokenRecipientTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenRecipientTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenRecipientTransactorSession) ReceiveApproval ¶
func (_TokenRecipient *TokenRecipientTransactorSession) ReceiveApproval(_from common.Address, _value *big.Int, _token common.Address, _extraData []byte) (*types.Transaction, error)
ReceiveApproval is a paid mutator transaction binding the contract method 0x8f4ffcb1.
Solidity: function receiveApproval(_from address, _value uint256, _token address, _extraData bytes) returns()
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) constant returns(uint256)
func (*TokenSession) Approve ¶
func (_Token *TokenSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(_spender address, _value uint256) returns(success bool)
func (*TokenSession) ApproveAndCall ¶
func (_Token *TokenSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _value uint256, _extraData bytes) returns(success bool)
func (*TokenSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf( address) constant returns(uint256)
func (*TokenSession) Burn ¶
func (_Token *TokenSession) Burn(_value *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(_value uint256) returns(success bool)
func (*TokenSession) BurnFrom ¶
func (_Token *TokenSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.
Solidity: function burnFrom(_from address, _value uint256) returns(success bool)
func (*TokenSession) Decimals ¶
func (_Token *TokenSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint8)
func (*TokenSession) Name ¶
func (_Token *TokenSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(string)
func (*TokenSession) Symbol ¶
func (_Token *TokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant 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() constant returns(uint256)
func (*TokenSession) Transfer ¶
func (_Token *TokenSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
func (*TokenSession) TransferFrom ¶
func (_Token *TokenSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)
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, _spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(_spender address, _value uint256) returns(success bool)
func (*TokenTransactor) ApproveAndCall ¶
func (_Token *TokenTransactor) ApproveAndCall(opts *bind.TransactOpts, _spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _value uint256, _extraData bytes) returns(success bool)
func (*TokenTransactor) Burn ¶
func (_Token *TokenTransactor) Burn(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(_value uint256) returns(success bool)
func (*TokenTransactor) BurnFrom ¶
func (_Token *TokenTransactor) BurnFrom(opts *bind.TransactOpts, _from common.Address, _value *big.Int) (*types.Transaction, error)
BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.
Solidity: function burnFrom(_from address, _value uint256) returns(success bool)
func (*TokenTransactor) Transfer ¶
func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
func (*TokenTransactor) TransferFrom ¶
func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)
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(_spender common.Address, _value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(_spender address, _value uint256) returns(success bool)
func (*TokenTransactorSession) ApproveAndCall ¶
func (_Token *TokenTransactorSession) ApproveAndCall(_spender common.Address, _value *big.Int, _extraData []byte) (*types.Transaction, error)
ApproveAndCall is a paid mutator transaction binding the contract method 0xcae9ca51.
Solidity: function approveAndCall(_spender address, _value uint256, _extraData bytes) returns(success bool)
func (*TokenTransactorSession) Burn ¶
func (_Token *TokenTransactorSession) Burn(_value *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(_value uint256) returns(success bool)
func (*TokenTransactorSession) BurnFrom ¶
func (_Token *TokenTransactorSession) BurnFrom(_from common.Address, _value *big.Int) (*types.Transaction, error)
BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.
Solidity: function burnFrom(_from address, _value uint256) returns(success bool)
func (*TokenTransactorSession) Transfer ¶
func (_Token *TokenTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(_to address, _value uint256) returns()
func (*TokenTransactorSession) TransferFrom ¶
func (_Token *TokenTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)
type TokenTransfer ¶
type TokenTransfer struct { From common.Address To common.Address Value *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.