contracts

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ERC20TokenABI = "" /* 2671-byte string literal not displayed */

ERC20TokenABI is the input ABI used to generate the binding from.

View Source
const ERC20TokenBin = `` /* 3434-byte string literal not displayed */

ERC20TokenBin is the compiled bytecode used for deploying new contracts.

View Source
const MithrilTokenABI = "" /* 3883-byte string literal not displayed */

MithrilTokenABI is the input ABI used to generate the binding from.

View Source
const MithrilTokenBin = `` /* 4650-byte string literal not displayed */

MithrilTokenBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

func BalanceOfMsg added in v0.2.0

func BalanceOfMsg(contractAddress common.Address, account common.Address) *ethereum.CallMsg

BalanceOfMsg returns the erc20 balanceOf message

func DecimalsMsg added in v0.2.0

func DecimalsMsg(contractAddress common.Address) *ethereum.CallMsg

DecimalsMsg returns the erc20 decimal message

func DecodeBalanceOf added in v0.2.0

func DecodeBalanceOf(data []byte) (*big.Int, error)

DecodeBalanceOf decodes the erc20 balanceOf message

func DecodeDecimals added in v0.2.0

func DecodeDecimals(data []byte) (uint8, error)

DecodeDecimals decodes the erc20 decimal message

Types

type ERC20Token

type ERC20Token struct {
	ERC20TokenCaller     // Read-only binding to the contract
	ERC20TokenTransactor // Write-only binding to the contract
	ERC20TokenFilterer   // Log filterer for contract events
}

ERC20Token is an auto generated Go binding around an Ethereum contract.

func DeployERC20Token

func DeployERC20Token(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ERC20Token, error)

DeployERC20Token deploys a new Ethereum contract, binding an instance of ERC20Token to it.

func NewERC20Token

func NewERC20Token(address common.Address, backend bind.ContractBackend) (*ERC20Token, error)

NewERC20Token creates a new instance of ERC20Token, bound to a specific deployed contract.

type ERC20TokenApproval

type ERC20TokenApproval struct {
	From      common.Address
	Value     *big.Int
	To        common.Address
	ExtraData []byte
	Raw       types.Log // Blockchain specific contextual infos
}

ERC20TokenApproval represents a Approval event raised by the ERC20Token contract.

type ERC20TokenApprovalIterator

