bancornetwork

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 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: "[{\"inputs\":[{\"internalType\":\"contractITokenGovernance\",\"name\":\"initBNTGovernance\",\"type\":\"address\"},{\"internalType\":\"contractITokenGovernance\",\"name\":\"initVBNTGovernance\",\"type\":\"address\"},{\"internalType\":\"contractINetworkSettings\",\"name\":\"initNetworkSettings\",\"type\":\"address\"},{\"internalType\":\"contractIMasterVault\",\"name\":\"initMasterVault\",\"type\":\"address\"},{\"internalType\":\"contractIExternalProtectionVault\",\"name\":\"initExternalProtectionVault\",\"type\":\"address\"},{\"internalType\":\"contractIPoolToken\",\"name\":\"initBNTPoolToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"bancorArbitrage\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"carbonPOL\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessDenied\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DeadlineExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DepositingDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DoesNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientFlashLoanReturn\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NativeTokenAmountMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEmpty\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotWhitelisted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotWhitelistedForPOL\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Overflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PoolNotInSurplus\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroValue\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractToken\",\"name\":\"zcntoken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"borrower\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"FlashLoanCompleted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"contextId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"contractToken\",\"name\":\"zcntoken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"availableAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"originalAmount\",\"type\":\"uint256\"}],\"name\":\"FundsMigrated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"NetworkFeesWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"oldRewardsPPM\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"newRewardsPPM\",\"type\":\"uint32\"}],\"name\":\"POLRewardsPPMUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zcntoken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"polTokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"userReward\",\"type\":\"uint256\"}],\"name\":\"POLWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractToken\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIPoolCollection\",\"name\":\"poolCollection\",\"type\":\"address\"}],\"name\":\"PoolAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"poolType\",\"type\":\"uint16\"},{\"indexed\":true,\"internalType\":\"contractIPoolCollection\",\"name\":\"poolCollection\",\"type\":\"address\"}],\"name\":\"PoolCollectionAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"poolType\",\"type\":\"uint16\"},{\"indexed\":true,\"internalType\":\"contractIPoolCollection\",\"name\":\"poolCollection\",\"type\":\"address\"}],\"name\":\"PoolCollectionRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractToken\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIPoolCollection\",\"name\":\"poolCollection\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractToken\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIPoolCollection\",\"name\":\"poolCollection\",\"type\":\"address\"}],\"name\":\"PoolRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"contextId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"contractToken\",\"name\":\"sourceToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractToken\",\"name\":\"targetToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sourceAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"targetAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bntAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"targetFeeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bntFeeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"}],\"name\":\"TokensTraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"cancelWithdrawal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"collectionByPool\",\"outputs\":[{\"internalType\":\"contractIPoolCollection\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"contractIPoolCollection\",\"name\":\"poolCollection\",\"type\":\"address\"}],\"name\":\"createPools\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"contractToken\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"}],\"name\":\"depositFor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositingEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"enableDepositing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"zcntoken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"contractIFlashLoanRecipient\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIPoolToken\",\"name\":\"poolToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"poolTokenAmount\",\"type\":\"uint256\"}],\"name\":\"initWithdrawal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIBNTPool\",\"name\":\"initBNTPool\",\"type\":\"address\"},{\"internalType\":\"contractIPendingWithdrawals\",\"name\":\"initPendingWithdrawals\",\"type\":\"address\"},{\"internalType\":\"contractIPoolMigrator\",\"name\":\"initPoolMigrator\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidityPools\",\"outputs\":[{\"internalType\":\"contractToken[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"zcntoken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"originalAmount\",\"type\":\"uint256\"}],\"name\":\"migrateLiquidity\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken[]\",\"name\":\"pools\",\"type\":\"address[]\"},{\"internalType\":\"contractIPoolCollection\",\"name\":\"newPoolCollection\",\"type\":\"address\"}],\"name\":\"migratePools\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingNetworkFeeAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"polRewardsPPM\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolCollections\",\"outputs\":[{\"internalType\":\"contractIPoolCollection[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"postUpgrade\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIPoolCollection\",\"name\":\"newPoolCollection\",\"type\":\"address\"}],\"name\":\"registerPoolCollection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"resume\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roleEmergencyStopper\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roleMigrationManager\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roleNetworkFeeManager\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"newRewardsPPM\",\"type\":\"uint32\"}],\"name\":\"setPOLRewardsPPM\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"sourceToken\",\"type\":\"address\"},{\"internalType\":\"contractToken\",\"name\":\"targetToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"tradeBySourceAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"sourceToken\",\"type\":\"address\"},{\"internalType\":\"contractToken\",\"name\":\"targetToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minReturnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"tradeBySourceAmountArb\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"sourceToken\",\"type\":\"address\"},{\"internalType\":\"contractToken\",\"name\":\"targetToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"targetAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSourceAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"tradeByTargetAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"sourceToken\",\"type\":\"address\"},{\"internalType\":\"contractToken\",\"name\":\"targetToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"targetAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSourceAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"beneficiary\",\"type\":\"address\"}],\"name\":\"tradeByTargetAmountArb\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIPoolCollection\",\"name\":\"poolCollection\",\"type\":\"address\"}],\"name\":\"unregisterPoolCollection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"withdrawNetworkFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractToken\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"withdrawPOL\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

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) CollectionByPool

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

CollectionByPool is a free data retrieval call binding the contract method 0x9bca0e70.

Solidity: function collectionByPool(address pool) view returns(address)

func (*BancorCaller) DEFAULTADMINROLE

func (_Bancor *BancorCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*BancorCaller) DepositingEnabled

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

DepositingEnabled is a free data retrieval call binding the contract method 0x71f43f9a.

Solidity: function depositingEnabled() view returns(bool)

func (*BancorCaller) GetRoleAdmin

func (_Bancor *BancorCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*BancorCaller) GetRoleMember

func (_Bancor *BancorCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*BancorCaller) GetRoleMemberCount

func (_Bancor *BancorCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*BancorCaller) HasRole

func (_Bancor *BancorCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*BancorCaller) LiquidityPools

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

LiquidityPools is a free data retrieval call binding the contract method 0xd6efd7c3.

Solidity: function liquidityPools() view returns(address[])

func (*BancorCaller) Paused

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

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*BancorCaller) PendingNetworkFeeAmount

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

PendingNetworkFeeAmount is a free data retrieval call binding the contract method 0x7bf6a425.

Solidity: function pendingNetworkFeeAmount() view returns(uint256)

func (*BancorCaller) PolRewardsPPM

func (_Bancor *BancorCaller) PolRewardsPPM(opts *bind.CallOpts) (uint32, error)

PolRewardsPPM is a free data retrieval call binding the contract method 0x1329db29.

Solidity: function polRewardsPPM() view returns(uint32)

func (*BancorCaller) PoolCollections

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

PoolCollections is a free data retrieval call binding the contract method 0x39fadf98.

Solidity: function poolCollections() view returns(address[])

func (*BancorCaller) RoleAdmin

func (_Bancor *BancorCaller) RoleAdmin(opts *bind.CallOpts) ([32]byte, error)

RoleAdmin is a free data retrieval call binding the contract method 0x93867fb5.

Solidity: function roleAdmin() pure returns(bytes32)

func (*BancorCaller) RoleEmergencyStopper

func (_Bancor *BancorCaller) RoleEmergencyStopper(opts *bind.CallOpts) ([32]byte, error)

RoleEmergencyStopper is a free data retrieval call binding the contract method 0x41f435b3.

Solidity: function roleEmergencyStopper() pure returns(bytes32)

func (*BancorCaller) RoleMigrationManager

func (_Bancor *BancorCaller) RoleMigrationManager(opts *bind.CallOpts) ([32]byte, error)

RoleMigrationManager is a free data retrieval call binding the contract method 0xe6aac07e.

Solidity: function roleMigrationManager() pure returns(bytes32)

func (*BancorCaller) RoleNetworkFeeManager

func (_Bancor *BancorCaller) RoleNetworkFeeManager(opts *bind.CallOpts) ([32]byte, error)

RoleNetworkFeeManager is a free data retrieval call binding the contract method 0xc8447487.

Solidity: function roleNetworkFeeManager() pure returns(bytes32)

func (*BancorCaller) SupportsInterface

