contracts

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: GPL-3.0 Imports: 8 Imported by: 10

Documentation

Index

Constants

View Source
const ERC20ABI = "" /* 1663-byte string literal not displayed */

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

View Source
const ERC20Bin = `0x`

ERC20Bin is the compiled bytecode used for deploying new contracts.

View Source
const ExchangeABI = "" /* 3228-byte string literal not displayed */

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

View Source
const ExchangeBin = `0x`

ExchangeBin is the compiled bytecode used for deploying new contracts.

View Source
const VaultABI = "" /* 3913-byte string literal not displayed */

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

View Source
const VaultBin = `0x`

VaultBin is the compiled bytecode used for deploying new contracts.

View Source
const VaultInterfaceABI = "" /* 3913-byte string literal not displayed */

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

View Source
const VaultInterfaceBin = `0x`

VaultInterfaceBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func DeployERC20

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

DeployERC20 deploys a new Ethereum contract, binding an instance of ERC20 to it.

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20Caller

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

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

func NewERC20Caller

func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error)

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Caller) Allowance

func (_ERC20 *ERC20Caller) 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(owner address, spender address) constant returns(uint256)

func (*ERC20Caller) BalanceOf

func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

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

func (*ERC20Caller) Decimals

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) TotalSupply

func (_ERC20 *ERC20Caller) 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 ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) 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 ERC20CallerSession

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

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

func (*ERC20CallerSession) Allowance

func (_ERC20 *ERC20CallerSession) 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(owner address, spender address) constant returns(uint256)

func (*ERC20CallerSession) BalanceOf

func (_ERC20 *ERC20CallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*ERC20CallerSession) Decimals

func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*ERC20CallerSession) TotalSupply

func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type ERC20Filterer

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

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

func NewERC20Filterer

func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error)

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

type ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) 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 (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) 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 ERC20Session

type ERC20Session struct {
	Contract     *ERC20            // 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
}

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

func (*ERC20Session) Allowance

func (_ERC20 *ERC20Session) 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(owner address, spender address) constant returns(uint256)

func (*ERC20Session) Approve

func (_ERC20 *ERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*ERC20Session) BalanceOf

func (_ERC20 *ERC20Session) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*ERC20Session) Decimals

func (_ERC20 *ERC20Session) Decimals() (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*ERC20Session) TotalSupply

func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) 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(bool)

func (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) 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(bool)

type ERC20Transactor

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

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

func NewERC20Transactor

func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error)

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) Approve

func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) 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(bool)

func (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) 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(bool)

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) 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 ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Approve

func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

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

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

func (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) 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(bool)

func (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) 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(bool)

type Exchange

type Exchange struct {
	ExchangeCaller     // Read-only binding to the contract
	ExchangeTransactor // Write-only binding to the contract
	ExchangeFilterer   // Log filterer for contract events
}

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

func DeployExchange

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

DeployExchange deploys a new Ethereum contract, binding an instance of Exchange to it.

func NewExchange

func NewExchange(address common.Address, backend bind.ContractBackend) (*Exchange, error)

NewExchange creates a new instance of Exchange, bound to a specific deployed contract.

type ExchangeCaller

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

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

func NewExchangeCaller

func NewExchangeCaller(address common.Address, caller bind.ContractCaller) (*ExchangeCaller, error)

NewExchangeCaller creates a new read-only instance of Exchange, bound to a specific deployed contract.

func (*ExchangeCaller) AvailableAmount

func (_Exchange *ExchangeCaller) AvailableAmount(opts *bind.CallOpts, addresses [3]common.Address, values [4]*big.Int) (*big.Int, error)

AvailableAmount is a free data retrieval call binding the contract method 0x1a197588.

Solidity: function availableAmount(addresses address[3], values uint256[4]) constant returns(uint256)

func (*ExchangeCaller) CanTrade

func (_Exchange *ExchangeCaller) CanTrade(opts *bind.CallOpts, addresses [3]common.Address, values [4]*big.Int, signature []byte) (bool, error)

CanTrade is a free data retrieval call binding the contract method 0x08fa0e92.

Solidity: function canTrade(addresses address[3], values uint256[4], signature bytes) constant returns(bool)

func (*ExchangeCaller) Filled

func (_Exchange *ExchangeCaller) Filled(opts *bind.CallOpts, hash [32]byte) (*big.Int, error)

Filled is a free data retrieval call binding the contract method 0x288cdc91.

Solidity: function filled(hash bytes32) constant returns(uint256)

func (*ExchangeCaller) IsOrdered

func (_Exchange *ExchangeCaller) IsOrdered(opts *bind.CallOpts, user common.Address, hash [32]byte) (bool, error)

IsOrdered is a free data retrieval call binding the contract method 0x00f29d55.

Solidity: function isOrdered(user address, hash bytes32) constant returns(bool)

func (*ExchangeCaller) Vault

func (_Exchange *ExchangeCaller) 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)

type ExchangeCallerRaw

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

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

func (*ExchangeCallerRaw) Call

func (_Exchange *ExchangeCallerRaw) 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 ExchangeCallerSession

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

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

func (*ExchangeCallerSession) AvailableAmount

func (_Exchange *ExchangeCallerSession) AvailableAmount(addresses [3]common.Address, values [4]*big.Int) (*big.Int, error)

AvailableAmount is a free data retrieval call binding the contract method 0x1a197588.

Solidity: function availableAmount(addresses address[3], values uint256[4]) constant returns(uint256)

func (*ExchangeCallerSession) CanTrade

func (_Exchange *ExchangeCallerSession) CanTrade(addresses [3]common.Address, values [4]*big.Int, signature []byte) (bool, error)

CanTrade is a free data retrieval call binding the contract method 0x08fa0e92.

Solidity: function canTrade(addresses address[3], values uint256[4], signature bytes) constant returns(bool)

func (*ExchangeCallerSession) Filled

func (_Exchange *ExchangeCallerSession) Filled(hash [32]byte) (*big.Int, error)

Filled is a free data retrieval call binding the contract method 0x288cdc91.

Solidity: function filled(hash bytes32) constant returns(uint256)

func (*ExchangeCallerSession) IsOrdered

func (_Exchange *ExchangeCallerSession) IsOrdered(user common.Address, hash [32]byte) (bool, error)

IsOrdered is a free data retrieval call binding the contract method 0x00f29d55.

Solidity: function isOrdered(user address, hash bytes32) constant returns(bool)

func (*ExchangeCallerSession) Vault

func (_Exchange *ExchangeCallerSession) Vault() (common.Address, error)

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

Solidity: function vault() constant returns(address)

type ExchangeCancelled

type ExchangeCancelled struct {
	Hash [32]byte
	Raw  types.Log // Blockchain specific contextual infos
}

ExchangeCancelled represents a Cancelled event raised by the Exchange contract.

type ExchangeCancelledIterator

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

ExchangeCancelledIterator is returned from FilterCancelled and is used to iterate over the raw logs and unpacked data for Cancelled events raised by the Exchange contract.

