stargate

package
v0.5.39 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressRouterMainnet           = common.HexToAddress("0x8731d54E9D02c286767d56ac03e8037C07e01e98")
	AddressRouterBinanceSmartChain = common.HexToAddress("0x4a364f8c717cAAD9A442737Eb7b8A55cc6cf18D8")
	AddressRouterAvalanche         = common.HexToAddress("0x45A01E4e04F14f7A4a6702c74187c5F6222033cd")
	AddressRouterPolygon           = common.HexToAddress("0x45A01E4e04F14f7A4a6702c74187c5F6222033cd")
	AddressRouterArbitrum          = common.HexToAddress("0x53Bf833A5d6c4ddA888F69c22C88C9f356a41614")
	AddressRouterOptimism          = common.HexToAddress("0xB0D502E938ed5f4df2E681fE6E419ff29631d62b")
	AddressRouterBase              = common.HexToAddress("0x45f1A95A4D3f3836523F5c83673c797f4d4d263B")
	AddressRouterLinea             = common.HexToAddress("0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590")

	AddressRouterETHMainnet  = common.HexToAddress("0x150f94B44927F078737562f0fcF3C95c01Cc2376")
	AddressRouterETHArbitrum = common.HexToAddress("0xbf22f0f184bCcbeA268dF387a49fF5238dD23E40")
	AddressRouterETHOptimism = common.HexToAddress("0xB49c4e680174E331CB0A7fF3Ab58afC9738d5F8b")
	AddressRouterETHBase     = common.HexToAddress("0x50B6EbC2103BFEc165949CC946d739d5650d7ae4")
	AddressRouterETHLinea    = common.HexToAddress("0x8731d54E9D02c286767d56ac03e8037C07e01e98")

	AddressFactoryMainnet           = common.HexToAddress("0x06D538690AF257Da524f25D0CD52fD85b1c2173E")
	AddressFactoryBinanceSmartChain = common.HexToAddress("0xe7Ec689f432f29383f217e36e680B5C855051f25")
	AddressFactoryAvalanche         = common.HexToAddress("0x808d7c71ad2ba3FA531b068a2417C63106BC0949")
	AddressFactoryPolygon           = common.HexToAddress("0x808d7c71ad2ba3FA531b068a2417C63106BC0949")
	AddressFactoryArbitrum          = common.HexToAddress("0x55bDb4164D28FBaF0898e0eF14a589ac09Ac9970")
	AddressFactoryOptimism          = common.HexToAddress("0xE3B53AF74a4BF62Ae5511055290838050bf764Df")
	AddressFactoryBase              = common.HexToAddress("0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6")
	AddressFactoryLinea             = common.HexToAddress("0xaf54be5b6eec24d6bfacf1cce4eaf680a8239398")

	AddressSGETHMainnet     = common.HexToAddress("0x72E2F4830b9E45d52F80aC08CB2bEC0FeF72eD9c")
	AddressSGETHArbitrumOne = common.HexToAddress("0x82CbeCF39bEe528B5476FE6d1550af59a9dB6Fc0")
	AddressSGETHOptimism    = common.HexToAddress("0xb69c8CBCD90A39D8D3d3ccf0a3E968511C3856A0")
	AddressSGETHBase        = common.HexToAddress("0x224D8Fd7aB6AD4c6eb4611Ce56EF35Dec2277F03")
	AddressSGETHLinea       = common.HexToAddress("0xAad094F6A75A14417d39f04E690fC216f080A41a")

	EventHashPoolSwap            = contract.EventHash("Swap(uint16,uint256,address,uint256,uint256,uint256,uint256,uint256)")
	EventHashPoolSwapRemote      = contract.EventHash("SwapRemote(address,uint256,uint256,uint256)")
	EventHashPoolCreditChainPath = contract.EventHash("CreditChainPath(uint16,uint256,uint256,uint256)")
)

https://stargateprotocol.gitbook.io/stargate/developers/contract-addresses/mainnet

View Source
var FactoryABI = FactoryMetaData.ABI

FactoryABI is the input ABI used to generate the binding from. Deprecated: Use FactoryMetaData.ABI instead.

View Source
var FactoryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_router\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPools\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"allPoolsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_poolId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"_sharedDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"_localDecimals\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"poolAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultFeeLibrary\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"contractPool\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"router\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_defaultFeeLibrary\",\"type\":\"address\"}],\"name\":\"setDefaultFeeLibrary\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

FactoryMetaData contains all meta data concerning the Factory contract.

View Source
var PoolABI = PoolMetaData.ABI

PoolABI is the input ABI used to generate the binding from. Deprecated: Use PoolMetaData.ABI instead.

View Source
var PoolMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_poolId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_sharedDecimals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_localDecimals\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_feeLibrary\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLP\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"dstChainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstPoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"name\":\"ChainPathUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcPoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"idealBalance\",\"type\":\"uint256\"}],\"name\":\"CreditChainPath\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"batched\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapDeltaBP\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lpDeltaBP\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"defaultSwapMode\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"defaultLPMode\",\"type\":\"bool\"}],\"name\":\"DeltaParamUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"feeLibraryAddr\",\"type\":\"address\"}],\"name\":\"FeeLibraryUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintFeeBP\",\"type\":\"uint256\"}],\"name\":\"FeesUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLP\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"InstantRedeemLocal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLP\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintFeeAmountSD\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLP\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstPoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"to\",\"type\":\"bytes\"}],\"name\":\"RedeemLocal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amountSD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amountToMintSD\",\"type\":\"uint256\"}],\"name\":\"RedeemLocalCallback\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstPoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLP\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"}],\"name\":\"RedeemRemote\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"dstChainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstPoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"credits\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"idealBalance\",\"type\":\"uint256\"}],\"name\":\"SendCredits\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"swapStop\",\"type\":\"bool\"}],\"name\":\"StopSwapUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstPoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"eqReward\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"eqFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lpFee\",\"type\":\"uint256\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dstFee\",\"type\":\"uint256\"}],\"name\":\"SwapRemote\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"}],\"name\":\"WithdrawMintFeeBalance\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"}],\"name\":\"WithdrawProtocolFeeBalance\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"srcChainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"srcPoolId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"}],\"name\":\"WithdrawRemote\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BP_DENOMINATOR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"}],\"name\":\"activateChainPath\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountLP\",\"type\":\"uint256\"}],\"name\":\"amountLPtoLD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"batched\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_fullMode\",\"type\":\"bool\"}],\"name\":\"callDelta\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"chainPathIndexLookup\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"chainPaths\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"ready\",\"type\":\"bool\"},{\"internalType\":\"uint16\",\"name\":\"dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"dstPoolId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lkb\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"credits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"idealBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"convertRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_weight\",\"type\":\"uint256\"}],\"name\":\"createChainPath\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"credits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"idealBalance\",\"type\":\"uint256\"}],\"internalType\":\"structPool.CreditObj\",\"name\":\"_c\",\"type\":\"tuple\"}],\"name\":\"creditChainPath\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultLPMode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultSwapMode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deltaCredit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eqFeePool\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeLibrary\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"}],\"name\":\"getChainPath\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"ready\",\"type\":\"bool\"},{\"internalType\":\"uint16\",\"name\":\"dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"dstPoolId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lkb\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"credits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"idealBalance\",\"type\":\"uint256\"}],\"internalType\":\"structPool.ChainPath\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainPathsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountLP\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"instantRedeemLocal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"localDecimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lpDeltaBP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountLD\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintFeeBP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintFeeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolFeeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountLP\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_to\",\"type\":\"bytes\"}],\"name\":\"redeemLocal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountSD\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_srcChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_srcPoolId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountSD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amountToMintSD\",\"type\":\"uint256\"}],\"name\":\"redeemLocalCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_srcChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_srcPoolId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_amountSD\",\"type\":\"uint256\"}],\"name\":\"redeemLocalCheckOnRemote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"swapAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountLP\",\"type\":\"uint256\"}],\"name\":\"redeemRemote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"router\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"}],\"name\":\"sendCredits\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"credits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"idealBalance\",\"type\":\"uint256\"}],\"internalType\":\"structPool.CreditObj\",\"name\":\"c\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_batched\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"_swapDeltaBP\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_lpDeltaBP\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_defaultSwapMode\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"_defaultLPMode\",\"type\":\"bool\"}],\"name\":\"setDeltaParam\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_mintFeeBP\",\"type\":\"uint256\"}],\"name\":\"setFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeLibraryAddr\",\"type\":\"address\"}],\"name\":\"setFeeLibrary\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_swapStop\",\"type\":\"bool\"}],\"name\":\"setSwapStop\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"_weight\",\"type\":\"uint16\"}],\"name\":\"setWeightForChainPath\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sharedDecimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopSwap\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_dstChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_dstPoolId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_minAmountLD\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"newLiquidity\",\"type\":\"bool\"}],\"name\":\"swap\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"eqFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"eqReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lpFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lkbRemove\",\"type\":\"uint256\"}],\"internalType\":\"structPool.SwapObj\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"swapDeltaBP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_srcChainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_srcPoolId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"eqFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"eqReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lpFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lkbRemove\",\"type\":\"uint256\"}],\"internalType\":\"structPool.SwapObj\",\"name\":\"_s\",\"type\":\"tuple\"}],\"name\":\"swapRemote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"withdrawMintFeeBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"withdrawProtocolFeeBalance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

PoolMetaData contains all meta data concerning the Pool contract.

Functions

func EthereumChain

func EthereumChain(chainID uint16) (network.Network, bool)

func FactoryAddress

func FactoryAddress(n network.Network) (common.Address, bool)

func IsSGETH

func IsSGETH(address common.Address) bool

func RouterAddresses added in v0.4.29

func RouterAddresses() []common.Address

func RouterETHAddresses added in v0.4.29

func RouterETHAddresses() []common.Address

Types

type Factory

type Factory struct {
	FactoryCaller     // Read-only binding to the contract
	FactoryTransactor // Write-only binding to the contract
	FactoryFilterer   // Log filterer for contract events
}

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

func NewFactory

func NewFactory(address common.Address, backend bind.ContractBackend) (*Factory, error)

NewFactory creates a new instance of Factory, bound to a specific deployed contract.

type FactoryCaller

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

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

func NewFactoryCaller

func NewFactoryCaller(address common.Address, caller bind.ContractCaller) (*FactoryCaller, error)

NewFactoryCaller creates a new read-only instance of Factory, bound to a specific deployed contract.

func (*FactoryCaller) AllPools