func (_Bancor *BancorCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*BancorCaller) Version

func (_Bancor *BancorCaller) Version(opts *bind.CallOpts) (uint16, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(uint16)

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) CollectionByPool

func (_Bancor *BancorCallerSession) CollectionByPool(pool common.Address) (common.Address, error)

CollectionByPool is a free data retrieval call binding the contract method 0x9bca0e70.

Solidity: function collectionByPool(address pool) view returns(address)

func (*BancorCallerSession) DEFAULTADMINROLE

func (_Bancor *BancorCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*BancorCallerSession) DepositingEnabled

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

DepositingEnabled is a free data retrieval call binding the contract method 0x71f43f9a.

Solidity: function depositingEnabled() view returns(bool)

func (*BancorCallerSession) GetRoleAdmin

func (_Bancor *BancorCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*BancorCallerSession) GetRoleMember

func (_Bancor *BancorCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*BancorCallerSession) GetRoleMemberCount

func (_Bancor *BancorCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*BancorCallerSession) HasRole

func (_Bancor *BancorCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*BancorCallerSession) LiquidityPools

func (_Bancor *BancorCallerSession) LiquidityPools() ([]common.Address, error)

LiquidityPools is a free data retrieval call binding the contract method 0xd6efd7c3.

Solidity: function liquidityPools() view returns(address[])

func (*BancorCallerSession) Paused

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

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*BancorCallerSession) PendingNetworkFeeAmount

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

PendingNetworkFeeAmount is a free data retrieval call binding the contract method 0x7bf6a425.

Solidity: function pendingNetworkFeeAmount() view returns(uint256)

func (*BancorCallerSession) PolRewardsPPM

func (_Bancor *BancorCallerSession) PolRewardsPPM() (uint32, error)

PolRewardsPPM is a free data retrieval call binding the contract method 0x1329db29.

Solidity: function polRewardsPPM() view returns(uint32)

func (*BancorCallerSession) PoolCollections

func (_Bancor *BancorCallerSession) PoolCollections() ([]common.Address, error)

PoolCollections is a free data retrieval call binding the contract method 0x39fadf98.

Solidity: function poolCollections() view returns(address[])

func (*BancorCallerSession) RoleAdmin

func (_Bancor *BancorCallerSession) RoleAdmin() ([32]byte, error)

RoleAdmin is a free data retrieval call binding the contract method 0x93867fb5.

Solidity: function roleAdmin() pure returns(bytes32)

func (*BancorCallerSession) RoleEmergencyStopper

func (_Bancor *BancorCallerSession) RoleEmergencyStopper() ([32]byte, error)

RoleEmergencyStopper is a free data retrieval call binding the contract method 0x41f435b3.

Solidity: function roleEmergencyStopper() pure returns(bytes32)

func (*BancorCallerSession) RoleMigrationManager

func (_Bancor *BancorCallerSession) RoleMigrationManager() ([32]byte, error)

RoleMigrationManager is a free data retrieval call binding the contract method 0xe6aac07e.

Solidity: function roleMigrationManager() pure returns(bytes32)

func (*BancorCallerSession) RoleNetworkFeeManager

func (_Bancor *BancorCallerSession) RoleNetworkFeeManager() ([32]byte, error)

RoleNetworkFeeManager is a free data retrieval call binding the contract method 0xc8447487.

Solidity: function roleNetworkFeeManager() pure returns(bytes32)

func (*BancorCallerSession) SupportsInterface

func (_Bancor *BancorCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*BancorCallerSession) Version

func (_Bancor *BancorCallerSession) Version() (uint16, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(uint16)

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) FilterFlashLoanCompleted

func (_Bancor *BancorFilterer) FilterFlashLoanCompleted(opts *bind.FilterOpts, token []common.Address, borrower []common.Address) (*BancorFlashLoanCompletedIterator, error)

FilterFlashLoanCompleted is a free log retrieval operation binding the contract event 0x0da3485ef1bb570df7bb888887eae5aa01d81b83cd8ccc80c0ea0922a677ecef.

Solidity: event FlashLoanCompleted(address indexed zcntoken, address indexed borrower, uint256 amount, uint256 feeAmount)

func (*BancorFilterer) FilterFundsMigrated

func (_Bancor *BancorFilterer) FilterFundsMigrated(opts *bind.FilterOpts, contextId [][32]byte, token []common.Address, provider []common.Address) (*BancorFundsMigratedIterator, error)

FilterFundsMigrated is a free log retrieval operation binding the contract event 0x102bce4e43a6a8cf0306fde6154221c1f5460f64ba63b92b156bce998ef0db56.

Solidity: event FundsMigrated(bytes32 indexed contextId, address indexed zcntoken, address indexed provider, uint256 amount, uint256 availableAmount, uint256 originalAmount)

func (*BancorFilterer) FilterNetworkFeesWithdrawn

func (_Bancor *BancorFilterer) FilterNetworkFeesWithdrawn(opts *bind.FilterOpts, caller []common.Address, recipient []common.Address) (*BancorNetworkFeesWithdrawnIterator, error)

FilterNetworkFeesWithdrawn is a free log retrieval operation binding the contract event 0x328c9cc28e75030423307e732b07659ae452a620281f3e54e838000a7f467538.

Solidity: event NetworkFeesWithdrawn(address indexed caller, address indexed recipient, uint256 amount)

func (*BancorFilterer) FilterPOLRewardsPPMUpdated

func (_Bancor *BancorFilterer) FilterPOLRewardsPPMUpdated(opts *bind.FilterOpts) (*BancorPOLRewardsPPMUpdatedIterator, error)

FilterPOLRewardsPPMUpdated is a free log retrieval operation binding the contract event 0xa159b13d7eac36d9a65034b4fd6ace1d9cb070d063dc950c564a266f4d091802.

Solidity: event POLRewardsPPMUpdated(uint32 oldRewardsPPM, uint32 newRewardsPPM)

func (*BancorFilterer) FilterPOLWithdrawn

func (_Bancor *BancorFilterer) FilterPOLWithdrawn(opts *bind.FilterOpts, caller []common.Address, token []common.Address) (*BancorPOLWithdrawnIterator, error)

FilterPOLWithdrawn is a free log retrieval operation binding the contract event 0x5ad7a2184454b6259cd118e4041a953dc9d6498302bbe528e4f967bed9197129.

Solidity: event POLWithdrawn(address indexed caller, address indexed zcntoken, uint256 polTokenAmount, uint256 userReward)

func (*BancorFilterer) FilterPaused

func (_Bancor *BancorFilterer) FilterPaused(opts *bind.FilterOpts) (*BancorPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*BancorFilterer) FilterPoolAdded

func (_Bancor *BancorFilterer) FilterPoolAdded(opts *bind.FilterOpts, pool []common.Address, poolCollection []common.Address) (*BancorPoolAddedIterator, error)

FilterPoolAdded is a free log retrieval operation binding the contract event 0x95f865c2808f8b2a85eea2611db7843150ee7835ef1403f9755918a97d76933c.

Solidity: event PoolAdded(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) FilterPoolCollectionAdded

func (_Bancor *BancorFilterer) FilterPoolCollectionAdded(opts *bind.FilterOpts, poolType []uint16, poolCollection []common.Address) (*BancorPoolCollectionAddedIterator, error)

FilterPoolCollectionAdded is a free log retrieval operation binding the contract event 0x5ae87719d73cb0fabb219f0e4b6e0a614ed7506f8a08bdb20bebf313573151b7.

Solidity: event PoolCollectionAdded(uint16 indexed poolType, address indexed poolCollection)

func (*BancorFilterer) FilterPoolCollectionRemoved

func (_Bancor *BancorFilterer) FilterPoolCollectionRemoved(opts *bind.FilterOpts, poolType []uint16, poolCollection []common.Address) (*BancorPoolCollectionRemovedIterator, error)

FilterPoolCollectionRemoved is a free log retrieval operation binding the contract event 0xa0c1e3924f995e5ba38f53b4effb6d4b3eeb84176a2951c589115140f638ac09.

Solidity: event PoolCollectionRemoved(uint16 indexed poolType, address indexed poolCollection)

func (*BancorFilterer) FilterPoolCreated

func (_Bancor *BancorFilterer) FilterPoolCreated(opts *bind.FilterOpts, pool []common.Address, poolCollection []common.Address) (*BancorPoolCreatedIterator, error)