func (*ExchangeCancelledIterator) Close

func (it *ExchangeCancelledIterator) Close() error

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

func (*ExchangeCancelledIterator) Error

func (it *ExchangeCancelledIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeCancelledIterator) Next

func (it *ExchangeCancelledIterator) 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 ExchangeFilterer

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

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

func NewExchangeFilterer

func NewExchangeFilterer(address common.Address, filterer bind.ContractFilterer) (*ExchangeFilterer, error)

NewExchangeFilterer creates a new log filterer instance of Exchange, bound to a specific deployed contract.

func (*ExchangeFilterer) FilterCancelled

func (_Exchange *ExchangeFilterer) FilterCancelled(opts *bind.FilterOpts, hash [][32]byte) (*ExchangeCancelledIterator, error)

FilterCancelled is a free log retrieval operation binding the contract event 0xbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb70.

Solidity: event Cancelled(hash indexed bytes32)

func (*ExchangeFilterer) FilterOrdered

func (_Exchange *ExchangeFilterer) FilterOrdered(opts *bind.FilterOpts) (*ExchangeOrderedIterator, error)

FilterOrdered is a free log retrieval operation binding the contract event 0x24ec4e2d3ad6fb01b5c3b3466504af096fcd9b951cd27a3a0e56225d39c17aa0.

Solidity: event Ordered(maker address, makerToken address, takerToken address, makerTokenAmount uint256, takerTokenAmount uint256, expires uint256, nonce uint256)

func (*ExchangeFilterer) FilterTraded

func (_Exchange *ExchangeFilterer) FilterTraded(opts *bind.FilterOpts, hash [][32]byte) (*ExchangeTradedIterator, error)

FilterTraded is a free log retrieval operation binding the contract event 0xe1d2889bf5062ca6cccab7b9d6f0548e654943875f2a9c45eaaef37b11d7f68c.

Solidity: event Traded(hash indexed bytes32, makerToken address, makerTokenAmount uint256, takerToken address, takerTokenAmount uint256, maker address, taker address)

func (*ExchangeFilterer) WatchCancelled

func (_Exchange *ExchangeFilterer) WatchCancelled(opts *bind.WatchOpts, sink chan<- *ExchangeCancelled, hash [][32]byte) (event.Subscription, error)

WatchCancelled is a free log subscription operation binding the contract event 0xbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb70.

Solidity: event Cancelled(hash indexed bytes32)

func (*ExchangeFilterer) WatchOrdered

func (_Exchange *ExchangeFilterer) WatchOrdered(opts *bind.WatchOpts, sink chan<- *ExchangeOrdered) (event.Subscription, error)

WatchOrdered is a free log subscription operation binding the contract event 0x24ec4e2d3ad6fb01b5c3b3466504af096fcd9b951cd27a3a0e56225d39c17aa0.

Solidity: event Ordered(maker address, makerToken address, takerToken address, makerTokenAmount uint256, takerTokenAmount uint256, expires uint256, nonce uint256)

func (*ExchangeFilterer) WatchTraded

func (_Exchange *ExchangeFilterer) WatchTraded(opts *bind.WatchOpts, sink chan<- *ExchangeTraded, hash [][32]byte) (event.Subscription, error)

WatchTraded is a free log subscription operation binding the contract event 0xe1d2889bf5062ca6cccab7b9d6f0548e654943875f2a9c45eaaef37b11d7f68c.

Solidity: event Traded(hash indexed bytes32, makerToken address, makerTokenAmount uint256, takerToken address, takerTokenAmount uint256, maker address, taker address)

type ExchangeOrdered