func (_Factory *FactoryCaller) AllPools(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

AllPools is a free data retrieval call binding the contract method 0x41d1de97.

Solidity: function allPools(uint256 ) view returns(address)

func (*FactoryCaller) AllPoolsLength

func (_Factory *FactoryCaller) AllPoolsLength(opts *bind.CallOpts) (*big.Int, error)

AllPoolsLength is a free data retrieval call binding the contract method 0xefde4e64.

Solidity: function allPoolsLength() view returns(uint256)

func (*FactoryCaller) DefaultFeeLibrary

func (_Factory *FactoryCaller) DefaultFeeLibrary(opts *bind.CallOpts) (common.Address, error)

DefaultFeeLibrary is a free data retrieval call binding the contract method 0xbe5a3c00.

Solidity: function defaultFeeLibrary() view returns(address)

func (*FactoryCaller) GetPool

func (_Factory *FactoryCaller) GetPool(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x068bcd8d.

Solidity: function getPool(uint256 ) view returns(address)

func (*FactoryCaller) Owner

func (_Factory *FactoryCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FactoryCaller) Router

func (_Factory *FactoryCaller) Router(opts *bind.CallOpts) (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

type FactoryCallerRaw

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

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

func (*FactoryCallerRaw) Call

func (_Factory *FactoryCallerRaw) 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 FactoryCallerSession

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

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

func (*FactoryCallerSession) AllPools

func (_Factory *FactoryCallerSession) AllPools(arg0 *big.Int) (common.Address, error)

AllPools is a free data retrieval call binding the contract method 0x41d1de97.

Solidity: function allPools(uint256 ) view returns(address)

func (*FactoryCallerSession) AllPoolsLength

func (_Factory *FactoryCallerSession) AllPoolsLength() (*big.Int, error)

AllPoolsLength is a free data retrieval call binding the contract method 0xefde4e64.

Solidity: function allPoolsLength() view returns(uint256)

func (*FactoryCallerSession) DefaultFeeLibrary

func (_Factory *FactoryCallerSession) DefaultFeeLibrary() (common.Address, error)

DefaultFeeLibrary is a free data retrieval call binding the contract method 0xbe5a3c00.

Solidity: function defaultFeeLibrary() view returns(address)

func (*FactoryCallerSession) GetPool

func (_Factory *FactoryCallerSession) GetPool(arg0 *big.Int) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x068bcd8d.

Solidity: function getPool(uint256 ) view returns(address)

func (*FactoryCallerSession) Owner

func (_Factory *FactoryCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FactoryCallerSession) Router

func (_Factory *FactoryCallerSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

type FactoryFilterer

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

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

func NewFactoryFilterer

func NewFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*FactoryFilterer, error)

NewFactoryFilterer creates a new log filterer instance of Factory, bound to a specific deployed contract.

func (*FactoryFilterer) FilterOwnershipTransferred

func (_Factory *FactoryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FactoryOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FactoryFilterer) ParseOwnershipTransferred

func (_Factory *FactoryFilterer) ParseOwnershipTransferred(log types.Log) (*FactoryOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FactoryFilterer) WatchOwnershipTransferred

func (_Factory *FactoryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FactoryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type FactoryOwnershipTransferred

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

FactoryOwnershipTransferred represents a OwnershipTransferred event raised by the Factory contract.

type FactoryOwnershipTransferredIterator

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

FactoryOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Factory contract.

func (*FactoryOwnershipTransferredIterator) Close

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

func (*FactoryOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryOwnershipTransferredIterator) 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 FactoryRaw

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

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

func (*FactoryRaw) Call

func (_Factory *FactoryRaw) 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 (*FactoryRaw) Transact

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

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

func (*FactoryRaw) Transfer

func (_Factory *FactoryRaw) 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 FactorySession

type FactorySession struct {
	Contract     *Factory          // 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
}

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

func (*FactorySession) AllPools

func (_Factory *FactorySession) AllPools(arg0 *big.Int) (common.Address, error)

AllPools is a free data retrieval call binding the contract method 0x41d1de97.

Solidity: function allPools(uint256 ) view returns(address)

func (*FactorySession) AllPoolsLength

func (_Factory *FactorySession) AllPoolsLength() (*big.Int, error)

AllPoolsLength is a free data retrieval call binding the contract method 0xefde4e64.

Solidity: function allPoolsLength() view returns(uint256)

func (*FactorySession) CreatePool

func (_Factory *FactorySession) CreatePool(_poolId *big.Int, _token common.Address, _sharedDecimals uint8, _localDecimals uint8, _name string, _symbol string) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x7af935a1.

Solidity: function createPool(uint256 _poolId, address _token, uint8 _sharedDecimals, uint8 _localDecimals, string _name, string _symbol) returns(address poolAddress)

func (*FactorySession) DefaultFeeLibrary

func (_Factory *FactorySession) DefaultFeeLibrary() (common.Address, error)

DefaultFeeLibrary is a free data retrieval call binding the contract method 0xbe5a3c00.

Solidity: function defaultFeeLibrary() view returns(address)

func (*FactorySession) GetPool

func (_Factory *FactorySession) GetPool(arg0 *big.Int) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x068bcd8d.

Solidity: function getPool(uint256 ) view returns(address)

func (*FactorySession) Owner

func (_Factory *FactorySession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FactorySession) RenounceOwnership

func (_Factory *FactorySession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*FactorySession) Router

func (_Factory *FactorySession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*FactorySession) SetDefaultFeeLibrary

func (_Factory *FactorySession) SetDefaultFeeLibrary(_defaultFeeLibrary common.Address) (*types.Transaction, error)

SetDefaultFeeLibrary is a paid mutator transaction binding the contract method 0xc63f57aa.

Solidity: function setDefaultFeeLibrary(address _defaultFeeLibrary) returns()

func (*FactorySession) TransferOwnership

func (_Factory *FactorySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type FactoryTransactor

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

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

func NewFactoryTransactor

func NewFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*FactoryTransactor, error)

NewFactoryTransactor creates a new write-only instance of Factory, bound to a specific deployed contract.

func (*FactoryTransactor) CreatePool

func (_Factory *FactoryTransactor) CreatePool(opts *bind.TransactOpts, _poolId *big.Int, _token common.Address, _sharedDecimals uint8, _localDecimals uint8, _name string, _symbol string) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x7af935a1.

Solidity: function createPool(uint256 _poolId, address _token, uint8 _sharedDecimals, uint8 _localDecimals, string _name, string _symbol) returns(address poolAddress)

func (*FactoryTransactor) RenounceOwnership

func (_Factory *FactoryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*FactoryTransactor) SetDefaultFeeLibrary

func (_Factory *FactoryTransactor) SetDefaultFeeLibrary(opts *bind.TransactOpts, _defaultFeeLibrary common.Address) (*types.Transaction, error)

SetDefaultFeeLibrary is a paid mutator transaction binding the contract method 0xc63f57aa.

Solidity: function setDefaultFeeLibrary(address _defaultFeeLibrary) returns()

func (*FactoryTransactor) TransferOwnership

func (_Factory *FactoryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type FactoryTransactorRaw

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

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

func (*FactoryTransactorRaw) Transact

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

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

func (*FactoryTransactorRaw) Transfer

func (_Factory *FactoryTransactorRaw) 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 FactoryTransactorSession

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

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

func (*FactoryTransactorSession) CreatePool

func (_Factory *FactoryTransactorSession) CreatePool(_poolId *big.Int, _token common.Address, _sharedDecimals uint8, _localDecimals uint8, _name string, _symbol string) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x7af935a1.

Solidity: function createPool(uint256 _poolId, address _token, uint8 _sharedDecimals, uint8 _localDecimals, string _name, string _symbol) returns(address poolAddress)

func (*FactoryTransactorSession) RenounceOwnership

func (_Factory *FactoryTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*FactoryTransactorSession) SetDefaultFeeLibrary

func (_Factory *FactoryTransactorSession) SetDefaultFeeLibrary(_defaultFeeLibrary common.Address) (*types.Transaction, error)

SetDefaultFeeLibrary is a paid mutator transaction binding the contract method 0xc63f57aa.

Solidity: function setDefaultFeeLibrary(address _defaultFeeLibrary) returns()

func (*FactoryTransactorSession) TransferOwnership

func (_Factory *FactoryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type Pool

type Pool struct {
	PoolCaller     // Read-only binding to the contract
	PoolTransactor // Write-only binding to the contract
	PoolFilterer   // Log filterer for contract events
}

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

func NewPool

func NewPool(address common.Address, backend bind.ContractBackend) (*Pool, error)

NewPool creates a new instance of Pool, bound to a specific deployed contract.

type PoolApproval

type PoolApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

PoolApproval represents a Approval event raised by the Pool contract.

type PoolApprovalIterator

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

PoolApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Pool contract.

func (*PoolApprovalIterator) Close

func (it *PoolApprovalIterator) Close() error

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

func (*PoolApprovalIterator) Error

func (it *PoolApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolApprovalIterator) Next

func (it *PoolApprovalIterator) 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 PoolBurn

type PoolBurn struct {
	From     common.Address
	AmountLP *big.Int
	AmountSD *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PoolBurn represents a Burn event raised by the Pool contract.

type PoolBurnIterator

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

PoolBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Pool contract.

func (*PoolBurnIterator) Close

func (it *PoolBurnIterator) Close() error

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

func (*PoolBurnIterator) Error

func (it *PoolBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolBurnIterator) Next

func (it *PoolBurnIterator) 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 PoolCaller

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

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

func NewPoolCaller

func NewPoolCaller(address common.Address, caller bind.ContractCaller) (*PoolCaller, error)

NewPoolCaller creates a new read-only instance of Pool, bound to a specific deployed contract.

func (*PoolCaller) Allowance

func (_Pool *PoolCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*PoolCaller) AmountLPtoLD

func (_Pool *PoolCaller) AmountLPtoLD(opts *bind.CallOpts, _amountLP *big.Int) (*big.Int, error)

AmountLPtoLD is a free data retrieval call binding the contract method 0xf6cd35ee.

Solidity: function amountLPtoLD(uint256 _amountLP) view returns(uint256)

func (*PoolCaller) BPDENOMINATOR

func (_Pool *PoolCaller) BPDENOMINATOR(opts *bind.CallOpts) (*big.Int, error)

BPDENOMINATOR is a free data retrieval call binding the contract method 0xabe685cd.

Solidity: function BP_DENOMINATOR() view returns(uint256)

func (*PoolCaller) BalanceOf

func (_Pool *PoolCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address ) view returns(uint256)

func (*PoolCaller) Batched

func (_Pool *PoolCaller) Batched(opts *bind.CallOpts) (bool, error)

Batched is a free data retrieval call binding the contract method 0x27f92376.

Solidity: function batched() view returns(bool)

func (*PoolCaller) ChainPathIndexLookup

func (_Pool *PoolCaller) ChainPathIndexLookup(opts *bind.CallOpts, arg0 uint16, arg1 *big.Int) (*big.Int, error)

ChainPathIndexLookup is a free data retrieval call binding the contract method 0x64c5f02d.

Solidity: function chainPathIndexLookup(uint16 , uint256 ) view returns(uint256)

func (*PoolCaller) ChainPaths

func (_Pool *PoolCaller) ChainPaths(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Ready        bool
	DstChainId   uint16
	DstPoolId    *big.Int
	Weight       *big.Int
	Balance      *big.Int
	Lkb          *big.Int
	Credits      *big.Int
	IdealBalance *big.Int
}, error)

ChainPaths is a free data retrieval call binding the contract method 0xa138ed6b.

Solidity: function chainPaths(uint256 ) view returns(bool ready, uint16 dstChainId, uint256 dstPoolId, uint256 weight, uint256 balance, uint256 lkb, uint256 credits, uint256 idealBalance)

func (*PoolCaller) ConvertRate

func (_Pool *PoolCaller) ConvertRate(opts *bind.CallOpts) (*big.Int, error)

ConvertRate is a free data retrieval call binding the contract method 0xfeb56b15.

Solidity: function convertRate() view returns(uint256)

func (*PoolCaller) DOMAINSEPARATOR

func (_Pool *PoolCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*PoolCaller) Decimals

func (_Pool *PoolCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*PoolCaller) DefaultLPMode

func (_Pool *PoolCaller) DefaultLPMode(opts *bind.CallOpts) (bool, error)

DefaultLPMode is a free data retrieval call binding the contract method 0x28f079c2.

Solidity: function defaultLPMode() view returns(bool)

func (*PoolCaller) DefaultSwapMode

func (_Pool *PoolCaller) DefaultSwapMode(opts *bind.CallOpts) (bool, error)

DefaultSwapMode is a free data retrieval call binding the contract method 0x99a22d68.

Solidity: function defaultSwapMode() view returns(bool)

func (*PoolCaller) DeltaCredit

func (_Pool *PoolCaller) DeltaCredit(opts *bind.CallOpts) (*big.Int, error)

DeltaCredit is a free data retrieval call binding the contract method 0x1e8e51da.

Solidity: function deltaCredit() view returns(uint256)

func (*PoolCaller) EqFeePool

func (_Pool *PoolCaller) EqFeePool(opts *bind.CallOpts) (*big.Int, error)

EqFeePool is a free data retrieval call binding the contract method 0x9bb81119.

Solidity: function eqFeePool() view returns(uint256)

func (*PoolCaller) FeeLibrary

func (_Pool *PoolCaller) FeeLibrary(opts *bind.CallOpts) (common.Address, error)

FeeLibrary is a free data retrieval call binding the contract method 0x001edfab.

Solidity: function feeLibrary() view returns(address)

func (*PoolCaller) GetChainPath

func (_Pool *PoolCaller) GetChainPath(opts *bind.CallOpts, _dstChainId uint16, _dstPoolId *big.Int) (PoolChainPath, error)

GetChainPath is a free data retrieval call binding the contract method 0x159f6add.

Solidity: function getChainPath(uint16 _dstChainId, uint256 _dstPoolId) view returns((bool,uint16,uint256,uint256,uint256,uint256,uint256,uint256))

func (*PoolCaller) GetChainPathsLength

func (_Pool *PoolCaller) GetChainPathsLength(opts *bind.CallOpts) (*big.Int, error)

GetChainPathsLength is a free data retrieval call binding the contract method 0x163ef490.

Solidity: function getChainPathsLength() view returns(uint256)

func (*PoolCaller) LocalDecimals

func (_Pool *PoolCaller) LocalDecimals(opts *bind.CallOpts) (*big.Int, error)

LocalDecimals is a free data retrieval call binding the contract method 0xe46e7058.

Solidity: function localDecimals() view returns(uint256)

func (*PoolCaller) LpDeltaBP

func (_Pool *PoolCaller) LpDeltaBP(opts *bind.CallOpts) (*big.Int, error)

LpDeltaBP is a free data retrieval call binding the contract method 0x36448777.

Solidity: function lpDeltaBP() view returns(uint256)

func (*PoolCaller) MintFeeBP

func (_Pool *PoolCaller) MintFeeBP(opts *bind.CallOpts) (*big.Int, error)

MintFeeBP is a free data retrieval call binding the contract method 0xfaa24f07.

Solidity: function mintFeeBP() view returns(uint256)

func (*PoolCaller) MintFeeBalance

func (_Pool *PoolCaller) MintFeeBalance(opts *bind.CallOpts) (*big.Int, error)

MintFeeBalance is a free data retrieval call binding the contract method 0x65152f2b.

Solidity: function mintFeeBalance() view returns(uint256)

func (*PoolCaller) Name

func (_Pool *PoolCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*PoolCaller) Nonces

func (_Pool *PoolCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*PoolCaller) PERMITTYPEHASH

func (_Pool *PoolCaller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*PoolCaller) PoolId

func (_Pool *PoolCaller) PoolId(opts *bind.CallOpts) (*big.Int, error)

PoolId is a free data retrieval call binding the contract method 0x3e0dc34e.

Solidity: function poolId() view returns(uint256)

func (*PoolCaller) ProtocolFeeBalance

func (_Pool *PoolCaller) ProtocolFeeBalance(opts *bind.CallOpts) (*big.Int, error)

ProtocolFeeBalance is a free data retrieval call binding the contract method 0x0a22d68c.

Solidity: function protocolFeeBalance() view returns(uint256)

func (*PoolCaller) Router

func (_Pool *PoolCaller) Router(opts *bind.CallOpts) (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*PoolCaller) SharedDecimals

func (_Pool *PoolCaller) SharedDecimals(opts *bind.CallOpts) (*big.Int, error)

SharedDecimals is a free data retrieval call binding the contract method 0x857749b0.

Solidity: function sharedDecimals() view returns(uint256)

func (*PoolCaller) StopSwap

func (_Pool *PoolCaller) StopSwap(opts *bind.CallOpts) (bool, error)

StopSwap is a free data retrieval call binding the contract method 0xb633b364.

Solidity: function stopSwap() view returns(bool)

func (*PoolCaller) SwapDeltaBP

func (_Pool *PoolCaller) SwapDeltaBP(opts *bind.CallOpts) (*big.Int, error)

SwapDeltaBP is a free data retrieval call binding the contract method 0xcdfed0ab.

Solidity: function swapDeltaBP() view returns(uint256)

func (*PoolCaller) Symbol

func (_Pool *PoolCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*PoolCaller) Token

func (_Pool *PoolCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*PoolCaller) TotalLiquidity

func (_Pool *PoolCaller) TotalLiquidity(opts *bind.CallOpts) (*big.Int, error)

TotalLiquidity is a free data retrieval call binding the contract method 0x15770f92.

Solidity: function totalLiquidity() view returns(uint256)

func (*PoolCaller) TotalSupply

func (_Pool *PoolCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*PoolCaller) TotalWeight

func (_Pool *PoolCaller) TotalWeight(opts *bind.CallOpts) (*big.Int, error)

TotalWeight is a free data retrieval call binding the contract method 0x96c82e57.

Solidity: function totalWeight() view returns(uint256)

type PoolCallerRaw

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

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

func (*PoolCallerRaw) Call

func (_Pool *PoolCallerRaw) 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 PoolCallerSession

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

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

func (*PoolCallerSession) Allowance

func (_Pool *PoolCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*PoolCallerSession) AmountLPtoLD

func (_Pool *PoolCallerSession) AmountLPtoLD(_amountLP *big.Int) (*big.Int, error)

AmountLPtoLD is a free data retrieval call binding the contract method 0xf6cd35ee.

Solidity: function amountLPtoLD(uint256 _amountLP) view returns(uint256)

func (*PoolCallerSession) BPDENOMINATOR

func (_Pool *PoolCallerSession) BPDENOMINATOR() (*big.Int, error)

BPDENOMINATOR is a free data retrieval call binding the contract method 0xabe685cd.

Solidity: function BP_DENOMINATOR() view returns(uint256)

func (*PoolCallerSession) BalanceOf

func (_Pool *PoolCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address ) view returns(uint256)

func (*PoolCallerSession) Batched

func (_Pool *PoolCallerSession) Batched() (bool, error)

Batched is a free data retrieval call binding the contract method 0x27f92376.

Solidity: function batched() view returns(bool)

func (*PoolCallerSession) ChainPathIndexLookup

func (_Pool *PoolCallerSession) ChainPathIndexLookup(arg0 uint16, arg1 *big.Int) (*big.Int, error)

ChainPathIndexLookup is a free data retrieval call binding the contract method 0x64c5f02d.

Solidity: function chainPathIndexLookup(uint16 , uint256 ) view returns(uint256)

func (*PoolCallerSession) ChainPaths

func (_Pool *PoolCallerSession) ChainPaths(arg0 *big.Int) (struct {
	Ready        bool
	DstChainId   uint16
	DstPoolId    *big.Int
	Weight       *big.Int
	Balance      *big.Int
	Lkb          *big.Int
	Credits      *big.Int
	IdealBalance *big.Int
}, error)

ChainPaths is a free data retrieval call binding the contract method 0xa138ed6b.

Solidity: function chainPaths(uint256 ) view returns(bool ready, uint16 dstChainId, uint256 dstPoolId, uint256 weight, uint256 balance, uint256 lkb, uint256 credits, uint256 idealBalance)

func (*PoolCallerSession) ConvertRate

func (_Pool *PoolCallerSession) ConvertRate() (*big.Int, error)

ConvertRate is a free data retrieval call binding the contract method 0xfeb56b15.

Solidity: function convertRate() view returns(uint256)

func (*PoolCallerSession) DOMAINSEPARATOR

func (_Pool *PoolCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*PoolCallerSession) Decimals

func (_Pool *PoolCallerSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*PoolCallerSession) DefaultLPMode

func (_Pool *PoolCallerSession) DefaultLPMode() (bool, error)

DefaultLPMode is a free data retrieval call binding the contract method 0x28f079c2.

Solidity: function defaultLPMode() view returns(bool)

func (*PoolCallerSession) DefaultSwapMode

func (_Pool *PoolCallerSession) DefaultSwapMode() (bool, error)

DefaultSwapMode is a free data retrieval call binding the contract method 0x99a22d68.

Solidity: function defaultSwapMode() view returns(bool)

func (*PoolCallerSession) DeltaCredit

func (_Pool *PoolCallerSession) DeltaCredit() (*big.Int, error)

DeltaCredit is a free data retrieval call binding the contract method 0x1e8e51da.

Solidity: function deltaCredit() view returns(uint256)

func (*PoolCallerSession) EqFeePool

func (_Pool *PoolCallerSession) EqFeePool() (*big.Int, error)

EqFeePool is a free data retrieval call binding the contract method 0x9bb81119.

Solidity: function eqFeePool() view returns(uint256)

func (*PoolCallerSession) FeeLibrary

func (_Pool *PoolCallerSession) FeeLibrary() (common.Address, error)

FeeLibrary is a free data retrieval call binding the contract method 0x001edfab.

Solidity: function feeLibrary() view returns(address)

func (*PoolCallerSession) GetChainPath

func (_Pool *PoolCallerSession) GetChainPath(_dstChainId uint16, _dstPoolId *big.Int) (PoolChainPath, error)

GetChainPath is a free data retrieval call binding the contract method 0x159f6add.

Solidity: function getChainPath(uint16 _dstChainId, uint256 _dstPoolId) view returns((bool,uint16,uint256,uint256,uint256,uint256,uint256,uint256))

func (*PoolCallerSession) GetChainPathsLength

func (_Pool *PoolCallerSession) GetChainPathsLength() (*big.Int, error)

GetChainPathsLength is a free data retrieval call binding the contract method 0x163ef490.

Solidity: function getChainPathsLength() view returns(uint256)

func (*PoolCallerSession) LocalDecimals

func (_Pool *PoolCallerSession) LocalDecimals() (*big.Int, error)

LocalDecimals is a free data retrieval call binding the contract method 0xe46e7058.

Solidity: function localDecimals() view returns(uint256)

func (*PoolCallerSession) LpDeltaBP

func (_Pool *PoolCallerSession) LpDeltaBP() (*big.Int, error)

LpDeltaBP is a free data retrieval call binding the contract method 0x36448777.

Solidity: function lpDeltaBP() view returns(uint256)

func (*PoolCallerSession) MintFeeBP

func (_Pool *PoolCallerSession) MintFeeBP() (*big.Int, error)

MintFeeBP is a free data retrieval call binding the contract method 0xfaa24f07.

Solidity: function mintFeeBP() view returns(uint256)

func (*PoolCallerSession) MintFeeBalance

func (_Pool *PoolCallerSession) MintFeeBalance() (*big.Int, error)

MintFeeBalance is a free data retrieval call binding the contract method 0x65152f2b.

Solidity: function mintFeeBalance() view returns(uint256)

func (*PoolCallerSession) Name

func (_Pool *PoolCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*PoolCallerSession) Nonces

func (_Pool *PoolCallerSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*PoolCallerSession) PERMITTYPEHASH

func (_Pool *PoolCallerSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*PoolCallerSession) PoolId

func (_Pool *PoolCallerSession) PoolId() (*big.Int, error)

PoolId is a free data retrieval call binding the contract method 0x3e0dc34e.

Solidity: function poolId() view returns(uint256)

func (*PoolCallerSession) ProtocolFeeBalance

func (_Pool *PoolCallerSession) ProtocolFeeBalance() (*big.Int, error)

ProtocolFeeBalance is a free data retrieval call binding the contract method 0x0a22d68c.

Solidity: function protocolFeeBalance() view returns(uint256)

func (*PoolCallerSession) Router

func (_Pool *PoolCallerSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*PoolCallerSession) SharedDecimals

func (_Pool *PoolCallerSession) SharedDecimals() (*big.Int, error)

SharedDecimals is a free data retrieval call binding the contract method 0x857749b0.

Solidity: function sharedDecimals() view returns(uint256)

func (*PoolCallerSession) StopSwap

func (_Pool *PoolCallerSession) StopSwap() (bool, error)

StopSwap is a free data retrieval call binding the contract method 0xb633b364.

Solidity: function stopSwap() view returns(bool)

func (*PoolCallerSession) SwapDeltaBP

func (_Pool *PoolCallerSession) SwapDeltaBP() (*big.Int, error)

SwapDeltaBP is a free data retrieval call binding the contract method 0xcdfed0ab.

Solidity: function swapDeltaBP() view returns(uint256)

func (*PoolCallerSession) Symbol

func (_Pool *PoolCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*PoolCallerSession) Token

func (_Pool *PoolCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*PoolCallerSession) TotalLiquidity

func (_Pool *PoolCallerSession) TotalLiquidity() (*big.Int, error)

TotalLiquidity is a free data retrieval call binding the contract method 0x15770f92.

Solidity: function totalLiquidity() view returns(uint256)

func (*PoolCallerSession) TotalSupply

func (_Pool *PoolCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*PoolCallerSession) TotalWeight

func (_Pool *PoolCallerSession) TotalWeight() (*big.Int, error)

TotalWeight is a free data retrieval call binding the contract method 0x96c82e57.

Solidity: function totalWeight() view returns(uint256)

type PoolChainPath

type PoolChainPath struct {
	Ready        bool
	DstChainId   uint16
	DstPoolId    *big.Int
	Weight       *big.Int
	Balance      *big.Int
	Lkb          *big.Int
	Credits      *big.Int
	IdealBalance *big.Int
}

PoolChainPath is an auto generated low-level Go binding around an user-defined struct.

type PoolChainPathUpdate

type PoolChainPathUpdate struct {
	DstChainId uint16
	DstPoolId  *big.Int
	Weight     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

PoolChainPathUpdate represents a ChainPathUpdate event raised by the Pool contract.

type PoolChainPathUpdateIterator

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

PoolChainPathUpdateIterator is returned from FilterChainPathUpdate and is used to iterate over the raw logs and unpacked data for ChainPathUpdate events raised by the Pool contract.

func (*PoolChainPathUpdateIterator) Close

func (it *PoolChainPathUpdateIterator) Close() error

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

func (*PoolChainPathUpdateIterator) Error

func (it *PoolChainPathUpdateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolChainPathUpdateIterator) Next

func (it *PoolChainPathUpdateIterator) 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 PoolCreditChainPath

type PoolCreditChainPath struct {
	ChainId      uint16
	SrcPoolId    *big.Int
	AmountSD     *big.Int
	IdealBalance *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

PoolCreditChainPath represents a CreditChainPath event raised by the Pool contract.

type PoolCreditChainPathIterator

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

PoolCreditChainPathIterator is returned from FilterCreditChainPath and is used to iterate over the raw logs and unpacked data for CreditChainPath events raised by the Pool contract.

func (*PoolCreditChainPathIterator) Close

func (it *PoolCreditChainPathIterator) Close() error

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

func (*PoolCreditChainPathIterator) Error

func (it *PoolCreditChainPathIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolCreditChainPathIterator) Next

func (it *PoolCreditChainPathIterator) 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 PoolCreditObj

type PoolCreditObj struct {
	Credits      *big.Int
	IdealBalance *big.Int
}

PoolCreditObj is an auto generated low-level Go binding around an user-defined struct.

type PoolDeltaParamUpdated

type PoolDeltaParamUpdated struct {
	Batched         bool
	SwapDeltaBP     *big.Int
	LpDeltaBP       *big.Int
	DefaultSwapMode bool
	DefaultLPMode   bool
	Raw             types.Log // Blockchain specific contextual infos
}

PoolDeltaParamUpdated represents a DeltaParamUpdated event raised by the Pool contract.

type PoolDeltaParamUpdatedIterator

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

PoolDeltaParamUpdatedIterator is returned from FilterDeltaParamUpdated and is used to iterate over the raw logs and unpacked data for DeltaParamUpdated events raised by the Pool contract.

func (*PoolDeltaParamUpdatedIterator) Close

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

func (*PoolDeltaParamUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolDeltaParamUpdatedIterator) 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 PoolFeeLibraryUpdated

type PoolFeeLibraryUpdated struct {
	FeeLibraryAddr common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

PoolFeeLibraryUpdated represents a FeeLibraryUpdated event raised by the Pool contract.

type PoolFeeLibraryUpdatedIterator

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

PoolFeeLibraryUpdatedIterator is returned from FilterFeeLibraryUpdated and is used to iterate over the raw logs and unpacked data for FeeLibraryUpdated events raised by the Pool contract.

func (*PoolFeeLibraryUpdatedIterator) Close

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

func (*PoolFeeLibraryUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolFeeLibraryUpdatedIterator) 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 PoolFeesUpdated

type PoolFeesUpdated struct {
	MintFeeBP *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

PoolFeesUpdated represents a FeesUpdated event raised by the Pool contract.

type PoolFeesUpdatedIterator

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

PoolFeesUpdatedIterator is returned from FilterFeesUpdated and is used to iterate over the raw logs and unpacked data for FeesUpdated events raised by the Pool contract.

func (*PoolFeesUpdatedIterator) Close

func (it *PoolFeesUpdatedIterator) Close() error

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

func (*PoolFeesUpdatedIterator) Error

func (it *PoolFeesUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolFeesUpdatedIterator) Next

func (it *PoolFeesUpdatedIterator) 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 PoolFilterer

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

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

func NewPoolFilterer

func NewPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*PoolFilterer, error)

NewPoolFilterer creates a new log filterer instance of Pool, bound to a specific deployed contract.

func (*PoolFilterer) FilterApproval

func (_Pool *PoolFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PoolApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*PoolFilterer) FilterBurn

func (_Pool *PoolFilterer) FilterBurn(opts *bind.FilterOpts) (*PoolBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0x49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a.

Solidity: event Burn(address from, uint256 amountLP, uint256 amountSD)

func (*PoolFilterer) FilterChainPathUpdate

func (_Pool *PoolFilterer) FilterChainPathUpdate(opts *bind.FilterOpts) (*PoolChainPathUpdateIterator, error)

FilterChainPathUpdate is a free log retrieval operation binding the contract event 0x8fb3b21a941c2361df46475f9ae2f7b5dac5de7bd085fa22415ec0bb30c77e22.

Solidity: event ChainPathUpdate(uint16 dstChainId, uint256 dstPoolId, uint256 weight)

func (*PoolFilterer) FilterCreditChainPath

func (_Pool *PoolFilterer) FilterCreditChainPath(opts *bind.FilterOpts) (*PoolCreditChainPathIterator, error)

FilterCreditChainPath is a free log retrieval operation binding the contract event 0xdbdd25248751feb2f3b66721dfdd11662a68bc155af3771e661aabec92fba814.

Solidity: event CreditChainPath(uint16 chainId, uint256 srcPoolId, uint256 amountSD, uint256 idealBalance)

func (*PoolFilterer) FilterDeltaParamUpdated

func (_Pool *PoolFilterer) FilterDeltaParamUpdated(opts *bind.FilterOpts) (*PoolDeltaParamUpdatedIterator, error)

FilterDeltaParamUpdated is a free log retrieval operation binding the contract event 0x7cc11124872dc29ed41dd447ee7ab07d9eee5d8ebb55f65dd92bce19bb20224a.

Solidity: event DeltaParamUpdated(bool batched, uint256 swapDeltaBP, uint256 lpDeltaBP, bool defaultSwapMode, bool defaultLPMode)

func (*PoolFilterer) FilterFeeLibraryUpdated

func (_Pool *PoolFilterer) FilterFeeLibraryUpdated(opts *bind.FilterOpts) (*PoolFeeLibraryUpdatedIterator, error)

FilterFeeLibraryUpdated is a free log retrieval operation binding the contract event 0x5138b884a20454b6db937b9e11c8534e02e708750e0c465df6cd9701622952ce.

Solidity: event FeeLibraryUpdated(address feeLibraryAddr)

func (*PoolFilterer) FilterFeesUpdated

func (_Pool *PoolFilterer) FilterFeesUpdated(opts *bind.FilterOpts) (*PoolFeesUpdatedIterator, error)

FilterFeesUpdated is a free log retrieval operation binding the contract event 0x9fe6eeb0f0541c644a56c67efeb872dbadd803a60b909d7dde1b35a3fe230b0e.

Solidity: event FeesUpdated(uint256 mintFeeBP)

func (*PoolFilterer) FilterInstantRedeemLocal

func (_Pool *PoolFilterer) FilterInstantRedeemLocal(opts *bind.FilterOpts) (*PoolInstantRedeemLocalIterator, error)

FilterInstantRedeemLocal is a free log retrieval operation binding the contract event 0x2125a70154569bd1686edd3cf981bb23dea7c1fa1637909dbb3c9a967cb0c2f2.

Solidity: event InstantRedeemLocal(address from, uint256 amountLP, uint256 amountSD, address to)

func (*PoolFilterer) FilterMint

func (_Pool *PoolFilterer) FilterMint(opts *bind.FilterOpts) (*PoolMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0xb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb.

Solidity: event Mint(address to, uint256 amountLP, uint256 amountSD, uint256 mintFeeAmountSD)

func (*PoolFilterer) FilterRedeemLocal

func (_Pool *PoolFilterer) FilterRedeemLocal(opts *bind.FilterOpts) (*PoolRedeemLocalIterator, error)

FilterRedeemLocal is a free log retrieval operation binding the contract event 0x53c03ee0722b52efeb42444f48d90173854501b3de3c590fcb445743377115c2.

Solidity: event RedeemLocal(address from, uint256 amountLP, uint256 amountSD, uint16 chainId, uint256 dstPoolId, bytes to)

func (*PoolFilterer) FilterRedeemLocalCallback

func (_Pool *PoolFilterer) FilterRedeemLocalCallback(opts *bind.FilterOpts) (*PoolRedeemLocalCallbackIterator, error)

FilterRedeemLocalCallback is a free log retrieval operation binding the contract event 0xa97166013ecf5305dd9a58d6d867f05e646d4275f52d2bd52a5c7f00a690ad1b.

Solidity: event RedeemLocalCallback(address _to, uint256 _amountSD, uint256 _amountToMintSD)

func (*PoolFilterer) FilterRedeemRemote

func (_Pool *PoolFilterer) FilterRedeemRemote(opts *bind.FilterOpts) (*PoolRedeemRemoteIterator, error)

FilterRedeemRemote is a free log retrieval operation binding the contract event 0xa33f5c0b76f00f6737b1780a8a7f18e19c3fe8fe9ee01a6c1b8ce1eae5ed54f9.

Solidity: event RedeemRemote(uint16 chainId, uint256 dstPoolId, address from, uint256 amountLP, uint256 amountSD)

func (*PoolFilterer) FilterSendCredits

func (_Pool *PoolFilterer) FilterSendCredits(opts *bind.FilterOpts) (*PoolSendCreditsIterator, error)

FilterSendCredits is a free log retrieval operation binding the contract event 0x6939f93e3f21cf1362eb17155b740277de5687dae9a83a85909fd71da95944e7.

Solidity: event SendCredits(uint16 dstChainId, uint256 dstPoolId, uint256 credits, uint256 idealBalance)

func (*PoolFilterer) FilterStopSwapUpdated

func (_Pool *PoolFilterer) FilterStopSwapUpdated(opts *bind.FilterOpts) (*PoolStopSwapUpdatedIterator, error)

FilterStopSwapUpdated is a free log retrieval operation binding the contract event 0x59a9350977452c5240699f57f18b5915cd0440a56f08820a38b9f2432a82ba3e.

Solidity: event StopSwapUpdated(bool swapStop)

func (*PoolFilterer) FilterSwap

func (_Pool *PoolFilterer) FilterSwap(opts *bind.FilterOpts) (*PoolSwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0x34660fc8af304464529f48a778e03d03e4d34bcd5f9b6f0cfbf3cd238c642f7f.

Solidity: event Swap(uint16 chainId, uint256 dstPoolId, address from, uint256 amountSD, uint256 eqReward, uint256 eqFee, uint256 protocolFee, uint256 lpFee)

func (*PoolFilterer) FilterSwapRemote

func (_Pool *PoolFilterer) FilterSwapRemote(opts *bind.FilterOpts) (*PoolSwapRemoteIterator, error)

FilterSwapRemote is a free log retrieval operation binding the contract event 0xfb2b592367452f1c437675bed47f5e1e6c25188c17d7ba01a12eb030bc41ccef.

Solidity: event SwapRemote(address to, uint256 amountSD, uint256 protocolFee, uint256 dstFee)

func (*PoolFilterer) FilterTransfer

func (_Pool *PoolFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*PoolTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*PoolFilterer) FilterWithdrawMintFeeBalance

func (_Pool *PoolFilterer) FilterWithdrawMintFeeBalance(opts *bind.FilterOpts) (*PoolWithdrawMintFeeBalanceIterator, error)

FilterWithdrawMintFeeBalance is a free log retrieval operation binding the contract event 0x87b3b2749102aa96f2d08396e34cd47673e57148af9cfff965d99bc0378a87dc.

Solidity: event WithdrawMintFeeBalance(address to, uint256 amountSD)

func (*PoolFilterer) FilterWithdrawProtocolFeeBalance

func (_Pool *PoolFilterer) FilterWithdrawProtocolFeeBalance(opts *bind.FilterOpts) (*PoolWithdrawProtocolFeeBalanceIterator, error)

FilterWithdrawProtocolFeeBalance is a free log retrieval operation binding the contract event 0x70dc5a44816033bea80f836440f4b1fe1b3bb06b568c8dc2301901f03bf237c7.

Solidity: event WithdrawProtocolFeeBalance(address to, uint256 amountSD)

func (*PoolFilterer) FilterWithdrawRemote

func (_Pool *PoolFilterer) FilterWithdrawRemote(opts *bind.FilterOpts) (*PoolWithdrawRemoteIterator, error)

FilterWithdrawRemote is a free log retrieval operation binding the contract event 0x44d3575fd94f9e0a41d7ebbc7e952f9b615c3f8d1faf924e1e9e98c0edf0d380.

Solidity: event WithdrawRemote(uint16 srcChainId, uint256 srcPoolId, uint256 swapAmount, uint256 mintAmount)

func (*PoolFilterer) ParseApproval

func (_Pool *PoolFilterer) ParseApproval(log types.Log) (*PoolApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*PoolFilterer) ParseBurn

func (_Pool *PoolFilterer) ParseBurn(log types.Log) (*PoolBurn, error)

ParseBurn is a log parse operation binding the contract event 0x49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a.

Solidity: event Burn(address from, uint256 amountLP, uint256 amountSD)

func (*PoolFilterer) ParseChainPathUpdate

func (_Pool *PoolFilterer) ParseChainPathUpdate(log types.Log) (*PoolChainPathUpdate, error)

ParseChainPathUpdate is a log parse operation binding the contract event 0x8fb3b21a941c2361df46475f9ae2f7b5dac5de7bd085fa22415ec0bb30c77e22.

Solidity: event ChainPathUpdate(uint16 dstChainId, uint256 dstPoolId, uint256 weight)

func (*PoolFilterer) ParseCreditChainPath

func (_Pool *PoolFilterer) ParseCreditChainPath(log types.Log) (*PoolCreditChainPath, error)

ParseCreditChainPath is a log parse operation binding the contract event 0xdbdd25248751feb2f3b66721dfdd11662a68bc155af3771e661aabec92fba814.

Solidity: event CreditChainPath(uint16 chainId, uint256 srcPoolId, uint256 amountSD, uint256 idealBalance)

func (*PoolFilterer) ParseDeltaParamUpdated

func (_Pool *PoolFilterer) ParseDeltaParamUpdated(log types.Log) (*PoolDeltaParamUpdated, error)

ParseDeltaParamUpdated is a log parse operation binding the contract event 0x7cc11124872dc29ed41dd447ee7ab07d9eee5d8ebb55f65dd92bce19bb20224a.

Solidity: event DeltaParamUpdated(bool batched, uint256 swapDeltaBP, uint256 lpDeltaBP, bool defaultSwapMode, bool defaultLPMode)

func (*PoolFilterer) ParseFeeLibraryUpdated

func (_Pool *PoolFilterer) ParseFeeLibraryUpdated(log types.Log) (*PoolFeeLibraryUpdated, error)

ParseFeeLibraryUpdated is a log parse operation binding the contract event 0x5138b884a20454b6db937b9e11c8534e02e708750e0c465df6cd9701622952ce.

Solidity: event FeeLibraryUpdated(address feeLibraryAddr)

func (*PoolFilterer) ParseFeesUpdated

func (_Pool *PoolFilterer) ParseFeesUpdated(log types.Log) (*PoolFeesUpdated, error)

ParseFeesUpdated is a log parse operation binding the contract event 0x9fe6eeb0f0541c644a56c67efeb872dbadd803a60b909d7dde1b35a3fe230b0e.

Solidity: event FeesUpdated(uint256 mintFeeBP)

func (*PoolFilterer) ParseInstantRedeemLocal

func (_Pool *PoolFilterer) ParseInstantRedeemLocal(log types.Log) (*PoolInstantRedeemLocal, error)

ParseInstantRedeemLocal is a log parse operation binding the contract event 0x2125a70154569bd1686edd3cf981bb23dea7c1fa1637909dbb3c9a967cb0c2f2.

Solidity: event InstantRedeemLocal(address from, uint256 amountLP, uint256 amountSD, address to)

func (*PoolFilterer) ParseMint

func (_Pool *PoolFilterer) ParseMint(log types.Log) (*PoolMint, error)

ParseMint is a log parse operation binding the contract event 0xb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb.

Solidity: event Mint(address to, uint256 amountLP, uint256 amountSD, uint256 mintFeeAmountSD)

func (*PoolFilterer) ParseRedeemLocal

func (_Pool *PoolFilterer) ParseRedeemLocal(log types.Log) (*PoolRedeemLocal, error)

ParseRedeemLocal is a log parse operation binding the contract event 0x53c03ee0722b52efeb42444f48d90173854501b3de3c590fcb445743377115c2.

Solidity: event RedeemLocal(address from, uint256 amountLP, uint256 amountSD, uint16 chainId, uint256 dstPoolId, bytes to)

func (*PoolFilterer) ParseRedeemLocalCallback

func (_Pool *PoolFilterer) ParseRedeemLocalCallback(log types.Log) (*PoolRedeemLocalCallback, error)

ParseRedeemLocalCallback is a log parse operation binding the contract event 0xa97166013ecf5305dd9a58d6d867f05e646d4275f52d2bd52a5c7f00a690ad1b.

Solidity: event RedeemLocalCallback(address _to, uint256 _amountSD, uint256 _amountToMintSD)

func (*PoolFilterer) ParseRedeemRemote

func (_Pool *PoolFilterer) ParseRedeemRemote(log types.Log) (*PoolRedeemRemote, error)

ParseRedeemRemote is a log parse operation binding the contract event 0xa33f5c0b76f00f6737b1780a8a7f18e19c3fe8fe9ee01a6c1b8ce1eae5ed54f9.

Solidity: event RedeemRemote(uint16 chainId, uint256 dstPoolId, address from, uint256 amountLP, uint256 amountSD)

func (*PoolFilterer) ParseSendCredits

func (_Pool *PoolFilterer) ParseSendCredits(log types.Log) (*PoolSendCredits, error)

ParseSendCredits is a log parse operation binding the contract event 0x6939f93e3f21cf1362eb17155b740277de5687dae9a83a85909fd71da95944e7.

Solidity: event SendCredits(uint16 dstChainId, uint256 dstPoolId, uint256 credits, uint256 idealBalance)

func (*PoolFilterer) ParseStopSwapUpdated

func (_Pool *PoolFilterer) ParseStopSwapUpdated(log types.Log) (*PoolStopSwapUpdated, error)

ParseStopSwapUpdated is a log parse operation binding the contract event 0x59a9350977452c5240699f57f18b5915cd0440a56f08820a38b9f2432a82ba3e.

Solidity: event StopSwapUpdated(bool swapStop)

func (*PoolFilterer) ParseSwap

func (_Pool *PoolFilterer) ParseSwap(log types.Log) (*PoolSwap, error)

ParseSwap is a log parse operation binding the contract event 0x34660fc8af304464529f48a778e03d03e4d34bcd5f9b6f0cfbf3cd238c642f7f.

Solidity: event Swap(uint16 chainId, uint256 dstPoolId, address from, uint256 amountSD, uint256 eqReward, uint256 eqFee, uint256 protocolFee, uint256 lpFee)

func (*PoolFilterer) ParseSwapRemote

func (_Pool *PoolFilterer) ParseSwapRemote(log types.Log) (*PoolSwapRemote, error)

ParseSwapRemote is a log parse operation binding the contract event 0xfb2b592367452f1c437675bed47f5e1e6c25188c17d7ba01a12eb030bc41ccef.

Solidity: event SwapRemote(address to, uint256 amountSD, uint256 protocolFee, uint256 dstFee)

func (*PoolFilterer) ParseTransfer

func (_Pool *PoolFilterer) ParseTransfer(log types.Log) (*PoolTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*PoolFilterer) ParseWithdrawMintFeeBalance

func (_Pool *PoolFilterer) ParseWithdrawMintFeeBalance(log types.Log) (*PoolWithdrawMintFeeBalance, error)

ParseWithdrawMintFeeBalance is a log parse operation binding the contract event 0x87b3b2749102aa96f2d08396e34cd47673e57148af9cfff965d99bc0378a87dc.

Solidity: event WithdrawMintFeeBalance(address to, uint256 amountSD)

func (*PoolFilterer) ParseWithdrawProtocolFeeBalance

func (_Pool *PoolFilterer) ParseWithdrawProtocolFeeBalance(log types.Log) (*PoolWithdrawProtocolFeeBalance, error)

ParseWithdrawProtocolFeeBalance is a log parse operation binding the contract event 0x70dc5a44816033bea80f836440f4b1fe1b3bb06b568c8dc2301901f03bf237c7.

Solidity: event WithdrawProtocolFeeBalance(address to, uint256 amountSD)

func (*PoolFilterer) ParseWithdrawRemote

func (_Pool *PoolFilterer) ParseWithdrawRemote(log types.Log) (*PoolWithdrawRemote, error)

ParseWithdrawRemote is a log parse operation binding the contract event 0x44d3575fd94f9e0a41d7ebbc7e952f9b615c3f8d1faf924e1e9e98c0edf0d380.

Solidity: event WithdrawRemote(uint16 srcChainId, uint256 srcPoolId, uint256 swapAmount, uint256 mintAmount)

func (*PoolFilterer) WatchApproval

func (_Pool *PoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PoolApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*PoolFilterer) WatchBurn

func (_Pool *PoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *PoolBurn) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0x49995e5dd6158cf69ad3e9777c46755a1a826a446c6416992167462dad033b2a.

Solidity: event Burn(address from, uint256 amountLP, uint256 amountSD)

func (*PoolFilterer) WatchChainPathUpdate

func (_Pool *PoolFilterer) WatchChainPathUpdate(opts *bind.WatchOpts, sink chan<- *PoolChainPathUpdate) (event.Subscription, error)

WatchChainPathUpdate is a free log subscription operation binding the contract event 0x8fb3b21a941c2361df46475f9ae2f7b5dac5de7bd085fa22415ec0bb30c77e22.

Solidity: event ChainPathUpdate(uint16 dstChainId, uint256 dstPoolId, uint256 weight)

func (*PoolFilterer) WatchCreditChainPath

func (_Pool *PoolFilterer) WatchCreditChainPath(opts *bind.WatchOpts, sink chan<- *PoolCreditChainPath) (event.Subscription, error)

WatchCreditChainPath is a free log subscription operation binding the contract event 0xdbdd25248751feb2f3b66721dfdd11662a68bc155af3771e661aabec92fba814.

Solidity: event CreditChainPath(uint16 chainId, uint256 srcPoolId, uint256 amountSD, uint256 idealBalance)

func (*PoolFilterer) WatchDeltaParamUpdated

func (_Pool *PoolFilterer) WatchDeltaParamUpdated(opts *bind.WatchOpts, sink chan<- *PoolDeltaParamUpdated) (event.Subscription, error)

WatchDeltaParamUpdated is a free log subscription operation binding the contract event 0x7cc11124872dc29ed41dd447ee7ab07d9eee5d8ebb55f65dd92bce19bb20224a.

Solidity: event DeltaParamUpdated(bool batched, uint256 swapDeltaBP, uint256 lpDeltaBP, bool defaultSwapMode, bool defaultLPMode)

func (*PoolFilterer) WatchFeeLibraryUpdated

func (_Pool *PoolFilterer) WatchFeeLibraryUpdated(opts *bind.WatchOpts, sink chan<- *PoolFeeLibraryUpdated) (event.Subscription, error)

WatchFeeLibraryUpdated is a free log subscription operation binding the contract event 0x5138b884a20454b6db937b9e11c8534e02e708750e0c465df6cd9701622952ce.

Solidity: event FeeLibraryUpdated(address feeLibraryAddr)

func (*PoolFilterer) WatchFeesUpdated

func (_Pool *PoolFilterer) WatchFeesUpdated(opts *bind.WatchOpts, sink chan<- *PoolFeesUpdated) (event.Subscription, error)

WatchFeesUpdated is a free log subscription operation binding the contract event 0x9fe6eeb0f0541c644a56c67efeb872dbadd803a60b909d7dde1b35a3fe230b0e.

Solidity: event FeesUpdated(uint256 mintFeeBP)

func (*PoolFilterer) WatchInstantRedeemLocal

func (_Pool *PoolFilterer) WatchInstantRedeemLocal(opts *bind.WatchOpts, sink chan<- *PoolInstantRedeemLocal) (event.Subscription, error)

WatchInstantRedeemLocal is a free log subscription operation binding the contract event 0x2125a70154569bd1686edd3cf981bb23dea7c1fa1637909dbb3c9a967cb0c2f2.

Solidity: event InstantRedeemLocal(address from, uint256 amountLP, uint256 amountSD, address to)

func (*PoolFilterer) WatchMint

func (_Pool *PoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *PoolMint) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0xb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb.

Solidity: event Mint(address to, uint256 amountLP, uint256 amountSD, uint256 mintFeeAmountSD)

func (*PoolFilterer) WatchRedeemLocal

func (_Pool *PoolFilterer) WatchRedeemLocal(opts *bind.WatchOpts, sink chan<- *PoolRedeemLocal) (event.Subscription, error)

WatchRedeemLocal is a free log subscription operation binding the contract event 0x53c03ee0722b52efeb42444f48d90173854501b3de3c590fcb445743377115c2.

Solidity: event RedeemLocal(address from, uint256 amountLP, uint256 amountSD, uint16 chainId, uint256 dstPoolId, bytes to)

func (*PoolFilterer) WatchRedeemLocalCallback

func (_Pool *PoolFilterer) WatchRedeemLocalCallback(opts *bind.WatchOpts, sink chan<- *PoolRedeemLocalCallback) (event.Subscription, error)

WatchRedeemLocalCallback is a free log subscription operation binding the contract event 0xa97166013ecf5305dd9a58d6d867f05e646d4275f52d2bd52a5c7f00a690ad1b.

Solidity: event RedeemLocalCallback(address _to, uint256 _amountSD, uint256 _amountToMintSD)

func (*PoolFilterer) WatchRedeemRemote

func (_Pool *PoolFilterer) WatchRedeemRemote(opts *bind.WatchOpts, sink chan<- *PoolRedeemRemote) (event.Subscription, error)

WatchRedeemRemote is a free log subscription operation binding the contract event 0xa33f5c0b76f00f6737b1780a8a7f18e19c3fe8fe9ee01a6c1b8ce1eae5ed54f9.

Solidity: event RedeemRemote(uint16 chainId, uint256 dstPoolId, address from, uint256 amountLP, uint256 amountSD)

func (*PoolFilterer) WatchSendCredits

func (_Pool *PoolFilterer) WatchSendCredits(opts *bind.WatchOpts, sink chan<- *PoolSendCredits) (event.Subscription, error)

WatchSendCredits is a free log subscription operation binding the contract event 0x6939f93e3f21cf1362eb17155b740277de5687dae9a83a85909fd71da95944e7.

Solidity: event SendCredits(uint16 dstChainId, uint256 dstPoolId, uint256 credits, uint256 idealBalance)

func (*PoolFilterer) WatchStopSwapUpdated

func (_Pool *PoolFilterer) WatchStopSwapUpdated(opts *bind.WatchOpts, sink chan<- *PoolStopSwapUpdated) (event.Subscription, error)

WatchStopSwapUpdated is a free log subscription operation binding the contract event 0x59a9350977452c5240699f57f18b5915cd0440a56f08820a38b9f2432a82ba3e.

Solidity: event StopSwapUpdated(bool swapStop)

func (*PoolFilterer) WatchSwap

func (_Pool *PoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *PoolSwap) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0x34660fc8af304464529f48a778e03d03e4d34bcd5f9b6f0cfbf3cd238c642f7f.

Solidity: event Swap(uint16 chainId, uint256 dstPoolId, address from, uint256 amountSD, uint256 eqReward, uint256 eqFee, uint256 protocolFee, uint256 lpFee)

func (*PoolFilterer) WatchSwapRemote

func (_Pool *PoolFilterer) WatchSwapRemote(opts *bind.WatchOpts, sink chan<- *PoolSwapRemote) (event.Subscription, error)

WatchSwapRemote is a free log subscription operation binding the contract event 0xfb2b592367452f1c437675bed47f5e1e6c25188c17d7ba01a12eb030bc41ccef.

Solidity: event SwapRemote(address to, uint256 amountSD, uint256 protocolFee, uint256 dstFee)

func (*PoolFilterer) WatchTransfer

func (_Pool *PoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *PoolTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*PoolFilterer) WatchWithdrawMintFeeBalance

func (_Pool *PoolFilterer) WatchWithdrawMintFeeBalance(opts *bind.WatchOpts, sink chan<- *PoolWithdrawMintFeeBalance) (event.Subscription, error)

WatchWithdrawMintFeeBalance is a free log subscription operation binding the contract event 0x87b3b2749102aa96f2d08396e34cd47673e57148af9cfff965d99bc0378a87dc.

Solidity: event WithdrawMintFeeBalance(address to, uint256 amountSD)

func (*PoolFilterer) WatchWithdrawProtocolFeeBalance

func (_Pool *PoolFilterer) WatchWithdrawProtocolFeeBalance(opts *bind.WatchOpts, sink chan<- *PoolWithdrawProtocolFeeBalance) (event.Subscription, error)

WatchWithdrawProtocolFeeBalance is a free log subscription operation binding the contract event 0x70dc5a44816033bea80f836440f4b1fe1b3bb06b568c8dc2301901f03bf237c7.

Solidity: event WithdrawProtocolFeeBalance(address to, uint256 amountSD)

func (*PoolFilterer) WatchWithdrawRemote

func (_Pool *PoolFilterer) WatchWithdrawRemote(opts *bind.WatchOpts, sink chan<- *PoolWithdrawRemote) (event.Subscription, error)

WatchWithdrawRemote is a free log subscription operation binding the contract event 0x44d3575fd94f9e0a41d7ebbc7e952f9b615c3f8d1faf924e1e9e98c0edf0d380.

Solidity: event WithdrawRemote(uint16 srcChainId, uint256 srcPoolId, uint256 swapAmount, uint256 mintAmount)

type PoolInstantRedeemLocal

type PoolInstantRedeemLocal struct {
	From     common.Address
	AmountLP *big.Int
	AmountSD *big.Int
	To       common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

PoolInstantRedeemLocal represents a InstantRedeemLocal event raised by the Pool contract.

type PoolInstantRedeemLocalIterator

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

PoolInstantRedeemLocalIterator is returned from FilterInstantRedeemLocal and is used to iterate over the raw logs and unpacked data for InstantRedeemLocal events raised by the Pool contract.

func (*PoolInstantRedeemLocalIterator) Close

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

func (*PoolInstantRedeemLocalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolInstantRedeemLocalIterator) 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 PoolMint

type PoolMint struct {
	To              common.Address
	AmountLP        *big.Int
	AmountSD        *big.Int
	MintFeeAmountSD *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

PoolMint represents a Mint event raised by the Pool contract.

type PoolMintIterator

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

PoolMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Pool contract.

func (*PoolMintIterator) Close

func (it *PoolMintIterator) Close() error

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

func (*PoolMintIterator) Error

func (it *PoolMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolMintIterator) Next

func (it *PoolMintIterator) 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 PoolRaw

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

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

func (*PoolRaw) Call

func (_Pool *PoolRaw) 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 (*PoolRaw) Transact

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

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

func (*PoolRaw) Transfer

func (_Pool *PoolRaw) 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 PoolRedeemLocal

type PoolRedeemLocal struct {
	From      common.Address
	AmountLP  *big.Int
	AmountSD  *big.Int
	ChainId   uint16
	DstPoolId *big.Int
	To        []byte
	Raw       types.Log // Blockchain specific contextual infos
}

PoolRedeemLocal represents a RedeemLocal event raised by the Pool contract.

type PoolRedeemLocalCallback

type PoolRedeemLocalCallback struct {
	To             common.Address
	AmountSD       *big.Int
	AmountToMintSD *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

PoolRedeemLocalCallback represents a RedeemLocalCallback event raised by the Pool contract.

type PoolRedeemLocalCallbackIterator

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

PoolRedeemLocalCallbackIterator is returned from FilterRedeemLocalCallback and is used to iterate over the raw logs and unpacked data for RedeemLocalCallback events raised by the Pool contract.

func (*PoolRedeemLocalCallbackIterator) Close

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

func (*PoolRedeemLocalCallbackIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolRedeemLocalCallbackIterator) 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 PoolRedeemLocalIterator

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

PoolRedeemLocalIterator is returned from FilterRedeemLocal and is used to iterate over the raw logs and unpacked data for RedeemLocal events raised by the Pool contract.

func (*PoolRedeemLocalIterator) Close

func (it *PoolRedeemLocalIterator) Close() error

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

func (*PoolRedeemLocalIterator) Error

func (it *PoolRedeemLocalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolRedeemLocalIterator) Next

func (it *PoolRedeemLocalIterator) 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 PoolRedeemRemote

type PoolRedeemRemote struct {
	ChainId   uint16
	DstPoolId *big.Int
	From      common.Address
	AmountLP  *big.Int
	AmountSD  *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

PoolRedeemRemote represents a RedeemRemote event raised by the Pool contract.

type PoolRedeemRemoteIterator

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

PoolRedeemRemoteIterator is returned from FilterRedeemRemote and is used to iterate over the raw logs and unpacked data for RedeemRemote events raised by the Pool contract.

func (*PoolRedeemRemoteIterator) Close

func (it *PoolRedeemRemoteIterator) Close() error

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

func (*PoolRedeemRemoteIterator) Error

func (it *PoolRedeemRemoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolRedeemRemoteIterator) Next

func (it *PoolRedeemRemoteIterator) 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 PoolSendCredits

type PoolSendCredits struct {
	DstChainId   uint16
	DstPoolId    *big.Int
	Credits      *big.Int
	IdealBalance *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

PoolSendCredits represents a SendCredits event raised by the Pool contract.

type PoolSendCreditsIterator

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

PoolSendCreditsIterator is returned from FilterSendCredits and is used to iterate over the raw logs and unpacked data for SendCredits events raised by the Pool contract.

func (*PoolSendCreditsIterator) Close

func (it *PoolSendCreditsIterator) Close() error

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

func (*PoolSendCreditsIterator) Error

func (it *PoolSendCreditsIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolSendCreditsIterator) Next

func (it *PoolSendCreditsIterator) 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 PoolSession

type PoolSession struct {
	Contract     *Pool             // 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
}

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

func (*PoolSession) ActivateChainPath

func (_Pool *PoolSession) ActivateChainPath(_dstChainId uint16, _dstPoolId *big.Int) (*types.Transaction, error)

ActivateChainPath is a paid mutator transaction binding the contract method 0x8bd86d0a.

Solidity: function activateChainPath(uint16 _dstChainId, uint256 _dstPoolId) returns()

func (*PoolSession) Allowance

func (_Pool *PoolSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address , address ) view returns(uint256)

func (*PoolSession) AmountLPtoLD

func (_Pool *PoolSession) AmountLPtoLD(_amountLP *big.Int) (*big.Int, error)

AmountLPtoLD is a free data retrieval call binding the contract method 0xf6cd35ee.

Solidity: function amountLPtoLD(uint256 _amountLP) view returns(uint256)

func (*PoolSession) Approve

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

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

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

func (*PoolSession) BPDENOMINATOR

func (_Pool *PoolSession) BPDENOMINATOR() (*big.Int, error)

BPDENOMINATOR is a free data retrieval call binding the contract method 0xabe685cd.

Solidity: function BP_DENOMINATOR() view returns(uint256)

func (*PoolSession) BalanceOf

func (_Pool *PoolSession) BalanceOf(arg0 common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address ) view returns(uint256)

func (*PoolSession) Batched

func (_Pool *PoolSession) Batched() (bool, error)

Batched is a free data retrieval call binding the contract method 0x27f92376.

Solidity: function batched() view returns(bool)

func (*PoolSession) CallDelta

func (_Pool *PoolSession) CallDelta(_fullMode bool) (*types.Transaction, error)

CallDelta is a paid mutator transaction binding the contract method 0x7fb65265.

Solidity: function callDelta(bool _fullMode) returns()

func (*PoolSession) ChainPathIndexLookup

func (_Pool *PoolSession) ChainPathIndexLookup(arg0 uint16, arg1 *big.Int) (*big.Int, error)

ChainPathIndexLookup is a free data retrieval call binding the contract method 0x64c5f02d.

Solidity: function chainPathIndexLookup(uint16 , uint256 ) view returns(uint256)

func (*PoolSession) ChainPaths

func (_Pool *PoolSession) ChainPaths(arg0 *big.Int) (struct {
	Ready        bool
	DstChainId   uint16
	DstPoolId    *big.Int
	Weight       *big.Int
	Balance      *big.Int
	Lkb          *big.Int
	Credits      *big.Int
	IdealBalance *big.Int
}, error)

ChainPaths is a free data retrieval call binding the contract method 0xa138ed6b.

Solidity: function chainPaths(uint256 ) view returns(bool ready, uint16 dstChainId, uint256 dstPoolId, uint256 weight, uint256 balance, uint256 lkb, uint256 credits, uint256 idealBalance)

func (*PoolSession) ConvertRate

func (_Pool *PoolSession) ConvertRate() (*big.Int, error)

ConvertRate is a free data retrieval call binding the contract method 0xfeb56b15.

Solidity: function convertRate() view returns(uint256)

func (*PoolSession) CreateChainPath

func (_Pool *PoolSession) CreateChainPath(_dstChainId uint16, _dstPoolId *big.Int, _weight *big.Int) (*types.Transaction, error)

CreateChainPath is a paid mutator transaction binding the contract method 0x20d6bc75.

Solidity: function createChainPath(uint16 _dstChainId, uint256 _dstPoolId, uint256 _weight) returns()

func (*PoolSession) CreditChainPath

func (_Pool *PoolSession) CreditChainPath(_dstChainId uint16, _dstPoolId *big.Int, _c PoolCreditObj) (*types.Transaction, error)

CreditChainPath is a paid mutator transaction binding the contract method 0xb6addec7.

Solidity: function creditChainPath(uint16 _dstChainId, uint256 _dstPoolId, (uint256,uint256) _c) returns()

func (*PoolSession) DOMAINSEPARATOR

func (_Pool *PoolSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*PoolSession) Decimals

func (_Pool *PoolSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*PoolSession) DecreaseAllowance

func (_Pool *PoolSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*PoolSession) DefaultLPMode

func (_Pool *PoolSession) DefaultLPMode() (bool, error)

DefaultLPMode is a free data retrieval call binding the contract method 0x28f079c2.

Solidity: function defaultLPMode() view returns(bool)

func (*PoolSession) DefaultSwapMode

func (_Pool *PoolSession) DefaultSwapMode() (bool, error)

DefaultSwapMode is a free data retrieval call binding the contract method 0x99a22d68.

Solidity: function defaultSwapMode() view returns(bool)

func (*PoolSession) DeltaCredit

func (_Pool *PoolSession) DeltaCredit() (*big.Int, error)

DeltaCredit is a free data retrieval call binding the contract method 0x1e8e51da.

Solidity: function deltaCredit() view returns(uint256)

func (*PoolSession) EqFeePool

func (_Pool *PoolSession) EqFeePool() (*big.Int, error)

EqFeePool is a free data retrieval call binding the contract method 0x9bb81119.

Solidity: function eqFeePool() view returns(uint256)

func (*PoolSession) FeeLibrary

func (_Pool *PoolSession) FeeLibrary() (common.Address, error)

FeeLibrary is a free data retrieval call binding the contract method 0x001edfab.

Solidity: function feeLibrary() view returns(address)

func (*PoolSession) GetChainPath

func (_Pool *PoolSession) GetChainPath(_dstChainId uint16, _dstPoolId *big.Int) (PoolChainPath, error)

GetChainPath is a free data retrieval call binding the contract method 0x159f6add.

Solidity: function getChainPath(uint16 _dstChainId, uint256 _dstPoolId) view returns((bool,uint16,uint256,uint256,uint256,uint256,uint256,uint256))

func (*PoolSession) GetChainPathsLength

func (_Pool *PoolSession) GetChainPathsLength() (*big.Int, error)

GetChainPathsLength is a free data retrieval call binding the contract method 0x163ef490.

Solidity: function getChainPathsLength() view returns(uint256)

func (*PoolSession) IncreaseAllowance

func (_Pool *PoolSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*PoolSession) InstantRedeemLocal

func (_Pool *PoolSession) InstantRedeemLocal(_from common.Address, _amountLP *big.Int, _to common.Address) (*types.Transaction, error)

InstantRedeemLocal is a paid mutator transaction binding the contract method 0x0986b61a.

Solidity: function instantRedeemLocal(address _from, uint256 _amountLP, address _to) returns(uint256 amountSD)

func (*PoolSession) LocalDecimals

func (_Pool *PoolSession) LocalDecimals() (*big.Int, error)

LocalDecimals is a free data retrieval call binding the contract method 0xe46e7058.

Solidity: function localDecimals() view returns(uint256)

func (*PoolSession) LpDeltaBP

func (_Pool *PoolSession) LpDeltaBP() (*big.Int, error)

LpDeltaBP is a free data retrieval call binding the contract method 0x36448777.

Solidity: function lpDeltaBP() view returns(uint256)

func (*PoolSession) Mint

func (_Pool *PoolSession) Mint(_to common.Address, _amountLD *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _to, uint256 _amountLD) returns(uint256)

func (*PoolSession) MintFeeBP

func (_Pool *PoolSession) MintFeeBP() (*big.Int, error)

MintFeeBP is a free data retrieval call binding the contract method 0xfaa24f07.

Solidity: function mintFeeBP() view returns(uint256)

func (*PoolSession) MintFeeBalance

func (_Pool *PoolSession) MintFeeBalance() (*big.Int, error)

MintFeeBalance is a free data retrieval call binding the contract method 0x65152f2b.

Solidity: function mintFeeBalance() view returns(uint256)

func (*PoolSession) Name

func (_Pool *PoolSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*PoolSession) Nonces

func (_Pool *PoolSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*PoolSession) PERMITTYPEHASH

func (_Pool *PoolSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*PoolSession) Permit

func (_Pool *PoolSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*PoolSession) PoolId

func (_Pool *PoolSession) PoolId() (*big.Int, error)

PoolId is a free data retrieval call binding the contract method 0x3e0dc34e.

Solidity: function poolId() view returns(uint256)

func (*PoolSession) ProtocolFeeBalance

func (_Pool *PoolSession) ProtocolFeeBalance() (*big.Int, error)

ProtocolFeeBalance is a free data retrieval call binding the contract method 0x0a22d68c.

Solidity: function protocolFeeBalance() view returns(uint256)

func (*PoolSession) RedeemLocal

func (_Pool *PoolSession) RedeemLocal(_from common.Address, _amountLP *big.Int, _dstChainId uint16, _dstPoolId *big.Int, _to []byte) (*types.Transaction, error)

RedeemLocal is a paid mutator transaction binding the contract method 0xb0fab0bc.

Solidity: function redeemLocal(address _from, uint256 _amountLP, uint16 _dstChainId, uint256 _dstPoolId, bytes _to) returns(uint256 amountSD)

func (*PoolSession) RedeemLocalCallback

func (_Pool *PoolSession) RedeemLocalCallback(_srcChainId uint16, _srcPoolId *big.Int, _to common.Address, _amountSD *big.Int, _amountToMintSD *big.Int) (*types.Transaction, error)

RedeemLocalCallback is a paid mutator transaction binding the contract method 0xb30daeac.

Solidity: function redeemLocalCallback(uint16 _srcChainId, uint256 _srcPoolId, address _to, uint256 _amountSD, uint256 _amountToMintSD) returns()

func (*PoolSession) RedeemLocalCheckOnRemote

func (_Pool *PoolSession) RedeemLocalCheckOnRemote(_srcChainId uint16, _srcPoolId *big.Int, _amountSD *big.Int) (*types.Transaction, error)

RedeemLocalCheckOnRemote is a paid mutator transaction binding the contract method 0xea89e2aa.

Solidity: function redeemLocalCheckOnRemote(uint16 _srcChainId, uint256 _srcPoolId, uint256 _amountSD) returns(uint256 swapAmount, uint256 mintAmount)

func (*PoolSession) RedeemRemote

func (_Pool *PoolSession) RedeemRemote(_dstChainId uint16, _dstPoolId *big.Int, _from common.Address, _amountLP *big.Int) (*types.Transaction, error)

RedeemRemote is a paid mutator transaction binding the contract method 0x7298a5dc.

Solidity: function redeemRemote(uint16 _dstChainId, uint256 _dstPoolId, address _from, uint256 _amountLP) returns()

func (*PoolSession) Router

func (_Pool *PoolSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*PoolSession) SendCredits

func (_Pool *PoolSession) SendCredits(_dstChainId uint16, _dstPoolId *big.Int) (*types.Transaction, error)

SendCredits is a paid mutator transaction binding the contract method 0x08e9d8c2.

Solidity: function sendCredits(uint16 _dstChainId, uint256 _dstPoolId) returns((uint256,uint256) c)

func (*PoolSession) SetDeltaParam

func (_Pool *PoolSession) SetDeltaParam(_batched bool, _swapDeltaBP *big.Int, _lpDeltaBP *big.Int, _defaultSwapMode bool, _defaultLPMode bool) (*types.Transaction, error)

SetDeltaParam is a paid mutator transaction binding the contract method 0xe065608b.

Solidity: function setDeltaParam(bool _batched, uint256 _swapDeltaBP, uint256 _lpDeltaBP, bool _defaultSwapMode, bool _defaultLPMode) returns()

func (*PoolSession) SetFee

func (_Pool *PoolSession) SetFee(_mintFeeBP *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0x69fe0e2d.

Solidity: function setFee(uint256 _mintFeeBP) returns()

func (*PoolSession) SetFeeLibrary

func (_Pool *PoolSession) SetFeeLibrary(_feeLibraryAddr common.Address) (*types.Transaction, error)

SetFeeLibrary is a paid mutator transaction binding the contract method 0x4b5cacbc.

Solidity: function setFeeLibrary(address _feeLibraryAddr) returns()

func (*PoolSession) SetSwapStop

func (_Pool *PoolSession) SetSwapStop(_swapStop bool) (*types.Transaction, error)

SetSwapStop is a paid mutator transaction binding the contract method 0xac2cc36b.

Solidity: function setSwapStop(bool _swapStop) returns()

func (*PoolSession) SetWeightForChainPath

func (_Pool *PoolSession) SetWeightForChainPath(_dstChainId uint16, _dstPoolId *big.Int, _weight uint16) (*types.Transaction, error)

SetWeightForChainPath is a paid mutator transaction binding the contract method 0xa985565f.

Solidity: function setWeightForChainPath(uint16 _dstChainId, uint256 _dstPoolId, uint16 _weight) returns()

func (*PoolSession) SharedDecimals

func (_Pool *PoolSession) SharedDecimals() (*big.Int, error)

SharedDecimals is a free data retrieval call binding the contract method 0x857749b0.

Solidity: function sharedDecimals() view returns(uint256)

func (*PoolSession) StopSwap

func (_Pool *PoolSession) StopSwap() (bool, error)

StopSwap is a free data retrieval call binding the contract method 0xb633b364.

Solidity: function stopSwap() view returns(bool)

func (*PoolSession) Swap

func (_Pool *PoolSession) Swap(_dstChainId uint16, _dstPoolId *big.Int, _from common.Address, _amountLD *big.Int, _minAmountLD *big.Int, newLiquidity bool) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x1b7319b6.

Solidity: function swap(uint16 _dstChainId, uint256 _dstPoolId, address _from, uint256 _amountLD, uint256 _minAmountLD, bool newLiquidity) returns((uint256,uint256,uint256,uint256,uint256,uint256))

func (*PoolSession) SwapDeltaBP

func (_Pool *PoolSession) SwapDeltaBP() (*big.Int, error)

SwapDeltaBP is a free data retrieval call binding the contract method 0xcdfed0ab.

Solidity: function swapDeltaBP() view returns(uint256)

func (*PoolSession) SwapRemote

func (_Pool *PoolSession) SwapRemote(_srcChainId uint16, _srcPoolId *big.Int, _to common.Address, _s PoolSwapObj) (*types.Transaction, error)

SwapRemote is a paid mutator transaction binding the contract method 0x902b8ab7.

Solidity: function swapRemote(uint16 _srcChainId, uint256 _srcPoolId, address _to, (uint256,uint256,uint256,uint256,uint256,uint256) _s) returns(uint256 amountLD)

func (*PoolSession) Symbol

func (_Pool *PoolSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*PoolSession) Token

func (_Pool *PoolSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*PoolSession) TotalLiquidity

func (_Pool *PoolSession) TotalLiquidity() (*big.Int, error)

TotalLiquidity is a free data retrieval call binding the contract method 0x15770f92.

Solidity: function totalLiquidity() view returns(uint256)

func (*PoolSession) TotalSupply

func (_Pool *PoolSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*PoolSession) TotalWeight

func (_Pool *PoolSession) TotalWeight() (*big.Int, error)

TotalWeight is a free data retrieval call binding the contract method 0x96c82e57.

Solidity: function totalWeight() view returns(uint256)

func (*PoolSession) Transfer

func (_Pool *PoolSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*PoolSession) TransferFrom

func (_Pool *PoolSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*PoolSession) WithdrawMintFeeBalance

func (_Pool *PoolSession) WithdrawMintFeeBalance(_to common.Address) (*types.Transaction, error)

WithdrawMintFeeBalance is a paid mutator transaction binding the contract method 0x476efe40.

Solidity: function withdrawMintFeeBalance(address _to) returns()

func (*PoolSession) WithdrawProtocolFeeBalance

func (_Pool *PoolSession) WithdrawProtocolFeeBalance(_to common.Address) (*types.Transaction, error)

WithdrawProtocolFeeBalance is a paid mutator transaction binding the contract method 0xbe310294.

Solidity: function withdrawProtocolFeeBalance(address _to) returns()

type PoolStopSwapUpdated

type PoolStopSwapUpdated struct {
	SwapStop bool
	Raw      types.Log // Blockchain specific contextual infos
}

PoolStopSwapUpdated represents a StopSwapUpdated event raised by the Pool contract.

type PoolStopSwapUpdatedIterator

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

PoolStopSwapUpdatedIterator is returned from FilterStopSwapUpdated and is used to iterate over the raw logs and unpacked data for StopSwapUpdated events raised by the Pool contract.

func (*PoolStopSwapUpdatedIterator) Close

func (it *PoolStopSwapUpdatedIterator) Close() error

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

func (*PoolStopSwapUpdatedIterator) Error

func (it *PoolStopSwapUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolStopSwapUpdatedIterator) Next

func (it *PoolStopSwapUpdatedIterator) 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 PoolSwap

type PoolSwap struct {
	ChainId     uint16
	DstPoolId   *big.Int
	From        common.Address
	AmountSD    *big.Int
	EqReward    *big.Int
	EqFee       *big.Int
	ProtocolFee *big.Int
	LpFee       *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

PoolSwap represents a Swap event raised by the Pool contract.

type PoolSwapIterator

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

PoolSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Pool contract.

func (*PoolSwapIterator) Close

func (it *PoolSwapIterator) Close() error

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

func (*PoolSwapIterator) Error

func (it *PoolSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolSwapIterator) Next

func (it *PoolSwapIterator) 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 PoolSwapObj

type PoolSwapObj struct {
	Amount      *big.Int
	EqFee       *big.Int
	EqReward    *big.Int
	LpFee       *big.Int
	ProtocolFee *big.Int
	LkbRemove   *big.Int
}

PoolSwapObj is an auto generated low-level Go binding around an user-defined struct.

type PoolSwapRemote

type PoolSwapRemote struct {
	To          common.Address
	AmountSD    *big.Int
	ProtocolFee *big.Int
	DstFee      *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

PoolSwapRemote represents a SwapRemote event raised by the Pool contract.

type PoolSwapRemoteIterator

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

PoolSwapRemoteIterator is returned from FilterSwapRemote and is used to iterate over the raw logs and unpacked data for SwapRemote events raised by the Pool contract.

func (*PoolSwapRemoteIterator) Close

func (it *PoolSwapRemoteIterator) Close() error

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

func (*PoolSwapRemoteIterator) Error

func (it *PoolSwapRemoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolSwapRemoteIterator) Next

func (it *PoolSwapRemoteIterator) 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 PoolTransactor

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

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

func NewPoolTransactor

func NewPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*PoolTransactor, error)

NewPoolTransactor creates a new write-only instance of Pool, bound to a specific deployed contract.

func (*PoolTransactor) ActivateChainPath

func (_Pool *PoolTransactor) ActivateChainPath(opts *bind.TransactOpts, _dstChainId uint16, _dstPoolId *big.Int) (*types.Transaction, error)

ActivateChainPath is a paid mutator transaction binding the contract method 0x8bd86d0a.

Solidity: function activateChainPath(uint16 _dstChainId, uint256 _dstPoolId) returns()

func (*PoolTransactor) Approve

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

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

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

func (*PoolTransactor) CallDelta

func (_Pool *PoolTransactor) CallDelta(opts *bind.TransactOpts, _fullMode bool) (*types.Transaction, error)

CallDelta is a paid mutator transaction binding the contract method 0x7fb65265.

Solidity: function callDelta(bool _fullMode) returns()

func (*PoolTransactor) CreateChainPath

func (_Pool *PoolTransactor) CreateChainPath(opts *bind.TransactOpts, _dstChainId uint16, _dstPoolId *big.Int, _weight *big.Int) (*types.Transaction, error)

CreateChainPath is a paid mutator transaction binding the contract method 0x20d6bc75.

Solidity: function createChainPath(uint16 _dstChainId, uint256 _dstPoolId, uint256 _weight) returns()

func (*PoolTransactor) CreditChainPath

func (_Pool *PoolTransactor) CreditChainPath(opts *bind.TransactOpts, _dstChainId uint16, _dstPoolId *big.Int, _c PoolCreditObj) (*types.Transaction, error)

CreditChainPath is a paid mutator transaction binding the contract method 0xb6addec7.

Solidity: function creditChainPath(uint16 _dstChainId, uint256 _dstPoolId, (uint256,uint256) _c) returns()

func (*PoolTransactor) DecreaseAllowance

func (_Pool *PoolTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*PoolTransactor) IncreaseAllowance

func (_Pool *PoolTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*PoolTransactor) InstantRedeemLocal

func (_Pool *PoolTransactor) InstantRedeemLocal(opts *bind.TransactOpts, _from common.Address, _amountLP *big.Int, _to common.Address) (*types.Transaction, error)

InstantRedeemLocal is a paid mutator transaction binding the contract method 0x0986b61a.

Solidity: function instantRedeemLocal(address _from, uint256 _amountLP, address _to) returns(uint256 amountSD)

func (*PoolTransactor) Mint

func (_Pool *PoolTransactor) Mint(opts *bind.TransactOpts, _to common.Address, _amountLD *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _to, uint256 _amountLD) returns(uint256)

func (*PoolTransactor) Permit

func (_Pool *PoolTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*PoolTransactor) RedeemLocal

func (_Pool *PoolTransactor) RedeemLocal(opts *bind.TransactOpts, _from common.Address, _amountLP *big.Int, _dstChainId uint16, _dstPoolId *big.Int, _to []byte) (*types.Transaction, error)

RedeemLocal is a paid mutator transaction binding the contract method 0xb0fab0bc.

Solidity: function redeemLocal(address _from, uint256 _amountLP, uint16 _dstChainId, uint256 _dstPoolId, bytes _to) returns(uint256 amountSD)

func (*PoolTransactor) RedeemLocalCallback

func (_Pool *PoolTransactor) RedeemLocalCallback(opts *bind.TransactOpts, _srcChainId uint16, _srcPoolId *big.Int, _to common.Address, _amountSD *big.Int, _amountToMintSD *big.Int) (*types.Transaction, error)

RedeemLocalCallback is a paid mutator transaction binding the contract method 0xb30daeac.

Solidity: function redeemLocalCallback(uint16 _srcChainId, uint256 _srcPoolId, address _to, uint256 _amountSD, uint256 _amountToMintSD) returns()

func (*PoolTransactor) RedeemLocalCheckOnRemote

func (_Pool *PoolTransactor) RedeemLocalCheckOnRemote(opts *bind.TransactOpts, _srcChainId uint16, _srcPoolId *big.Int, _amountSD *big.Int) (*types.Transaction, error)

RedeemLocalCheckOnRemote is a paid mutator transaction binding the contract method 0xea89e2aa.

Solidity: function redeemLocalCheckOnRemote(uint16 _srcChainId, uint256 _srcPoolId, uint256 _amountSD) returns(uint256 swapAmount, uint256 mintAmount)

func (*PoolTransactor) RedeemRemote

func (_Pool *PoolTransactor) RedeemRemote(opts *bind.TransactOpts, _dstChainId uint16, _dstPoolId *big.Int, _from common.Address, _amountLP *big.Int) (*types.Transaction, error)

RedeemRemote is a paid mutator transaction binding the contract method 0x7298a5dc.

Solidity: function redeemRemote(uint16 _dstChainId, uint256 _dstPoolId, address _from, uint256 _amountLP) returns()

func (*PoolTransactor) SendCredits

func (_Pool *PoolTransactor) SendCredits(opts *bind.TransactOpts, _dstChainId uint16, _dstPoolId *big.Int) (*types.Transaction, error)

SendCredits is a paid mutator transaction binding the contract method 0x08e9d8c2.

Solidity: function sendCredits(uint16 _dstChainId, uint256 _dstPoolId) returns((uint256,uint256) c)

func (*PoolTransactor) SetDeltaParam

func (_Pool *PoolTransactor) SetDeltaParam(opts *bind.TransactOpts, _batched bool, _swapDeltaBP *big.Int, _lpDeltaBP *big.Int, _defaultSwapMode bool, _defaultLPMode bool) (*types.Transaction, error)

SetDeltaParam is a paid mutator transaction binding the contract method 0xe065608b.

Solidity: function setDeltaParam(bool _batched, uint256 _swapDeltaBP, uint256 _lpDeltaBP, bool _defaultSwapMode, bool _defaultLPMode) returns()

func (*PoolTransactor) SetFee

func (_Pool *PoolTransactor) SetFee(opts *bind.TransactOpts, _mintFeeBP *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0x69fe0e2d.

Solidity: function setFee(uint256 _mintFeeBP) returns()

func (*PoolTransactor) SetFeeLibrary

func (_Pool *PoolTransactor) SetFeeLibrary(opts *bind.TransactOpts, _feeLibraryAddr common.Address) (*types.Transaction, error)

SetFeeLibrary is a paid mutator transaction binding the contract method 0x4b5cacbc.

Solidity: function setFeeLibrary(address _feeLibraryAddr) returns()

func (*PoolTransactor) SetSwapStop

func (_Pool *PoolTransactor) SetSwapStop(opts *bind.TransactOpts, _swapStop bool) (*types.Transaction, error)

SetSwapStop is a paid mutator transaction binding the contract method 0xac2cc36b.

Solidity: function setSwapStop(bool _swapStop) returns()

func (*PoolTransactor) SetWeightForChainPath

func (_Pool *PoolTransactor) SetWeightForChainPath(opts *bind.TransactOpts, _dstChainId uint16, _dstPoolId *big.Int, _weight uint16) (*types.Transaction, error)

SetWeightForChainPath is a paid mutator transaction binding the contract method 0xa985565f.

Solidity: function setWeightForChainPath(uint16 _dstChainId, uint256 _dstPoolId, uint16 _weight) returns()

func (*PoolTransactor) Swap

func (_Pool *PoolTransactor) Swap(opts *bind.TransactOpts, _dstChainId uint16, _dstPoolId *big.Int, _from common.Address, _amountLD *big.Int, _minAmountLD *big.Int, newLiquidity bool) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x1b7319b6.

Solidity: function swap(uint16 _dstChainId, uint256 _dstPoolId, address _from, uint256 _amountLD, uint256 _minAmountLD, bool newLiquidity) returns((uint256,uint256,uint256,uint256,uint256,uint256))

func (*PoolTransactor) SwapRemote

func (_Pool *PoolTransactor) SwapRemote(opts *bind.TransactOpts, _srcChainId uint16, _srcPoolId *big.Int, _to common.Address, _s PoolSwapObj) (*types.Transaction, error)

SwapRemote is a paid mutator transaction binding the contract method 0x902b8ab7.

Solidity: function swapRemote(uint16 _srcChainId, uint256 _srcPoolId, address _to, (uint256,uint256,uint256,uint256,uint256,uint256) _s) returns(uint256 amountLD)

func (*PoolTransactor) Transfer

func (_Pool *PoolTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*PoolTransactor) TransferFrom

func (_Pool *PoolTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*PoolTransactor) WithdrawMintFeeBalance

func (_Pool *PoolTransactor) WithdrawMintFeeBalance(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error)

WithdrawMintFeeBalance is a paid mutator transaction binding the contract method 0x476efe40.

Solidity: function withdrawMintFeeBalance(address _to) returns()

func (*PoolTransactor) WithdrawProtocolFeeBalance

func (_Pool *PoolTransactor) WithdrawProtocolFeeBalance(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error)

WithdrawProtocolFeeBalance is a paid mutator transaction binding the contract method 0xbe310294.

Solidity: function withdrawProtocolFeeBalance(address _to) returns()

type PoolTransactorRaw

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

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

func (*PoolTransactorRaw) Transact

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

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

func (*PoolTransactorRaw) Transfer

func (_Pool *PoolTransactorRaw) 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 PoolTransactorSession

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

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

func (*PoolTransactorSession) ActivateChainPath

func (_Pool *PoolTransactorSession) ActivateChainPath(_dstChainId uint16, _dstPoolId *big.Int) (*types.Transaction, error)

ActivateChainPath is a paid mutator transaction binding the contract method 0x8bd86d0a.

Solidity: function activateChainPath(uint16 _dstChainId, uint256 _dstPoolId) returns()

func (*PoolTransactorSession) Approve

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

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

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

func (*PoolTransactorSession) CallDelta

func (_Pool *PoolTransactorSession) CallDelta(_fullMode bool) (*types.Transaction, error)

CallDelta is a paid mutator transaction binding the contract method 0x7fb65265.

Solidity: function callDelta(bool _fullMode) returns()

func (*PoolTransactorSession) CreateChainPath

func (_Pool *PoolTransactorSession) CreateChainPath(_dstChainId uint16, _dstPoolId *big.Int, _weight *big.Int) (*types.Transaction, error)

CreateChainPath is a paid mutator transaction binding the contract method 0x20d6bc75.

Solidity: function createChainPath(uint16 _dstChainId, uint256 _dstPoolId, uint256 _weight) returns()

func (*PoolTransactorSession) CreditChainPath

func (_Pool *PoolTransactorSession) CreditChainPath(_dstChainId uint16, _dstPoolId *big.Int, _c PoolCreditObj) (*types.Transaction, error)

CreditChainPath is a paid mutator transaction binding the contract method 0xb6addec7.

Solidity: function creditChainPath(uint16 _dstChainId, uint256 _dstPoolId, (uint256,uint256) _c) returns()

func (*PoolTransactorSession) DecreaseAllowance

func (_Pool *PoolTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*PoolTransactorSession) IncreaseAllowance

func (_Pool *PoolTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*PoolTransactorSession) InstantRedeemLocal

func (_Pool *PoolTransactorSession) InstantRedeemLocal(_from common.Address, _amountLP *big.Int, _to common.Address) (*types.Transaction, error)

InstantRedeemLocal is a paid mutator transaction binding the contract method 0x0986b61a.

Solidity: function instantRedeemLocal(address _from, uint256 _amountLP, address _to) returns(uint256 amountSD)

func (*PoolTransactorSession) Mint

func (_Pool *PoolTransactorSession) Mint(_to common.Address, _amountLD *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address _to, uint256 _amountLD) returns(uint256)

func (*PoolTransactorSession) Permit

func (_Pool *PoolTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*PoolTransactorSession) RedeemLocal

func (_Pool *PoolTransactorSession) RedeemLocal(_from common.Address, _amountLP *big.Int, _dstChainId uint16, _dstPoolId *big.Int, _to []byte) (*types.Transaction, error)

RedeemLocal is a paid mutator transaction binding the contract method 0xb0fab0bc.

Solidity: function redeemLocal(address _from, uint256 _amountLP, uint16 _dstChainId, uint256 _dstPoolId, bytes _to) returns(uint256 amountSD)

func (*PoolTransactorSession) RedeemLocalCallback

func (_Pool *PoolTransactorSession) RedeemLocalCallback(_srcChainId uint16, _srcPoolId *big.Int, _to common.Address, _amountSD *big.Int, _amountToMintSD *big.Int) (*types.Transaction, error)

RedeemLocalCallback is a paid mutator transaction binding the contract method 0xb30daeac.

Solidity: function redeemLocalCallback(uint16 _srcChainId, uint256 _srcPoolId, address _to, uint256 _amountSD, uint256 _amountToMintSD) returns()

func (*PoolTransactorSession) RedeemLocalCheckOnRemote

func (_Pool *PoolTransactorSession) RedeemLocalCheckOnRemote(_srcChainId uint16, _srcPoolId *big.Int, _amountSD *big.Int) (*types.Transaction, error)

RedeemLocalCheckOnRemote is a paid mutator transaction binding the contract method 0xea89e2aa.

Solidity: function redeemLocalCheckOnRemote(uint16 _srcChainId, uint256 _srcPoolId, uint256 _amountSD) returns(uint256 swapAmount, uint256 mintAmount)

func (*PoolTransactorSession) RedeemRemote

func (_Pool *PoolTransactorSession) RedeemRemote(_dstChainId uint16, _dstPoolId *big.Int, _from common.Address, _amountLP *big.Int) (*types.Transaction, error)

RedeemRemote is a paid mutator transaction binding the contract method 0x7298a5dc.

Solidity: function redeemRemote(uint16 _dstChainId, uint256 _dstPoolId, address _from, uint256 _amountLP) returns()

func (*PoolTransactorSession) SendCredits

func (_Pool *PoolTransactorSession) SendCredits(_dstChainId uint16, _dstPoolId *big.Int) (*types.Transaction, error)

SendCredits is a paid mutator transaction binding the contract method 0x08e9d8c2.

Solidity: function sendCredits(uint16 _dstChainId, uint256 _dstPoolId) returns((uint256,uint256) c)

func (*PoolTransactorSession) SetDeltaParam

func (_Pool *PoolTransactorSession) SetDeltaParam(_batched bool, _swapDeltaBP *big.Int, _lpDeltaBP *big.Int, _defaultSwapMode bool, _defaultLPMode bool) (*types.Transaction, error)

SetDeltaParam is a paid mutator transaction binding the contract method 0xe065608b.

Solidity: function setDeltaParam(bool _batched, uint256 _swapDeltaBP, uint256 _lpDeltaBP, bool _defaultSwapMode, bool _defaultLPMode) returns()

func (*PoolTransactorSession) SetFee

func (_Pool *PoolTransactorSession) SetFee(_mintFeeBP *big.Int) (*types.Transaction, error)

SetFee is a paid mutator transaction binding the contract method 0x69fe0e2d.

Solidity: function setFee(uint256 _mintFeeBP) returns()

func (*PoolTransactorSession) SetFeeLibrary

func (_Pool *PoolTransactorSession) SetFeeLibrary(_feeLibraryAddr common.Address) (*types.Transaction, error)

SetFeeLibrary is a paid mutator transaction binding the contract method 0x4b5cacbc.

Solidity: function setFeeLibrary(address _feeLibraryAddr) returns()

func (*PoolTransactorSession) SetSwapStop

func (_Pool *PoolTransactorSession) SetSwapStop(_swapStop bool) (*types.Transaction, error)

SetSwapStop is a paid mutator transaction binding the contract method 0xac2cc36b.

Solidity: function setSwapStop(bool _swapStop) returns()

func (*PoolTransactorSession) SetWeightForChainPath

func (_Pool *PoolTransactorSession) SetWeightForChainPath(_dstChainId uint16, _dstPoolId *big.Int, _weight uint16) (*types.Transaction, error)

SetWeightForChainPath is a paid mutator transaction binding the contract method 0xa985565f.

Solidity: function setWeightForChainPath(uint16 _dstChainId, uint256 _dstPoolId, uint16 _weight) returns()

func (*PoolTransactorSession) Swap

func (_Pool *PoolTransactorSession) Swap(_dstChainId uint16, _dstPoolId *big.Int, _from common.Address, _amountLD *big.Int, _minAmountLD *big.Int, newLiquidity bool) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x1b7319b6.

Solidity: function swap(uint16 _dstChainId, uint256 _dstPoolId, address _from, uint256 _amountLD, uint256 _minAmountLD, bool newLiquidity) returns((uint256,uint256,uint256,uint256,uint256,uint256))

func (*PoolTransactorSession) SwapRemote

func (_Pool *PoolTransactorSession) SwapRemote(_srcChainId uint16, _srcPoolId *big.Int, _to common.Address, _s PoolSwapObj) (*types.Transaction, error)

SwapRemote is a paid mutator transaction binding the contract method 0x902b8ab7.

Solidity: function swapRemote(uint16 _srcChainId, uint256 _srcPoolId, address _to, (uint256,uint256,uint256,uint256,uint256,uint256) _s) returns(uint256 amountLD)

func (*PoolTransactorSession) Transfer

func (_Pool *PoolTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*PoolTransactorSession) TransferFrom

func (_Pool *PoolTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

func (*PoolTransactorSession) WithdrawMintFeeBalance

func (_Pool *PoolTransactorSession) WithdrawMintFeeBalance(_to common.Address) (*types.Transaction, error)

WithdrawMintFeeBalance is a paid mutator transaction binding the contract method 0x476efe40.

Solidity: function withdrawMintFeeBalance(address _to) returns()

func (*PoolTransactorSession) WithdrawProtocolFeeBalance

func (_Pool *PoolTransactorSession) WithdrawProtocolFeeBalance(_to common.Address) (*types.Transaction, error)

WithdrawProtocolFeeBalance is a paid mutator transaction binding the contract method 0xbe310294.

Solidity: function withdrawProtocolFeeBalance(address _to) returns()

type PoolTransfer

type PoolTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

PoolTransfer represents a Transfer event raised by the Pool contract.

type PoolTransferIterator

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

PoolTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Pool contract.

func (*PoolTransferIterator) Close

func (it *PoolTransferIterator) Close() error

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

func (*PoolTransferIterator) Error

func (it *PoolTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolTransferIterator) Next

func (it *PoolTransferIterator) 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 PoolWithdrawMintFeeBalance

type PoolWithdrawMintFeeBalance struct {
	To       common.Address
	AmountSD *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PoolWithdrawMintFeeBalance represents a WithdrawMintFeeBalance event raised by the Pool contract.

type PoolWithdrawMintFeeBalanceIterator

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

PoolWithdrawMintFeeBalanceIterator is returned from FilterWithdrawMintFeeBalance and is used to iterate over the raw logs and unpacked data for WithdrawMintFeeBalance events raised by the Pool contract.

func (*PoolWithdrawMintFeeBalanceIterator) Close

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

func (*PoolWithdrawMintFeeBalanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolWithdrawMintFeeBalanceIterator) 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 PoolWithdrawProtocolFeeBalance

type PoolWithdrawProtocolFeeBalance struct {
	To       common.Address
	AmountSD *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PoolWithdrawProtocolFeeBalance represents a WithdrawProtocolFeeBalance event raised by the Pool contract.

type PoolWithdrawProtocolFeeBalanceIterator

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

PoolWithdrawProtocolFeeBalanceIterator is returned from FilterWithdrawProtocolFeeBalance and is used to iterate over the raw logs and unpacked data for WithdrawProtocolFeeBalance events raised by the Pool contract.

func (*PoolWithdrawProtocolFeeBalanceIterator) Close

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

func (*PoolWithdrawProtocolFeeBalanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolWithdrawProtocolFeeBalanceIterator) 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 PoolWithdrawRemote

type PoolWithdrawRemote struct {
	SrcChainId uint16
	SrcPoolId  *big.Int
	SwapAmount *big.Int
	MintAmount *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

PoolWithdrawRemote represents a WithdrawRemote event raised by the Pool contract.

type PoolWithdrawRemoteIterator

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

PoolWithdrawRemoteIterator is returned from FilterWithdrawRemote and is used to iterate over the raw logs and unpacked data for WithdrawRemote events raised by the Pool contract.

func (*PoolWithdrawRemoteIterator) Close

func (it *PoolWithdrawRemoteIterator) Close() error

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

func (*PoolWithdrawRemoteIterator) Error

func (it *PoolWithdrawRemoteIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoolWithdrawRemoteIterator) Next

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