FilterPoolCreated is a free log retrieval operation binding the contract event 0x4f2ce4e40f623ca765fc0167a25cb7842ceaafb8d82d3dec26ca0d0e0d2d4896.

Solidity: event PoolCreated(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) FilterPoolRemoved

func (_Bancor *BancorFilterer) FilterPoolRemoved(opts *bind.FilterOpts, pool []common.Address, poolCollection []common.Address) (*BancorPoolRemovedIterator, error)

FilterPoolRemoved is a free log retrieval operation binding the contract event 0x987eb3c2f78454541205f72f34839b434c306c9eaf4922efd7c0c3060fdb2e4c.

Solidity: event PoolRemoved(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) FilterRoleAdminChanged

func (_Bancor *BancorFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*BancorRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*BancorFilterer) FilterRoleGranted

func (_Bancor *BancorFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BancorRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*BancorFilterer) FilterRoleRevoked

func (_Bancor *BancorFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*BancorRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*BancorFilterer) FilterTokensTraded

func (_Bancor *BancorFilterer) FilterTokensTraded(opts *bind.FilterOpts, contextId [][32]byte, sourceToken []common.Address, targetToken []common.Address) (*BancorTokensTradedIterator, error)

FilterTokensTraded is a free log retrieval operation binding the contract event 0x5c02c2bb2d1d082317eb23916ca27b3e7c294398b60061a2ad54f1c3c018c318.

Solidity: event TokensTraded(bytes32 indexed contextId, address indexed sourceToken, address indexed targetToken, uint256 sourceAmount, uint256 targetAmount, uint256 bntAmount, uint256 targetFeeAmount, uint256 bntFeeAmount, address trader)

func (*BancorFilterer) FilterUnpaused

func (_Bancor *BancorFilterer) FilterUnpaused(opts *bind.FilterOpts) (*BancorUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*BancorFilterer) ParseFlashLoanCompleted

func (_Bancor *BancorFilterer) ParseFlashLoanCompleted(log types.Log) (*BancorFlashLoanCompleted, error)

ParseFlashLoanCompleted is a log parse operation binding the contract event 0x0da3485ef1bb570df7bb888887eae5aa01d81b83cd8ccc80c0ea0922a677ecef.

Solidity: event FlashLoanCompleted(address indexed zcntoken, address indexed borrower, uint256 amount, uint256 feeAmount)

func (*BancorFilterer) ParseFundsMigrated

func (_Bancor *BancorFilterer) ParseFundsMigrated(log types.Log) (*BancorFundsMigrated, error)

ParseFundsMigrated is a log parse operation binding the contract event 0x102bce4e43a6a8cf0306fde6154221c1f5460f64ba63b92b156bce998ef0db56.

Solidity: event FundsMigrated(bytes32 indexed contextId, address indexed zcntoken, address indexed provider, uint256 amount, uint256 availableAmount, uint256 originalAmount)

func (*BancorFilterer) ParseNetworkFeesWithdrawn

func (_Bancor *BancorFilterer) ParseNetworkFeesWithdrawn(log types.Log) (*BancorNetworkFeesWithdrawn, error)

ParseNetworkFeesWithdrawn is a log parse operation binding the contract event 0x328c9cc28e75030423307e732b07659ae452a620281f3e54e838000a7f467538.

Solidity: event NetworkFeesWithdrawn(address indexed caller, address indexed recipient, uint256 amount)

func (*BancorFilterer) ParsePOLRewardsPPMUpdated

func (_Bancor *BancorFilterer) ParsePOLRewardsPPMUpdated(log types.Log) (*BancorPOLRewardsPPMUpdated, error)

ParsePOLRewardsPPMUpdated is a log parse operation binding the contract event 0xa159b13d7eac36d9a65034b4fd6ace1d9cb070d063dc950c564a266f4d091802.

Solidity: event POLRewardsPPMUpdated(uint32 oldRewardsPPM, uint32 newRewardsPPM)

func (*BancorFilterer) ParsePOLWithdrawn

func (_Bancor *BancorFilterer) ParsePOLWithdrawn(log types.Log) (*BancorPOLWithdrawn, error)

ParsePOLWithdrawn is a log parse operation binding the contract event 0x5ad7a2184454b6259cd118e4041a953dc9d6498302bbe528e4f967bed9197129.

Solidity: event POLWithdrawn(address indexed caller, address indexed zcntoken, uint256 polTokenAmount, uint256 userReward)

func (*BancorFilterer) ParsePaused

func (_Bancor *BancorFilterer) ParsePaused(log types.Log) (*BancorPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*BancorFilterer) ParsePoolAdded

func (_Bancor *BancorFilterer) ParsePoolAdded(log types.Log) (*BancorPoolAdded, error)

ParsePoolAdded is a log parse operation binding the contract event 0x95f865c2808f8b2a85eea2611db7843150ee7835ef1403f9755918a97d76933c.

Solidity: event PoolAdded(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) ParsePoolCollectionAdded

func (_Bancor *BancorFilterer) ParsePoolCollectionAdded(log types.Log) (*BancorPoolCollectionAdded, error)

ParsePoolCollectionAdded is a log parse operation binding the contract event 0x5ae87719d73cb0fabb219f0e4b6e0a614ed7506f8a08bdb20bebf313573151b7.

Solidity: event PoolCollectionAdded(uint16 indexed poolType, address indexed poolCollection)

func (*BancorFilterer) ParsePoolCollectionRemoved

func (_Bancor *BancorFilterer) ParsePoolCollectionRemoved(log types.Log) (*BancorPoolCollectionRemoved, error)

ParsePoolCollectionRemoved is a log parse operation binding the contract event 0xa0c1e3924f995e5ba38f53b4effb6d4b3eeb84176a2951c589115140f638ac09.

Solidity: event PoolCollectionRemoved(uint16 indexed poolType, address indexed poolCollection)

func (*BancorFilterer) ParsePoolCreated

func (_Bancor *BancorFilterer) ParsePoolCreated(log types.Log) (*BancorPoolCreated, error)

ParsePoolCreated is a log parse operation binding the contract event 0x4f2ce4e40f623ca765fc0167a25cb7842ceaafb8d82d3dec26ca0d0e0d2d4896.

Solidity: event PoolCreated(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) ParsePoolRemoved

func (_Bancor *BancorFilterer) ParsePoolRemoved(log types.Log) (*BancorPoolRemoved, error)

ParsePoolRemoved is a log parse operation binding the contract event 0x987eb3c2f78454541205f72f34839b434c306c9eaf4922efd7c0c3060fdb2e4c.

Solidity: event PoolRemoved(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) ParseRoleAdminChanged

func (_Bancor *BancorFilterer) ParseRoleAdminChanged(log types.Log) (*BancorRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*BancorFilterer) ParseRoleGranted

func (_Bancor *BancorFilterer) ParseRoleGranted(log types.Log) (*BancorRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*BancorFilterer) ParseRoleRevoked

func (_Bancor *BancorFilterer) ParseRoleRevoked(log types.Log) (*BancorRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*BancorFilterer) ParseTokensTraded

func (_Bancor *BancorFilterer) ParseTokensTraded(log types.Log) (*BancorTokensTraded, error)

ParseTokensTraded is a log parse operation binding the contract event 0x5c02c2bb2d1d082317eb23916ca27b3e7c294398b60061a2ad54f1c3c018c318.

Solidity: event TokensTraded(bytes32 indexed contextId, address indexed sourceToken, address indexed targetToken, uint256 sourceAmount, uint256 targetAmount, uint256 bntAmount, uint256 targetFeeAmount, uint256 bntFeeAmount, address trader)

func (*BancorFilterer) ParseUnpaused

func (_Bancor *BancorFilterer) ParseUnpaused(log types.Log) (*BancorUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*BancorFilterer) WatchFlashLoanCompleted

func (_Bancor *BancorFilterer) WatchFlashLoanCompleted(opts *bind.WatchOpts, sink chan<- *BancorFlashLoanCompleted, token []common.Address, borrower []common.Address) (event.Subscription, error)

WatchFlashLoanCompleted is a free log subscription operation binding the contract event 0x0da3485ef1bb570df7bb888887eae5aa01d81b83cd8ccc80c0ea0922a677ecef.

