isyncswap_pool

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ISyncSwapPoolABI = ISyncSwapPoolMetaData.ABI

ISyncSwapPoolABI is the input ABI used to generate the binding from. Deprecated: Use ISyncSwapPoolMetaData.ABI instead.

View Source
var ISyncSwapPoolMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reserve0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reserve1\",\"type\":\"uint256\"}],\"name\":\"Sync\",\"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\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount[]\",\"name\":\"tokenAmounts\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"burnSingle\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"tokenAmount\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAssets\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"protocolFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"getSwapFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"swapFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"invariantLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"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\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"permit2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolType\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"tokenAmount\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"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\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ISyncSwapPoolMetaData contains all meta data concerning the ISyncSwapPool contract.

Functions

This section is empty.

Types

type IPoolTokenAmount

type IPoolTokenAmount struct {
	Token  common.Address
	Amount *big.Int
}

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

type ISyncSwapPool

type ISyncSwapPool struct {
	ISyncSwapPoolCaller     // Read-only binding to the contract
	ISyncSwapPoolTransactor // Write-only binding to the contract
	ISyncSwapPoolFilterer   // Log filterer for contract events
}

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

func NewISyncSwapPool

func NewISyncSwapPool(address common.Address, backend bind.ContractBackend) (*ISyncSwapPool, error)

NewISyncSwapPool creates a new instance of ISyncSwapPool, bound to a specific deployed contract.

type ISyncSwapPoolApproval

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

ISyncSwapPoolApproval represents a Approval event raised by the ISyncSwapPool contract.

type ISyncSwapPoolApprovalIterator

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

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

func (*ISyncSwapPoolApprovalIterator) Close

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

func (*ISyncSwapPoolApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ISyncSwapPoolApprovalIterator) 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 ISyncSwapPoolBurn