type ExchangeOrdered struct {
	Maker            common.Address
	MakerToken       common.Address
	TakerToken       common.Address
	MakerTokenAmount *big.Int
	TakerTokenAmount *big.Int
	Expires          *big.Int
	Nonce            *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ExchangeOrdered represents a Ordered event raised by the Exchange contract.

type ExchangeOrderedIterator

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

ExchangeOrderedIterator is returned from FilterOrdered and is used to iterate over the raw logs and unpacked data for Ordered events raised by the Exchange contract.

func (*ExchangeOrderedIterator) Close

func (it *ExchangeOrderedIterator) Close() error

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

func (*ExchangeOrderedIterator) Error

func (it *ExchangeOrderedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeOrderedIterator) Next

func (it *ExchangeOrderedIterator) 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 ExchangeRaw

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

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

func (*ExchangeRaw) Call

func (_Exchange *ExchangeRaw) 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 (*ExchangeRaw) Transact

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

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

func (*ExchangeRaw) Transfer

func (_Exchange *ExchangeRaw) 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 ExchangeSession

type ExchangeSession struct {
	Contract     *Exchange         // 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
}

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

func (*ExchangeSession) AvailableAmount

func (_Exchange *ExchangeSession) AvailableAmount(addresses [3]common.Address, values [4]*big.Int) (*big.Int, error)

AvailableAmount is a free data retrieval call binding the contract method 0x1a197588.

Solidity: function availableAmount(addresses address[3], values uint256[4]) constant returns(uint256)

func (*ExchangeSession) CanTrade

func (_Exchange *ExchangeSession) CanTrade(addresses [3]common.Address, values [4]*big.Int, signature []byte) (bool, error)

CanTrade is a free data retrieval call binding the contract method 0x08fa0e92.

Solidity: function canTrade(addresses address[3], values uint256[4], signature bytes) constant returns(bool)

func (*ExchangeSession) Cancel

func (_Exchange *ExchangeSession) Cancel(addresses [3]common.Address, values [4]*big.Int) (*types.Transaction, error)

Cancel is a paid mutator transaction binding the contract method 0xb1c0e063.

Solidity: function cancel(addresses address[3], values uint256[4]) returns()

func (*ExchangeSession) Filled

func (_Exchange *ExchangeSession) Filled(hash [32]byte) (*big.Int, error)

Filled is a free data retrieval call binding the contract method 0x288cdc91.

Solidity: function filled(hash bytes32) constant returns(uint256)

func (*ExchangeSession) IsOrdered

func (_Exchange *ExchangeSession) IsOrdered(user common.Address, hash [32]byte) (bool, error)

IsOrdered is a free data retrieval call binding the contract method 0x00f29d55.

Solidity: function isOrdered(user address, hash bytes32) constant returns(bool)

func (*ExchangeSession) Order

func (_Exchange *ExchangeSession) Order(addresses [2]common.Address, values [4]*big.Int) (*types.Transaction, error)

Order is a paid mutator transaction binding the contract method 0xc6f54e62.

Solidity: function order(addresses address[2], values uint256[4]) returns()

func (*ExchangeSession) Trade

func (_Exchange *ExchangeSession) Trade(addresses [3]common.Address, values [4]*big.Int, signature []byte, maxFillAmount *big.Int) (*types.Transaction, error)

Trade is a paid mutator transaction binding the contract method 0x08218c98.

Solidity: function trade(addresses address[3], values uint256[4], signature bytes, maxFillAmount uint256) returns()

func (*ExchangeSession) Vault

func (_Exchange *ExchangeSession) Vault() (common.Address, error)

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

Solidity: function vault() constant returns(address)

type ExchangeTraded

type ExchangeTraded struct {
	Hash             [32]byte
	MakerToken       common.Address
	MakerTokenAmount *big.Int
	TakerToken       common.Address
	TakerTokenAmount *big.Int
	Maker            common.Address
	Taker            common.Address
	Raw              types.Log // Blockchain specific contextual infos
}

ExchangeTraded represents a Traded event raised by the Exchange contract.

type ExchangeTradedIterator

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

ExchangeTradedIterator is returned from FilterTraded and is used to iterate over the raw logs and unpacked data for Traded events raised by the Exchange contract.

func (*ExchangeTradedIterator) Close

func (it *ExchangeTradedIterator) Close() error

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

func (*ExchangeTradedIterator) Error

func (it *ExchangeTradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ExchangeTradedIterator) Next

func (it *ExchangeTradedIterator) 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 ExchangeTransactor

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

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

func NewExchangeTransactor

func NewExchangeTransactor(address common.Address, transactor bind.ContractTransactor) (*ExchangeTransactor, error)

NewExchangeTransactor creates a new write-only instance of Exchange, bound to a specific deployed contract.

func (*ExchangeTransactor) Cancel

func (_Exchange *ExchangeTransactor) Cancel(opts *bind.TransactOpts, addresses [3]common.Address, values [4]*big.Int) (*types.Transaction, error)

Cancel is a paid mutator transaction binding the contract method 0xb1c0e063.

Solidity: function cancel(addresses address[3], values uint256[4]) returns()

func (*ExchangeTransactor) Order

func (_Exchange *ExchangeTransactor) Order(opts *bind.TransactOpts, addresses [2]common.Address, values [4]*big.Int) (*types.Transaction, error)

Order is a paid mutator transaction binding the contract method 0xc6f54e62.

Solidity: function order(addresses address[2], values uint256[4]) returns()

func (*ExchangeTransactor) Trade

func (_Exchange *ExchangeTransactor) Trade(opts *bind.TransactOpts, addresses [3]common.Address, values [4]*big.Int, signature []byte, maxFillAmount *big.Int) (*types.Transaction, error)

Trade is a paid mutator transaction binding the contract method 0x08218c98.

Solidity: function trade(addresses address[3], values uint256[4], signature bytes, maxFillAmount uint256) returns()

type ExchangeTransactorRaw

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

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

func (*ExchangeTransactorRaw) Transact

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

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

func (*ExchangeTransactorRaw) Transfer

func (_Exchange *ExchangeTransactorRaw) 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 ExchangeTransactorSession

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

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

func (*ExchangeTransactorSession) Cancel

func (_Exchange *ExchangeTransactorSession) Cancel(addresses [3]common.Address, values [4]*big.Int) (*types.Transaction, error)

Cancel is a paid mutator transaction binding the contract method 0xb1c0e063.

Solidity: function cancel(addresses address[3], values uint256[4]) returns()

func (*ExchangeTransactorSession) Order

func (_Exchange *ExchangeTransactorSession) Order(addresses [2]common.Address, values [4]*big.Int) (*types.Transaction, error)

Order is a paid mutator transaction binding the contract method 0xc6f54e62.

Solidity: function order(addresses address[2], values uint256[4]) returns()

func (*ExchangeTransactorSession) Trade

func (_Exchange *ExchangeTransactorSession) Trade(addresses [3]common.Address, values [4]*big.Int, signature []byte, maxFillAmount *big.Int) (*types.Transaction, error)

Trade is a paid mutator transaction binding the contract method 0x08218c98.

Solidity: function trade(addresses address[3], values uint256[4], signature bytes, maxFillAmount uint256) returns()

type Vault

type Vault struct {
	VaultCaller     // Read-only binding to the contract
	VaultTransactor // Write-only binding to the contract
	VaultFilterer   // Log filterer for contract events
}

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

func DeployVault

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

DeployVault deploys a new Ethereum contract, binding an instance of Vault to it.

func NewVault

func NewVault(address common.Address, backend bind.ContractBackend) (*Vault, error)

NewVault creates a new instance of Vault, bound to a specific deployed contract.

type VaultAddedSpender

type VaultAddedSpender struct {
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultAddedSpender represents a AddedSpender event raised by the Vault contract.

type VaultAddedSpenderIterator

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

VaultAddedSpenderIterator is returned from FilterAddedSpender and is used to iterate over the raw logs and unpacked data for AddedSpender events raised by the Vault contract.

func (*VaultAddedSpenderIterator) Close

func (it *VaultAddedSpenderIterator) Close() error

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

func (*VaultAddedSpenderIterator) Error

func (it *VaultAddedSpenderIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultAddedSpenderIterator) Next

func (it *VaultAddedSpenderIterator) 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 VaultApproved

type VaultApproved struct {
	User    common.Address
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultApproved represents a Approved event raised by the Vault contract.

type VaultApprovedIterator

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

VaultApprovedIterator is returned from FilterApproved and is used to iterate over the raw logs and unpacked data for Approved events raised by the Vault contract.

func (*VaultApprovedIterator) Close

func (it *VaultApprovedIterator) Close() error

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

func (*VaultApprovedIterator) Error

func (it *VaultApprovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultApprovedIterator) Next

func (it *VaultApprovedIterator) 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 VaultCaller

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

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

func NewVaultCaller

func NewVaultCaller(address common.Address, caller bind.ContractCaller) (*VaultCaller, error)

NewVaultCaller creates a new read-only instance of Vault, bound to a specific deployed contract.

func (*VaultCaller) BalanceOf

func (_Vault *VaultCaller) BalanceOf(opts *bind.CallOpts, token common.Address, user common.Address) (*big.Int, error)

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

Solidity: function balanceOf(token address, user address) constant returns(uint256)

func (*VaultCaller) IsApproved

func (_Vault *VaultCaller) IsApproved(opts *bind.CallOpts, user common.Address, spender common.Address) (bool, error)

IsApproved is a free data retrieval call binding the contract method 0xa389783e.

Solidity: function isApproved(user address, spender address) constant returns(bool)

func (*VaultCaller) IsSpender

func (_Vault *VaultCaller) IsSpender(opts *bind.CallOpts, spender common.Address) (bool, error)

IsSpender is a free data retrieval call binding the contract method 0x9a206ece.

Solidity: function isSpender(spender address) constant returns(bool)

func (*VaultCaller) LatestSpender

func (_Vault *VaultCaller) LatestSpender(opts *bind.CallOpts) (common.Address, error)

LatestSpender is a free data retrieval call binding the contract method 0x6f362c2b.

Solidity: function latestSpender() constant returns(address)

type VaultCallerRaw

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

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

func (*VaultCallerRaw) Call

func (_Vault *VaultCallerRaw) 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 VaultCallerSession

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

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

func (*VaultCallerSession) BalanceOf

func (_Vault *VaultCallerSession) BalanceOf(token common.Address, user common.Address) (*big.Int, error)

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

Solidity: function balanceOf(token address, user address) constant returns(uint256)

func (*VaultCallerSession) IsApproved

func (_Vault *VaultCallerSession) IsApproved(user common.Address, spender common.Address) (bool, error)

IsApproved is a free data retrieval call binding the contract method 0xa389783e.

Solidity: function isApproved(user address, spender address) constant returns(bool)

func (*VaultCallerSession) IsSpender

func (_Vault *VaultCallerSession) IsSpender(spender common.Address) (bool, error)

IsSpender is a free data retrieval call binding the contract method 0x9a206ece.

Solidity: function isSpender(spender address) constant returns(bool)

func (*VaultCallerSession) LatestSpender

func (_Vault *VaultCallerSession) LatestSpender() (common.Address, error)

LatestSpender is a free data retrieval call binding the contract method 0x6f362c2b.

Solidity: function latestSpender() constant returns(address)

type VaultDeposited

type VaultDeposited struct {
	User   common.Address
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultDeposited represents a Deposited event raised by the Vault contract.

type VaultDepositedIterator

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

VaultDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Vault contract.

func (*VaultDepositedIterator) Close

func (it *VaultDepositedIterator) Close() error

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

func (*VaultDepositedIterator) Error

func (it *VaultDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultDepositedIterator) Next

func (it *VaultDepositedIterator) 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 VaultFilterer

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

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

func NewVaultFilterer

func NewVaultFilterer(address common.Address, filterer bind.ContractFilterer) (*VaultFilterer, error)

NewVaultFilterer creates a new log filterer instance of Vault, bound to a specific deployed contract.

func (*VaultFilterer) FilterAddedSpender

func (_Vault *VaultFilterer) FilterAddedSpender(opts *bind.FilterOpts, spender []common.Address) (*VaultAddedSpenderIterator, error)

FilterAddedSpender is a free log retrieval operation binding the contract event 0x8fd571ab479506dd07023e78f221245916b6cb54285d954030be2cfb1674657a.

Solidity: event AddedSpender(spender indexed address)

func (*VaultFilterer) FilterApproved

func (_Vault *VaultFilterer) FilterApproved(opts *bind.FilterOpts, user []common.Address, spender []common.Address) (*VaultApprovedIterator, error)

FilterApproved is a free log retrieval operation binding the contract event 0xaad2833c9fd7a3de33f301e5186ee84d1a5753ce32de6b97baedaac4b92b55fc.

Solidity: event Approved(user indexed address, spender indexed address)

func (*VaultFilterer) FilterDeposited

func (_Vault *VaultFilterer) FilterDeposited(opts *bind.FilterOpts, user []common.Address) (*VaultDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7.

Solidity: event Deposited(user indexed address, token address, amount uint256)

func (*VaultFilterer) FilterRemovedSpender

func (_Vault *VaultFilterer) FilterRemovedSpender(opts *bind.FilterOpts, spender []common.Address) (*VaultRemovedSpenderIterator, error)

FilterRemovedSpender is a free log retrieval operation binding the contract event 0x0e2fc808ab0ead56889f8ff2a8ea0841ba4c0b8311607a902eb24b834857e1b5.

Solidity: event RemovedSpender(spender indexed address)

func (*VaultFilterer) FilterUnapproved

func (_Vault *VaultFilterer) FilterUnapproved(opts *bind.FilterOpts, user []common.Address, spender []common.Address) (*VaultUnapprovedIterator, error)

FilterUnapproved is a free log retrieval operation binding the contract event 0x1ab270601cc6b54dd5e8ce5c70dbac96a01ff12939e4e76488df62adc8e68373.

Solidity: event Unapproved(user indexed address, spender indexed address)

func (*VaultFilterer) FilterWithdrawn

func (_Vault *VaultFilterer) FilterWithdrawn(opts *bind.FilterOpts, user []common.Address) (*VaultWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(user indexed address, token address, amount uint256)

func (*VaultFilterer) WatchAddedSpender

func (_Vault *VaultFilterer) WatchAddedSpender(opts *bind.WatchOpts, sink chan<- *VaultAddedSpender, spender []common.Address) (event.Subscription, error)

WatchAddedSpender is a free log subscription operation binding the contract event 0x8fd571ab479506dd07023e78f221245916b6cb54285d954030be2cfb1674657a.

Solidity: event AddedSpender(spender indexed address)

func (*VaultFilterer) WatchApproved

func (_Vault *VaultFilterer) WatchApproved(opts *bind.WatchOpts, sink chan<- *VaultApproved, user []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproved is a free log subscription operation binding the contract event 0xaad2833c9fd7a3de33f301e5186ee84d1a5753ce32de6b97baedaac4b92b55fc.

Solidity: event Approved(user indexed address, spender indexed address)

func (*VaultFilterer) WatchDeposited

func (_Vault *VaultFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *VaultDeposited, user []common.Address) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7.

Solidity: event Deposited(user indexed address, token address, amount uint256)

func (*VaultFilterer) WatchRemovedSpender

func (_Vault *VaultFilterer) WatchRemovedSpender(opts *bind.WatchOpts, sink chan<- *VaultRemovedSpender, spender []common.Address) (event.Subscription, error)

WatchRemovedSpender is a free log subscription operation binding the contract event 0x0e2fc808ab0ead56889f8ff2a8ea0841ba4c0b8311607a902eb24b834857e1b5.

Solidity: event RemovedSpender(spender indexed address)

func (*VaultFilterer) WatchUnapproved

func (_Vault *VaultFilterer) WatchUnapproved(opts *bind.WatchOpts, sink chan<- *VaultUnapproved, user []common.Address, spender []common.Address) (event.Subscription, error)

WatchUnapproved is a free log subscription operation binding the contract event 0x1ab270601cc6b54dd5e8ce5c70dbac96a01ff12939e4e76488df62adc8e68373.

Solidity: event Unapproved(user indexed address, spender indexed address)

func (*VaultFilterer) WatchWithdrawn

func (_Vault *VaultFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *VaultWithdrawn, user []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(user indexed address, token address, amount uint256)

type VaultInterface

type VaultInterface struct {
	VaultInterfaceCaller     // Read-only binding to the contract
	VaultInterfaceTransactor // Write-only binding to the contract
	VaultInterfaceFilterer   // Log filterer for contract events
}

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

func DeployVaultInterface

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

DeployVaultInterface deploys a new Ethereum contract, binding an instance of VaultInterface to it.

func NewVaultInterface

func NewVaultInterface(address common.Address, backend bind.ContractBackend) (*VaultInterface, error)

NewVaultInterface creates a new instance of VaultInterface, bound to a specific deployed contract.

type VaultInterfaceAddedSpender

type VaultInterfaceAddedSpender struct {
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultInterfaceAddedSpender represents a AddedSpender event raised by the VaultInterface contract.

type VaultInterfaceAddedSpenderIterator

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

VaultInterfaceAddedSpenderIterator is returned from FilterAddedSpender and is used to iterate over the raw logs and unpacked data for AddedSpender events raised by the VaultInterface contract.

func (*VaultInterfaceAddedSpenderIterator) Close

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

func (*VaultInterfaceAddedSpenderIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultInterfaceAddedSpenderIterator) 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 VaultInterfaceApproved

type VaultInterfaceApproved struct {
	User    common.Address
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultInterfaceApproved represents a Approved event raised by the VaultInterface contract.

type VaultInterfaceApprovedIterator

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

VaultInterfaceApprovedIterator is returned from FilterApproved and is used to iterate over the raw logs and unpacked data for Approved events raised by the VaultInterface contract.

func (*VaultInterfaceApprovedIterator) Close

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

func (*VaultInterfaceApprovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultInterfaceApprovedIterator) 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 VaultInterfaceCaller

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

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

func NewVaultInterfaceCaller

func NewVaultInterfaceCaller(address common.Address, caller bind.ContractCaller) (*VaultInterfaceCaller, error)

NewVaultInterfaceCaller creates a new read-only instance of VaultInterface, bound to a specific deployed contract.

func (*VaultInterfaceCaller) BalanceOf

func (_VaultInterface *VaultInterfaceCaller) BalanceOf(opts *bind.CallOpts, token common.Address, user common.Address) (*big.Int, error)

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

Solidity: function balanceOf(token address, user address) constant returns(uint256)

func (*VaultInterfaceCaller) IsApproved

func (_VaultInterface *VaultInterfaceCaller) IsApproved(opts *bind.CallOpts, user common.Address, spender common.Address) (bool, error)

IsApproved is a free data retrieval call binding the contract method 0xa389783e.

Solidity: function isApproved(user address, spender address) constant returns(bool)

func (*VaultInterfaceCaller) IsSpender

func (_VaultInterface *VaultInterfaceCaller) IsSpender(opts *bind.CallOpts, spender common.Address) (bool, error)

IsSpender is a free data retrieval call binding the contract method 0x9a206ece.

Solidity: function isSpender(spender address) constant returns(bool)

func (*VaultInterfaceCaller) LatestSpender

func (_VaultInterface *VaultInterfaceCaller) LatestSpender(opts *bind.CallOpts) (common.Address, error)

LatestSpender is a free data retrieval call binding the contract method 0x6f362c2b.

Solidity: function latestSpender() constant returns(address)

type VaultInterfaceCallerRaw

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

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

func (*VaultInterfaceCallerRaw) Call

func (_VaultInterface *VaultInterfaceCallerRaw) 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 VaultInterfaceCallerSession

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

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

func (*VaultInterfaceCallerSession) BalanceOf

func (_VaultInterface *VaultInterfaceCallerSession) BalanceOf(token common.Address, user common.Address) (*big.Int, error)

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

Solidity: function balanceOf(token address, user address) constant returns(uint256)

func (*VaultInterfaceCallerSession) IsApproved

func (_VaultInterface *VaultInterfaceCallerSession) IsApproved(user common.Address, spender common.Address) (bool, error)

IsApproved is a free data retrieval call binding the contract method 0xa389783e.

Solidity: function isApproved(user address, spender address) constant returns(bool)

func (*VaultInterfaceCallerSession) IsSpender

func (_VaultInterface *VaultInterfaceCallerSession) IsSpender(spender common.Address) (bool, error)

IsSpender is a free data retrieval call binding the contract method 0x9a206ece.

Solidity: function isSpender(spender address) constant returns(bool)

func (*VaultInterfaceCallerSession) LatestSpender

func (_VaultInterface *VaultInterfaceCallerSession) LatestSpender() (common.Address, error)

LatestSpender is a free data retrieval call binding the contract method 0x6f362c2b.

Solidity: function latestSpender() constant returns(address)

type VaultInterfaceDeposited

type VaultInterfaceDeposited struct {
	User   common.Address
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultInterfaceDeposited represents a Deposited event raised by the VaultInterface contract.

type VaultInterfaceDepositedIterator

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

VaultInterfaceDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the VaultInterface contract.

func (*VaultInterfaceDepositedIterator) Close

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

func (*VaultInterfaceDepositedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultInterfaceDepositedIterator) 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 VaultInterfaceFilterer

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

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

func NewVaultInterfaceFilterer

func NewVaultInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*VaultInterfaceFilterer, error)

NewVaultInterfaceFilterer creates a new log filterer instance of VaultInterface, bound to a specific deployed contract.

func (*VaultInterfaceFilterer) FilterAddedSpender

func (_VaultInterface *VaultInterfaceFilterer) FilterAddedSpender(opts *bind.FilterOpts, spender []common.Address) (*VaultInterfaceAddedSpenderIterator, error)

FilterAddedSpender is a free log retrieval operation binding the contract event 0x8fd571ab479506dd07023e78f221245916b6cb54285d954030be2cfb1674657a.

Solidity: event AddedSpender(spender indexed address)

func (*VaultInterfaceFilterer) FilterApproved

func (_VaultInterface *VaultInterfaceFilterer) FilterApproved(opts *bind.FilterOpts, user []common.Address, spender []common.Address) (*VaultInterfaceApprovedIterator, error)

FilterApproved is a free log retrieval operation binding the contract event 0xaad2833c9fd7a3de33f301e5186ee84d1a5753ce32de6b97baedaac4b92b55fc.

Solidity: event Approved(user indexed address, spender indexed address)

func (*VaultInterfaceFilterer) FilterDeposited

func (_VaultInterface *VaultInterfaceFilterer) FilterDeposited(opts *bind.FilterOpts, user []common.Address) (*VaultInterfaceDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7.

Solidity: event Deposited(user indexed address, token address, amount uint256)

func (*VaultInterfaceFilterer) FilterRemovedSpender

func (_VaultInterface *VaultInterfaceFilterer) FilterRemovedSpender(opts *bind.FilterOpts, spender []common.Address) (*VaultInterfaceRemovedSpenderIterator, error)

FilterRemovedSpender is a free log retrieval operation binding the contract event 0x0e2fc808ab0ead56889f8ff2a8ea0841ba4c0b8311607a902eb24b834857e1b5.

Solidity: event RemovedSpender(spender indexed address)

func (*VaultInterfaceFilterer) FilterUnapproved

func (_VaultInterface *VaultInterfaceFilterer) FilterUnapproved(opts *bind.FilterOpts, user []common.Address, spender []common.Address) (*VaultInterfaceUnapprovedIterator, error)

FilterUnapproved is a free log retrieval operation binding the contract event 0x1ab270601cc6b54dd5e8ce5c70dbac96a01ff12939e4e76488df62adc8e68373.

Solidity: event Unapproved(user indexed address, spender indexed address)

func (*VaultInterfaceFilterer) FilterWithdrawn

func (_VaultInterface *VaultInterfaceFilterer) FilterWithdrawn(opts *bind.FilterOpts, user []common.Address) (*VaultInterfaceWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(user indexed address, token address, amount uint256)

func (*VaultInterfaceFilterer) WatchAddedSpender

func (_VaultInterface *VaultInterfaceFilterer) WatchAddedSpender(opts *bind.WatchOpts, sink chan<- *VaultInterfaceAddedSpender, spender []common.Address) (event.Subscription, error)

WatchAddedSpender is a free log subscription operation binding the contract event 0x8fd571ab479506dd07023e78f221245916b6cb54285d954030be2cfb1674657a.

Solidity: event AddedSpender(spender indexed address)

func (*VaultInterfaceFilterer) WatchApproved

func (_VaultInterface *VaultInterfaceFilterer) WatchApproved(opts *bind.WatchOpts, sink chan<- *VaultInterfaceApproved, user []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproved is a free log subscription operation binding the contract event 0xaad2833c9fd7a3de33f301e5186ee84d1a5753ce32de6b97baedaac4b92b55fc.

Solidity: event Approved(user indexed address, spender indexed address)

func (*VaultInterfaceFilterer) WatchDeposited

func (_VaultInterface *VaultInterfaceFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *VaultInterfaceDeposited, user []common.Address) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7.

Solidity: event Deposited(user indexed address, token address, amount uint256)

func (*VaultInterfaceFilterer) WatchRemovedSpender

func (_VaultInterface *VaultInterfaceFilterer) WatchRemovedSpender(opts *bind.WatchOpts, sink chan<- *VaultInterfaceRemovedSpender, spender []common.Address) (event.Subscription, error)

WatchRemovedSpender is a free log subscription operation binding the contract event 0x0e2fc808ab0ead56889f8ff2a8ea0841ba4c0b8311607a902eb24b834857e1b5.

Solidity: event RemovedSpender(spender indexed address)

func (*VaultInterfaceFilterer) WatchUnapproved

func (_VaultInterface *VaultInterfaceFilterer) WatchUnapproved(opts *bind.WatchOpts, sink chan<- *VaultInterfaceUnapproved, user []common.Address, spender []common.Address) (event.Subscription, error)

WatchUnapproved is a free log subscription operation binding the contract event 0x1ab270601cc6b54dd5e8ce5c70dbac96a01ff12939e4e76488df62adc8e68373.

Solidity: event Unapproved(user indexed address, spender indexed address)

func (*VaultInterfaceFilterer) WatchWithdrawn

func (_VaultInterface *VaultInterfaceFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *VaultInterfaceWithdrawn, user []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(user indexed address, token address, amount uint256)

type VaultInterfaceRaw

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

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

func (*VaultInterfaceRaw) Call

func (_VaultInterface *VaultInterfaceRaw) 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 (*VaultInterfaceRaw) Transact

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

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

func (*VaultInterfaceRaw) Transfer

func (_VaultInterface *VaultInterfaceRaw) 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 VaultInterfaceRemovedSpender

type VaultInterfaceRemovedSpender struct {
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultInterfaceRemovedSpender represents a RemovedSpender event raised by the VaultInterface contract.

type VaultInterfaceRemovedSpenderIterator

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

VaultInterfaceRemovedSpenderIterator is returned from FilterRemovedSpender and is used to iterate over the raw logs and unpacked data for RemovedSpender events raised by the VaultInterface contract.

func (*VaultInterfaceRemovedSpenderIterator) Close

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

func (*VaultInterfaceRemovedSpenderIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultInterfaceRemovedSpenderIterator) 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 VaultInterfaceSession

type VaultInterfaceSession struct {
	Contract     *VaultInterface   // 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
}

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

func (*VaultInterfaceSession) AddSpender

func (_VaultInterface *VaultInterfaceSession) AddSpender(spender common.Address) (*types.Transaction, error)

AddSpender is a paid mutator transaction binding the contract method 0xe7e31e7a.

Solidity: function addSpender(spender address) returns()

func (*VaultInterfaceSession) Approve

func (_VaultInterface *VaultInterfaceSession) Approve(spender common.Address) (*types.Transaction, error)

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

Solidity: function approve(spender address) returns()

func (*VaultInterfaceSession) BalanceOf

func (_VaultInterface *VaultInterfaceSession) BalanceOf(token common.Address, user common.Address) (*big.Int, error)

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

Solidity: function balanceOf(token address, user address) constant returns(uint256)

func (*VaultInterfaceSession) Deposit

func (_VaultInterface *VaultInterfaceSession) Deposit(token common.Address, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.

Solidity: function deposit(token address, amount uint256) returns()

func (*VaultInterfaceSession) IsApproved

func (_VaultInterface *VaultInterfaceSession) IsApproved(user common.Address, spender common.Address) (bool, error)

IsApproved is a free data retrieval call binding the contract method 0xa389783e.

Solidity: function isApproved(user address, spender address) constant returns(bool)

func (*VaultInterfaceSession) IsSpender

func (_VaultInterface *VaultInterfaceSession) IsSpender(spender common.Address) (bool, error)

IsSpender is a free data retrieval call binding the contract method 0x9a206ece.

Solidity: function isSpender(spender address) constant returns(bool)

func (*VaultInterfaceSession) LatestSpender

func (_VaultInterface *VaultInterfaceSession) LatestSpender() (common.Address, error)

LatestSpender is a free data retrieval call binding the contract method 0x6f362c2b.

Solidity: function latestSpender() constant returns(address)

func (*VaultInterfaceSession) RemoveSpender

func (_VaultInterface *VaultInterfaceSession) RemoveSpender(spender common.Address) (*types.Transaction, error)

RemoveSpender is a paid mutator transaction binding the contract method 0x8ce5877c.

Solidity: function removeSpender(spender address) returns()

func (*VaultInterfaceSession) TokenFallback

func (_VaultInterface *VaultInterfaceSession) TokenFallback(from common.Address, value *big.Int, data []byte) (*types.Transaction, error)

TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.

Solidity: function tokenFallback(from address, value uint256, data bytes) returns()

func (*VaultInterfaceSession) Transfer

func (_VaultInterface *VaultInterfaceSession) Transfer(token common.Address, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xf18d03cc.

Solidity: function transfer(token address, from address, to address, amount uint256) returns()

func (*VaultInterfaceSession) Unapprove

func (_VaultInterface *VaultInterfaceSession) Unapprove(spender common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfbf1f78a.

Solidity: function unapprove(spender address) returns()

func (*VaultInterfaceSession) Withdraw

func (_VaultInterface *VaultInterfaceSession) Withdraw(token common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.

Solidity: function withdraw(token address, amount uint256) returns()

type VaultInterfaceTransactor

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

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

func NewVaultInterfaceTransactor

func NewVaultInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*VaultInterfaceTransactor, error)

NewVaultInterfaceTransactor creates a new write-only instance of VaultInterface, bound to a specific deployed contract.

func (*VaultInterfaceTransactor) AddSpender

func (_VaultInterface *VaultInterfaceTransactor) AddSpender(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

AddSpender is a paid mutator transaction binding the contract method 0xe7e31e7a.

Solidity: function addSpender(spender address) returns()

func (*VaultInterfaceTransactor) Approve

func (_VaultInterface *VaultInterfaceTransactor) Approve(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

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

Solidity: function approve(spender address) returns()

func (*VaultInterfaceTransactor) Deposit

func (_VaultInterface *VaultInterfaceTransactor) Deposit(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.

Solidity: function deposit(token address, amount uint256) returns()

func (*VaultInterfaceTransactor) RemoveSpender

func (_VaultInterface *VaultInterfaceTransactor) RemoveSpender(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

RemoveSpender is a paid mutator transaction binding the contract method 0x8ce5877c.

Solidity: function removeSpender(spender address) returns()

func (*VaultInterfaceTransactor) TokenFallback

func (_VaultInterface *VaultInterfaceTransactor) TokenFallback(opts *bind.TransactOpts, from common.Address, value *big.Int, data []byte) (*types.Transaction, error)

TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.

Solidity: function tokenFallback(from address, value uint256, data bytes) returns()

func (*VaultInterfaceTransactor) Transfer

func (_VaultInterface *VaultInterfaceTransactor) Transfer(opts *bind.TransactOpts, token common.Address, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xf18d03cc.

Solidity: function transfer(token address, from address, to address, amount uint256) returns()

func (*VaultInterfaceTransactor) Unapprove

func (_VaultInterface *VaultInterfaceTransactor) Unapprove(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfbf1f78a.

Solidity: function unapprove(spender address) returns()

func (*VaultInterfaceTransactor) Withdraw

func (_VaultInterface *VaultInterfaceTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.

Solidity: function withdraw(token address, amount uint256) returns()

type VaultInterfaceTransactorRaw

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

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

func (*VaultInterfaceTransactorRaw) Transact

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

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

func (*VaultInterfaceTransactorRaw) Transfer

func (_VaultInterface *VaultInterfaceTransactorRaw) 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 VaultInterfaceTransactorSession

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

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

func (*VaultInterfaceTransactorSession) AddSpender

func (_VaultInterface *VaultInterfaceTransactorSession) AddSpender(spender common.Address) (*types.Transaction, error)

AddSpender is a paid mutator transaction binding the contract method 0xe7e31e7a.

Solidity: function addSpender(spender address) returns()

func (*VaultInterfaceTransactorSession) Approve

func (_VaultInterface *VaultInterfaceTransactorSession) Approve(spender common.Address) (*types.Transaction, error)

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

Solidity: function approve(spender address) returns()

func (*VaultInterfaceTransactorSession) Deposit

func (_VaultInterface *VaultInterfaceTransactorSession) Deposit(token common.Address, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.

Solidity: function deposit(token address, amount uint256) returns()

func (*VaultInterfaceTransactorSession) RemoveSpender

func (_VaultInterface *VaultInterfaceTransactorSession) RemoveSpender(spender common.Address) (*types.Transaction, error)

RemoveSpender is a paid mutator transaction binding the contract method 0x8ce5877c.

Solidity: function removeSpender(spender address) returns()

func (*VaultInterfaceTransactorSession) TokenFallback

func (_VaultInterface *VaultInterfaceTransactorSession) TokenFallback(from common.Address, value *big.Int, data []byte) (*types.Transaction, error)

TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.

Solidity: function tokenFallback(from address, value uint256, data bytes) returns()

func (*VaultInterfaceTransactorSession) Transfer

func (_VaultInterface *VaultInterfaceTransactorSession) Transfer(token common.Address, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xf18d03cc.

Solidity: function transfer(token address, from address, to address, amount uint256) returns()

func (*VaultInterfaceTransactorSession) Unapprove

func (_VaultInterface *VaultInterfaceTransactorSession) Unapprove(spender common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfbf1f78a.

Solidity: function unapprove(spender address) returns()

func (*VaultInterfaceTransactorSession) Withdraw

func (_VaultInterface *VaultInterfaceTransactorSession) Withdraw(token common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.

Solidity: function withdraw(token address, amount uint256) returns()

type VaultInterfaceUnapproved

type VaultInterfaceUnapproved struct {
	User    common.Address
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultInterfaceUnapproved represents a Unapproved event raised by the VaultInterface contract.

type VaultInterfaceUnapprovedIterator

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

VaultInterfaceUnapprovedIterator is returned from FilterUnapproved and is used to iterate over the raw logs and unpacked data for Unapproved events raised by the VaultInterface contract.

func (*VaultInterfaceUnapprovedIterator) Close

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

func (*VaultInterfaceUnapprovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultInterfaceUnapprovedIterator) 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 VaultInterfaceWithdrawn

type VaultInterfaceWithdrawn struct {
	User   common.Address
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultInterfaceWithdrawn represents a Withdrawn event raised by the VaultInterface contract.

type VaultInterfaceWithdrawnIterator

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

VaultInterfaceWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the VaultInterface contract.

func (*VaultInterfaceWithdrawnIterator) Close

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

func (*VaultInterfaceWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultInterfaceWithdrawnIterator) 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 VaultRaw

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

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

func (*VaultRaw) Call

func (_Vault *VaultRaw) 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 (*VaultRaw) Transact

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

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

func (*VaultRaw) Transfer

func (_Vault *VaultRaw) 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 VaultRemovedSpender

type VaultRemovedSpender struct {
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultRemovedSpender represents a RemovedSpender event raised by the Vault contract.

type VaultRemovedSpenderIterator

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

VaultRemovedSpenderIterator is returned from FilterRemovedSpender and is used to iterate over the raw logs and unpacked data for RemovedSpender events raised by the Vault contract.

func (*VaultRemovedSpenderIterator) Close

func (it *VaultRemovedSpenderIterator) Close() error

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

func (*VaultRemovedSpenderIterator) Error

func (it *VaultRemovedSpenderIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultRemovedSpenderIterator) Next

func (it *VaultRemovedSpenderIterator) 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 VaultSession

type VaultSession struct {
	Contract     *Vault            // 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
}

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

func (*VaultSession) AddSpender

func (_Vault *VaultSession) AddSpender(spender common.Address) (*types.Transaction, error)

AddSpender is a paid mutator transaction binding the contract method 0xe7e31e7a.

Solidity: function addSpender(spender address) returns()

func (*VaultSession) Approve

func (_Vault *VaultSession) Approve(spender common.Address) (*types.Transaction, error)

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

Solidity: function approve(spender address) returns()

func (*VaultSession) BalanceOf

func (_Vault *VaultSession) BalanceOf(token common.Address, user common.Address) (*big.Int, error)

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

Solidity: function balanceOf(token address, user address) constant returns(uint256)

func (*VaultSession) Deposit

func (_Vault *VaultSession) Deposit(token common.Address, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.

Solidity: function deposit(token address, amount uint256) returns()

func (*VaultSession) IsApproved

func (_Vault *VaultSession) IsApproved(user common.Address, spender common.Address) (bool, error)

IsApproved is a free data retrieval call binding the contract method 0xa389783e.

Solidity: function isApproved(user address, spender address) constant returns(bool)

func (*VaultSession) IsSpender

func (_Vault *VaultSession) IsSpender(spender common.Address) (bool, error)

IsSpender is a free data retrieval call binding the contract method 0x9a206ece.

Solidity: function isSpender(spender address) constant returns(bool)

func (*VaultSession) LatestSpender

func (_Vault *VaultSession) LatestSpender() (common.Address, error)

LatestSpender is a free data retrieval call binding the contract method 0x6f362c2b.

Solidity: function latestSpender() constant returns(address)

func (*VaultSession) RemoveSpender

func (_Vault *VaultSession) RemoveSpender(spender common.Address) (*types.Transaction, error)

RemoveSpender is a paid mutator transaction binding the contract method 0x8ce5877c.

Solidity: function removeSpender(spender address) returns()

func (*VaultSession) TokenFallback

func (_Vault *VaultSession) TokenFallback(from common.Address, value *big.Int, data []byte) (*types.Transaction, error)

TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.

Solidity: function tokenFallback(from address, value uint256, data bytes) returns()

func (*VaultSession) Transfer

func (_Vault *VaultSession) Transfer(token common.Address, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xf18d03cc.

Solidity: function transfer(token address, from address, to address, amount uint256) returns()

func (*VaultSession) Unapprove

func (_Vault *VaultSession) Unapprove(spender common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfbf1f78a.

Solidity: function unapprove(spender address) returns()

func (*VaultSession) Withdraw

func (_Vault *VaultSession) Withdraw(token common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.

Solidity: function withdraw(token address, amount uint256) returns()

type VaultTransactor

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

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

func NewVaultTransactor

func NewVaultTransactor(address common.Address, transactor bind.ContractTransactor) (*VaultTransactor, error)

NewVaultTransactor creates a new write-only instance of Vault, bound to a specific deployed contract.

func (*VaultTransactor) AddSpender

func (_Vault *VaultTransactor) AddSpender(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

AddSpender is a paid mutator transaction binding the contract method 0xe7e31e7a.

Solidity: function addSpender(spender address) returns()

func (*VaultTransactor) Approve

func (_Vault *VaultTransactor) Approve(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

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

Solidity: function approve(spender address) returns()

func (*VaultTransactor) Deposit

func (_Vault *VaultTransactor) Deposit(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.

Solidity: function deposit(token address, amount uint256) returns()

func (*VaultTransactor) RemoveSpender

func (_Vault *VaultTransactor) RemoveSpender(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

RemoveSpender is a paid mutator transaction binding the contract method 0x8ce5877c.

Solidity: function removeSpender(spender address) returns()

func (*VaultTransactor) TokenFallback

func (_Vault *VaultTransactor) TokenFallback(opts *bind.TransactOpts, from common.Address, value *big.Int, data []byte) (*types.Transaction, error)

TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.

Solidity: function tokenFallback(from address, value uint256, data bytes) returns()

func (*VaultTransactor) Transfer

func (_Vault *VaultTransactor) Transfer(opts *bind.TransactOpts, token common.Address, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xf18d03cc.

Solidity: function transfer(token address, from address, to address, amount uint256) returns()

func (*VaultTransactor) Unapprove

func (_Vault *VaultTransactor) Unapprove(opts *bind.TransactOpts, spender common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfbf1f78a.

Solidity: function unapprove(spender address) returns()

func (*VaultTransactor) Withdraw

func (_Vault *VaultTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.

Solidity: function withdraw(token address, amount uint256) returns()

type VaultTransactorRaw

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

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

func (*VaultTransactorRaw) Transact

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

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

func (*VaultTransactorRaw) Transfer

func (_Vault *VaultTransactorRaw) 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 VaultTransactorSession

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

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

func (*VaultTransactorSession) AddSpender

func (_Vault *VaultTransactorSession) AddSpender(spender common.Address) (*types.Transaction, error)

AddSpender is a paid mutator transaction binding the contract method 0xe7e31e7a.

Solidity: function addSpender(spender address) returns()

func (*VaultTransactorSession) Approve

func (_Vault *VaultTransactorSession) Approve(spender common.Address) (*types.Transaction, error)

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

Solidity: function approve(spender address) returns()

func (*VaultTransactorSession) Deposit

func (_Vault *VaultTransactorSession) Deposit(token common.Address, amount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0x47e7ef24.

Solidity: function deposit(token address, amount uint256) returns()

func (*VaultTransactorSession) RemoveSpender

func (_Vault *VaultTransactorSession) RemoveSpender(spender common.Address) (*types.Transaction, error)

RemoveSpender is a paid mutator transaction binding the contract method 0x8ce5877c.

Solidity: function removeSpender(spender address) returns()

func (*VaultTransactorSession) TokenFallback

func (_Vault *VaultTransactorSession) TokenFallback(from common.Address, value *big.Int, data []byte) (*types.Transaction, error)

TokenFallback is a paid mutator transaction binding the contract method 0xc0ee0b8a.

Solidity: function tokenFallback(from address, value uint256, data bytes) returns()

func (*VaultTransactorSession) Transfer

func (_Vault *VaultTransactorSession) Transfer(token common.Address, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xf18d03cc.

Solidity: function transfer(token address, from address, to address, amount uint256) returns()

func (*VaultTransactorSession) Unapprove

func (_Vault *VaultTransactorSession) Unapprove(spender common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfbf1f78a.

Solidity: function unapprove(spender address) returns()

func (*VaultTransactorSession) Withdraw

func (_Vault *VaultTransactorSession) Withdraw(token common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xf3fef3a3.

Solidity: function withdraw(token address, amount uint256) returns()

type VaultUnapproved

type VaultUnapproved struct {
	User    common.Address
	Spender common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

VaultUnapproved represents a Unapproved event raised by the Vault contract.

type VaultUnapprovedIterator

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

VaultUnapprovedIterator is returned from FilterUnapproved and is used to iterate over the raw logs and unpacked data for Unapproved events raised by the Vault contract.

func (*VaultUnapprovedIterator) Close

func (it *VaultUnapprovedIterator) Close() error

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

func (*VaultUnapprovedIterator) Error

func (it *VaultUnapprovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultUnapprovedIterator) Next

func (it *VaultUnapprovedIterator) 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 VaultWithdrawn

type VaultWithdrawn struct {
	User   common.Address
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultWithdrawn represents a Withdrawn event raised by the Vault contract.

type VaultWithdrawnIterator

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

VaultWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Vault contract.

func (*VaultWithdrawnIterator) Close

func (it *VaultWithdrawnIterator) Close() error

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

func (*VaultWithdrawnIterator) Error

func (it *VaultWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultWithdrawnIterator) Next

func (it *VaultWithdrawnIterator) 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.

Jump to

Keyboard shortcuts

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