Solidity: event FlashLoanCompleted(address indexed zcntoken, address indexed borrower, uint256 amount, uint256 feeAmount)

func (*BancorFilterer) WatchFundsMigrated

func (_Bancor *BancorFilterer) WatchFundsMigrated(opts *bind.WatchOpts, sink chan<- *BancorFundsMigrated, contextId [][32]byte, token []common.Address, provider []common.Address) (event.Subscription, error)

WatchFundsMigrated is a free log subscription operation binding the contract event 0x102bce4e43a6a8cf0306fde6154221c1f5460f64ba63b92b156bce998ef0db56.

Solidity: event FundsMigrated(bytes32 indexed contextId, address indexed zcntoken, address indexed provider, uint256 amount, uint256 availableAmount, uint256 originalAmount)

func (*BancorFilterer) WatchNetworkFeesWithdrawn

func (_Bancor *BancorFilterer) WatchNetworkFeesWithdrawn(opts *bind.WatchOpts, sink chan<- *BancorNetworkFeesWithdrawn, caller []common.Address, recipient []common.Address) (event.Subscription, error)

WatchNetworkFeesWithdrawn is a free log subscription operation binding the contract event 0x328c9cc28e75030423307e732b07659ae452a620281f3e54e838000a7f467538.

Solidity: event NetworkFeesWithdrawn(address indexed caller, address indexed recipient, uint256 amount)

func (*BancorFilterer) WatchPOLRewardsPPMUpdated

func (_Bancor *BancorFilterer) WatchPOLRewardsPPMUpdated(opts *bind.WatchOpts, sink chan<- *BancorPOLRewardsPPMUpdated) (event.Subscription, error)

WatchPOLRewardsPPMUpdated is a free log subscription operation binding the contract event 0xa159b13d7eac36d9a65034b4fd6ace1d9cb070d063dc950c564a266f4d091802.

Solidity: event POLRewardsPPMUpdated(uint32 oldRewardsPPM, uint32 newRewardsPPM)

func (*BancorFilterer) WatchPOLWithdrawn

func (_Bancor *BancorFilterer) WatchPOLWithdrawn(opts *bind.WatchOpts, sink chan<- *BancorPOLWithdrawn, caller []common.Address, token []common.Address) (event.Subscription, error)

WatchPOLWithdrawn is a free log subscription operation binding the contract event 0x5ad7a2184454b6259cd118e4041a953dc9d6498302bbe528e4f967bed9197129.

Solidity: event POLWithdrawn(address indexed caller, address indexed zcntoken, uint256 polTokenAmount, uint256 userReward)

func (*BancorFilterer) WatchPaused

func (_Bancor *BancorFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *BancorPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*BancorFilterer) WatchPoolAdded

func (_Bancor *BancorFilterer) WatchPoolAdded(opts *bind.WatchOpts, sink chan<- *BancorPoolAdded, pool []common.Address, poolCollection []common.Address) (event.Subscription, error)

WatchPoolAdded is a free log subscription operation binding the contract event 0x95f865c2808f8b2a85eea2611db7843150ee7835ef1403f9755918a97d76933c.

Solidity: event PoolAdded(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) WatchPoolCollectionAdded

func (_Bancor *BancorFilterer) WatchPoolCollectionAdded(opts *bind.WatchOpts, sink chan<- *BancorPoolCollectionAdded, poolType []uint16, poolCollection []common.Address) (event.Subscription, error)

WatchPoolCollectionAdded is a free log subscription operation binding the contract event 0x5ae87719d73cb0fabb219f0e4b6e0a614ed7506f8a08bdb20bebf313573151b7.

Solidity: event PoolCollectionAdded(uint16 indexed poolType, address indexed poolCollection)

func (*BancorFilterer) WatchPoolCollectionRemoved

func (_Bancor *BancorFilterer) WatchPoolCollectionRemoved(opts *bind.WatchOpts, sink chan<- *BancorPoolCollectionRemoved, poolType []uint16, poolCollection []common.Address) (event.Subscription, error)

WatchPoolCollectionRemoved is a free log subscription operation binding the contract event 0xa0c1e3924f995e5ba38f53b4effb6d4b3eeb84176a2951c589115140f638ac09.

Solidity: event PoolCollectionRemoved(uint16 indexed poolType, address indexed poolCollection)

func (*BancorFilterer) WatchPoolCreated

func (_Bancor *BancorFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *BancorPoolCreated, pool []common.Address, poolCollection []common.Address) (event.Subscription, error)

WatchPoolCreated is a free log subscription operation binding the contract event 0x4f2ce4e40f623ca765fc0167a25cb7842ceaafb8d82d3dec26ca0d0e0d2d4896.

Solidity: event PoolCreated(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) WatchPoolRemoved

func (_Bancor *BancorFilterer) WatchPoolRemoved(opts *bind.WatchOpts, sink chan<- *BancorPoolRemoved, pool []common.Address, poolCollection []common.Address) (event.Subscription, error)

WatchPoolRemoved is a free log subscription operation binding the contract event 0x987eb3c2f78454541205f72f34839b434c306c9eaf4922efd7c0c3060fdb2e4c.

Solidity: event PoolRemoved(address indexed pool, address indexed poolCollection)

func (*BancorFilterer) WatchRoleAdminChanged

func (_Bancor *BancorFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *BancorRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*BancorFilterer) WatchRoleGranted

func (_Bancor *BancorFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *BancorRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*BancorFilterer) WatchRoleRevoked

func (_Bancor *BancorFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *BancorRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*BancorFilterer) WatchTokensTraded

func (_Bancor *BancorFilterer) WatchTokensTraded(opts *bind.WatchOpts, sink chan<- *BancorTokensTraded, contextId [][32]byte, sourceToken []common.Address, targetToken []common.Address) (event.Subscription, error)

WatchTokensTraded is a free log subscription operation binding the contract event 0x5c02c2bb2d1d082317eb23916ca27b3e7c294398b60061a2ad54f1c3c018c318.

Solidity: event TokensTraded(bytes32 indexed contextId, address indexed sourceToken, address indexed targetToken, uint256 sourceAmount, uint256 targetAmount, uint256 bntAmount, uint256 targetFeeAmount, uint256 bntFeeAmount, address trader)

func (*BancorFilterer) WatchUnpaused

