bancor

package
v0.0.0-...-bd3dd7f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BancorABI = BancorMetaData.ABI

BancorABI is the input ABI used to generate the binding from. Deprecated: Use BancorMetaData.ABI instead.

View Source
var BancorMetaData = &bind.MetaData{
	ABI: "[{\"constant\":false,\"inputs\":[{\"name\":\"_onlyOwnerCanUpdateRegistry\",\"type\":\"bool\"}],\"name\":\"restrictRegistryUpdate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_token\",\"type\":\"address\"},{\"name\":\"_register\",\"type\":\"bool\"}],\"name\":\"registerEtherToken\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"getReturnByPath\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_beneficiary\",\"type\":\"address\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"claimAndConvertFor2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"onlyOwnerCanUpdateRegistry\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"updateRegistry\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"convert2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maxAffiliateFee\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_token\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawTokens\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"prevRegistry\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"registry\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"rateByPath\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"etherTokens\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_bancorX\",\"type\":\"address\"},{\"name\":\"_conversionId\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"completeXConversion\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_beneficiary\",\"type\":\"address\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"convertFor2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"claimAndConvertFor\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"restoreRegistry\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_beneficiary\",\"type\":\"address\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"convertByPath\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_targetBlockchain\",\"type\":\"bytes32\"},{\"name\":\"_targetAccount\",\"type\":\"bytes32\"},{\"name\":\"_conversionId\",\"type\":\"uint256\"}],\"name\":\"xConvert\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"}],\"name\":\"claimAndConvert\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"convertFor\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_targetBlockchain\",\"type\":\"bytes32\"},{\"name\":\"_targetAccount\",\"type\":\"bytes32\"},{\"name\":\"_conversionId\",\"type\":\"uint256\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"xConvert2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"newOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_sourceToken\",\"type\":\"address\"},{\"name\":\"_targetToken\",\"type\":\"address\"}],\"name\":\"conversionPath\",\"outputs\":[{\"name\":\"\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"},{\"name\":\"_affiliateAccount\",\"type\":\"address\"},{\"name\":\"_affiliateFee\",\"type\":\"uint256\"}],\"name\":\"claimAndConvert2\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_path\",\"type\":\"address[]\"},{\"name\":\"_amount\",\"type\":\"uint256\"},{\"name\":\"_minReturn\",\"type\":\"uint256\"}],\"name\":\"convert\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_maxAffiliateFee\",\"type\":\"uint256\"}],\"name\":\"setMaxAffiliateFee\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_registry\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_smartToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_fromToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_toToken\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_fromAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_toAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_trader\",\"type\":\"address\"}],\"name\":\"Conversion\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_prevOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"OwnerUpdate\",\"type\":\"event\"}]",
}

BancorMetaData contains all meta data concerning the Bancor contract.

Functions

This section is empty.

Types

type Bancor

type Bancor struct {
	BancorCaller     // Read-only binding to the contract
	BancorTransactor // Write-only binding to the contract
	BancorFilterer   // Log filterer for contract events
}

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

func NewBancor

func NewBancor(address common.Address, backend bind.ContractBackend) (*Bancor, error)

NewBancor creates a new instance of Bancor, bound to a specific deployed contract.

type BancorCaller

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

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

func NewBancorCaller

func NewBancorCaller(address common.Address, caller bind.ContractCaller) (*BancorCaller, error)

NewBancorCaller creates a new read-only instance of Bancor, bound to a specific deployed contract.

func (*BancorCaller) ConversionPath

func (_Bancor *BancorCaller) ConversionPath(opts *bind.CallOpts, _sourceToken common.Address, _targetToken common.Address) ([]common.Address, error)

ConversionPath is a free data retrieval call binding the contract method 0xd734fa19.

Solidity: function conversionPath(address _sourceToken, address _targetToken) view returns(address[])

func (*BancorCaller) EtherTokens

func (_Bancor *BancorCaller) EtherTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)

EtherTokens is a free data retrieval call binding the contract method 0x8077ccf7.

Solidity: function etherTokens(address ) view returns(bool)

func (*BancorCaller) GetReturnByPath

func (_Bancor *BancorCaller) GetReturnByPath(opts *bind.CallOpts, _path []common.Address, _amount *big.Int) (*big.Int, *big.Int, error)

GetReturnByPath is a free data retrieval call binding the contract method 0x0c8496cc.

Solidity: function getReturnByPath(address[] _path, uint256 _amount) view returns(uint256, uint256)

func (*BancorCaller) MaxAffiliateFee

