Documentation ¶
Index ¶
- Variables
- type Token
- type TokenApproval
- type TokenApprovalIterator
- type TokenBridgeAddressChanged
- type TokenBridgeAddressChangedIterator
- type TokenBurn
- type TokenBurnIterator
- type TokenCaller
- func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_Token *TokenCaller) BRIDGE(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_Token *TokenCaller) Bridge(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
- func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Token *TokenCaller) Eip712Domain(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_Token *TokenCaller) REMOTETOKEN(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) RemoteToken(opts *bind.CallOpts) (common.Address, error)
- func (_Token *TokenCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, 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(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) BRIDGE() (common.Address, error)
- func (_Token *TokenCallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) Bridge() (common.Address, error)
- func (_Token *TokenCallerSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_Token *TokenCallerSession) Decimals() (uint8, error)
- func (_Token *TokenCallerSession) Eip712Domain() (struct{ ... }, error)
- func (_Token *TokenCallerSession) Name() (string, error)
- func (_Token *TokenCallerSession) Nonces(owner common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) REMOTETOKEN() (common.Address, error)
- func (_Token *TokenCallerSession) RemoteToken() (common.Address, error)
- func (_Token *TokenCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Token *TokenCallerSession) Symbol() (string, error)
- func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)
- type TokenEIP712DomainChanged
- type TokenEIP712DomainChangedIterator
- type TokenFilterer
- func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, error)
- func (_Token *TokenFilterer) FilterBridgeAddressChanged(opts *bind.FilterOpts, oldBridgeAddr []common.Address, ...) (*TokenBridgeAddressChangedIterator, error)
- func (_Token *TokenFilterer) FilterBurn(opts *bind.FilterOpts, account []common.Address) (*TokenBurnIterator, error)
- func (_Token *TokenFilterer) FilterEIP712DomainChanged(opts *bind.FilterOpts) (*TokenEIP712DomainChangedIterator, error)
- func (_Token *TokenFilterer) FilterMint(opts *bind.FilterOpts, account []common.Address) (*TokenMintIterator, error)
- func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, error)
- func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)
- func (_Token *TokenFilterer) ParseBridgeAddressChanged(log types.Log) (*TokenBridgeAddressChanged, error)
- func (_Token *TokenFilterer) ParseBurn(log types.Log) (*TokenBurn, error)
- func (_Token *TokenFilterer) ParseEIP712DomainChanged(log types.Log) (*TokenEIP712DomainChanged, error)
- func (_Token *TokenFilterer) ParseMint(log types.Log) (*TokenMint, error)
- func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)
- func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchBridgeAddressChanged(opts *bind.WatchOpts, sink chan<- *TokenBridgeAddressChanged, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *TokenBurn, account []common.Address) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchEIP712DomainChanged(opts *bind.WatchOpts, sink chan<- *TokenEIP712DomainChanged) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *TokenMint, account []common.Address) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, ...) (event.Subscription, error)
- type TokenMint
- type TokenMintIterator
- 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(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Token *TokenSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) BRIDGE() (common.Address, error)
- func (_Token *TokenSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_Token *TokenSession) Bridge() (common.Address, error)
- func (_Token *TokenSession) Burn(from common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_Token *TokenSession) Decimals() (uint8, error)
- func (_Token *TokenSession) Eip712Domain() (struct{ ... }, error)
- func (_Token *TokenSession) Initialize(bridgeAddr common.Address) (*types.Transaction, error)
- func (_Token *TokenSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) Name() (string, error)
- func (_Token *TokenSession) Nonces(owner common.Address) (*big.Int, error)
- func (_Token *TokenSession) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Token *TokenSession) REMOTETOKEN() (common.Address, error)
- func (_Token *TokenSession) RemoteToken() (common.Address, error)
- func (_Token *TokenSession) SupportsInterface(interfaceId [4]byte) (bool, 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) Burn(opts *bind.TransactOpts, from common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Initialize(opts *bind.TransactOpts, bridgeAddr common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, ...) (*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) Burn(from common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Initialize(bridgeAddr common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Permit(owner common.Address, spender 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 ¶
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: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"remoteTokenAddr\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSpender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"ERC2612ExpiredSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC2612InvalidSigner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"currentNonce\",\"type\":\"uint256\"}],\"name\":\"InvalidAccountNonce\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidShortString\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"str\",\"type\":\"string\"}],\"name\":\"StringTooLong\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldBridgeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newBridgeAddr\",\"type\":\"address\"}],\"name\":\"BridgeAddressChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BRIDGE\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REMOTE_TOKEN\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"bridge\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"bridgeAddr\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"remoteToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"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\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
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 { Owner common.Address Spender common.Address Value *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 TokenBridgeAddressChanged ¶
type TokenBridgeAddressChanged struct { OldBridgeAddr common.Address NewBridgeAddr common.Address Raw types.Log // Blockchain specific contextual infos }
TokenBridgeAddressChanged represents a BridgeAddressChanged event raised by the Token contract.
type TokenBridgeAddressChangedIterator ¶
type TokenBridgeAddressChangedIterator struct { Event *TokenBridgeAddressChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenBridgeAddressChangedIterator is returned from FilterBridgeAddressChanged and is used to iterate over the raw logs and unpacked data for BridgeAddressChanged events raised by the Token contract.
func (*TokenBridgeAddressChangedIterator) Close ¶
func (it *TokenBridgeAddressChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenBridgeAddressChangedIterator) Error ¶
func (it *TokenBridgeAddressChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenBridgeAddressChangedIterator) Next ¶
func (it *TokenBridgeAddressChangedIterator) 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 TokenBurn ¶
type TokenBurn struct { Account common.Address Amount *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, owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*TokenCaller) BRIDGE ¶
BRIDGE is a free data retrieval call binding the contract method 0xee9a31a2.
Solidity: function BRIDGE() view returns(address)
func (*TokenCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*TokenCaller) Bridge ¶
Bridge is a free data retrieval call binding the contract method 0xe78cea92.
Solidity: function bridge() view returns(address)
func (*TokenCaller) DOMAINSEPARATOR ¶
func (_Token *TokenCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
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) Eip712Domain ¶
func (_Token *TokenCaller) Eip712Domain(opts *bind.CallOpts) (struct { Fields [1]byte Name string Version string ChainId *big.Int VerifyingContract common.Address Salt [32]byte Extensions []*big.Int }, error)
Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.
Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)
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) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address owner) view returns(uint256)
func (*TokenCaller) REMOTETOKEN ¶
REMOTETOKEN is a free data retrieval call binding the contract method 0x033964be.
Solidity: function REMOTE_TOKEN() view returns(address)
func (*TokenCaller) RemoteToken ¶
RemoteToken is a free data retrieval call binding the contract method 0xd6c0b2c4.
Solidity: function remoteToken() view returns(address)
func (*TokenCaller) SupportsInterface ¶
func (_Token *TokenCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)
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(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*TokenCallerSession) BRIDGE ¶
func (_Token *TokenCallerSession) BRIDGE() (common.Address, error)
BRIDGE is a free data retrieval call binding the contract method 0xee9a31a2.
Solidity: function BRIDGE() view returns(address)
func (*TokenCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*TokenCallerSession) Bridge ¶
func (_Token *TokenCallerSession) Bridge() (common.Address, error)
Bridge is a free data retrieval call binding the contract method 0xe78cea92.
Solidity: function bridge() view returns(address)
func (*TokenCallerSession) DOMAINSEPARATOR ¶
func (_Token *TokenCallerSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
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) Eip712Domain ¶
func (_Token *TokenCallerSession) Eip712Domain() (struct { Fields [1]byte Name string Version string ChainId *big.Int VerifyingContract common.Address Salt [32]byte Extensions []*big.Int }, error)
Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.
Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)
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) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address owner) view returns(uint256)
func (*TokenCallerSession) REMOTETOKEN ¶
func (_Token *TokenCallerSession) REMOTETOKEN() (common.Address, error)
REMOTETOKEN is a free data retrieval call binding the contract method 0x033964be.
Solidity: function REMOTE_TOKEN() view returns(address)
func (*TokenCallerSession) RemoteToken ¶
func (_Token *TokenCallerSession) RemoteToken() (common.Address, error)
RemoteToken is a free data retrieval call binding the contract method 0xd6c0b2c4.
Solidity: function remoteToken() view returns(address)
func (*TokenCallerSession) SupportsInterface ¶
func (_Token *TokenCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)
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 TokenEIP712DomainChanged ¶
TokenEIP712DomainChanged represents a EIP712DomainChanged event raised by the Token contract.
type TokenEIP712DomainChangedIterator ¶
type TokenEIP712DomainChangedIterator struct { Event *TokenEIP712DomainChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenEIP712DomainChangedIterator is returned from FilterEIP712DomainChanged and is used to iterate over the raw logs and unpacked data for EIP712DomainChanged events raised by the Token contract.
func (*TokenEIP712DomainChangedIterator) Close ¶
func (it *TokenEIP712DomainChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenEIP712DomainChangedIterator) Error ¶
func (it *TokenEIP712DomainChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenEIP712DomainChangedIterator) Next ¶
func (it *TokenEIP712DomainChangedIterator) 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, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*TokenFilterer) FilterBridgeAddressChanged ¶
func (_Token *TokenFilterer) FilterBridgeAddressChanged(opts *bind.FilterOpts, oldBridgeAddr []common.Address, newBridgeAddr []common.Address) (*TokenBridgeAddressChangedIterator, error)
FilterBridgeAddressChanged is a free log retrieval operation binding the contract event 0xecfc86cbcf0a44a77658de7fc62df1f08579e15cc8f872b51231ec8a19bc8507.
Solidity: event BridgeAddressChanged(address indexed oldBridgeAddr, address indexed newBridgeAddr)
func (*TokenFilterer) FilterBurn ¶
func (_Token *TokenFilterer) FilterBurn(opts *bind.FilterOpts, account []common.Address) (*TokenBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
Solidity: event Burn(address indexed account, uint256 amount)
func (*TokenFilterer) FilterEIP712DomainChanged ¶
func (_Token *TokenFilterer) FilterEIP712DomainChanged(opts *bind.FilterOpts) (*TokenEIP712DomainChangedIterator, error)
FilterEIP712DomainChanged is a free log retrieval operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.
Solidity: event EIP712DomainChanged()
func (*TokenFilterer) FilterMint ¶
func (_Token *TokenFilterer) FilterMint(opts *bind.FilterOpts, account []common.Address) (*TokenMintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.
Solidity: event Mint(address indexed account, uint256 amount)
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(address indexed from, address indexed to, uint256 value)
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 owner, address indexed spender, uint256 value)
func (*TokenFilterer) ParseBridgeAddressChanged ¶
func (_Token *TokenFilterer) ParseBridgeAddressChanged(log types.Log) (*TokenBridgeAddressChanged, error)
ParseBridgeAddressChanged is a log parse operation binding the contract event 0xecfc86cbcf0a44a77658de7fc62df1f08579e15cc8f872b51231ec8a19bc8507.
Solidity: event BridgeAddressChanged(address indexed oldBridgeAddr, address indexed newBridgeAddr)
func (*TokenFilterer) ParseBurn ¶
func (_Token *TokenFilterer) ParseBurn(log types.Log) (*TokenBurn, error)
ParseBurn is a log parse operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
Solidity: event Burn(address indexed account, uint256 amount)
func (*TokenFilterer) ParseEIP712DomainChanged ¶
func (_Token *TokenFilterer) ParseEIP712DomainChanged(log types.Log) (*TokenEIP712DomainChanged, error)
ParseEIP712DomainChanged is a log parse operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.
Solidity: event EIP712DomainChanged()
func (*TokenFilterer) ParseMint ¶
func (_Token *TokenFilterer) ParseMint(log types.Log) (*TokenMint, error)
ParseMint is a log parse operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.
Solidity: event Mint(address indexed account, uint256 amount)
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 from, address indexed to, uint256 value)
func (*TokenFilterer) WatchApproval ¶
func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*TokenFilterer) WatchBridgeAddressChanged ¶
func (_Token *TokenFilterer) WatchBridgeAddressChanged(opts *bind.WatchOpts, sink chan<- *TokenBridgeAddressChanged, oldBridgeAddr []common.Address, newBridgeAddr []common.Address) (event.Subscription, error)
WatchBridgeAddressChanged is a free log subscription operation binding the contract event 0xecfc86cbcf0a44a77658de7fc62df1f08579e15cc8f872b51231ec8a19bc8507.
Solidity: event BridgeAddressChanged(address indexed oldBridgeAddr, address indexed newBridgeAddr)
func (*TokenFilterer) WatchBurn ¶
func (_Token *TokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *TokenBurn, account []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5.
Solidity: event Burn(address indexed account, uint256 amount)
func (*TokenFilterer) WatchEIP712DomainChanged ¶
func (_Token *TokenFilterer) WatchEIP712DomainChanged(opts *bind.WatchOpts, sink chan<- *TokenEIP712DomainChanged) (event.Subscription, error)
WatchEIP712DomainChanged is a free log subscription operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.
Solidity: event EIP712DomainChanged()
func (*TokenFilterer) WatchMint ¶
func (_Token *TokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *TokenMint, account []common.Address) (event.Subscription, error)
WatchMint is a free log subscription operation binding the contract event 0x0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885.
Solidity: event Mint(address indexed account, uint256 amount)
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(address indexed from, address indexed to, uint256 value)
type TokenMint ¶
type TokenMint struct { Account common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenMint represents a Mint event raised by the Token contract.
type TokenMintIterator ¶
type TokenMintIterator struct { Event *TokenMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Token contract.
func (*TokenMintIterator) Close ¶
func (it *TokenMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenMintIterator) Error ¶
func (it *TokenMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenMintIterator) Next ¶
func (it *TokenMintIterator) 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 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 ¶
func (_Token *TokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view 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(address spender, uint256 value) returns(bool)
func (*TokenSession) BRIDGE ¶
func (_Token *TokenSession) BRIDGE() (common.Address, error)
BRIDGE is a free data retrieval call binding the contract method 0xee9a31a2.
Solidity: function BRIDGE() view returns(address)
func (*TokenSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*TokenSession) Bridge ¶
func (_Token *TokenSession) Bridge() (common.Address, error)
Bridge is a free data retrieval call binding the contract method 0xe78cea92.
Solidity: function bridge() view returns(address)
func (*TokenSession) Burn ¶
func (_Token *TokenSession) Burn(from common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address from, uint256 amount) returns()
func (*TokenSession) DOMAINSEPARATOR ¶
func (_Token *TokenSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
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) Eip712Domain ¶
func (_Token *TokenSession) Eip712Domain() (struct { Fields [1]byte Name string Version string ChainId *big.Int VerifyingContract common.Address Salt [32]byte Extensions []*big.Int }, error)
Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.
Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)
func (*TokenSession) Initialize ¶
func (_Token *TokenSession) Initialize(bridgeAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address bridgeAddr) returns()
func (*TokenSession) Mint ¶
func (_Token *TokenSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address to, uint256 amount) 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) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address owner) view returns(uint256)
func (*TokenSession) Permit ¶
func (_Token *TokenSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
func (*TokenSession) REMOTETOKEN ¶
func (_Token *TokenSession) REMOTETOKEN() (common.Address, error)
REMOTETOKEN is a free data retrieval call binding the contract method 0x033964be.
Solidity: function REMOTE_TOKEN() view returns(address)
func (*TokenSession) RemoteToken ¶
func (_Token *TokenSession) RemoteToken() (common.Address, error)
RemoteToken is a free data retrieval call binding the contract method 0xd6c0b2c4.
Solidity: function remoteToken() view returns(address)
func (*TokenSession) SupportsInterface ¶
func (_Token *TokenSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) pure returns(bool)
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(to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
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(address from, address to, uint256 value) returns(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(address spender, uint256 value) returns(bool)
func (*TokenTransactor) Burn ¶
func (_Token *TokenTransactor) Burn(opts *bind.TransactOpts, from common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address from, uint256 amount) returns()
func (*TokenTransactor) Initialize ¶
func (_Token *TokenTransactor) Initialize(opts *bind.TransactOpts, bridgeAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address bridgeAddr) returns()
func (*TokenTransactor) Mint ¶
func (_Token *TokenTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address to, uint256 amount) returns()
func (*TokenTransactor) Permit ¶
func (_Token *TokenTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
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(address to, uint256 value) returns(bool)
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(address from, address to, uint256 value) returns(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(address spender, uint256 value) returns(bool)
func (*TokenTransactorSession) Burn ¶
func (_Token *TokenTransactorSession) Burn(from common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address from, uint256 amount) returns()
func (*TokenTransactorSession) Initialize ¶
func (_Token *TokenTransactorSession) Initialize(bridgeAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address bridgeAddr) returns()
func (*TokenTransactorSession) Mint ¶
func (_Token *TokenTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address to, uint256 amount) returns()
func (*TokenTransactorSession) Permit ¶
func (_Token *TokenTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
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(address to, uint256 value) returns(bool)
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(address from, address to, uint256 value) returns(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.