Documentation ¶
Index ¶
- Constants
- type Blockchain
- func (self *Blockchain) AddToken(t common.Token)
- func (self *Blockchain) FetchBalanceData(reserve ethereum.Address, timepoint uint64) (map[string]common.BalanceEntry, error)
- func (self *Blockchain) FetchRates(sources []common.Token, dests []common.Token, timepoint uint64) (common.AllRateEntry, error)
- func (self *Blockchain) IsMined(tx ethereum.Hash) (bool, error)
- func (self *Blockchain) Send(token common.Token, amount *big.Int, dest ethereum.Address) (ethereum.Hash, error)
- func (self *Blockchain) SetRates(sources []ethereum.Address, dests []ethereum.Address, rates []*big.Int, ...) (ethereum.Hash, error)
- type ContractWrapper
- type ContractWrapperCaller
- func (_ContractWrapper *ContractWrapperCaller) GetBalances(opts *bind.CallOpts, reserve common.Address, tokens []common.Address) ([]*big.Int, error)
- func (_ContractWrapper *ContractWrapperCaller) GetPrices(opts *bind.CallOpts, reserve common.Address, sources []common.Address, ...) ([]*big.Int, []*big.Int, []*big.Int, error)
- type ContractWrapperCallerRaw
- type ContractWrapperCallerSession
- func (_ContractWrapper *ContractWrapperCallerSession) GetBalances(reserve common.Address, tokens []common.Address) ([]*big.Int, error)
- func (_ContractWrapper *ContractWrapperCallerSession) GetPrices(reserve common.Address, sources []common.Address, dests []common.Address) ([]*big.Int, []*big.Int, []*big.Int, error)
- type ContractWrapperRaw
- func (_ContractWrapper *ContractWrapperRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ContractWrapper *ContractWrapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ContractWrapper *ContractWrapperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ContractWrapperSession
- func (_ContractWrapper *ContractWrapperSession) GetBalances(reserve common.Address, tokens []common.Address) ([]*big.Int, error)
- func (_ContractWrapper *ContractWrapperSession) GetPrices(reserve common.Address, sources []common.Address, dests []common.Address) ([]*big.Int, []*big.Int, []*big.Int, error)
- type ContractWrapperTransactor
- type ContractWrapperTransactorRaw
- type ContractWrapperTransactorSession
- type NonceCorpus
- type ReserveContract
- type ReserveContractCaller
- func (_ReserveContract *ReserveContractCaller) ETH_TOKEN_ADDRESS(opts *bind.CallOpts) (common.Address, error)
- func (_ReserveContract *ReserveContractCaller) GetBalance(opts *bind.CallOpts, token common.Address) (*big.Int, error)
- func (_ReserveContract *ReserveContractCaller) GetPairInfo(opts *bind.CallOpts, source common.Address, dest common.Address) (struct{ ... }, error)
- func (_ReserveContract *ReserveContractCaller) KyberNetwork(opts *bind.CallOpts) (common.Address, error)
- func (_ReserveContract *ReserveContractCaller) ReserveOwner(opts *bind.CallOpts) (common.Address, error)
- func (_ReserveContract *ReserveContractCaller) TradeEnabled(opts *bind.CallOpts) (bool, error)
- type ReserveContractCallerRaw
- type ReserveContractCallerSession
- func (_ReserveContract *ReserveContractCallerSession) ETH_TOKEN_ADDRESS() (common.Address, error)
- func (_ReserveContract *ReserveContractCallerSession) GetBalance(token common.Address) (*big.Int, error)
- func (_ReserveContract *ReserveContractCallerSession) GetPairInfo(source common.Address, dest common.Address) (struct{ ... }, error)
- func (_ReserveContract *ReserveContractCallerSession) KyberNetwork() (common.Address, error)
- func (_ReserveContract *ReserveContractCallerSession) ReserveOwner() (common.Address, error)
- func (_ReserveContract *ReserveContractCallerSession) TradeEnabled() (bool, error)
- type ReserveContractRaw
- func (_ReserveContract *ReserveContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ReserveContract *ReserveContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ReserveContractSession
- func (_ReserveContract *ReserveContractSession) DepositEther() (*types.Transaction, error)
- func (_ReserveContract *ReserveContractSession) DepositToken(token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractSession) ETH_TOKEN_ADDRESS() (common.Address, error)
- func (_ReserveContract *ReserveContractSession) EnableTrade(enable bool) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractSession) GetBalance(token common.Address) (*big.Int, error)
- func (_ReserveContract *ReserveContractSession) GetPairInfo(source common.Address, dest common.Address) (struct{ ... }, error)
- func (_ReserveContract *ReserveContractSession) KyberNetwork() (common.Address, error)
- func (_ReserveContract *ReserveContractSession) ReserveOwner() (common.Address, error)
- func (_ReserveContract *ReserveContractSession) SetRate(sources []common.Address, dests []common.Address, conversionRates []*big.Int, ...) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractSession) Trade(sourceToken common.Address, sourceAmount *big.Int, destToken common.Address, ...) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractSession) TradeEnabled() (bool, error)
- func (_ReserveContract *ReserveContractSession) Withdraw(token common.Address, amount *big.Int, destination common.Address) (*types.Transaction, error)
- type ReserveContractTransactor
- func (_ReserveContract *ReserveContractTransactor) DepositEther(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactor) DepositToken(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactor) EnableTrade(opts *bind.TransactOpts, enable bool) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactor) SetRate(opts *bind.TransactOpts, sources []common.Address, dests []common.Address, ...) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactor) Trade(opts *bind.TransactOpts, sourceToken common.Address, sourceAmount *big.Int, ...) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- type ReserveContractTransactorRaw
- type ReserveContractTransactorSession
- func (_ReserveContract *ReserveContractTransactorSession) DepositEther() (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactorSession) DepositToken(token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactorSession) EnableTrade(enable bool) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactorSession) SetRate(sources []common.Address, dests []common.Address, conversionRates []*big.Int, ...) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactorSession) Trade(sourceToken common.Address, sourceAmount *big.Int, destToken common.Address, ...) (*types.Transaction, error)
- func (_ReserveContract *ReserveContractTransactorSession) Withdraw(token common.Address, amount *big.Int, destination common.Address) (*types.Transaction, error)
- type Signer
Constants ¶
const ContractWrapperABI = "" /* 602-byte string literal not displayed */
ContractWrapperABI is the input ABI used to generate the binding from.
const ReserveContractABI = "" /* 5007-byte string literal not displayed */
ReserveContractABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type Blockchain struct {
// contains filtered or unexported fields
}
func NewBlockchain ¶
func NewBlockchain( ethereum *ethclient.Client, wrapperAddr, reserveAddr ethereum.Address, signer Signer, nonceCorpus NonceCorpus) (*Blockchain, error)
func (*Blockchain) AddToken ¶
func (self *Blockchain) AddToken(t common.Token)
func (*Blockchain) FetchBalanceData ¶
func (self *Blockchain) FetchBalanceData(reserve ethereum.Address, timepoint uint64) (map[string]common.BalanceEntry, error)
func (*Blockchain) FetchRates ¶
func (self *Blockchain) FetchRates( sources []common.Token, dests []common.Token, timepoint uint64) (common.AllRateEntry, error)
type ContractWrapper ¶
type ContractWrapper struct { ContractWrapperCaller // Read-only binding to the contract ContractWrapperTransactor // Write-only binding to the contract }
ContractWrapper is an auto generated Go binding around an Ethereum contract.
func NewContractWrapper ¶
func NewContractWrapper(address common.Address, backend bind.ContractBackend) (*ContractWrapper, error)
NewContractWrapper creates a new instance of ContractWrapper, bound to a specific deployed contract.
type ContractWrapperCaller ¶
type ContractWrapperCaller struct {
// contains filtered or unexported fields
}
ContractWrapperCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewContractWrapperCaller ¶
func NewContractWrapperCaller(address common.Address, caller bind.ContractCaller) (*ContractWrapperCaller, error)
NewContractWrapperCaller creates a new read-only instance of ContractWrapper, bound to a specific deployed contract.
func (*ContractWrapperCaller) GetBalances ¶
func (_ContractWrapper *ContractWrapperCaller) GetBalances(opts *bind.CallOpts, reserve common.Address, tokens []common.Address) ([]*big.Int, error)
GetBalances is a free data retrieval call binding the contract method 0x6a385ae9.
Solidity: function getBalances(reserve address, tokens address[]) constant returns(uint256[])
func (*ContractWrapperCaller) GetPrices ¶
func (_ContractWrapper *ContractWrapperCaller) GetPrices(opts *bind.CallOpts, reserve common.Address, sources []common.Address, dests []common.Address) ([]*big.Int, []*big.Int, []*big.Int, error)
GetPrices is a free data retrieval call binding the contract method 0x554d184b.
Solidity: function getPrices(reserve address, sources address[], dests address[]) constant returns(uint256[], uint256[], uint256[])
type ContractWrapperCallerRaw ¶
type ContractWrapperCallerRaw struct {
Contract *ContractWrapperCaller // Generic read-only contract binding to access the raw methods on
}
ContractWrapperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ContractWrapperCallerRaw) Call ¶
func (_ContractWrapper *ContractWrapperCallerRaw) 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 ContractWrapperCallerSession ¶
type ContractWrapperCallerSession struct { Contract *ContractWrapperCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ContractWrapperCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ContractWrapperCallerSession) GetBalances ¶
func (_ContractWrapper *ContractWrapperCallerSession) GetBalances(reserve common.Address, tokens []common.Address) ([]*big.Int, error)
GetBalances is a free data retrieval call binding the contract method 0x6a385ae9.
Solidity: function getBalances(reserve address, tokens address[]) constant returns(uint256[])
func (*ContractWrapperCallerSession) GetPrices ¶
func (_ContractWrapper *ContractWrapperCallerSession) GetPrices(reserve common.Address, sources []common.Address, dests []common.Address) ([]*big.Int, []*big.Int, []*big.Int, error)
GetPrices is a free data retrieval call binding the contract method 0x554d184b.
Solidity: function getPrices(reserve address, sources address[], dests address[]) constant returns(uint256[], uint256[], uint256[])
type ContractWrapperRaw ¶
type ContractWrapperRaw struct {
Contract *ContractWrapper // Generic contract binding to access the raw methods on
}
ContractWrapperRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ContractWrapperRaw) Call ¶
func (_ContractWrapper *ContractWrapperRaw) 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 (*ContractWrapperRaw) Transact ¶
func (_ContractWrapper *ContractWrapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractWrapperRaw) Transfer ¶
func (_ContractWrapper *ContractWrapperRaw) 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 ContractWrapperSession ¶
type ContractWrapperSession struct { Contract *ContractWrapper // 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 }
ContractWrapperSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ContractWrapperSession) GetBalances ¶
func (_ContractWrapper *ContractWrapperSession) GetBalances(reserve common.Address, tokens []common.Address) ([]*big.Int, error)
GetBalances is a free data retrieval call binding the contract method 0x6a385ae9.
Solidity: function getBalances(reserve address, tokens address[]) constant returns(uint256[])
func (*ContractWrapperSession) GetPrices ¶
func (_ContractWrapper *ContractWrapperSession) GetPrices(reserve common.Address, sources []common.Address, dests []common.Address) ([]*big.Int, []*big.Int, []*big.Int, error)
GetPrices is a free data retrieval call binding the contract method 0x554d184b.
Solidity: function getPrices(reserve address, sources address[], dests address[]) constant returns(uint256[], uint256[], uint256[])
type ContractWrapperTransactor ¶
type ContractWrapperTransactor struct {
// contains filtered or unexported fields
}
ContractWrapperTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewContractWrapperTransactor ¶
func NewContractWrapperTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractWrapperTransactor, error)
NewContractWrapperTransactor creates a new write-only instance of ContractWrapper, bound to a specific deployed contract.
type ContractWrapperTransactorRaw ¶
type ContractWrapperTransactorRaw struct {
Contract *ContractWrapperTransactor // Generic write-only contract binding to access the raw methods on
}
ContractWrapperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ContractWrapperTransactorRaw) Transact ¶
func (_ContractWrapper *ContractWrapperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractWrapperTransactorRaw) Transfer ¶
func (_ContractWrapper *ContractWrapperTransactorRaw) 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 ContractWrapperTransactorSession ¶
type ContractWrapperTransactorSession struct { Contract *ContractWrapperTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ContractWrapperTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type NonceCorpus ¶
type ReserveContract ¶
type ReserveContract struct { ReserveContractCaller // Read-only binding to the contract ReserveContractTransactor // Write-only binding to the contract }
ReserveContract is an auto generated Go binding around an Ethereum contract.
func NewReserveContract ¶
func NewReserveContract(address common.Address, backend bind.ContractBackend) (*ReserveContract, error)
NewReserveContract creates a new instance of ReserveContract, bound to a specific deployed contract.
type ReserveContractCaller ¶
type ReserveContractCaller struct {
// contains filtered or unexported fields
}
ReserveContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewReserveContractCaller ¶
func NewReserveContractCaller(address common.Address, caller bind.ContractCaller) (*ReserveContractCaller, error)
NewReserveContractCaller creates a new read-only instance of ReserveContract, bound to a specific deployed contract.
func (*ReserveContractCaller) ETH_TOKEN_ADDRESS ¶
func (_ReserveContract *ReserveContractCaller) ETH_TOKEN_ADDRESS(opts *bind.CallOpts) (common.Address, error)
ETH_TOKEN_ADDRESS is a free data retrieval call binding the contract method 0x1878d1f1.
Solidity: function ETH_TOKEN_ADDRESS() constant returns(address)
func (*ReserveContractCaller) GetBalance ¶
func (_ReserveContract *ReserveContractCaller) GetBalance(opts *bind.CallOpts, token common.Address) (*big.Int, error)
GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.
Solidity: function getBalance(token address) constant returns(uint256)
func (*ReserveContractCaller) GetPairInfo ¶
func (_ReserveContract *ReserveContractCaller) GetPairInfo(opts *bind.CallOpts, source common.Address, dest common.Address) (struct { Rate *big.Int ExpBlock *big.Int Balance *big.Int }, error)
GetPairInfo is a free data retrieval call binding the contract method 0x400f7a1e.
Solidity: function getPairInfo(source address, dest address) constant returns(rate uint256, expBlock uint256, balance uint256)
func (*ReserveContractCaller) KyberNetwork ¶
func (_ReserveContract *ReserveContractCaller) KyberNetwork(opts *bind.CallOpts) (common.Address, error)
KyberNetwork is a free data retrieval call binding the contract method 0xb78b842d.
Solidity: function kyberNetwork() constant returns(address)
func (*ReserveContractCaller) ReserveOwner ¶
func (_ReserveContract *ReserveContractCaller) ReserveOwner(opts *bind.CallOpts) (common.Address, error)
ReserveOwner is a free data retrieval call binding the contract method 0xe61b6557.
Solidity: function reserveOwner() constant returns(address)
func (*ReserveContractCaller) TradeEnabled ¶
func (_ReserveContract *ReserveContractCaller) TradeEnabled(opts *bind.CallOpts) (bool, error)
TradeEnabled is a free data retrieval call binding the contract method 0xd621e813.
Solidity: function tradeEnabled() constant returns(bool)
type ReserveContractCallerRaw ¶
type ReserveContractCallerRaw struct {
Contract *ReserveContractCaller // Generic read-only contract binding to access the raw methods on
}
ReserveContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ReserveContractCallerRaw) Call ¶
func (_ReserveContract *ReserveContractCallerRaw) 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 ReserveContractCallerSession ¶
type ReserveContractCallerSession struct { Contract *ReserveContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ReserveContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ReserveContractCallerSession) ETH_TOKEN_ADDRESS ¶
func (_ReserveContract *ReserveContractCallerSession) ETH_TOKEN_ADDRESS() (common.Address, error)
ETH_TOKEN_ADDRESS is a free data retrieval call binding the contract method 0x1878d1f1.
Solidity: function ETH_TOKEN_ADDRESS() constant returns(address)
func (*ReserveContractCallerSession) GetBalance ¶
func (_ReserveContract *ReserveContractCallerSession) GetBalance(token common.Address) (*big.Int, error)
GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.
Solidity: function getBalance(token address) constant returns(uint256)
func (*ReserveContractCallerSession) GetPairInfo ¶
func (_ReserveContract *ReserveContractCallerSession) GetPairInfo(source common.Address, dest common.Address) (struct { Rate *big.Int ExpBlock *big.Int Balance *big.Int }, error)
GetPairInfo is a free data retrieval call binding the contract method 0x400f7a1e.
Solidity: function getPairInfo(source address, dest address) constant returns(rate uint256, expBlock uint256, balance uint256)
func (*ReserveContractCallerSession) KyberNetwork ¶
func (_ReserveContract *ReserveContractCallerSession) KyberNetwork() (common.Address, error)
KyberNetwork is a free data retrieval call binding the contract method 0xb78b842d.
Solidity: function kyberNetwork() constant returns(address)
func (*ReserveContractCallerSession) ReserveOwner ¶
func (_ReserveContract *ReserveContractCallerSession) ReserveOwner() (common.Address, error)
ReserveOwner is a free data retrieval call binding the contract method 0xe61b6557.
Solidity: function reserveOwner() constant returns(address)
func (*ReserveContractCallerSession) TradeEnabled ¶
func (_ReserveContract *ReserveContractCallerSession) TradeEnabled() (bool, error)
TradeEnabled is a free data retrieval call binding the contract method 0xd621e813.
Solidity: function tradeEnabled() constant returns(bool)
type ReserveContractRaw ¶
type ReserveContractRaw struct {
Contract *ReserveContract // Generic contract binding to access the raw methods on
}
ReserveContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ReserveContractRaw) Call ¶
func (_ReserveContract *ReserveContractRaw) 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 (*ReserveContractRaw) Transact ¶
func (_ReserveContract *ReserveContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ReserveContractRaw) Transfer ¶
func (_ReserveContract *ReserveContractRaw) 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 ReserveContractSession ¶
type ReserveContractSession struct { Contract *ReserveContract // 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 }
ReserveContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ReserveContractSession) DepositEther ¶
func (_ReserveContract *ReserveContractSession) DepositEther() (*types.Transaction, error)
DepositEther is a paid mutator transaction binding the contract method 0x98ea5fca.
Solidity: function depositEther() returns(bool)
func (*ReserveContractSession) DepositToken ¶
func (_ReserveContract *ReserveContractSession) DepositToken(token common.Address, amount *big.Int) (*types.Transaction, error)
DepositToken is a paid mutator transaction binding the contract method 0x338b5dea.
Solidity: function depositToken(token address, amount uint256) returns(bool)
func (*ReserveContractSession) ETH_TOKEN_ADDRESS ¶
func (_ReserveContract *ReserveContractSession) ETH_TOKEN_ADDRESS() (common.Address, error)
ETH_TOKEN_ADDRESS is a free data retrieval call binding the contract method 0x1878d1f1.
Solidity: function ETH_TOKEN_ADDRESS() constant returns(address)
func (*ReserveContractSession) EnableTrade ¶
func (_ReserveContract *ReserveContractSession) EnableTrade(enable bool) (*types.Transaction, error)
EnableTrade is a paid mutator transaction binding the contract method 0xc00f04d1.
Solidity: function enableTrade(enable bool) returns(bool)
func (*ReserveContractSession) GetBalance ¶
GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.
Solidity: function getBalance(token address) constant returns(uint256)
func (*ReserveContractSession) GetPairInfo ¶
func (_ReserveContract *ReserveContractSession) GetPairInfo(source common.Address, dest common.Address) (struct { Rate *big.Int ExpBlock *big.Int Balance *big.Int }, error)
GetPairInfo is a free data retrieval call binding the contract method 0x400f7a1e.
Solidity: function getPairInfo(source address, dest address) constant returns(rate uint256, expBlock uint256, balance uint256)
func (*ReserveContractSession) KyberNetwork ¶
func (_ReserveContract *ReserveContractSession) KyberNetwork() (common.Address, error)
KyberNetwork is a free data retrieval call binding the contract method 0xb78b842d.
Solidity: function kyberNetwork() constant returns(address)
func (*ReserveContractSession) ReserveOwner ¶
func (_ReserveContract *ReserveContractSession) ReserveOwner() (common.Address, error)
ReserveOwner is a free data retrieval call binding the contract method 0xe61b6557.
Solidity: function reserveOwner() constant returns(address)
func (*ReserveContractSession) SetRate ¶
func (_ReserveContract *ReserveContractSession) SetRate(sources []common.Address, dests []common.Address, conversionRates []*big.Int, expiryBlocks []*big.Int, validate bool) (*types.Transaction, error)
SetRate is a paid mutator transaction binding the contract method 0xda6dfea7.
Solidity: function setRate(sources address[], dests address[], conversionRates uint256[], expiryBlocks uint256[], validate bool) returns(bool)
func (*ReserveContractSession) Trade ¶
func (_ReserveContract *ReserveContractSession) Trade(sourceToken common.Address, sourceAmount *big.Int, destToken common.Address, destAddress common.Address, validate bool) (*types.Transaction, error)
Trade is a paid mutator transaction binding the contract method 0x0363b1e1.
Solidity: function trade(sourceToken address, sourceAmount uint256, destToken address, destAddress address, validate bool) returns(bool)
func (*ReserveContractSession) TradeEnabled ¶
func (_ReserveContract *ReserveContractSession) TradeEnabled() (bool, error)
TradeEnabled is a free data retrieval call binding the contract method 0xd621e813.
Solidity: function tradeEnabled() constant returns(bool)
func (*ReserveContractSession) Withdraw ¶
func (_ReserveContract *ReserveContractSession) Withdraw(token common.Address, amount *big.Int, destination common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x69328dec.
Solidity: function withdraw(token address, amount uint256, destination address) returns(bool)
type ReserveContractTransactor ¶
type ReserveContractTransactor struct {
// contains filtered or unexported fields
}
ReserveContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewReserveContractTransactor ¶
func NewReserveContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ReserveContractTransactor, error)
NewReserveContractTransactor creates a new write-only instance of ReserveContract, bound to a specific deployed contract.
func (*ReserveContractTransactor) DepositEther ¶
func (_ReserveContract *ReserveContractTransactor) DepositEther(opts *bind.TransactOpts) (*types.Transaction, error)
DepositEther is a paid mutator transaction binding the contract method 0x98ea5fca.
Solidity: function depositEther() returns(bool)
func (*ReserveContractTransactor) DepositToken ¶
func (_ReserveContract *ReserveContractTransactor) DepositToken(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)
DepositToken is a paid mutator transaction binding the contract method 0x338b5dea.
Solidity: function depositToken(token address, amount uint256) returns(bool)
func (*ReserveContractTransactor) EnableTrade ¶
func (_ReserveContract *ReserveContractTransactor) EnableTrade(opts *bind.TransactOpts, enable bool) (*types.Transaction, error)
EnableTrade is a paid mutator transaction binding the contract method 0xc00f04d1.
Solidity: function enableTrade(enable bool) returns(bool)
func (*ReserveContractTransactor) SetRate ¶
func (_ReserveContract *ReserveContractTransactor) SetRate(opts *bind.TransactOpts, sources []common.Address, dests []common.Address, conversionRates []*big.Int, expiryBlocks []*big.Int, validate bool) (*types.Transaction, error)
SetRate is a paid mutator transaction binding the contract method 0xda6dfea7.
Solidity: function setRate(sources address[], dests address[], conversionRates uint256[], expiryBlocks uint256[], validate bool) returns(bool)
func (*ReserveContractTransactor) Trade ¶
func (_ReserveContract *ReserveContractTransactor) Trade(opts *bind.TransactOpts, sourceToken common.Address, sourceAmount *big.Int, destToken common.Address, destAddress common.Address, validate bool) (*types.Transaction, error)
Trade is a paid mutator transaction binding the contract method 0x0363b1e1.
Solidity: function trade(sourceToken address, sourceAmount uint256, destToken address, destAddress address, validate bool) returns(bool)
func (*ReserveContractTransactor) Withdraw ¶
func (_ReserveContract *ReserveContractTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int, destination common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x69328dec.
Solidity: function withdraw(token address, amount uint256, destination address) returns(bool)
type ReserveContractTransactorRaw ¶
type ReserveContractTransactorRaw struct {
Contract *ReserveContractTransactor // Generic write-only contract binding to access the raw methods on
}
ReserveContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ReserveContractTransactorRaw) Transact ¶
func (_ReserveContract *ReserveContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ReserveContractTransactorRaw) Transfer ¶
func (_ReserveContract *ReserveContractTransactorRaw) 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 ReserveContractTransactorSession ¶
type ReserveContractTransactorSession struct { Contract *ReserveContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ReserveContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ReserveContractTransactorSession) DepositEther ¶
func (_ReserveContract *ReserveContractTransactorSession) DepositEther() (*types.Transaction, error)
DepositEther is a paid mutator transaction binding the contract method 0x98ea5fca.
Solidity: function depositEther() returns(bool)
func (*ReserveContractTransactorSession) DepositToken ¶
func (_ReserveContract *ReserveContractTransactorSession) DepositToken(token common.Address, amount *big.Int) (*types.Transaction, error)
DepositToken is a paid mutator transaction binding the contract method 0x338b5dea.
Solidity: function depositToken(token address, amount uint256) returns(bool)
func (*ReserveContractTransactorSession) EnableTrade ¶
func (_ReserveContract *ReserveContractTransactorSession) EnableTrade(enable bool) (*types.Transaction, error)
EnableTrade is a paid mutator transaction binding the contract method 0xc00f04d1.
Solidity: function enableTrade(enable bool) returns(bool)
func (*ReserveContractTransactorSession) SetRate ¶
func (_ReserveContract *ReserveContractTransactorSession) SetRate(sources []common.Address, dests []common.Address, conversionRates []*big.Int, expiryBlocks []*big.Int, validate bool) (*types.Transaction, error)
SetRate is a paid mutator transaction binding the contract method 0xda6dfea7.
Solidity: function setRate(sources address[], dests address[], conversionRates uint256[], expiryBlocks uint256[], validate bool) returns(bool)
func (*ReserveContractTransactorSession) Trade ¶
func (_ReserveContract *ReserveContractTransactorSession) Trade(sourceToken common.Address, sourceAmount *big.Int, destToken common.Address, destAddress common.Address, validate bool) (*types.Transaction, error)
Trade is a paid mutator transaction binding the contract method 0x0363b1e1.
Solidity: function trade(sourceToken address, sourceAmount uint256, destToken address, destAddress address, validate bool) returns(bool)
func (*ReserveContractTransactorSession) Withdraw ¶
func (_ReserveContract *ReserveContractTransactorSession) Withdraw(token common.Address, amount *big.Int, destination common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x69328dec.
Solidity: function withdraw(token address, amount uint256, destination address) returns(bool)
type Signer ¶
type Signer interface { GetAddress() ethereum.Address Sign(ethereum.Address, *types.Transaction) (*types.Transaction, error) GetTransactOpts() *bind.TransactOpts }