type ISyncSwapPoolBurn struct {
	Sender    common.Address
	Amount0   *big.Int
	Amount1   *big.Int
	Liquidity *big.Int
	To        common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

ISyncSwapPoolBurn represents a Burn event raised by the ISyncSwapPool contract.

type ISyncSwapPoolBurnIterator

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

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

func (*ISyncSwapPoolBurnIterator) Close

func (it *ISyncSwapPoolBurnIterator) Close() error

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

func (*ISyncSwapPoolBurnIterator) Error

func (it *ISyncSwapPoolBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ISyncSwapPoolBurnIterator) Next

func (it *ISyncSwapPoolBurnIterator) 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 ISyncSwapPoolCaller

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

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

func NewISyncSwapPoolCaller

func NewISyncSwapPoolCaller(address common.Address, caller bind.ContractCaller) (*ISyncSwapPoolCaller, error)

NewISyncSwapPoolCaller creates a new read-only instance of ISyncSwapPool, bound to a specific deployed contract.

func (*ISyncSwapPoolCaller) Allowance

func (_ISyncSwapPool *ISyncSwapPoolCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolCaller) BalanceOf

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

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

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

func (*ISyncSwapPoolCaller) DOMAINSEPARATOR

func (_ISyncSwapPool *ISyncSwapPoolCaller) 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 (*ISyncSwapPoolCaller) Decimals

func (_ISyncSwapPool *ISyncSwapPoolCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ISyncSwapPoolCaller) GetAmountIn

func (_ISyncSwapPool *ISyncSwapPoolCaller) GetAmountIn(opts *bind.CallOpts, tokenOut common.Address, amountOut *big.Int, sender common.Address) (*big.Int, error)

GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.

Solidity: function getAmountIn(address tokenOut, uint256 amountOut, address sender) view returns(uint256 amountIn)

func (*ISyncSwapPoolCaller) GetAmountOut

func (_ISyncSwapPool *ISyncSwapPoolCaller) GetAmountOut(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int, sender common.Address) (*big.Int, error)

GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.

Solidity: function getAmountOut(address tokenIn, uint256 amountIn, address sender) view returns(uint256 amountOut)

func (*ISyncSwapPoolCaller) GetAssets

func (_ISyncSwapPool *ISyncSwapPoolCaller) GetAssets(opts *bind.CallOpts) ([]common.Address, error)

GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.

Solidity: function getAssets() view returns(address[] assets)

func (*ISyncSwapPoolCaller) GetProtocolFee

func (_ISyncSwapPool *ISyncSwapPoolCaller) GetProtocolFee(opts *bind.CallOpts) (*big.Int, error)

GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.

Solidity: function getProtocolFee() view returns(uint24 protocolFee)

func (*ISyncSwapPoolCaller) GetReserves

func (_ISyncSwapPool *ISyncSwapPoolCaller) GetReserves(opts *bind.CallOpts) (*big.Int, *big.Int, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint256, uint256)

func (*ISyncSwapPoolCaller) GetSwapFee

func (_ISyncSwapPool *ISyncSwapPoolCaller) GetSwapFee(opts *bind.CallOpts, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.

Solidity: function getSwapFee(address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)

func (*ISyncSwapPoolCaller) InvariantLast

func (_ISyncSwapPool *ISyncSwapPoolCaller) InvariantLast(opts *bind.CallOpts) (*big.Int, error)

InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.

Solidity: function invariantLast() view returns(uint256)

func (*ISyncSwapPoolCaller) Master

func (_ISyncSwapPool *ISyncSwapPoolCaller) Master(opts *bind.CallOpts) (common.Address, error)

Master is a free data retrieval call binding the contract method 0xee97f7f3.

Solidity: function master() view returns(address)

func (*ISyncSwapPoolCaller) Name

func (_ISyncSwapPool *ISyncSwapPoolCaller) 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 (*ISyncSwapPoolCaller) Nonces

func (_ISyncSwapPool *ISyncSwapPoolCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolCaller) PoolType

func (_ISyncSwapPool *ISyncSwapPoolCaller) PoolType(opts *bind.CallOpts) (uint16, error)

PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.

Solidity: function poolType() view returns(uint16)

func (*ISyncSwapPoolCaller) Reserve0

func (_ISyncSwapPool *ISyncSwapPoolCaller) Reserve0(opts *bind.CallOpts) (*big.Int, error)

Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.

Solidity: function reserve0() view returns(uint256)

func (*ISyncSwapPoolCaller) Reserve1

func (_ISyncSwapPool *ISyncSwapPoolCaller) Reserve1(opts *bind.CallOpts) (*big.Int, error)

Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.

Solidity: function reserve1() view returns(uint256)

func (*ISyncSwapPoolCaller) Symbol

func (_ISyncSwapPool *ISyncSwapPoolCaller) 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 (*ISyncSwapPoolCaller) Token0

func (_ISyncSwapPool *ISyncSwapPoolCaller) Token0(opts *bind.CallOpts) (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*ISyncSwapPoolCaller) Token1

func (_ISyncSwapPool *ISyncSwapPoolCaller) Token1(opts *bind.CallOpts) (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*ISyncSwapPoolCaller) TotalSupply

func (_ISyncSwapPool *ISyncSwapPoolCaller) 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 (*ISyncSwapPoolCaller) Vault

func (_ISyncSwapPool *ISyncSwapPoolCaller) Vault(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function vault() view returns(address)

type ISyncSwapPoolCallerRaw

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

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

func (*ISyncSwapPoolCallerRaw) Call

func (_ISyncSwapPool *ISyncSwapPoolCallerRaw) 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 ISyncSwapPoolCallerSession

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

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

func (*ISyncSwapPoolCallerSession) Allowance

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolCallerSession) BalanceOf

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolCallerSession) DOMAINSEPARATOR

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) DOMAINSEPARATOR() ([32]byte, error)

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

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*ISyncSwapPoolCallerSession) Decimals

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ISyncSwapPoolCallerSession) GetAmountIn

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) GetAmountIn(tokenOut common.Address, amountOut *big.Int, sender common.Address) (*big.Int, error)

GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.

Solidity: function getAmountIn(address tokenOut, uint256 amountOut, address sender) view returns(uint256 amountIn)

func (*ISyncSwapPoolCallerSession) GetAmountOut

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) GetAmountOut(tokenIn common.Address, amountIn *big.Int, sender common.Address) (*big.Int, error)

GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.

Solidity: function getAmountOut(address tokenIn, uint256 amountIn, address sender) view returns(uint256 amountOut)

func (*ISyncSwapPoolCallerSession) GetAssets

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) GetAssets() ([]common.Address, error)

GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.

Solidity: function getAssets() view returns(address[] assets)

func (*ISyncSwapPoolCallerSession) GetProtocolFee

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) GetProtocolFee() (*big.Int, error)

GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.

Solidity: function getProtocolFee() view returns(uint24 protocolFee)

func (*ISyncSwapPoolCallerSession) GetReserves

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) GetReserves() (*big.Int, *big.Int, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint256, uint256)

func (*ISyncSwapPoolCallerSession) GetSwapFee

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) GetSwapFee(sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.

Solidity: function getSwapFee(address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)

func (*ISyncSwapPoolCallerSession) InvariantLast

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) InvariantLast() (*big.Int, error)

InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.

Solidity: function invariantLast() view returns(uint256)

func (*ISyncSwapPoolCallerSession) Master

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Master() (common.Address, error)

Master is a free data retrieval call binding the contract method 0xee97f7f3.

Solidity: function master() view returns(address)

func (*ISyncSwapPoolCallerSession) Name

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ISyncSwapPoolCallerSession) Nonces

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Nonces(owner common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolCallerSession) PoolType

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) PoolType() (uint16, error)

PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.

Solidity: function poolType() view returns(uint16)

func (*ISyncSwapPoolCallerSession) Reserve0

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Reserve0() (*big.Int, error)

Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.

Solidity: function reserve0() view returns(uint256)

func (*ISyncSwapPoolCallerSession) Reserve1

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Reserve1() (*big.Int, error)

Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.

Solidity: function reserve1() view returns(uint256)

func (*ISyncSwapPoolCallerSession) Symbol

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ISyncSwapPoolCallerSession) Token0

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*ISyncSwapPoolCallerSession) Token1

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*ISyncSwapPoolCallerSession) TotalSupply

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ISyncSwapPoolCallerSession) Vault

func (_ISyncSwapPool *ISyncSwapPoolCallerSession) Vault() (common.Address, error)

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

Solidity: function vault() view returns(address)

type ISyncSwapPoolFilterer

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

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

func NewISyncSwapPoolFilterer

func NewISyncSwapPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*ISyncSwapPoolFilterer, error)

NewISyncSwapPoolFilterer creates a new log filterer instance of ISyncSwapPool, bound to a specific deployed contract.

func (*ISyncSwapPoolFilterer) FilterApproval

func (_ISyncSwapPool *ISyncSwapPoolFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ISyncSwapPoolApprovalIterator, error)

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

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

func (*ISyncSwapPoolFilterer) FilterBurn

func (_ISyncSwapPool *ISyncSwapPoolFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ISyncSwapPoolBurnIterator, error)

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

Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)

func (*ISyncSwapPoolFilterer) FilterMint

func (_ISyncSwapPool *ISyncSwapPoolFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ISyncSwapPoolMintIterator, error)

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

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)

func (*ISyncSwapPoolFilterer) FilterSwap

func (_ISyncSwapPool *ISyncSwapPoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ISyncSwapPoolSwapIterator, error)

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

Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)

func (*ISyncSwapPoolFilterer) FilterSync

func (_ISyncSwapPool *ISyncSwapPoolFilterer) FilterSync(opts *bind.FilterOpts) (*ISyncSwapPoolSyncIterator, error)

FilterSync is a free log retrieval operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.

Solidity: event Sync(uint256 reserve0, uint256 reserve1)

func (*ISyncSwapPoolFilterer) FilterTransfer

func (_ISyncSwapPool *ISyncSwapPoolFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ISyncSwapPoolTransferIterator, error)

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

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

func (*ISyncSwapPoolFilterer) ParseApproval

func (_ISyncSwapPool *ISyncSwapPoolFilterer) ParseApproval(log types.Log) (*ISyncSwapPoolApproval, error)

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

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

func (*ISyncSwapPoolFilterer) ParseBurn

func (_ISyncSwapPool *ISyncSwapPoolFilterer) ParseBurn(log types.Log) (*ISyncSwapPoolBurn, error)

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

Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)

func (*ISyncSwapPoolFilterer) ParseMint

func (_ISyncSwapPool *ISyncSwapPoolFilterer) ParseMint(log types.Log) (*ISyncSwapPoolMint, error)

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

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)

func (*ISyncSwapPoolFilterer) ParseSwap

func (_ISyncSwapPool *ISyncSwapPoolFilterer) ParseSwap(log types.Log) (*ISyncSwapPoolSwap, error)

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

Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)

func (*ISyncSwapPoolFilterer) ParseSync

func (_ISyncSwapPool *ISyncSwapPoolFilterer) ParseSync(log types.Log) (*ISyncSwapPoolSync, error)

ParseSync is a log parse operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.

Solidity: event Sync(uint256 reserve0, uint256 reserve1)

func (*ISyncSwapPoolFilterer) ParseTransfer

func (_ISyncSwapPool *ISyncSwapPoolFilterer) ParseTransfer(log types.Log) (*ISyncSwapPoolTransfer, error)

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

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

func (*ISyncSwapPoolFilterer) WatchApproval

func (_ISyncSwapPool *ISyncSwapPoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ISyncSwapPoolApproval, 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 amount)

func (*ISyncSwapPoolFilterer) WatchBurn

func (_ISyncSwapPool *ISyncSwapPoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *ISyncSwapPoolBurn, sender []common.Address, to []common.Address) (event.Subscription, error)

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

Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)

func (*ISyncSwapPoolFilterer) WatchMint

func (_ISyncSwapPool *ISyncSwapPoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *ISyncSwapPoolMint, sender []common.Address, to []common.Address) (event.Subscription, error)

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

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)

func (*ISyncSwapPoolFilterer) WatchSwap

func (_ISyncSwapPool *ISyncSwapPoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *ISyncSwapPoolSwap, sender []common.Address, to []common.Address) (event.Subscription, error)

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

Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)

func (*ISyncSwapPoolFilterer) WatchSync

func (_ISyncSwapPool *ISyncSwapPoolFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *ISyncSwapPoolSync) (event.Subscription, error)

WatchSync is a free log subscription operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.

Solidity: event Sync(uint256 reserve0, uint256 reserve1)

func (*ISyncSwapPoolFilterer) WatchTransfer

func (_ISyncSwapPool *ISyncSwapPoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ISyncSwapPoolTransfer, 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 amount)

type ISyncSwapPoolMint

type ISyncSwapPoolMint struct {
	Sender    common.Address
	Amount0   *big.Int
	Amount1   *big.Int
	Liquidity *big.Int
	To        common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

ISyncSwapPoolMint represents a Mint event raised by the ISyncSwapPool contract.

type ISyncSwapPoolMintIterator

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

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

func (*ISyncSwapPoolMintIterator) Close

func (it *ISyncSwapPoolMintIterator) Close() error

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

func (*ISyncSwapPoolMintIterator) Error

func (it *ISyncSwapPoolMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ISyncSwapPoolMintIterator) Next

func (it *ISyncSwapPoolMintIterator) 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 ISyncSwapPoolRaw

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

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

func (*ISyncSwapPoolRaw) Call

func (_ISyncSwapPool *ISyncSwapPoolRaw) 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 (*ISyncSwapPoolRaw) Transact

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

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

func (*ISyncSwapPoolRaw) Transfer

func (_ISyncSwapPool *ISyncSwapPoolRaw) 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 ISyncSwapPoolSession

type ISyncSwapPoolSession struct {
	Contract     *ISyncSwapPool    // 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
}

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

func (*ISyncSwapPoolSession) Allowance

func (_ISyncSwapPool *ISyncSwapPoolSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolSession) Approve

func (_ISyncSwapPool *ISyncSwapPoolSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ISyncSwapPoolSession) BalanceOf

func (_ISyncSwapPool *ISyncSwapPoolSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolSession) Burn

func (_ISyncSwapPool *ISyncSwapPoolSession) Burn(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf66eab5b.

Solidity: function burn(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256)[] tokenAmounts)

func (*ISyncSwapPoolSession) BurnSingle

func (_ISyncSwapPool *ISyncSwapPoolSession) BurnSingle(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.

Solidity: function burnSingle(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256) tokenAmount)

func (*ISyncSwapPoolSession) DOMAINSEPARATOR

func (_ISyncSwapPool *ISyncSwapPoolSession) DOMAINSEPARATOR() ([32]byte, error)

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

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*ISyncSwapPoolSession) Decimals

func (_ISyncSwapPool *ISyncSwapPoolSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ISyncSwapPoolSession) GetAmountIn

func (_ISyncSwapPool *ISyncSwapPoolSession) GetAmountIn(tokenOut common.Address, amountOut *big.Int, sender common.Address) (*big.Int, error)

GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.

Solidity: function getAmountIn(address tokenOut, uint256 amountOut, address sender) view returns(uint256 amountIn)

func (*ISyncSwapPoolSession) GetAmountOut

func (_ISyncSwapPool *ISyncSwapPoolSession) GetAmountOut(tokenIn common.Address, amountIn *big.Int, sender common.Address) (*big.Int, error)

GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.

Solidity: function getAmountOut(address tokenIn, uint256 amountIn, address sender) view returns(uint256 amountOut)

func (*ISyncSwapPoolSession) GetAssets

func (_ISyncSwapPool *ISyncSwapPoolSession) GetAssets() ([]common.Address, error)

GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.

Solidity: function getAssets() view returns(address[] assets)

func (*ISyncSwapPoolSession) GetProtocolFee

func (_ISyncSwapPool *ISyncSwapPoolSession) GetProtocolFee() (*big.Int, error)

GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.

Solidity: function getProtocolFee() view returns(uint24 protocolFee)

func (*ISyncSwapPoolSession) GetReserves

func (_ISyncSwapPool *ISyncSwapPoolSession) GetReserves() (*big.Int, *big.Int, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint256, uint256)

func (*ISyncSwapPoolSession) GetSwapFee

func (_ISyncSwapPool *ISyncSwapPoolSession) GetSwapFee(sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.

Solidity: function getSwapFee(address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)

func (*ISyncSwapPoolSession) InvariantLast

func (_ISyncSwapPool *ISyncSwapPoolSession) InvariantLast() (*big.Int, error)

InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.

Solidity: function invariantLast() view returns(uint256)

func (*ISyncSwapPoolSession) Master

func (_ISyncSwapPool *ISyncSwapPoolSession) Master() (common.Address, error)

Master is a free data retrieval call binding the contract method 0xee97f7f3.

Solidity: function master() view returns(address)

func (*ISyncSwapPoolSession) Mint

func (_ISyncSwapPool *ISyncSwapPoolSession) Mint(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function mint(bytes data, address sender, address callback, bytes callbackData) returns(uint256 liquidity)

func (*ISyncSwapPoolSession) Name

func (_ISyncSwapPool *ISyncSwapPoolSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ISyncSwapPoolSession) Nonces

func (_ISyncSwapPool *ISyncSwapPoolSession) Nonces(owner common.Address) (*big.Int, error)

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

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

func (*ISyncSwapPoolSession) Permit

func (_ISyncSwapPool *ISyncSwapPoolSession) 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 (*ISyncSwapPoolSession) Permit2

func (_ISyncSwapPool *ISyncSwapPoolSession) Permit2(owner common.Address, spender common.Address, amount *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.

Solidity: function permit2(address owner, address spender, uint256 amount, uint256 deadline, bytes signature) returns()

func (*ISyncSwapPoolSession) PoolType

func (_ISyncSwapPool *ISyncSwapPoolSession) PoolType() (uint16, error)

PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.

Solidity: function poolType() view returns(uint16)

func (*ISyncSwapPoolSession) Reserve0

func (_ISyncSwapPool *ISyncSwapPoolSession) Reserve0() (*big.Int, error)

Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.

Solidity: function reserve0() view returns(uint256)

func (*ISyncSwapPoolSession) Reserve1

func (_ISyncSwapPool *ISyncSwapPoolSession) Reserve1() (*big.Int, error)

Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.

Solidity: function reserve1() view returns(uint256)

func (*ISyncSwapPoolSession) Swap

func (_ISyncSwapPool *ISyncSwapPoolSession) Swap(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function swap(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256) tokenAmount)

func (*ISyncSwapPoolSession) Symbol

func (_ISyncSwapPool *ISyncSwapPoolSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ISyncSwapPoolSession) Token0

func (_ISyncSwapPool *ISyncSwapPoolSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*ISyncSwapPoolSession) Token1

func (_ISyncSwapPool *ISyncSwapPoolSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*ISyncSwapPoolSession) TotalSupply

func (_ISyncSwapPool *ISyncSwapPoolSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ISyncSwapPoolSession) Transfer

func (_ISyncSwapPool *ISyncSwapPoolSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ISyncSwapPoolSession) TransferFrom

func (_ISyncSwapPool *ISyncSwapPoolSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ISyncSwapPoolSession) Vault

func (_ISyncSwapPool *ISyncSwapPoolSession) Vault() (common.Address, error)

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

Solidity: function vault() view returns(address)

type ISyncSwapPoolSwap

type ISyncSwapPoolSwap struct {
	Sender     common.Address
	Amount0In  *big.Int
	Amount1In  *big.Int
	Amount0Out *big.Int
	Amount1Out *big.Int
	To         common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

ISyncSwapPoolSwap represents a Swap event raised by the ISyncSwapPool contract.

type ISyncSwapPoolSwapIterator

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

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

func (*ISyncSwapPoolSwapIterator) Close

func (it *ISyncSwapPoolSwapIterator) Close() error

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

func (*ISyncSwapPoolSwapIterator) Error

func (it *ISyncSwapPoolSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ISyncSwapPoolSwapIterator) Next

func (it *ISyncSwapPoolSwapIterator) 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 ISyncSwapPoolSync

type ISyncSwapPoolSync struct {
	Reserve0 *big.Int
	Reserve1 *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ISyncSwapPoolSync represents a Sync event raised by the ISyncSwapPool contract.

type ISyncSwapPoolSyncIterator

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

ISyncSwapPoolSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the ISyncSwapPool contract.

func (*ISyncSwapPoolSyncIterator) Close

func (it *ISyncSwapPoolSyncIterator) Close() error

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

func (*ISyncSwapPoolSyncIterator) Error

func (it *ISyncSwapPoolSyncIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ISyncSwapPoolSyncIterator) Next

func (it *ISyncSwapPoolSyncIterator) 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 ISyncSwapPoolTransactor

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

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

func NewISyncSwapPoolTransactor

func NewISyncSwapPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*ISyncSwapPoolTransactor, error)

NewISyncSwapPoolTransactor creates a new write-only instance of ISyncSwapPool, bound to a specific deployed contract.

func (*ISyncSwapPoolTransactor) Approve

func (_ISyncSwapPool *ISyncSwapPoolTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ISyncSwapPoolTransactor) Burn

func (_ISyncSwapPool *ISyncSwapPoolTransactor) Burn(opts *bind.TransactOpts, data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf66eab5b.

Solidity: function burn(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256)[] tokenAmounts)

func (*ISyncSwapPoolTransactor) BurnSingle

func (_ISyncSwapPool *ISyncSwapPoolTransactor) BurnSingle(opts *bind.TransactOpts, data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.

Solidity: function burnSingle(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256) tokenAmount)

func (*ISyncSwapPoolTransactor) Mint

func (_ISyncSwapPool *ISyncSwapPoolTransactor) Mint(opts *bind.TransactOpts, data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function mint(bytes data, address sender, address callback, bytes callbackData) returns(uint256 liquidity)

func (*ISyncSwapPoolTransactor) Permit

func (_ISyncSwapPool *ISyncSwapPoolTransactor) 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 (*ISyncSwapPoolTransactor) Permit2

func (_ISyncSwapPool *ISyncSwapPoolTransactor) Permit2(opts *bind.TransactOpts, owner common.Address, spender common.Address, amount *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.

Solidity: function permit2(address owner, address spender, uint256 amount, uint256 deadline, bytes signature) returns()

func (*ISyncSwapPoolTransactor) Swap

func (_ISyncSwapPool *ISyncSwapPoolTransactor) Swap(opts *bind.TransactOpts, data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function swap(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256) tokenAmount)

func (*ISyncSwapPoolTransactor) Transfer

func (_ISyncSwapPool *ISyncSwapPoolTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ISyncSwapPoolTransactor) TransferFrom

func (_ISyncSwapPool *ISyncSwapPoolTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

type ISyncSwapPoolTransactorRaw

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

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

func (*ISyncSwapPoolTransactorRaw) Transact

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

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

func (*ISyncSwapPoolTransactorRaw) Transfer

func (_ISyncSwapPool *ISyncSwapPoolTransactorRaw) 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 ISyncSwapPoolTransactorSession

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

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

func (*ISyncSwapPoolTransactorSession) Approve

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ISyncSwapPoolTransactorSession) Burn

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) Burn(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf66eab5b.

Solidity: function burn(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256)[] tokenAmounts)

func (*ISyncSwapPoolTransactorSession) BurnSingle

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) BurnSingle(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.

Solidity: function burnSingle(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256) tokenAmount)

func (*ISyncSwapPoolTransactorSession) Mint

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) Mint(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function mint(bytes data, address sender, address callback, bytes callbackData) returns(uint256 liquidity)

func (*ISyncSwapPoolTransactorSession) Permit

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) 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 (*ISyncSwapPoolTransactorSession) Permit2

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) Permit2(owner common.Address, spender common.Address, amount *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)

Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.

Solidity: function permit2(address owner, address spender, uint256 amount, uint256 deadline, bytes signature) returns()

func (*ISyncSwapPoolTransactorSession) Swap

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) Swap(data []byte, sender common.Address, callback common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function swap(bytes data, address sender, address callback, bytes callbackData) returns((address,uint256) tokenAmount)

func (*ISyncSwapPoolTransactorSession) Transfer

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*ISyncSwapPoolTransactorSession) TransferFrom

func (_ISyncSwapPool *ISyncSwapPoolTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

type ISyncSwapPoolTransfer

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

ISyncSwapPoolTransfer represents a Transfer event raised by the ISyncSwapPool contract.

type ISyncSwapPoolTransferIterator

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

ISyncSwapPoolTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ISyncSwapPool contract.

func (*ISyncSwapPoolTransferIterator) Close

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

func (*ISyncSwapPoolTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

Jump to

Keyboard shortcuts

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