func (_Bancor *BancorFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *BancorUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

type BancorFlashLoanCompleted

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

BancorFlashLoanCompleted represents a FlashLoanCompleted event raised by the Bancor contract.

type BancorFlashLoanCompletedIterator

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

BancorFlashLoanCompletedIterator is returned from FilterFlashLoanCompleted and is used to iterate over the raw logs and unpacked data for FlashLoanCompleted events raised by the Bancor contract.

func (*BancorFlashLoanCompletedIterator) Close

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

func (*BancorFlashLoanCompletedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorFlashLoanCompletedIterator) 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 BancorFundsMigrated

type BancorFundsMigrated struct {
	ContextId       [32]byte
	Token           common.Address
	Provider        common.Address
	Amount          *big.Int
	AvailableAmount *big.Int
	OriginalAmount  *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

BancorFundsMigrated represents a FundsMigrated event raised by the Bancor contract.

type BancorFundsMigratedIterator

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

BancorFundsMigratedIterator is returned from FilterFundsMigrated and is used to iterate over the raw logs and unpacked data for FundsMigrated events raised by the Bancor contract.

func (*BancorFundsMigratedIterator) Close

func (it *BancorFundsMigratedIterator) Close() error

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

func (*BancorFundsMigratedIterator) Error

func (it *BancorFundsMigratedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorFundsMigratedIterator) Next

func (it *BancorFundsMigratedIterator) 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 BancorNetworkFeesWithdrawn

type BancorNetworkFeesWithdrawn struct {
	Caller    common.Address
	Recipient common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

BancorNetworkFeesWithdrawn represents a NetworkFeesWithdrawn event raised by the Bancor contract.

type BancorNetworkFeesWithdrawnIterator

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

BancorNetworkFeesWithdrawnIterator is returned from FilterNetworkFeesWithdrawn and is used to iterate over the raw logs and unpacked data for NetworkFeesWithdrawn events raised by the Bancor contract.

func (*BancorNetworkFeesWithdrawnIterator) Close

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

func (*BancorNetworkFeesWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorNetworkFeesWithdrawnIterator) 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 BancorPOLRewardsPPMUpdated

type BancorPOLRewardsPPMUpdated struct {
	OldRewardsPPM uint32
	NewRewardsPPM uint32
	Raw           types.Log // Blockchain specific contextual infos
}

BancorPOLRewardsPPMUpdated represents a POLRewardsPPMUpdated event raised by the Bancor contract.

type BancorPOLRewardsPPMUpdatedIterator

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

BancorPOLRewardsPPMUpdatedIterator is returned from FilterPOLRewardsPPMUpdated and is used to iterate over the raw logs and unpacked data for POLRewardsPPMUpdated events raised by the Bancor contract.

func (*BancorPOLRewardsPPMUpdatedIterator) Close

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

func (*BancorPOLRewardsPPMUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPOLRewardsPPMUpdatedIterator) 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 BancorPOLWithdrawn

type BancorPOLWithdrawn struct {
	Caller         common.Address
	Token          common.Address
	PolTokenAmount *big.Int
	UserReward     *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

BancorPOLWithdrawn represents a POLWithdrawn event raised by the Bancor contract.

type BancorPOLWithdrawnIterator

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

BancorPOLWithdrawnIterator is returned from FilterPOLWithdrawn and is used to iterate over the raw logs and unpacked data for POLWithdrawn events raised by the Bancor contract.

func (*BancorPOLWithdrawnIterator) Close

func (it *BancorPOLWithdrawnIterator) Close() error

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

func (*BancorPOLWithdrawnIterator) Error

func (it *BancorPOLWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPOLWithdrawnIterator) Next

func (it *BancorPOLWithdrawnIterator) 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 BancorPaused

type BancorPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BancorPaused represents a Paused event raised by the Bancor contract.

type BancorPausedIterator

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

BancorPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Bancor contract.

func (*BancorPausedIterator) Close

func (it *BancorPausedIterator) Close() error

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

func (*BancorPausedIterator) Error

func (it *BancorPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPausedIterator) Next

func (it *BancorPausedIterator) 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 BancorPoolAdded

type BancorPoolAdded struct {
	Pool           common.Address
	PoolCollection common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

BancorPoolAdded represents a PoolAdded event raised by the Bancor contract.

type BancorPoolAddedIterator

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

BancorPoolAddedIterator is returned from FilterPoolAdded and is used to iterate over the raw logs and unpacked data for PoolAdded events raised by the Bancor contract.

func (*BancorPoolAddedIterator) Close

func (it *BancorPoolAddedIterator) Close() error

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

func (*BancorPoolAddedIterator) Error

func (it *BancorPoolAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPoolAddedIterator) Next

func (it *BancorPoolAddedIterator) 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 BancorPoolCollectionAdded

type BancorPoolCollectionAdded struct {
	PoolType       uint16
	PoolCollection common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

BancorPoolCollectionAdded represents a PoolCollectionAdded event raised by the Bancor contract.

type BancorPoolCollectionAddedIterator

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

BancorPoolCollectionAddedIterator is returned from FilterPoolCollectionAdded and is used to iterate over the raw logs and unpacked data for PoolCollectionAdded events raised by the Bancor contract.

func (*BancorPoolCollectionAddedIterator) Close

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

func (*BancorPoolCollectionAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPoolCollectionAddedIterator) 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 BancorPoolCollectionRemoved

type BancorPoolCollectionRemoved struct {
	PoolType       uint16
	PoolCollection common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

BancorPoolCollectionRemoved represents a PoolCollectionRemoved event raised by the Bancor contract.

type BancorPoolCollectionRemovedIterator

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

BancorPoolCollectionRemovedIterator is returned from FilterPoolCollectionRemoved and is used to iterate over the raw logs and unpacked data for PoolCollectionRemoved events raised by the Bancor contract.

func (*BancorPoolCollectionRemovedIterator) Close

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

func (*BancorPoolCollectionRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPoolCollectionRemovedIterator) 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 BancorPoolCreated

type BancorPoolCreated struct {
	Pool           common.Address
	PoolCollection common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

BancorPoolCreated represents a PoolCreated event raised by the Bancor contract.

type BancorPoolCreatedIterator

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

BancorPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the Bancor contract.

func (*BancorPoolCreatedIterator) Close

func (it *BancorPoolCreatedIterator) Close() error

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

func (*BancorPoolCreatedIterator) Error

func (it *BancorPoolCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPoolCreatedIterator) Next

func (it *BancorPoolCreatedIterator) 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 BancorPoolRemoved

type BancorPoolRemoved struct {
	Pool           common.Address
	PoolCollection common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

BancorPoolRemoved represents a PoolRemoved event raised by the Bancor contract.

type BancorPoolRemovedIterator

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

BancorPoolRemovedIterator is returned from FilterPoolRemoved and is used to iterate over the raw logs and unpacked data for PoolRemoved events raised by the Bancor contract.

func (*BancorPoolRemovedIterator) Close

func (it *BancorPoolRemovedIterator) Close() error

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

func (*BancorPoolRemovedIterator) Error

func (it *BancorPoolRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorPoolRemovedIterator) Next

func (it *BancorPoolRemovedIterator) 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 BancorRoleAdminChanged

type BancorRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

BancorRoleAdminChanged represents a RoleAdminChanged event raised by the Bancor contract.

type BancorRoleAdminChangedIterator

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

BancorRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Bancor contract.

func (*BancorRoleAdminChangedIterator) Close

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

func (*BancorRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorRoleAdminChangedIterator) 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 BancorRoleGranted

type BancorRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BancorRoleGranted represents a RoleGranted event raised by the Bancor contract.

type BancorRoleGrantedIterator

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

BancorRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Bancor contract.

func (*BancorRoleGrantedIterator) Close

func (it *BancorRoleGrantedIterator) Close() error

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

func (*BancorRoleGrantedIterator) Error

func (it *BancorRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorRoleGrantedIterator) Next

func (it *BancorRoleGrantedIterator) 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 BancorRoleRevoked

type BancorRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BancorRoleRevoked represents a RoleRevoked event raised by the Bancor contract.

type BancorRoleRevokedIterator

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

BancorRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Bancor contract.

func (*BancorRoleRevokedIterator) Close

func (it *BancorRoleRevokedIterator) Close() error

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

func (*BancorRoleRevokedIterator) Error

func (it *BancorRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorRoleRevokedIterator) Next

func (it *BancorRoleRevokedIterator) 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 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) CancelWithdrawal

func (_Bancor *BancorSession) CancelWithdrawal(id *big.Int) (*types.Transaction, error)

CancelWithdrawal is a paid mutator transaction binding the contract method 0x3efcfda4.

Solidity: function cancelWithdrawal(uint256 id) returns(uint256)

func (*BancorSession) CollectionByPool

func (_Bancor *BancorSession) CollectionByPool(pool common.Address) (common.Address, error)

CollectionByPool is a free data retrieval call binding the contract method 0x9bca0e70.

Solidity: function collectionByPool(address pool) view returns(address)

func (*BancorSession) CreatePools

func (_Bancor *BancorSession) CreatePools(tokens []common.Address, poolCollection common.Address) (*types.Transaction, error)

CreatePools is a paid mutator transaction binding the contract method 0x42659964.

Solidity: function createPools(address[] tokens, address poolCollection) returns()

func (*BancorSession) DEFAULTADMINROLE

func (_Bancor *BancorSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*BancorSession) Deposit

func (_Bancor *BancorSession) Deposit(pool common.Address, tokenAmount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(address pool, uint256 tokenAmount) payable returns(uint256)

func (*BancorSession) DepositFor

func (_Bancor *BancorSession) DepositFor(provider common.Address, pool common.Address, tokenAmount *big.Int) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0xb3db428b.

Solidity: function depositFor(address provider, address pool, uint256 tokenAmount) payable returns(uint256)

func (*BancorSession) DepositingEnabled

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

DepositingEnabled is a free data retrieval call binding the contract method 0x71f43f9a.

Solidity: function depositingEnabled() view returns(bool)

func (*BancorSession) EnableDepositing

func (_Bancor *BancorSession) EnableDepositing(status bool) (*types.Transaction, error)

EnableDepositing is a paid mutator transaction binding the contract method 0x26e6b697.

Solidity: function enableDepositing(bool status) returns()

func (*BancorSession) FlashLoan

func (_Bancor *BancorSession) FlashLoan(token common.Address, amount *big.Int, recipient common.Address, data []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xadf51de1.

Solidity: function flashLoan(address zcntoken, uint256 amount, address recipient, bytes data) returns()

func (*BancorSession) GetRoleAdmin

func (_Bancor *BancorSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*BancorSession) GetRoleMember

func (_Bancor *BancorSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*BancorSession) GetRoleMemberCount

func (_Bancor *BancorSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*BancorSession) GrantRole

func (_Bancor *BancorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*BancorSession) HasRole

func (_Bancor *BancorSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*BancorSession) InitWithdrawal

func (_Bancor *BancorSession) InitWithdrawal(poolToken common.Address, poolTokenAmount *big.Int) (*types.Transaction, error)

InitWithdrawal is a paid mutator transaction binding the contract method 0x357a0333.

Solidity: function initWithdrawal(address poolToken, uint256 poolTokenAmount) returns(uint256)

func (*BancorSession) Initialize

func (_Bancor *BancorSession) Initialize(initBNTPool common.Address, initPendingWithdrawals common.Address, initPoolMigrator common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address initBNTPool, address initPendingWithdrawals, address initPoolMigrator) returns()

func (*BancorSession) LiquidityPools

func (_Bancor *BancorSession) LiquidityPools() ([]common.Address, error)

LiquidityPools is a free data retrieval call binding the contract method 0xd6efd7c3.

Solidity: function liquidityPools() view returns(address[])

func (*BancorSession) MigrateLiquidity

func (_Bancor *BancorSession) MigrateLiquidity(token common.Address, provider common.Address, amount *big.Int, availableAmount *big.Int, originalAmount *big.Int) (*types.Transaction, error)

MigrateLiquidity is a paid mutator transaction binding the contract method 0x3d1c24e7.

Solidity: function migrateLiquidity(address zcntoken, address provider, uint256 amount, uint256 availableAmount, uint256 originalAmount) payable returns()

func (*BancorSession) MigratePools

func (_Bancor *BancorSession) MigratePools(pools []common.Address, newPoolCollection common.Address) (*types.Transaction, error)

MigratePools is a paid mutator transaction binding the contract method 0xc109ba13.

Solidity: function migratePools(address[] pools, address newPoolCollection) returns()

func (*BancorSession) Pause

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

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*BancorSession) Paused

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

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*BancorSession) PendingNetworkFeeAmount

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

PendingNetworkFeeAmount is a free data retrieval call binding the contract method 0x7bf6a425.

Solidity: function pendingNetworkFeeAmount() view returns(uint256)

func (*BancorSession) PolRewardsPPM

func (_Bancor *BancorSession) PolRewardsPPM() (uint32, error)

PolRewardsPPM is a free data retrieval call binding the contract method 0x1329db29.

Solidity: function polRewardsPPM() view returns(uint32)

func (*BancorSession) PoolCollections

func (_Bancor *BancorSession) PoolCollections() ([]common.Address, error)

PoolCollections is a free data retrieval call binding the contract method 0x39fadf98.

Solidity: function poolCollections() view returns(address[])

func (*BancorSession) PostUpgrade

func (_Bancor *BancorSession) PostUpgrade(data []byte) (*types.Transaction, error)

PostUpgrade is a paid mutator transaction binding the contract method 0x8cd2403d.

Solidity: function postUpgrade(bytes data) returns()

func (*BancorSession) Receive

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

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*BancorSession) RegisterPoolCollection

func (_Bancor *BancorSession) RegisterPoolCollection(newPoolCollection common.Address) (*types.Transaction, error)

RegisterPoolCollection is a paid mutator transaction binding the contract method 0xa8bf9046.

Solidity: function registerPoolCollection(address newPoolCollection) returns()

func (*BancorSession) RenounceRole

func (_Bancor *BancorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*BancorSession) Resume

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

Resume is a paid mutator transaction binding the contract method 0x046f7da2.

Solidity: function resume() returns()

func (*BancorSession) RevokeRole

func (_Bancor *BancorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*BancorSession) RoleAdmin

func (_Bancor *BancorSession) RoleAdmin() ([32]byte, error)

RoleAdmin is a free data retrieval call binding the contract method 0x93867fb5.

Solidity: function roleAdmin() pure returns(bytes32)

func (*BancorSession) RoleEmergencyStopper

func (_Bancor *BancorSession) RoleEmergencyStopper() ([32]byte, error)

RoleEmergencyStopper is a free data retrieval call binding the contract method 0x41f435b3.

Solidity: function roleEmergencyStopper() pure returns(bytes32)

func (*BancorSession) RoleMigrationManager

func (_Bancor *BancorSession) RoleMigrationManager() ([32]byte, error)

RoleMigrationManager is a free data retrieval call binding the contract method 0xe6aac07e.

Solidity: function roleMigrationManager() pure returns(bytes32)

func (*BancorSession) RoleNetworkFeeManager

func (_Bancor *BancorSession) RoleNetworkFeeManager() ([32]byte, error)

RoleNetworkFeeManager is a free data retrieval call binding the contract method 0xc8447487.

Solidity: function roleNetworkFeeManager() pure returns(bytes32)

func (*BancorSession) SetPOLRewardsPPM

func (_Bancor *BancorSession) SetPOLRewardsPPM(newRewardsPPM uint32) (*types.Transaction, error)

SetPOLRewardsPPM is a paid mutator transaction binding the contract method 0x53300772.

Solidity: function setPOLRewardsPPM(uint32 newRewardsPPM) returns()

func (*BancorSession) SupportsInterface

func (_Bancor *BancorSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*BancorSession) TradeBySourceAmount

func (_Bancor *BancorSession) TradeBySourceAmount(sourceToken common.Address, targetToken common.Address, sourceAmount *big.Int, minReturnAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeBySourceAmount is a paid mutator transaction binding the contract method 0xd3a4acd3.

Solidity: function tradeBySourceAmount(address sourceToken, address targetToken, uint256 sourceAmount, uint256 minReturnAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorSession) TradeBySourceAmountArb

func (_Bancor *BancorSession) TradeBySourceAmountArb(sourceToken common.Address, targetToken common.Address, sourceAmount *big.Int, minReturnAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeBySourceAmountArb is a paid mutator transaction binding the contract method 0xd895feee.

Solidity: function tradeBySourceAmountArb(address sourceToken, address targetToken, uint256 sourceAmount, uint256 minReturnAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorSession) TradeByTargetAmount

func (_Bancor *BancorSession) TradeByTargetAmount(sourceToken common.Address, targetToken common.Address, targetAmount *big.Int, maxSourceAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeByTargetAmount is a paid mutator transaction binding the contract method 0x45d6602c.

Solidity: function tradeByTargetAmount(address sourceToken, address targetToken, uint256 targetAmount, uint256 maxSourceAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorSession) TradeByTargetAmountArb

func (_Bancor *BancorSession) TradeByTargetAmountArb(sourceToken common.Address, targetToken common.Address, targetAmount *big.Int, maxSourceAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeByTargetAmountArb is a paid mutator transaction binding the contract method 0xd0d14581.

Solidity: function tradeByTargetAmountArb(address sourceToken, address targetToken, uint256 targetAmount, uint256 maxSourceAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorSession) UnregisterPoolCollection

func (_Bancor *BancorSession) UnregisterPoolCollection(poolCollection common.Address) (*types.Transaction, error)

UnregisterPoolCollection is a paid mutator transaction binding the contract method 0x230df83a.

Solidity: function unregisterPoolCollection(address poolCollection) returns()

func (*BancorSession) Version

func (_Bancor *BancorSession) Version() (uint16, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(uint16)

func (*BancorSession) Withdraw

func (_Bancor *BancorSession) Withdraw(id *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 id) returns(uint256)

func (*BancorSession) WithdrawNetworkFees

func (_Bancor *BancorSession) WithdrawNetworkFees(recipient common.Address) (*types.Transaction, error)

WithdrawNetworkFees is a paid mutator transaction binding the contract method 0x3cd11924.

Solidity: function withdrawNetworkFees(address recipient) returns(uint256)

func (*BancorSession) WithdrawPOL

func (_Bancor *BancorSession) WithdrawPOL(pool common.Address) (*types.Transaction, error)

WithdrawPOL is a paid mutator transaction binding the contract method 0x8ffcca07.

Solidity: function withdrawPOL(address pool) returns(uint256)

type BancorTokensTraded

type BancorTokensTraded struct {
	ContextId       [32]byte
	SourceToken     common.Address
	TargetToken     common.Address
	SourceAmount    *big.Int
	TargetAmount    *big.Int
	BntAmount       *big.Int
	TargetFeeAmount *big.Int
	BntFeeAmount    *big.Int
	Trader          common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

BancorTokensTraded represents a TokensTraded event raised by the Bancor contract.

type BancorTokensTradedIterator

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

BancorTokensTradedIterator is returned from FilterTokensTraded and is used to iterate over the raw logs and unpacked data for TokensTraded events raised by the Bancor contract.

func (*BancorTokensTradedIterator) Close

func (it *BancorTokensTradedIterator) Close() error

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

func (*BancorTokensTradedIterator) Error

func (it *BancorTokensTradedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorTokensTradedIterator) Next

func (it *BancorTokensTradedIterator) 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 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) CancelWithdrawal

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

CancelWithdrawal is a paid mutator transaction binding the contract method 0x3efcfda4.

Solidity: function cancelWithdrawal(uint256 id) returns(uint256)

func (*BancorTransactor) CreatePools

func (_Bancor *BancorTransactor) CreatePools(opts *bind.TransactOpts, tokens []common.Address, poolCollection common.Address) (*types.Transaction, error)

CreatePools is a paid mutator transaction binding the contract method 0x42659964.

Solidity: function createPools(address[] tokens, address poolCollection) returns()

func (*BancorTransactor) Deposit

func (_Bancor *BancorTransactor) Deposit(opts *bind.TransactOpts, pool common.Address, tokenAmount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(address pool, uint256 tokenAmount) payable returns(uint256)

func (*BancorTransactor) DepositFor

func (_Bancor *BancorTransactor) DepositFor(opts *bind.TransactOpts, provider common.Address, pool common.Address, tokenAmount *big.Int) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0xb3db428b.

Solidity: function depositFor(address provider, address pool, uint256 tokenAmount) payable returns(uint256)

func (*BancorTransactor) EnableDepositing

func (_Bancor *BancorTransactor) EnableDepositing(opts *bind.TransactOpts, status bool) (*types.Transaction, error)

EnableDepositing is a paid mutator transaction binding the contract method 0x26e6b697.

Solidity: function enableDepositing(bool status) returns()

func (*BancorTransactor) FlashLoan

func (_Bancor *BancorTransactor) FlashLoan(opts *bind.TransactOpts, token common.Address, amount *big.Int, recipient common.Address, data []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xadf51de1.

Solidity: function flashLoan(address zcntoken, uint256 amount, address recipient, bytes data) returns()

func (*BancorTransactor) GrantRole

func (_Bancor *BancorTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*BancorTransactor) InitWithdrawal

func (_Bancor *BancorTransactor) InitWithdrawal(opts *bind.TransactOpts, poolToken common.Address, poolTokenAmount *big.Int) (*types.Transaction, error)

InitWithdrawal is a paid mutator transaction binding the contract method 0x357a0333.

Solidity: function initWithdrawal(address poolToken, uint256 poolTokenAmount) returns(uint256)

func (*BancorTransactor) Initialize

func (_Bancor *BancorTransactor) Initialize(opts *bind.TransactOpts, initBNTPool common.Address, initPendingWithdrawals common.Address, initPoolMigrator common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address initBNTPool, address initPendingWithdrawals, address initPoolMigrator) returns()

func (*BancorTransactor) MigrateLiquidity

func (_Bancor *BancorTransactor) MigrateLiquidity(opts *bind.TransactOpts, token common.Address, provider common.Address, amount *big.Int, availableAmount *big.Int, originalAmount *big.Int) (*types.Transaction, error)

MigrateLiquidity is a paid mutator transaction binding the contract method 0x3d1c24e7.

Solidity: function migrateLiquidity(address zcntoken, address provider, uint256 amount, uint256 availableAmount, uint256 originalAmount) payable returns()

func (*BancorTransactor) MigratePools

func (_Bancor *BancorTransactor) MigratePools(opts *bind.TransactOpts, pools []common.Address, newPoolCollection common.Address) (*types.Transaction, error)

MigratePools is a paid mutator transaction binding the contract method 0xc109ba13.

Solidity: function migratePools(address[] pools, address newPoolCollection) returns()

func (*BancorTransactor) Pause

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

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*BancorTransactor) PostUpgrade

func (_Bancor *BancorTransactor) PostUpgrade(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)

PostUpgrade is a paid mutator transaction binding the contract method 0x8cd2403d.

Solidity: function postUpgrade(bytes data) returns()

func (*BancorTransactor) Receive

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

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*BancorTransactor) RegisterPoolCollection

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

RegisterPoolCollection is a paid mutator transaction binding the contract method 0xa8bf9046.

Solidity: function registerPoolCollection(address newPoolCollection) returns()

func (*BancorTransactor) RenounceRole

func (_Bancor *BancorTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*BancorTransactor) Resume

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

Resume is a paid mutator transaction binding the contract method 0x046f7da2.

Solidity: function resume() returns()

func (*BancorTransactor) RevokeRole

func (_Bancor *BancorTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*BancorTransactor) SetPOLRewardsPPM

func (_Bancor *BancorTransactor) SetPOLRewardsPPM(opts *bind.TransactOpts, newRewardsPPM uint32) (*types.Transaction, error)

SetPOLRewardsPPM is a paid mutator transaction binding the contract method 0x53300772.

Solidity: function setPOLRewardsPPM(uint32 newRewardsPPM) returns()

func (*BancorTransactor) TradeBySourceAmount

func (_Bancor *BancorTransactor) TradeBySourceAmount(opts *bind.TransactOpts, sourceToken common.Address, targetToken common.Address, sourceAmount *big.Int, minReturnAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeBySourceAmount is a paid mutator transaction binding the contract method 0xd3a4acd3.

Solidity: function tradeBySourceAmount(address sourceToken, address targetToken, uint256 sourceAmount, uint256 minReturnAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactor) TradeBySourceAmountArb

func (_Bancor *BancorTransactor) TradeBySourceAmountArb(opts *bind.TransactOpts, sourceToken common.Address, targetToken common.Address, sourceAmount *big.Int, minReturnAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeBySourceAmountArb is a paid mutator transaction binding the contract method 0xd895feee.

Solidity: function tradeBySourceAmountArb(address sourceToken, address targetToken, uint256 sourceAmount, uint256 minReturnAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactor) TradeByTargetAmount

func (_Bancor *BancorTransactor) TradeByTargetAmount(opts *bind.TransactOpts, sourceToken common.Address, targetToken common.Address, targetAmount *big.Int, maxSourceAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeByTargetAmount is a paid mutator transaction binding the contract method 0x45d6602c.

Solidity: function tradeByTargetAmount(address sourceToken, address targetToken, uint256 targetAmount, uint256 maxSourceAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactor) TradeByTargetAmountArb

func (_Bancor *BancorTransactor) TradeByTargetAmountArb(opts *bind.TransactOpts, sourceToken common.Address, targetToken common.Address, targetAmount *big.Int, maxSourceAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeByTargetAmountArb is a paid mutator transaction binding the contract method 0xd0d14581.

Solidity: function tradeByTargetAmountArb(address sourceToken, address targetToken, uint256 targetAmount, uint256 maxSourceAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactor) UnregisterPoolCollection

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

UnregisterPoolCollection is a paid mutator transaction binding the contract method 0x230df83a.

Solidity: function unregisterPoolCollection(address poolCollection) returns()

func (*BancorTransactor) Withdraw

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

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

Solidity: function withdraw(uint256 id) returns(uint256)

func (*BancorTransactor) WithdrawNetworkFees

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

WithdrawNetworkFees is a paid mutator transaction binding the contract method 0x3cd11924.

Solidity: function withdrawNetworkFees(address recipient) returns(uint256)

func (*BancorTransactor) WithdrawPOL

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

WithdrawPOL is a paid mutator transaction binding the contract method 0x8ffcca07.

Solidity: function withdrawPOL(address pool) 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) CancelWithdrawal

func (_Bancor *BancorTransactorSession) CancelWithdrawal(id *big.Int) (*types.Transaction, error)

CancelWithdrawal is a paid mutator transaction binding the contract method 0x3efcfda4.

Solidity: function cancelWithdrawal(uint256 id) returns(uint256)

func (*BancorTransactorSession) CreatePools

func (_Bancor *BancorTransactorSession) CreatePools(tokens []common.Address, poolCollection common.Address) (*types.Transaction, error)

CreatePools is a paid mutator transaction binding the contract method 0x42659964.

Solidity: function createPools(address[] tokens, address poolCollection) returns()

func (*BancorTransactorSession) Deposit

func (_Bancor *BancorTransactorSession) Deposit(pool common.Address, tokenAmount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(address pool, uint256 tokenAmount) payable returns(uint256)

func (*BancorTransactorSession) DepositFor

func (_Bancor *BancorTransactorSession) DepositFor(provider common.Address, pool common.Address, tokenAmount *big.Int) (*types.Transaction, error)

DepositFor is a paid mutator transaction binding the contract method 0xb3db428b.

Solidity: function depositFor(address provider, address pool, uint256 tokenAmount) payable returns(uint256)

func (*BancorTransactorSession) EnableDepositing

func (_Bancor *BancorTransactorSession) EnableDepositing(status bool) (*types.Transaction, error)

EnableDepositing is a paid mutator transaction binding the contract method 0x26e6b697.

Solidity: function enableDepositing(bool status) returns()

func (*BancorTransactorSession) FlashLoan

func (_Bancor *BancorTransactorSession) FlashLoan(token common.Address, amount *big.Int, recipient common.Address, data []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xadf51de1.

Solidity: function flashLoan(address zcntoken, uint256 amount, address recipient, bytes data) returns()

func (*BancorTransactorSession) GrantRole

func (_Bancor *BancorTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*BancorTransactorSession) InitWithdrawal

func (_Bancor *BancorTransactorSession) InitWithdrawal(poolToken common.Address, poolTokenAmount *big.Int) (*types.Transaction, error)

InitWithdrawal is a paid mutator transaction binding the contract method 0x357a0333.

Solidity: function initWithdrawal(address poolToken, uint256 poolTokenAmount) returns(uint256)

func (*BancorTransactorSession) Initialize

func (_Bancor *BancorTransactorSession) Initialize(initBNTPool common.Address, initPendingWithdrawals common.Address, initPoolMigrator common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address initBNTPool, address initPendingWithdrawals, address initPoolMigrator) returns()

func (*BancorTransactorSession) MigrateLiquidity

func (_Bancor *BancorTransactorSession) MigrateLiquidity(token common.Address, provider common.Address, amount *big.Int, availableAmount *big.Int, originalAmount *big.Int) (*types.Transaction, error)

MigrateLiquidity is a paid mutator transaction binding the contract method 0x3d1c24e7.

Solidity: function migrateLiquidity(address zcntoken, address provider, uint256 amount, uint256 availableAmount, uint256 originalAmount) payable returns()

func (*BancorTransactorSession) MigratePools

func (_Bancor *BancorTransactorSession) MigratePools(pools []common.Address, newPoolCollection common.Address) (*types.Transaction, error)

MigratePools is a paid mutator transaction binding the contract method 0xc109ba13.

Solidity: function migratePools(address[] pools, address newPoolCollection) returns()

func (*BancorTransactorSession) Pause

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

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*BancorTransactorSession) PostUpgrade

func (_Bancor *BancorTransactorSession) PostUpgrade(data []byte) (*types.Transaction, error)

PostUpgrade is a paid mutator transaction binding the contract method 0x8cd2403d.

Solidity: function postUpgrade(bytes data) returns()

func (*BancorTransactorSession) Receive

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

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*BancorTransactorSession) RegisterPoolCollection

func (_Bancor *BancorTransactorSession) RegisterPoolCollection(newPoolCollection common.Address) (*types.Transaction, error)

RegisterPoolCollection is a paid mutator transaction binding the contract method 0xa8bf9046.

Solidity: function registerPoolCollection(address newPoolCollection) returns()

func (*BancorTransactorSession) RenounceRole

func (_Bancor *BancorTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*BancorTransactorSession) Resume

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

Resume is a paid mutator transaction binding the contract method 0x046f7da2.

Solidity: function resume() returns()

func (*BancorTransactorSession) RevokeRole

func (_Bancor *BancorTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*BancorTransactorSession) SetPOLRewardsPPM

func (_Bancor *BancorTransactorSession) SetPOLRewardsPPM(newRewardsPPM uint32) (*types.Transaction, error)

SetPOLRewardsPPM is a paid mutator transaction binding the contract method 0x53300772.

Solidity: function setPOLRewardsPPM(uint32 newRewardsPPM) returns()

func (*BancorTransactorSession) TradeBySourceAmount

func (_Bancor *BancorTransactorSession) TradeBySourceAmount(sourceToken common.Address, targetToken common.Address, sourceAmount *big.Int, minReturnAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeBySourceAmount is a paid mutator transaction binding the contract method 0xd3a4acd3.

Solidity: function tradeBySourceAmount(address sourceToken, address targetToken, uint256 sourceAmount, uint256 minReturnAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactorSession) TradeBySourceAmountArb

func (_Bancor *BancorTransactorSession) TradeBySourceAmountArb(sourceToken common.Address, targetToken common.Address, sourceAmount *big.Int, minReturnAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeBySourceAmountArb is a paid mutator transaction binding the contract method 0xd895feee.

Solidity: function tradeBySourceAmountArb(address sourceToken, address targetToken, uint256 sourceAmount, uint256 minReturnAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactorSession) TradeByTargetAmount

func (_Bancor *BancorTransactorSession) TradeByTargetAmount(sourceToken common.Address, targetToken common.Address, targetAmount *big.Int, maxSourceAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeByTargetAmount is a paid mutator transaction binding the contract method 0x45d6602c.

Solidity: function tradeByTargetAmount(address sourceToken, address targetToken, uint256 targetAmount, uint256 maxSourceAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactorSession) TradeByTargetAmountArb

func (_Bancor *BancorTransactorSession) TradeByTargetAmountArb(sourceToken common.Address, targetToken common.Address, targetAmount *big.Int, maxSourceAmount *big.Int, deadline *big.Int, beneficiary common.Address) (*types.Transaction, error)

TradeByTargetAmountArb is a paid mutator transaction binding the contract method 0xd0d14581.

Solidity: function tradeByTargetAmountArb(address sourceToken, address targetToken, uint256 targetAmount, uint256 maxSourceAmount, uint256 deadline, address beneficiary) payable returns(uint256)

func (*BancorTransactorSession) UnregisterPoolCollection

func (_Bancor *BancorTransactorSession) UnregisterPoolCollection(poolCollection common.Address) (*types.Transaction, error)

UnregisterPoolCollection is a paid mutator transaction binding the contract method 0x230df83a.

Solidity: function unregisterPoolCollection(address poolCollection) returns()

func (*BancorTransactorSession) Withdraw

func (_Bancor *BancorTransactorSession) Withdraw(id *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 id) returns(uint256)

func (*BancorTransactorSession) WithdrawNetworkFees

func (_Bancor *BancorTransactorSession) WithdrawNetworkFees(recipient common.Address) (*types.Transaction, error)

WithdrawNetworkFees is a paid mutator transaction binding the contract method 0x3cd11924.

Solidity: function withdrawNetworkFees(address recipient) returns(uint256)

func (*BancorTransactorSession) WithdrawPOL

func (_Bancor *BancorTransactorSession) WithdrawPOL(pool common.Address) (*types.Transaction, error)

WithdrawPOL is a paid mutator transaction binding the contract method 0x8ffcca07.

Solidity: function withdrawPOL(address pool) returns(uint256)

type BancorUnpaused

type BancorUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BancorUnpaused represents a Unpaused event raised by the Bancor contract.

type BancorUnpausedIterator

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

BancorUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Bancor contract.

func (*BancorUnpausedIterator) Close

func (it *BancorUnpausedIterator) Close() error

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

func (*BancorUnpausedIterator) Error

func (it *BancorUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BancorUnpausedIterator) Next

func (it *BancorUnpausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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