func (_Bancor *BancorCaller) MaxAffiliateFee(opts *bind.CallOpts) (*big.Int, error)

MaxAffiliateFee is a free data retrieval call binding the contract method 0x5d732ff2.

Solidity: function maxAffiliateFee() view returns(uint256)

func (*BancorCaller) NewOwner

func (_Bancor *BancorCaller) NewOwner(opts *bind.CallOpts) (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*BancorCaller) OnlyOwnerCanUpdateRegistry

func (_Bancor *BancorCaller) OnlyOwnerCanUpdateRegistry(opts *bind.CallOpts) (bool, error)

OnlyOwnerCanUpdateRegistry is a free data retrieval call binding the contract method 0x2fe8a6ad.

Solidity: function onlyOwnerCanUpdateRegistry() view returns(bool)

func (*BancorCaller) Owner

func (_Bancor *BancorCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BancorCaller) PrevRegistry

func (_Bancor *BancorCaller) PrevRegistry(opts *bind.CallOpts) (common.Address, error)

PrevRegistry is a free data retrieval call binding the contract method 0x61cd756e.

Solidity: function prevRegistry() view returns(address)

func (*BancorCaller) RateByPath

func (_Bancor *BancorCaller) RateByPath(opts *bind.CallOpts, _path []common.Address, _amount *big.Int) (*big.Int, error)

RateByPath is a free data retrieval call binding the contract method 0x7f9c0ecd.

Solidity: function rateByPath(address[] _path, uint256 _amount) view returns(uint256)

func (*BancorCaller) Registry

func (_Bancor *BancorCaller) Registry(opts *bind.CallOpts) (common.Address, error)

Registry is a free data retrieval call binding the contract method 0x7b103999.

Solidity: function registry() view returns(address)

type BancorCallerRaw

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

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

func (*BancorCallerRaw) Call

func (_Bancor *BancorCallerRaw) 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 BancorCallerSession

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

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

func (*BancorCallerSession) ConversionPath

func (_Bancor *BancorCallerSession) ConversionPath(_sourceToken common.Address, _targetToken common.Address) ([]common.Address, error)

ConversionPath is a free data retrieval call binding the contract method 0xd734fa19.

Solidity: function conversionPath(address _sourceToken, address _targetToken) view returns(address[])

func (*BancorCallerSession) EtherTokens

func (_Bancor *BancorCallerSession) EtherTokens(arg0 common.Address) (bool, error)

EtherTokens is a free data retrieval call binding the contract method 0x8077ccf7.

Solidity: function etherTokens(address ) view returns(bool)

func (*BancorCallerSession) GetReturnByPath

func (_Bancor *BancorCallerSession) GetReturnByPath(_path []common.Address, _amount *big.Int) (*big.Int, *big.Int, error)

GetReturnByPath is a free data retrieval call binding the contract method 0x0c8496cc.

Solidity: function getReturnByPath(address[] _path, uint256 _amount) view returns(uint256, uint256)

func (*BancorCallerSession) MaxAffiliateFee

func (_Bancor *BancorCallerSession) MaxAffiliateFee() (*big.Int, error)

MaxAffiliateFee is a free data retrieval call binding the contract method 0x5d732ff2.

Solidity: function maxAffiliateFee() view returns(uint256)

func (*BancorCallerSession) NewOwner

func (_Bancor *BancorCallerSession) NewOwner() (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*BancorCallerSession) OnlyOwnerCanUpdateRegistry

func (_Bancor *BancorCallerSession) OnlyOwnerCanUpdateRegistry() (bool, error)

OnlyOwnerCanUpdateRegistry is a free data retrieval call binding the contract method 0x2fe8a6ad.

Solidity: function onlyOwnerCanUpdateRegistry() view returns(bool)

func (*BancorCallerSession) Owner

func (_Bancor *BancorCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BancorCallerSession) PrevRegistry

func (_Bancor *BancorCallerSession) PrevRegistry() (common.Address, error)

PrevRegistry is a free data retrieval call binding the contract method 0x61cd756e.

Solidity: function prevRegistry() view returns(address)

func (*BancorCallerSession) RateByPath

func (_Bancor *BancorCallerSession) RateByPath(_path []common.Address, _amount *big.Int) (*big.Int, error)

RateByPath is a free data retrieval call binding the contract method 0x7f9c0ecd.

Solidity: function rateByPath(address[] _path, uint256 _amount) view returns(uint256)

func (*BancorCallerSession) Registry

func (_Bancor *BancorCallerSession) Registry() (common.Address, error)

Registry is a free data retrieval call binding the contract method 0x7b103999.

Solidity: function registry() view returns(address)

type BancorConversion

type BancorConversion struct {
	SmartToken common.Address
	FromToken  common.Address
	ToToken    common.Address
	FromAmount *big.Int
	ToAmount   *big.Int
	Trader     common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

BancorConversion represents a Conversion event raised by the Bancor contract.

type BancorConversionIterator

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

BancorConversionIterator is returned from FilterConversion and is used to iterate over the raw logs and unpacked data for Conversion events raised by the Bancor contract.

func (*BancorConversionIterator) Close

func (it *BancorConversionIterator) Close() error

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

func (*BancorConversionIterator) Error

func (it *BancorConversionIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorConversionIterator) Next

func (it *BancorConversionIterator) 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 BancorFilterer

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

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

func NewBancorFilterer

func NewBancorFilterer(address common.Address, filterer bind.ContractFilterer) (*BancorFilterer, error)

NewBancorFilterer creates a new log filterer instance of Bancor, bound to a specific deployed contract.

func (*BancorFilterer) FilterConversion

func (_Bancor *BancorFilterer) FilterConversion(opts *bind.FilterOpts, _smartToken []common.Address, _fromToken []common.Address, _toToken []common.Address) (*BancorConversionIterator, error)

FilterConversion is a free log retrieval operation binding the contract event 0x7154b38b5dd31bb3122436a96d4e09aba5b323ae1fd580025fab55074334c095.

Solidity: event Conversion(address indexed _smartToken, address indexed _fromToken, address indexed _toToken, uint256 _fromAmount, uint256 _toAmount, address _trader)

func (*BancorFilterer) FilterOwnerUpdate

func (_Bancor *BancorFilterer) FilterOwnerUpdate(opts *bind.FilterOpts, _prevOwner []common.Address, _newOwner []common.Address) (*BancorOwnerUpdateIterator, error)

FilterOwnerUpdate is a free log retrieval operation binding the contract event 0x343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a.

Solidity: event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner)

func (*BancorFilterer) ParseConversion

func (_Bancor *BancorFilterer) ParseConversion(log types.Log) (*BancorConversion, error)

ParseConversion is a log parse operation binding the contract event 0x7154b38b5dd31bb3122436a96d4e09aba5b323ae1fd580025fab55074334c095.

Solidity: event Conversion(address indexed _smartToken, address indexed _fromToken, address indexed _toToken, uint256 _fromAmount, uint256 _toAmount, address _trader)

func (*BancorFilterer) ParseOwnerUpdate

func (_Bancor *BancorFilterer) ParseOwnerUpdate(log types.Log) (*BancorOwnerUpdate, error)

ParseOwnerUpdate is a log parse operation binding the contract event 0x343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a.

Solidity: event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner)

func (*BancorFilterer) WatchConversion

func (_Bancor *BancorFilterer) WatchConversion(opts *bind.WatchOpts, sink chan<- *BancorConversion, _smartToken []common.Address, _fromToken []common.Address, _toToken []common.Address) (event.Subscription, error)

WatchConversion is a free log subscription operation binding the contract event 0x7154b38b5dd31bb3122436a96d4e09aba5b323ae1fd580025fab55074334c095.

Solidity: event Conversion(address indexed _smartToken, address indexed _fromToken, address indexed _toToken, uint256 _fromAmount, uint256 _toAmount, address _trader)

func (*BancorFilterer) WatchOwnerUpdate

func (_Bancor *BancorFilterer) WatchOwnerUpdate(opts *bind.WatchOpts, sink chan<- *BancorOwnerUpdate, _prevOwner []common.Address, _newOwner []common.Address) (event.Subscription, error)

WatchOwnerUpdate is a free log subscription operation binding the contract event 0x343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a.

Solidity: event OwnerUpdate(address indexed _prevOwner, address indexed _newOwner)

type BancorOwnerUpdate

type BancorOwnerUpdate struct {
	PrevOwner common.Address
	NewOwner  common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

BancorOwnerUpdate represents a OwnerUpdate event raised by the Bancor contract.

type BancorOwnerUpdateIterator

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

BancorOwnerUpdateIterator is returned from FilterOwnerUpdate and is used to iterate over the raw logs and unpacked data for OwnerUpdate events raised by the Bancor contract.

func (*BancorOwnerUpdateIterator) Close

func (it *BancorOwnerUpdateIterator) Close() error

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

func (*BancorOwnerUpdateIterator) Error

func (it *BancorOwnerUpdateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorOwnerUpdateIterator) Next

func (it *BancorOwnerUpdateIterator) 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 BancorRaw

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

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

func (*BancorRaw) Call

func (_Bancor *BancorRaw) 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 (*BancorRaw) Transact

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

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

func (*BancorRaw) Transfer

func (_Bancor *BancorRaw) 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 BancorSession

type BancorSession struct {
	Contract     *Bancor           // 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
}

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

func (*BancorSession) AcceptOwnership

func (_Bancor *BancorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*BancorSession) ClaimAndConvert

func (_Bancor *BancorSession) ClaimAndConvert(_path []common.Address, _amount *big.Int, _minReturn *big.Int) (*types.Transaction, error)

ClaimAndConvert is a paid mutator transaction binding the contract method 0xc7ba24bc.

Solidity: function claimAndConvert(address[] _path, uint256 _amount, uint256 _minReturn) returns(uint256)

func (*BancorSession) ClaimAndConvert2

func (_Bancor *BancorSession) ClaimAndConvert2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ClaimAndConvert2 is a paid mutator transaction binding the contract method 0xe57738e5.

Solidity: function claimAndConvert2(address[] _path, uint256 _amount, uint256 _minReturn, address _affiliateAccount, uint256 _affiliateFee) returns(uint256)

func (*BancorSession) ClaimAndConvertFor

func (_Bancor *BancorSession) ClaimAndConvertFor(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

ClaimAndConvertFor is a paid mutator transaction binding the contract method 0xb1e9932b.

Solidity: function claimAndConvertFor(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary) returns(uint256)

func (*BancorSession) ClaimAndConvertFor2

func (_Bancor *BancorSession) ClaimAndConvertFor2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ClaimAndConvertFor2 is a paid mutator transaction binding the contract method 0x2978c10e.

Solidity: function claimAndConvertFor2(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) returns(uint256)

func (*BancorSession) CompleteXConversion

func (_Bancor *BancorSession) CompleteXConversion(_path []common.Address, _bancorX common.Address, _conversionId *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

CompleteXConversion is a paid mutator transaction binding the contract method 0x89f9cc61.

Solidity: function completeXConversion(address[] _path, address _bancorX, uint256 _conversionId, uint256 _minReturn, address _beneficiary) returns(uint256)

func (*BancorSession) ConversionPath

func (_Bancor *BancorSession) ConversionPath(_sourceToken common.Address, _targetToken common.Address) ([]common.Address, error)

ConversionPath is a free data retrieval call binding the contract method 0xd734fa19.

Solidity: function conversionPath(address _sourceToken, address _targetToken) view returns(address[])

func (*BancorSession) Convert

func (_Bancor *BancorSession) Convert(_path []common.Address, _amount *big.Int, _minReturn *big.Int) (*types.Transaction, error)

Convert is a paid mutator transaction binding the contract method 0xf3898a97.

Solidity: function convert(address[] _path, uint256 _amount, uint256 _minReturn) payable returns(uint256)

func (*BancorSession) Convert2

func (_Bancor *BancorSession) Convert2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

Convert2 is a paid mutator transaction binding the contract method 0x569706eb.

Solidity: function convert2(address[] _path, uint256 _amount, uint256 _minReturn, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorSession) ConvertByPath

func (_Bancor *BancorSession) ConvertByPath(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ConvertByPath is a paid mutator transaction binding the contract method 0xb77d239b.

Solidity: function convertByPath(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorSession) ConvertFor

func (_Bancor *BancorSession) ConvertFor(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

ConvertFor is a paid mutator transaction binding the contract method 0xc98fefed.

Solidity: function convertFor(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary) payable returns(uint256)

func (*BancorSession) ConvertFor2

func (_Bancor *BancorSession) ConvertFor2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ConvertFor2 is a paid mutator transaction binding the contract method 0xab6214ce.

Solidity: function convertFor2(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorSession) EtherTokens

func (_Bancor *BancorSession) EtherTokens(arg0 common.Address) (bool, error)

EtherTokens is a free data retrieval call binding the contract method 0x8077ccf7.

Solidity: function etherTokens(address ) view returns(bool)

func (*BancorSession) GetReturnByPath

func (_Bancor *BancorSession) GetReturnByPath(_path []common.Address, _amount *big.Int) (*big.Int, *big.Int, error)

GetReturnByPath is a free data retrieval call binding the contract method 0x0c8496cc.

Solidity: function getReturnByPath(address[] _path, uint256 _amount) view returns(uint256, uint256)

func (*BancorSession) MaxAffiliateFee

func (_Bancor *BancorSession) MaxAffiliateFee() (*big.Int, error)

MaxAffiliateFee is a free data retrieval call binding the contract method 0x5d732ff2.

Solidity: function maxAffiliateFee() view returns(uint256)

func (*BancorSession) NewOwner

func (_Bancor *BancorSession) NewOwner() (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*BancorSession) OnlyOwnerCanUpdateRegistry

func (_Bancor *BancorSession) OnlyOwnerCanUpdateRegistry() (bool, error)

OnlyOwnerCanUpdateRegistry is a free data retrieval call binding the contract method 0x2fe8a6ad.

Solidity: function onlyOwnerCanUpdateRegistry() view returns(bool)

func (*BancorSession) Owner

func (_Bancor *BancorSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BancorSession) PrevRegistry

func (_Bancor *BancorSession) PrevRegistry() (common.Address, error)

PrevRegistry is a free data retrieval call binding the contract method 0x61cd756e.

Solidity: function prevRegistry() view returns(address)

func (*BancorSession) RateByPath

func (_Bancor *BancorSession) RateByPath(_path []common.Address, _amount *big.Int) (*big.Int, error)

RateByPath is a free data retrieval call binding the contract method 0x7f9c0ecd.

Solidity: function rateByPath(address[] _path, uint256 _amount) view returns(uint256)

func (*BancorSession) RegisterEtherToken

func (_Bancor *BancorSession) RegisterEtherToken(_token common.Address, _register bool) (*types.Transaction, error)

RegisterEtherToken is a paid mutator transaction binding the contract method 0x02ef521e.

Solidity: function registerEtherToken(address _token, bool _register) returns()

func (*BancorSession) Registry

func (_Bancor *BancorSession) Registry() (common.Address, error)

Registry is a free data retrieval call binding the contract method 0x7b103999.

Solidity: function registry() view returns(address)

func (*BancorSession) RestoreRegistry

func (_Bancor *BancorSession) RestoreRegistry() (*types.Transaction, error)

RestoreRegistry is a paid mutator transaction binding the contract method 0xb4a176d3.

Solidity: function restoreRegistry() returns()

func (*BancorSession) RestrictRegistryUpdate

func (_Bancor *BancorSession) RestrictRegistryUpdate(_onlyOwnerCanUpdateRegistry bool) (*types.Transaction, error)

RestrictRegistryUpdate is a paid mutator transaction binding the contract method 0x024c7ec7.

Solidity: function restrictRegistryUpdate(bool _onlyOwnerCanUpdateRegistry) returns()

func (*BancorSession) SetMaxAffiliateFee

func (_Bancor *BancorSession) SetMaxAffiliateFee(_maxAffiliateFee *big.Int) (*types.Transaction, error)

SetMaxAffiliateFee is a paid mutator transaction binding the contract method 0xf3bc7d2a.

Solidity: function setMaxAffiliateFee(uint256 _maxAffiliateFee) returns()

func (*BancorSession) TransferOwnership

func (_Bancor *BancorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

func (*BancorSession) UpdateRegistry

func (_Bancor *BancorSession) UpdateRegistry() (*types.Transaction, error)

UpdateRegistry is a paid mutator transaction binding the contract method 0x49d10b64.

Solidity: function updateRegistry() returns()

func (*BancorSession) WithdrawTokens

func (_Bancor *BancorSession) WithdrawTokens(_token common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawTokens is a paid mutator transaction binding the contract method 0x5e35359e.

Solidity: function withdrawTokens(address _token, address _to, uint256 _amount) returns()

func (*BancorSession) XConvert

func (_Bancor *BancorSession) XConvert(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _targetBlockchain [32]byte, _targetAccount [32]byte, _conversionId *big.Int) (*types.Transaction, error)

XConvert is a paid mutator transaction binding the contract method 0xc52173de.

Solidity: function xConvert(address[] _path, uint256 _amount, uint256 _minReturn, bytes32 _targetBlockchain, bytes32 _targetAccount, uint256 _conversionId) payable returns(uint256)

func (*BancorSession) XConvert2

func (_Bancor *BancorSession) XConvert2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _targetBlockchain [32]byte, _targetAccount [32]byte, _conversionId *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

XConvert2 is a paid mutator transaction binding the contract method 0xcb32564e.

Solidity: function xConvert2(address[] _path, uint256 _amount, uint256 _minReturn, bytes32 _targetBlockchain, bytes32 _targetAccount, uint256 _conversionId, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

type BancorTransactor

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

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

func NewBancorTransactor

func NewBancorTransactor(address common.Address, transactor bind.ContractTransactor) (*BancorTransactor, error)

NewBancorTransactor creates a new write-only instance of Bancor, bound to a specific deployed contract.

func (*BancorTransactor) AcceptOwnership

func (_Bancor *BancorTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*BancorTransactor) ClaimAndConvert

func (_Bancor *BancorTransactor) ClaimAndConvert(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int) (*types.Transaction, error)

ClaimAndConvert is a paid mutator transaction binding the contract method 0xc7ba24bc.

Solidity: function claimAndConvert(address[] _path, uint256 _amount, uint256 _minReturn) returns(uint256)

func (*BancorTransactor) ClaimAndConvert2

func (_Bancor *BancorTransactor) ClaimAndConvert2(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ClaimAndConvert2 is a paid mutator transaction binding the contract method 0xe57738e5.

Solidity: function claimAndConvert2(address[] _path, uint256 _amount, uint256 _minReturn, address _affiliateAccount, uint256 _affiliateFee) returns(uint256)

func (*BancorTransactor) ClaimAndConvertFor

func (_Bancor *BancorTransactor) ClaimAndConvertFor(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

ClaimAndConvertFor is a paid mutator transaction binding the contract method 0xb1e9932b.

Solidity: function claimAndConvertFor(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary) returns(uint256)

func (*BancorTransactor) ClaimAndConvertFor2

func (_Bancor *BancorTransactor) ClaimAndConvertFor2(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ClaimAndConvertFor2 is a paid mutator transaction binding the contract method 0x2978c10e.

Solidity: function claimAndConvertFor2(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) returns(uint256)

func (*BancorTransactor) CompleteXConversion

func (_Bancor *BancorTransactor) CompleteXConversion(opts *bind.TransactOpts, _path []common.Address, _bancorX common.Address, _conversionId *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

CompleteXConversion is a paid mutator transaction binding the contract method 0x89f9cc61.

Solidity: function completeXConversion(address[] _path, address _bancorX, uint256 _conversionId, uint256 _minReturn, address _beneficiary) returns(uint256)

func (*BancorTransactor) Convert

func (_Bancor *BancorTransactor) Convert(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int) (*types.Transaction, error)

Convert is a paid mutator transaction binding the contract method 0xf3898a97.

Solidity: function convert(address[] _path, uint256 _amount, uint256 _minReturn) payable returns(uint256)

func (*BancorTransactor) Convert2

func (_Bancor *BancorTransactor) Convert2(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

Convert2 is a paid mutator transaction binding the contract method 0x569706eb.

Solidity: function convert2(address[] _path, uint256 _amount, uint256 _minReturn, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorTransactor) ConvertByPath

func (_Bancor *BancorTransactor) ConvertByPath(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ConvertByPath is a paid mutator transaction binding the contract method 0xb77d239b.

Solidity: function convertByPath(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorTransactor) ConvertFor

func (_Bancor *BancorTransactor) ConvertFor(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

ConvertFor is a paid mutator transaction binding the contract method 0xc98fefed.

Solidity: function convertFor(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary) payable returns(uint256)

func (*BancorTransactor) ConvertFor2

func (_Bancor *BancorTransactor) ConvertFor2(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ConvertFor2 is a paid mutator transaction binding the contract method 0xab6214ce.

Solidity: function convertFor2(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorTransactor) RegisterEtherToken

func (_Bancor *BancorTransactor) RegisterEtherToken(opts *bind.TransactOpts, _token common.Address, _register bool) (*types.Transaction, error)

RegisterEtherToken is a paid mutator transaction binding the contract method 0x02ef521e.

Solidity: function registerEtherToken(address _token, bool _register) returns()

func (*BancorTransactor) RestoreRegistry

func (_Bancor *BancorTransactor) RestoreRegistry(opts *bind.TransactOpts) (*types.Transaction, error)

RestoreRegistry is a paid mutator transaction binding the contract method 0xb4a176d3.

Solidity: function restoreRegistry() returns()

func (*BancorTransactor) RestrictRegistryUpdate

func (_Bancor *BancorTransactor) RestrictRegistryUpdate(opts *bind.TransactOpts, _onlyOwnerCanUpdateRegistry bool) (*types.Transaction, error)

RestrictRegistryUpdate is a paid mutator transaction binding the contract method 0x024c7ec7.

Solidity: function restrictRegistryUpdate(bool _onlyOwnerCanUpdateRegistry) returns()

func (*BancorTransactor) SetMaxAffiliateFee

func (_Bancor *BancorTransactor) SetMaxAffiliateFee(opts *bind.TransactOpts, _maxAffiliateFee *big.Int) (*types.Transaction, error)

SetMaxAffiliateFee is a paid mutator transaction binding the contract method 0xf3bc7d2a.

Solidity: function setMaxAffiliateFee(uint256 _maxAffiliateFee) returns()

func (*BancorTransactor) TransferOwnership

func (_Bancor *BancorTransactor) TransferOwnership(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

func (*BancorTransactor) UpdateRegistry

func (_Bancor *BancorTransactor) UpdateRegistry(opts *bind.TransactOpts) (*types.Transaction, error)

UpdateRegistry is a paid mutator transaction binding the contract method 0x49d10b64.

Solidity: function updateRegistry() returns()

func (*BancorTransactor) WithdrawTokens

func (_Bancor *BancorTransactor) WithdrawTokens(opts *bind.TransactOpts, _token common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawTokens is a paid mutator transaction binding the contract method 0x5e35359e.

Solidity: function withdrawTokens(address _token, address _to, uint256 _amount) returns()

func (*BancorTransactor) XConvert

func (_Bancor *BancorTransactor) XConvert(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _targetBlockchain [32]byte, _targetAccount [32]byte, _conversionId *big.Int) (*types.Transaction, error)

XConvert is a paid mutator transaction binding the contract method 0xc52173de.

Solidity: function xConvert(address[] _path, uint256 _amount, uint256 _minReturn, bytes32 _targetBlockchain, bytes32 _targetAccount, uint256 _conversionId) payable returns(uint256)

func (*BancorTransactor) XConvert2

func (_Bancor *BancorTransactor) XConvert2(opts *bind.TransactOpts, _path []common.Address, _amount *big.Int, _minReturn *big.Int, _targetBlockchain [32]byte, _targetAccount [32]byte, _conversionId *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

XConvert2 is a paid mutator transaction binding the contract method 0xcb32564e.

Solidity: function xConvert2(address[] _path, uint256 _amount, uint256 _minReturn, bytes32 _targetBlockchain, bytes32 _targetAccount, uint256 _conversionId, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

type BancorTransactorRaw

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

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

func (*BancorTransactorRaw) Transact

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

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

func (*BancorTransactorRaw) Transfer

func (_Bancor *BancorTransactorRaw) 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 BancorTransactorSession

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

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

func (*BancorTransactorSession) AcceptOwnership

func (_Bancor *BancorTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*BancorTransactorSession) ClaimAndConvert

func (_Bancor *BancorTransactorSession) ClaimAndConvert(_path []common.Address, _amount *big.Int, _minReturn *big.Int) (*types.Transaction, error)

ClaimAndConvert is a paid mutator transaction binding the contract method 0xc7ba24bc.

Solidity: function claimAndConvert(address[] _path, uint256 _amount, uint256 _minReturn) returns(uint256)

func (*BancorTransactorSession) ClaimAndConvert2

func (_Bancor *BancorTransactorSession) ClaimAndConvert2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ClaimAndConvert2 is a paid mutator transaction binding the contract method 0xe57738e5.

Solidity: function claimAndConvert2(address[] _path, uint256 _amount, uint256 _minReturn, address _affiliateAccount, uint256 _affiliateFee) returns(uint256)

func (*BancorTransactorSession) ClaimAndConvertFor

func (_Bancor *BancorTransactorSession) ClaimAndConvertFor(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

ClaimAndConvertFor is a paid mutator transaction binding the contract method 0xb1e9932b.

Solidity: function claimAndConvertFor(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary) returns(uint256)

func (*BancorTransactorSession) ClaimAndConvertFor2

func (_Bancor *BancorTransactorSession) ClaimAndConvertFor2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ClaimAndConvertFor2 is a paid mutator transaction binding the contract method 0x2978c10e.

Solidity: function claimAndConvertFor2(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) returns(uint256)

func (*BancorTransactorSession) CompleteXConversion

func (_Bancor *BancorTransactorSession) CompleteXConversion(_path []common.Address, _bancorX common.Address, _conversionId *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

CompleteXConversion is a paid mutator transaction binding the contract method 0x89f9cc61.

Solidity: function completeXConversion(address[] _path, address _bancorX, uint256 _conversionId, uint256 _minReturn, address _beneficiary) returns(uint256)

func (*BancorTransactorSession) Convert

func (_Bancor *BancorTransactorSession) Convert(_path []common.Address, _amount *big.Int, _minReturn *big.Int) (*types.Transaction, error)

Convert is a paid mutator transaction binding the contract method 0xf3898a97.

Solidity: function convert(address[] _path, uint256 _amount, uint256 _minReturn) payable returns(uint256)

func (*BancorTransactorSession) Convert2

func (_Bancor *BancorTransactorSession) Convert2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

Convert2 is a paid mutator transaction binding the contract method 0x569706eb.

Solidity: function convert2(address[] _path, uint256 _amount, uint256 _minReturn, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorTransactorSession) ConvertByPath

func (_Bancor *BancorTransactorSession) ConvertByPath(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ConvertByPath is a paid mutator transaction binding the contract method 0xb77d239b.

Solidity: function convertByPath(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorTransactorSession) ConvertFor

func (_Bancor *BancorTransactorSession) ConvertFor(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address) (*types.Transaction, error)

ConvertFor is a paid mutator transaction binding the contract method 0xc98fefed.

Solidity: function convertFor(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary) payable returns(uint256)

func (*BancorTransactorSession) ConvertFor2

func (_Bancor *BancorTransactorSession) ConvertFor2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _beneficiary common.Address, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

ConvertFor2 is a paid mutator transaction binding the contract method 0xab6214ce.

Solidity: function convertFor2(address[] _path, uint256 _amount, uint256 _minReturn, address _beneficiary, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

func (*BancorTransactorSession) RegisterEtherToken

func (_Bancor *BancorTransactorSession) RegisterEtherToken(_token common.Address, _register bool) (*types.Transaction, error)

RegisterEtherToken is a paid mutator transaction binding the contract method 0x02ef521e.

Solidity: function registerEtherToken(address _token, bool _register) returns()

func (*BancorTransactorSession) RestoreRegistry

func (_Bancor *BancorTransactorSession) RestoreRegistry() (*types.Transaction, error)

RestoreRegistry is a paid mutator transaction binding the contract method 0xb4a176d3.

Solidity: function restoreRegistry() returns()

func (*BancorTransactorSession) RestrictRegistryUpdate

func (_Bancor *BancorTransactorSession) RestrictRegistryUpdate(_onlyOwnerCanUpdateRegistry bool) (*types.Transaction, error)

RestrictRegistryUpdate is a paid mutator transaction binding the contract method 0x024c7ec7.

Solidity: function restrictRegistryUpdate(bool _onlyOwnerCanUpdateRegistry) returns()

func (*BancorTransactorSession) SetMaxAffiliateFee

func (_Bancor *BancorTransactorSession) SetMaxAffiliateFee(_maxAffiliateFee *big.Int) (*types.Transaction, error)

SetMaxAffiliateFee is a paid mutator transaction binding the contract method 0xf3bc7d2a.

Solidity: function setMaxAffiliateFee(uint256 _maxAffiliateFee) returns()

func (*BancorTransactorSession) TransferOwnership

func (_Bancor *BancorTransactorSession) TransferOwnership(_newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address _newOwner) returns()

func (*BancorTransactorSession) UpdateRegistry

func (_Bancor *BancorTransactorSession) UpdateRegistry() (*types.Transaction, error)

UpdateRegistry is a paid mutator transaction binding the contract method 0x49d10b64.

Solidity: function updateRegistry() returns()

func (*BancorTransactorSession) WithdrawTokens

func (_Bancor *BancorTransactorSession) WithdrawTokens(_token common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawTokens is a paid mutator transaction binding the contract method 0x5e35359e.

Solidity: function withdrawTokens(address _token, address _to, uint256 _amount) returns()

func (*BancorTransactorSession) XConvert

func (_Bancor *BancorTransactorSession) XConvert(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _targetBlockchain [32]byte, _targetAccount [32]byte, _conversionId *big.Int) (*types.Transaction, error)

XConvert is a paid mutator transaction binding the contract method 0xc52173de.

Solidity: function xConvert(address[] _path, uint256 _amount, uint256 _minReturn, bytes32 _targetBlockchain, bytes32 _targetAccount, uint256 _conversionId) payable returns(uint256)

func (*BancorTransactorSession) XConvert2

func (_Bancor *BancorTransactorSession) XConvert2(_path []common.Address, _amount *big.Int, _minReturn *big.Int, _targetBlockchain [32]byte, _targetAccount [32]byte, _conversionId *big.Int, _affiliateAccount common.Address, _affiliateFee *big.Int) (*types.Transaction, error)

XConvert2 is a paid mutator transaction binding the contract method 0xcb32564e.

Solidity: function xConvert2(address[] _path, uint256 _amount, uint256 _minReturn, bytes32 _targetBlockchain, bytes32 _targetAccount, uint256 _conversionId, address _affiliateAccount, uint256 _affiliateFee) payable returns(uint256)

Jump to

Keyboard shortcuts

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