type ERC20TokenApprovalIterator struct {
	Event *ERC20TokenApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20Token contract.

func (*ERC20TokenApprovalIterator) Close

func (it *ERC20TokenApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20TokenApprovalIterator) Error

func (it *ERC20TokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TokenApprovalIterator) Next

func (it *ERC20TokenApprovalIterator) 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 ERC20TokenCaller

type ERC20TokenCaller struct {
	// contains filtered or unexported fields
}

ERC20TokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewERC20TokenCaller

func NewERC20TokenCaller(address common.Address, caller bind.ContractCaller) (*ERC20TokenCaller, error)

NewERC20TokenCaller creates a new read-only instance of ERC20Token, bound to a specific deployed contract.

func (*ERC20TokenCaller) Allowance

func (_ERC20Token *ERC20TokenCaller) 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 (*ERC20TokenCaller) BalanceOf

func (_ERC20Token *ERC20TokenCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf( address) constant returns(uint256)

func (*ERC20TokenCaller) Decimals

func (_ERC20Token *ERC20TokenCaller) 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 (*ERC20TokenCaller) Name

func (_ERC20Token *ERC20TokenCaller) 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 (*ERC20TokenCaller) Symbol

func (_ERC20Token *ERC20TokenCaller) 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 (*ERC20TokenCaller) TotalSupply

func (_ERC20Token *ERC20TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20TokenCallerRaw

type ERC20TokenCallerRaw struct {
	Contract *ERC20TokenCaller // Generic read-only contract binding to access the raw methods on
}

ERC20TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ERC20TokenCallerRaw) Call

func (_ERC20Token *ERC20TokenCallerRaw) 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 ERC20TokenCallerSession

type ERC20TokenCallerSession struct {
	Contract *ERC20TokenCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts     // Call options to use throughout this session
}

ERC20TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ERC20TokenCallerSession) Allowance

func (_ERC20Token *ERC20TokenCallerSession) 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 (*ERC20TokenCallerSession) BalanceOf

func (_ERC20Token *ERC20TokenCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf( address) constant returns(uint256)

func (*ERC20TokenCallerSession) Decimals

func (_ERC20Token *ERC20TokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20TokenCallerSession) Name

func (_ERC20Token *ERC20TokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20TokenCallerSession) Symbol

func (_ERC20Token *ERC20TokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20TokenCallerSession) TotalSupply

func (_ERC20Token *ERC20TokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20TokenFilterer

type ERC20TokenFilterer struct {
	// contains filtered or unexported fields
}

ERC20TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewERC20TokenFilterer

func NewERC20TokenFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20TokenFilterer, error)

NewERC20TokenFilterer creates a new log filterer instance of ERC20Token, bound to a specific deployed contract.

func (*ERC20TokenFilterer) FilterApproval

func (_ERC20Token *ERC20TokenFilterer) FilterApproval(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TokenApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x4f2ccab30e52b306d3db2a1a0de078b7086c50ed233ea398995eaf7d64ac63be.

Solidity: event Approval(from indexed address, value uint256, to indexed address, extraData bytes)

func (*ERC20TokenFilterer) FilterTransfer

func (_ERC20Token *ERC20TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TokenTransferIterator, 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 (*ERC20TokenFilterer) WatchApproval

func (_ERC20Token *ERC20TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20TokenApproval, from []common.Address, to []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x4f2ccab30e52b306d3db2a1a0de078b7086c50ed233ea398995eaf7d64ac63be.

Solidity: event Approval(from indexed address, value uint256, to indexed address, extraData bytes)

func (*ERC20TokenFilterer) WatchTransfer

func (_ERC20Token *ERC20TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20TokenTransfer, 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 ERC20TokenRaw

type ERC20TokenRaw struct {
	Contract *ERC20Token // Generic contract binding to access the raw methods on
}

ERC20TokenRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ERC20TokenRaw) Call

func (_ERC20Token *ERC20TokenRaw) 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 (*ERC20TokenRaw) Transact

func (_ERC20Token *ERC20TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20TokenRaw) Transfer

func (_ERC20Token *ERC20TokenRaw) 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 ERC20TokenSession

type ERC20TokenSession struct {
	Contract     *ERC20Token       // 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
}

ERC20TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ERC20TokenSession) Allowance

func (_ERC20Token *ERC20TokenSession) 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 (*ERC20TokenSession) Approve

func (_ERC20Token *ERC20TokenSession) Approve(spender common.Address, value *big.Int, extraData []byte) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x5c17f9f4.

Solidity: function approve(spender address, value uint256, extraData bytes) returns(success bool)

func (*ERC20TokenSession) BalanceOf

func (_ERC20Token *ERC20TokenSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf( address) constant returns(uint256)

func (*ERC20TokenSession) Decimals

func (_ERC20Token *ERC20TokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20TokenSession) Name

func (_ERC20Token *ERC20TokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20TokenSession) Symbol

func (_ERC20Token *ERC20TokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20TokenSession) TotalSupply

func (_ERC20Token *ERC20TokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20TokenSession) Transfer

func (_ERC20Token *ERC20TokenSession) 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 (*ERC20TokenSession) TransferFrom

func (_ERC20Token *ERC20TokenSession) 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 ERC20TokenTransactor

type ERC20TokenTransactor struct {
	// contains filtered or unexported fields
}

ERC20TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewERC20TokenTransactor

func NewERC20TokenTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20TokenTransactor, error)

NewERC20TokenTransactor creates a new write-only instance of ERC20Token, bound to a specific deployed contract.

func (*ERC20TokenTransactor) Approve

func (_ERC20Token *ERC20TokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int, extraData []byte) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x5c17f9f4.

Solidity: function approve(spender address, value uint256, extraData bytes) returns(success bool)

func (*ERC20TokenTransactor) Transfer

func (_ERC20Token *ERC20TokenTransactor) 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 (*ERC20TokenTransactor) TransferFrom

func (_ERC20Token *ERC20TokenTransactor) 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 ERC20TokenTransactorRaw

type ERC20TokenTransactorRaw struct {
	Contract *ERC20TokenTransactor // Generic write-only contract binding to access the raw methods on
}

ERC20TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ERC20TokenTransactorRaw) Transact

func (_ERC20Token *ERC20TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ERC20TokenTransactorRaw) Transfer

func (_ERC20Token *ERC20TokenTransactorRaw) 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 ERC20TokenTransactorSession

type ERC20TokenTransactorSession struct {
	Contract     *ERC20TokenTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts     // Transaction auth options to use throughout this session
}

ERC20TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ERC20TokenTransactorSession) Approve

func (_ERC20Token *ERC20TokenTransactorSession) Approve(spender common.Address, value *big.Int, extraData []byte) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x5c17f9f4.

Solidity: function approve(spender address, value uint256, extraData bytes) returns(success bool)

func (*ERC20TokenTransactorSession) Transfer

func (_ERC20Token *ERC20TokenTransactorSession) 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 (*ERC20TokenTransactorSession) TransferFrom

func (_ERC20Token *ERC20TokenTransactorSession) 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 ERC20TokenTransfer

type ERC20TokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC20TokenTransfer represents a Transfer event raised by the ERC20Token contract.

type ERC20TokenTransferIterator

type ERC20TokenTransferIterator struct {
	Event *ERC20TokenTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20Token contract.

func (*ERC20TokenTransferIterator) Close

func (it *ERC20TokenTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20TokenTransferIterator) Error

func (it *ERC20TokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TokenTransferIterator) Next

func (it *ERC20TokenTransferIterator) 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 MithrilToken

type MithrilToken struct {
	MithrilTokenCaller     // Read-only binding to the contract
	MithrilTokenTransactor // Write-only binding to the contract
	MithrilTokenFilterer   // Log filterer for contract events
}

MithrilToken is an auto generated Go binding around an Ethereum contract.

func DeployMithrilToken

func DeployMithrilToken(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *MithrilToken, error)

DeployMithrilToken deploys a new Ethereum contract, binding an instance of MithrilToken to it.

func NewMithrilToken

func NewMithrilToken(address common.Address, backend bind.ContractBackend) (*MithrilToken, error)

NewMithrilToken creates a new instance of MithrilToken, bound to a specific deployed contract.

type MithrilTokenApproval

type MithrilTokenApproval struct {
	From      common.Address
	Value     *big.Int
	To        common.Address
	ExtraData []byte
	Raw       types.Log // Blockchain specific contextual infos
}

MithrilTokenApproval represents a Approval event raised by the MithrilToken contract.

type MithrilTokenApprovalIterator

type MithrilTokenApprovalIterator struct {
	Event *MithrilTokenApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MithrilTokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the MithrilToken contract.

func (*MithrilTokenApprovalIterator) Close

func (it *MithrilTokenApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*MithrilTokenApprovalIterator) Error

func (it *MithrilTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MithrilTokenApprovalIterator) Next

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 MithrilTokenCaller

type MithrilTokenCaller struct {
	// contains filtered or unexported fields
}

MithrilTokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewMithrilTokenCaller

func NewMithrilTokenCaller(address common.Address, caller bind.ContractCaller) (*MithrilTokenCaller, error)

NewMithrilTokenCaller creates a new read-only instance of MithrilToken, bound to a specific deployed contract.

func (*MithrilTokenCaller) Allowance

func (_MithrilToken *MithrilTokenCaller) 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 (*MithrilTokenCaller) BalanceOf

func (_MithrilToken *MithrilTokenCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf( address) constant returns(uint256)

func (*MithrilTokenCaller) Decimals

func (_MithrilToken *MithrilTokenCaller) 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 (*MithrilTokenCaller) Name

func (_MithrilToken *MithrilTokenCaller) 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 (*MithrilTokenCaller) Owner

func (_MithrilToken *MithrilTokenCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*MithrilTokenCaller) Symbol

func (_MithrilToken *MithrilTokenCaller) 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 (*MithrilTokenCaller) TotalSupply

func (_MithrilToken *MithrilTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*MithrilTokenCaller) Vault

func (_MithrilToken *MithrilTokenCaller) Vault(opts *bind.CallOpts) (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() constant returns(address)

func (*MithrilTokenCaller) Wallet

func (_MithrilToken *MithrilTokenCaller) Wallet(opts *bind.CallOpts) (common.Address, error)

Wallet is a free data retrieval call binding the contract method 0x521eb273.

Solidity: function wallet() constant returns(address)

type MithrilTokenCallerRaw

type MithrilTokenCallerRaw struct {
	Contract *MithrilTokenCaller // Generic read-only contract binding to access the raw methods on
}

MithrilTokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*MithrilTokenCallerRaw) Call

func (_MithrilToken *MithrilTokenCallerRaw) 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 MithrilTokenCallerSession

type MithrilTokenCallerSession struct {
	Contract *MithrilTokenCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts       // Call options to use throughout this session
}

MithrilTokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*MithrilTokenCallerSession) Allowance

func (_MithrilToken *MithrilTokenCallerSession) 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 (*MithrilTokenCallerSession) BalanceOf

func (_MithrilToken *MithrilTokenCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf( address) constant returns(uint256)

func (*MithrilTokenCallerSession) Decimals

func (_MithrilToken *MithrilTokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*MithrilTokenCallerSession) Name

func (_MithrilToken *MithrilTokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*MithrilTokenCallerSession) Owner

func (_MithrilToken *MithrilTokenCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*MithrilTokenCallerSession) Symbol

func (_MithrilToken *MithrilTokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*MithrilTokenCallerSession) TotalSupply

func (_MithrilToken *MithrilTokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*MithrilTokenCallerSession) Vault

func (_MithrilToken *MithrilTokenCallerSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() constant returns(address)

func (*MithrilTokenCallerSession) Wallet

func (_MithrilToken *MithrilTokenCallerSession) Wallet() (common.Address, error)

Wallet is a free data retrieval call binding the contract method 0x521eb273.

Solidity: function wallet() constant returns(address)

type MithrilTokenFilterer

type MithrilTokenFilterer struct {
	// contains filtered or unexported fields
}

MithrilTokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewMithrilTokenFilterer

func NewMithrilTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*MithrilTokenFilterer, error)

NewMithrilTokenFilterer creates a new log filterer instance of MithrilToken, bound to a specific deployed contract.

func (*MithrilTokenFilterer) FilterApproval

func (_MithrilToken *MithrilTokenFilterer) FilterApproval(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MithrilTokenApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x4f2ccab30e52b306d3db2a1a0de078b7086c50ed233ea398995eaf7d64ac63be.

Solidity: event Approval(from indexed address, value uint256, to indexed address, extraData bytes)

func (*MithrilTokenFilterer) FilterOwnershipTransfered

func (_MithrilToken *MithrilTokenFilterer) FilterOwnershipTransfered(opts *bind.FilterOpts, owner []common.Address) (*MithrilTokenOwnershipTransferedIterator, error)

FilterOwnershipTransfered is a free log retrieval operation binding the contract event 0x9736aeb40a8f30a5c076a9897428fdf7ec0e909c96dce63533664c9b5c835da6.

Solidity: event OwnershipTransfered(owner indexed address)

func (*MithrilTokenFilterer) FilterTransfer

func (_MithrilToken *MithrilTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MithrilTokenTransferIterator, 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 (*MithrilTokenFilterer) WatchApproval

func (_MithrilToken *MithrilTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MithrilTokenApproval, from []common.Address, to []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x4f2ccab30e52b306d3db2a1a0de078b7086c50ed233ea398995eaf7d64ac63be.

Solidity: event Approval(from indexed address, value uint256, to indexed address, extraData bytes)

func (*MithrilTokenFilterer) WatchOwnershipTransfered

func (_MithrilToken *MithrilTokenFilterer) WatchOwnershipTransfered(opts *bind.WatchOpts, sink chan<- *MithrilTokenOwnershipTransfered, owner []common.Address) (event.Subscription, error)

WatchOwnershipTransfered is a free log subscription operation binding the contract event 0x9736aeb40a8f30a5c076a9897428fdf7ec0e909c96dce63533664c9b5c835da6.

Solidity: event OwnershipTransfered(owner indexed address)

func (*MithrilTokenFilterer) WatchTransfer

func (_MithrilToken *MithrilTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MithrilTokenTransfer, 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 MithrilTokenOwnershipTransfered

type MithrilTokenOwnershipTransfered struct {
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

MithrilTokenOwnershipTransfered represents a OwnershipTransfered event raised by the MithrilToken contract.

type MithrilTokenOwnershipTransferedIterator

type MithrilTokenOwnershipTransferedIterator struct {
	Event *MithrilTokenOwnershipTransfered // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MithrilTokenOwnershipTransferedIterator is returned from FilterOwnershipTransfered and is used to iterate over the raw logs and unpacked data for OwnershipTransfered events raised by the MithrilToken contract.

func (*MithrilTokenOwnershipTransferedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*MithrilTokenOwnershipTransferedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MithrilTokenOwnershipTransferedIterator) Next

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 MithrilTokenRaw

type MithrilTokenRaw struct {
	Contract *MithrilToken // Generic contract binding to access the raw methods on
}

MithrilTokenRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*MithrilTokenRaw) Call

func (_MithrilToken *MithrilTokenRaw) 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 (*MithrilTokenRaw) Transact

func (_MithrilToken *MithrilTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*MithrilTokenRaw) Transfer

func (_MithrilToken *MithrilTokenRaw) 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 MithrilTokenSession

type MithrilTokenSession struct {
	Contract     *MithrilToken     // 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
}

MithrilTokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*MithrilTokenSession) Allowance

func (_MithrilToken *MithrilTokenSession) 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 (*MithrilTokenSession) Approve

func (_MithrilToken *MithrilTokenSession) Approve(spender common.Address, value *big.Int, extraData []byte) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x5c17f9f4.

Solidity: function approve(spender address, value uint256, extraData bytes) returns(success bool)

func (*MithrilTokenSession) BalanceOf

func (_MithrilToken *MithrilTokenSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf( address) constant returns(uint256)

func (*MithrilTokenSession) Decimals

func (_MithrilToken *MithrilTokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*MithrilTokenSession) Init

func (_MithrilToken *MithrilTokenSession) Init(_supply *big.Int, _vault common.Address, _wallet common.Address) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0x4557b4bb.

Solidity: function init(_supply uint256, _vault address, _wallet address) returns()

func (*MithrilTokenSession) Name

func (_MithrilToken *MithrilTokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*MithrilTokenSession) Owner

func (_MithrilToken *MithrilTokenSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*MithrilTokenSession) Symbol

func (_MithrilToken *MithrilTokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*MithrilTokenSession) TotalSupply

func (_MithrilToken *MithrilTokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*MithrilTokenSession) Transfer

func (_MithrilToken *MithrilTokenSession) 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 (*MithrilTokenSession) TransferFrom

func (_MithrilToken *MithrilTokenSession) 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)

func (*MithrilTokenSession) TransferOwnership

func (_MithrilToken *MithrilTokenSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

func (*MithrilTokenSession) Vault

func (_MithrilToken *MithrilTokenSession) Vault() (common.Address, error)

Vault is a free data retrieval call binding the contract method 0xfbfa77cf.

Solidity: function vault() constant returns(address)

func (*MithrilTokenSession) Wallet

func (_MithrilToken *MithrilTokenSession) Wallet() (common.Address, error)

Wallet is a free data retrieval call binding the contract method 0x521eb273.

Solidity: function wallet() constant returns(address)

type MithrilTokenTransactor

type MithrilTokenTransactor struct {
	// contains filtered or unexported fields
}

MithrilTokenTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewMithrilTokenTransactor

func NewMithrilTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*MithrilTokenTransactor, error)

NewMithrilTokenTransactor creates a new write-only instance of MithrilToken, bound to a specific deployed contract.

func (*MithrilTokenTransactor) Approve

func (_MithrilToken *MithrilTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int, extraData []byte) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x5c17f9f4.

Solidity: function approve(spender address, value uint256, extraData bytes) returns(success bool)

func (*MithrilTokenTransactor) Init

func (_MithrilToken *MithrilTokenTransactor) Init(opts *bind.TransactOpts, _supply *big.Int, _vault common.Address, _wallet common.Address) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0x4557b4bb.

Solidity: function init(_supply uint256, _vault address, _wallet address) returns()

func (*MithrilTokenTransactor) Transfer

func (_MithrilToken *MithrilTokenTransactor) 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 (*MithrilTokenTransactor) TransferFrom

func (_MithrilToken *MithrilTokenTransactor) 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)

func (*MithrilTokenTransactor) TransferOwnership

func (_MithrilToken *MithrilTokenTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

type MithrilTokenTransactorRaw

type MithrilTokenTransactorRaw struct {
	Contract *MithrilTokenTransactor // Generic write-only contract binding to access the raw methods on
}

MithrilTokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*MithrilTokenTransactorRaw) Transact

func (_MithrilToken *MithrilTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*MithrilTokenTransactorRaw) Transfer

func (_MithrilToken *MithrilTokenTransactorRaw) 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 MithrilTokenTransactorSession

type MithrilTokenTransactorSession struct {
	Contract     *MithrilTokenTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts       // Transaction auth options to use throughout this session
}

MithrilTokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*MithrilTokenTransactorSession) Approve

func (_MithrilToken *MithrilTokenTransactorSession) Approve(spender common.Address, value *big.Int, extraData []byte) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x5c17f9f4.

Solidity: function approve(spender address, value uint256, extraData bytes) returns(success bool)

func (*MithrilTokenTransactorSession) Init

func (_MithrilToken *MithrilTokenTransactorSession) Init(_supply *big.Int, _vault common.Address, _wallet common.Address) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0x4557b4bb.

Solidity: function init(_supply uint256, _vault address, _wallet address) returns()

func (*MithrilTokenTransactorSession) Transfer

func (_MithrilToken *MithrilTokenTransactorSession) 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 (*MithrilTokenTransactorSession) TransferFrom

func (_MithrilToken *MithrilTokenTransactorSession) 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)

func (*MithrilTokenTransactorSession) TransferOwnership

func (_MithrilToken *MithrilTokenTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(newOwner address) returns()

type MithrilTokenTransfer

type MithrilTokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

MithrilTokenTransfer represents a Transfer event raised by the MithrilToken contract.

type MithrilTokenTransferIterator

type MithrilTokenTransferIterator struct {
	Event *MithrilTokenTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

MithrilTokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the MithrilToken contract.

func (*MithrilTokenTransferIterator) Close

func (it *MithrilTokenTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*MithrilTokenTransferIterator) Error

func (it *MithrilTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MithrilTokenTransferIterator) Next

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL