BancorNetwork

package
v1.2.1-rc-17 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BancorNetworkABI = "" /* 9676-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type BancorNetwork

type BancorNetwork struct {
	BancorNetworkCaller     // Read-only binding to the contract
	BancorNetworkTransactor // Write-only binding to the contract
	BancorNetworkFilterer   // Log filterer for contract events
}

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

func NewBancorNetwork

func NewBancorNetwork(address common.Address, backend bind.ContractBackend) (*BancorNetwork, error)

NewBancorNetwork creates a new instance of BancorNetwork, bound to a specific deployed contract.

type BancorNetworkCaller

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

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

func NewBancorNetworkCaller

func NewBancorNetworkCaller(address common.Address, caller bind.ContractCaller) (*BancorNetworkCaller, error)

NewBancorNetworkCaller creates a new read-only instance of BancorNetwork, bound to a specific deployed contract.

func (*BancorNetworkCaller) ConversionPath

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) EtherTokens

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) GetReturnByPath

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) MaxAffiliateFee

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) NewOwner

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) OnlyOwnerCanUpdateRegistry

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) Owner

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) PrevRegistry

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) RateByPath

func (_BancorNetwork *BancorNetworkCaller) 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 (*BancorNetworkCaller) Registry

func (_BancorNetwork *BancorNetworkCaller) 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 BancorNetworkCallerRaw

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

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

func (*BancorNetworkCallerRaw) Call

func (_BancorNetwork *BancorNetworkCallerRaw) 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 BancorNetworkCallerSession

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

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

func (*BancorNetworkCallerSession) ConversionPath

func (_BancorNetwork *BancorNetworkCallerSession) 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 (*BancorNetworkCallerSession) EtherTokens

func (_BancorNetwork *BancorNetworkCallerSession) 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 (*BancorNetworkCallerSession) GetReturnByPath

func (_BancorNetwork *BancorNetworkCallerSession) 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 (*BancorNetworkCallerSession) MaxAffiliateFee

func (_BancorNetwork *BancorNetworkCallerSession) MaxAffiliateFee() (*big.Int, error)

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

Solidity: function maxAffiliateFee() view returns(uint256)

func (*BancorNetworkCallerSession) NewOwner

func (_BancorNetwork *BancorNetworkCallerSession) NewOwner() (common.Address, error)

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

Solidity: function newOwner() view returns(address)

func (*BancorNetworkCallerSession) OnlyOwnerCanUpdateRegistry

func (_BancorNetwork *BancorNetworkCallerSession) OnlyOwnerCanUpdateRegistry() (bool, error)

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

Solidity: function onlyOwnerCanUpdateRegistry() view returns(bool)

func (*BancorNetworkCallerSession) Owner

func (_BancorNetwork *BancorNetworkCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BancorNetworkCallerSession) PrevRegistry

func (_BancorNetwork *BancorNetworkCallerSession) PrevRegistry() (common.Address, error)

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

Solidity: function prevRegistry() view returns(address)

func (*BancorNetworkCallerSession) RateByPath

func (_BancorNetwork *BancorNetworkCallerSession) 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 (*BancorNetworkCallerSession) Registry

func (_BancorNetwork *BancorNetworkCallerSession) Registry() (common.Address, error)

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

Solidity: function registry() view returns(address)

type BancorNetworkConversion

type BancorNetworkConversion 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
}

BancorNetworkConversion represents a Conversion event raised by the BancorNetwork contract.

type BancorNetworkConversionIterator

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

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

func (*BancorNetworkConversionIterator) Close

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

func (*BancorNetworkConversionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorNetworkConversionIterator) 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 BancorNetworkFilterer

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

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

func NewBancorNetworkFilterer

func NewBancorNetworkFilterer(address common.Address, filterer bind.ContractFilterer) (*BancorNetworkFilterer, error)

NewBancorNetworkFilterer creates a new log filterer instance of BancorNetwork, bound to a specific deployed contract.

func (*BancorNetworkFilterer) FilterConversion

func (_BancorNetwork *BancorNetworkFilterer) FilterConversion(opts *bind.FilterOpts, _smartToken []common.Address, _fromToken []common.Address, _toToken []common.Address) (*BancorNetworkConversionIterator, 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 (*BancorNetworkFilterer) FilterOwnerUpdate

func (_BancorNetwork *BancorNetworkFilterer) FilterOwnerUpdate(opts *bind.FilterOpts, _prevOwner []common.Address, _newOwner []common.Address) (*BancorNetworkOwnerUpdateIterator, error)

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

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

func (*BancorNetworkFilterer) ParseConversion

func (_BancorNetwork *BancorNetworkFilterer) ParseConversion(log types.Log) (*BancorNetworkConversion, 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 (*BancorNetworkFilterer) ParseOwnerUpdate

func (_BancorNetwork *BancorNetworkFilterer) ParseOwnerUpdate(log types.Log) (*BancorNetworkOwnerUpdate, error)

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

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

func (*BancorNetworkFilterer) WatchConversion

func (_BancorNetwork *BancorNetworkFilterer) WatchConversion(opts *bind.WatchOpts, sink chan<- *BancorNetworkConversion, _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 (*BancorNetworkFilterer) WatchOwnerUpdate

func (_BancorNetwork *BancorNetworkFilterer) WatchOwnerUpdate(opts *bind.WatchOpts, sink chan<- *BancorNetworkOwnerUpdate, _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 BancorNetworkOwnerUpdate

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

BancorNetworkOwnerUpdate represents a OwnerUpdate event raised by the BancorNetwork contract.

type BancorNetworkOwnerUpdateIterator

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

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

func (*BancorNetworkOwnerUpdateIterator) Close

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

func (*BancorNetworkOwnerUpdateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorNetworkOwnerUpdateIterator) 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 BancorNetworkRaw

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

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

func (*BancorNetworkRaw) Call

func (_BancorNetwork *BancorNetworkRaw) 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 (*BancorNetworkRaw) Transact

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

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

func (*BancorNetworkRaw) Transfer

func (_BancorNetwork *BancorNetworkRaw) 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 BancorNetworkSession

type BancorNetworkSession struct {
	Contract     *BancorNetwork    // 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
}

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

func (*BancorNetworkSession) AcceptOwnership

func (_BancorNetwork *BancorNetworkSession) AcceptOwnership() (*types.Transaction, error)

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

Solidity: function acceptOwnership() returns()

func (*BancorNetworkSession) ClaimAndConvert

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) ClaimAndConvert2

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) ClaimAndConvertFor

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) ClaimAndConvertFor2

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) CompleteXConversion

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) ConversionPath

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) Convert

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) Convert2

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) ConvertByPath

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) ConvertFor

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) ConvertFor2

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) EtherTokens

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) GetReturnByPath

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) MaxAffiliateFee

func (_BancorNetwork *BancorNetworkSession) MaxAffiliateFee() (*big.Int, error)

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

Solidity: function maxAffiliateFee() view returns(uint256)

func (*BancorNetworkSession) NewOwner

func (_BancorNetwork *BancorNetworkSession) NewOwner() (common.Address, error)

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

Solidity: function newOwner() view returns(address)

func (*BancorNetworkSession) OnlyOwnerCanUpdateRegistry

func (_BancorNetwork *BancorNetworkSession) OnlyOwnerCanUpdateRegistry() (bool, error)

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

Solidity: function onlyOwnerCanUpdateRegistry() view returns(bool)

func (*BancorNetworkSession) Owner

func (_BancorNetwork *BancorNetworkSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BancorNetworkSession) PrevRegistry

func (_BancorNetwork *BancorNetworkSession) PrevRegistry() (common.Address, error)

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

Solidity: function prevRegistry() view returns(address)

func (*BancorNetworkSession) RateByPath

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) RegisterEtherToken

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) Registry

func (_BancorNetwork *BancorNetworkSession) Registry() (common.Address, error)

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

Solidity: function registry() view returns(address)

func (*BancorNetworkSession) RestoreRegistry

func (_BancorNetwork *BancorNetworkSession) RestoreRegistry() (*types.Transaction, error)

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

Solidity: function restoreRegistry() returns()

func (*BancorNetworkSession) RestrictRegistryUpdate

func (_BancorNetwork *BancorNetworkSession) RestrictRegistryUpdate(_onlyOwnerCanUpdateRegistry bool) (*types.Transaction, error)

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

Solidity: function restrictRegistryUpdate(bool _onlyOwnerCanUpdateRegistry) returns()

func (*BancorNetworkSession) SetMaxAffiliateFee

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) TransferOwnership

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) UpdateRegistry

func (_BancorNetwork *BancorNetworkSession) UpdateRegistry() (*types.Transaction, error)

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

Solidity: function updateRegistry() returns()

func (*BancorNetworkSession) WithdrawTokens

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) XConvert

func (_BancorNetwork *BancorNetworkSession) 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 (*BancorNetworkSession) XConvert2

func (_BancorNetwork *BancorNetworkSession) 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 BancorNetworkTransactor

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

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

func NewBancorNetworkTransactor

func NewBancorNetworkTransactor(address common.Address, transactor bind.ContractTransactor) (*BancorNetworkTransactor, error)

NewBancorNetworkTransactor creates a new write-only instance of BancorNetwork, bound to a specific deployed contract.

func (*BancorNetworkTransactor) AcceptOwnership

func (_BancorNetwork *BancorNetworkTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function acceptOwnership() returns()

func (*BancorNetworkTransactor) ClaimAndConvert

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) ClaimAndConvert2

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) ClaimAndConvertFor

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) ClaimAndConvertFor2

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) CompleteXConversion

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) Convert

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) Convert2

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) ConvertByPath

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) ConvertFor

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) ConvertFor2

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) RegisterEtherToken

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) RestoreRegistry

func (_BancorNetwork *BancorNetworkTransactor) RestoreRegistry(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function restoreRegistry() returns()

func (*BancorNetworkTransactor) RestrictRegistryUpdate

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) SetMaxAffiliateFee

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) TransferOwnership

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) UpdateRegistry

func (_BancorNetwork *BancorNetworkTransactor) UpdateRegistry(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function updateRegistry() returns()

func (*BancorNetworkTransactor) WithdrawTokens

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) XConvert

func (_BancorNetwork *BancorNetworkTransactor) 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 (*BancorNetworkTransactor) XConvert2

func (_BancorNetwork *BancorNetworkTransactor) 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 BancorNetworkTransactorRaw

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

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

func (*BancorNetworkTransactorRaw) Transact

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

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

func (*BancorNetworkTransactorRaw) Transfer

func (_BancorNetwork *BancorNetworkTransactorRaw) 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 BancorNetworkTransactorSession

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

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

func (*BancorNetworkTransactorSession) AcceptOwnership

func (_BancorNetwork *BancorNetworkTransactorSession) AcceptOwnership() (*types.Transaction, error)

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

Solidity: function acceptOwnership() returns()

func (*BancorNetworkTransactorSession) ClaimAndConvert

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) ClaimAndConvert2

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) ClaimAndConvertFor

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) ClaimAndConvertFor2

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) CompleteXConversion

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) Convert

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) Convert2

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) ConvertByPath

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) ConvertFor

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) ConvertFor2

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) RegisterEtherToken

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) RestoreRegistry

func (_BancorNetwork *BancorNetworkTransactorSession) RestoreRegistry() (*types.Transaction, error)

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

Solidity: function restoreRegistry() returns()

func (*BancorNetworkTransactorSession) RestrictRegistryUpdate

func (_BancorNetwork *BancorNetworkTransactorSession) RestrictRegistryUpdate(_onlyOwnerCanUpdateRegistry bool) (*types.Transaction, error)

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

Solidity: function restrictRegistryUpdate(bool _onlyOwnerCanUpdateRegistry) returns()

func (*BancorNetworkTransactorSession) SetMaxAffiliateFee

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) TransferOwnership

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) UpdateRegistry

func (_BancorNetwork *BancorNetworkTransactorSession) UpdateRegistry() (*types.Transaction, error)

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

Solidity: function updateRegistry() returns()

func (*BancorNetworkTransactorSession) WithdrawTokens

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) XConvert

func (_BancorNetwork *BancorNetworkTransactorSession) 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 (*BancorNetworkTransactorSession) XConvert2

func (_BancorNetwork *BancorNetworkTransactorSession) 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