KyberDMMPool

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KyberDMMPoolABI = KyberDMMPoolMetaData.ABI

KyberDMMPoolABI is the input ABI used to generate the binding from. Deprecated: Use KyberDMMPoolMetaData.ABI instead.

View Source
var KyberDMMPoolMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"MINIMUM_LIQUIDITY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"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\":[],\"name\":\"ampBps\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"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\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"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\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"_reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"_reserve1\",\"type\":\"uint112\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTradeInfo\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"_reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"_reserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"_vReserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"_vReserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint256\",\"name\":\"feeInPrecision\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVolumeTrendData\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"_shortEMA\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"_longEMA\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"_currentBlockVolume\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"_lastTradeBlock\",\"type\":\"uint128\"}],\"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\":\"_token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token1\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"_ampBps\",\"type\":\"uint32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"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\":\"\",\"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\":\"to\",\"type\":\"address\"}],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

KyberDMMPoolMetaData contains all meta data concerning the KyberDMMPool contract.

Functions

This section is empty.

Types

type KyberDMMPool

type KyberDMMPool struct {
	KyberDMMPoolCaller     // Read-only binding to the contract
	KyberDMMPoolTransactor // Write-only binding to the contract
	KyberDMMPoolFilterer   // Log filterer for contract events
}

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

func NewKyberDMMPool

func NewKyberDMMPool(address common.Address, backend bind.ContractBackend) (*KyberDMMPool, error)

NewKyberDMMPool creates a new instance of KyberDMMPool, bound to a specific deployed contract.

type KyberDMMPoolCaller

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

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

func NewKyberDMMPoolCaller

func NewKyberDMMPoolCaller(address common.Address, caller bind.ContractCaller) (*KyberDMMPoolCaller, error)

NewKyberDMMPoolCaller creates a new read-only instance of KyberDMMPool, bound to a specific deployed contract.

func (*KyberDMMPoolCaller) Allowance

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) AmpBps

func (_KyberDMMPool *KyberDMMPoolCaller) AmpBps(opts *bind.CallOpts) (uint32, error)

AmpBps is a free data retrieval call binding the contract method 0x49386b16.

Solidity: function ampBps() view returns(uint32)

func (*KyberDMMPoolCaller) BalanceOf

func (_KyberDMMPool *KyberDMMPoolCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*KyberDMMPoolCaller) Decimals

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) DomainSeparator

func (_KyberDMMPool *KyberDMMPoolCaller) DomainSeparator(opts *bind.CallOpts) ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*KyberDMMPoolCaller) Factory

func (_KyberDMMPool *KyberDMMPoolCaller) Factory(opts *bind.CallOpts) (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*KyberDMMPoolCaller) GetReserves

func (_KyberDMMPool *KyberDMMPoolCaller) GetReserves(opts *bind.CallOpts) (struct {
	Reserve0 *big.Int
	Reserve1 *big.Int
}, error)

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

Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1)

func (*KyberDMMPoolCaller) GetTradeInfo

func (_KyberDMMPool *KyberDMMPoolCaller) GetTradeInfo(opts *bind.CallOpts) (struct {
	Reserve0       *big.Int
	Reserve1       *big.Int
	VReserve0      *big.Int
	VReserve1      *big.Int
	FeeInPrecision *big.Int
}, error)

GetTradeInfo is a free data retrieval call binding the contract method 0xd6694027.

Solidity: function getTradeInfo() view returns(uint112 _reserve0, uint112 _reserve1, uint112 _vReserve0, uint112 _vReserve1, uint256 feeInPrecision)

func (*KyberDMMPoolCaller) GetVolumeTrendData

func (_KyberDMMPool *KyberDMMPoolCaller) GetVolumeTrendData(opts *bind.CallOpts) (struct {
	ShortEMA           *big.Int
	LongEMA            *big.Int
	CurrentBlockVolume *big.Int
	LastTradeBlock     *big.Int
}, error)

GetVolumeTrendData is a free data retrieval call binding the contract method 0x0d94d50b.

Solidity: function getVolumeTrendData() view returns(uint128 _shortEMA, uint128 _longEMA, uint128 _currentBlockVolume, uint128 _lastTradeBlock)

func (*KyberDMMPoolCaller) KLast

func (_KyberDMMPool *KyberDMMPoolCaller) KLast(opts *bind.CallOpts) (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*KyberDMMPoolCaller) MINIMUMLIQUIDITY

func (_KyberDMMPool *KyberDMMPoolCaller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*KyberDMMPoolCaller) Name

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) Nonces

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) PERMITTYPEHASH

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) Symbol

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) Token0

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) Token1

func (_KyberDMMPool *KyberDMMPoolCaller) 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 (*KyberDMMPoolCaller) TotalSupply

func (_KyberDMMPool *KyberDMMPoolCaller) 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)

type KyberDMMPoolCallerRaw

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

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

func (*KyberDMMPoolCallerRaw) Call

func (_KyberDMMPool *KyberDMMPoolCallerRaw) 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 KyberDMMPoolCallerSession

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

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

func (*KyberDMMPoolCallerSession) Allowance

func (_KyberDMMPool *KyberDMMPoolCallerSession) 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 (*KyberDMMPoolCallerSession) AmpBps

func (_KyberDMMPool *KyberDMMPoolCallerSession) AmpBps() (uint32, error)

AmpBps is a free data retrieval call binding the contract method 0x49386b16.

Solidity: function ampBps() view returns(uint32)

func (*KyberDMMPoolCallerSession) BalanceOf

func (_KyberDMMPool *KyberDMMPoolCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*KyberDMMPoolCallerSession) Decimals

func (_KyberDMMPool *KyberDMMPoolCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*KyberDMMPoolCallerSession) DomainSeparator

func (_KyberDMMPool *KyberDMMPoolCallerSession) DomainSeparator() ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*KyberDMMPoolCallerSession) Factory

func (_KyberDMMPool *KyberDMMPoolCallerSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*KyberDMMPoolCallerSession) GetReserves

func (_KyberDMMPool *KyberDMMPoolCallerSession) GetReserves() (struct {
	Reserve0 *big.Int
	Reserve1 *big.Int
}, error)

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

Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1)

func (*KyberDMMPoolCallerSession) GetTradeInfo

func (_KyberDMMPool *KyberDMMPoolCallerSession) GetTradeInfo() (struct {
	Reserve0       *big.Int
	Reserve1       *big.Int
	VReserve0      *big.Int
	VReserve1      *big.Int
	FeeInPrecision *big.Int
}, error)

GetTradeInfo is a free data retrieval call binding the contract method 0xd6694027.

Solidity: function getTradeInfo() view returns(uint112 _reserve0, uint112 _reserve1, uint112 _vReserve0, uint112 _vReserve1, uint256 feeInPrecision)

func (*KyberDMMPoolCallerSession) GetVolumeTrendData

func (_KyberDMMPool *KyberDMMPoolCallerSession) GetVolumeTrendData() (struct {
	ShortEMA           *big.Int
	LongEMA            *big.Int
	CurrentBlockVolume *big.Int
	LastTradeBlock     *big.Int
}, error)

GetVolumeTrendData is a free data retrieval call binding the contract method 0x0d94d50b.

Solidity: function getVolumeTrendData() view returns(uint128 _shortEMA, uint128 _longEMA, uint128 _currentBlockVolume, uint128 _lastTradeBlock)

func (*KyberDMMPoolCallerSession) KLast

func (_KyberDMMPool *KyberDMMPoolCallerSession) KLast() (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*KyberDMMPoolCallerSession) MINIMUMLIQUIDITY

func (_KyberDMMPool *KyberDMMPoolCallerSession) MINIMUMLIQUIDITY() (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*KyberDMMPoolCallerSession) Name

func (_KyberDMMPool *KyberDMMPoolCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*KyberDMMPoolCallerSession) Nonces

func (_KyberDMMPool *KyberDMMPoolCallerSession) 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 (*KyberDMMPoolCallerSession) PERMITTYPEHASH

func (_KyberDMMPool *KyberDMMPoolCallerSession) PERMITTYPEHASH() ([32]byte, error)

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

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*KyberDMMPoolCallerSession) Symbol

func (_KyberDMMPool *KyberDMMPoolCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*KyberDMMPoolCallerSession) Token0

func (_KyberDMMPool *KyberDMMPoolCallerSession) Token0() (common.Address, error)

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

Solidity: function token0() view returns(address)

func (*KyberDMMPoolCallerSession) Token1

func (_KyberDMMPool *KyberDMMPoolCallerSession) Token1() (common.Address, error)

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

Solidity: function token1() view returns(address)

func (*KyberDMMPoolCallerSession) TotalSupply

func (_KyberDMMPool *KyberDMMPoolCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type KyberDMMPoolFilterer

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

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

func NewKyberDMMPoolFilterer

func NewKyberDMMPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*KyberDMMPoolFilterer, error)

NewKyberDMMPoolFilterer creates a new log filterer instance of KyberDMMPool, bound to a specific deployed contract.

type KyberDMMPoolRaw

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

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

func (*KyberDMMPoolRaw) Call

func (_KyberDMMPool *KyberDMMPoolRaw) 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 (*KyberDMMPoolRaw) Transact

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

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

func (*KyberDMMPoolRaw) Transfer

func (_KyberDMMPool *KyberDMMPoolRaw) 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 KyberDMMPoolSession

type KyberDMMPoolSession struct {
	Contract     *KyberDMMPool     // 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
}

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

func (*KyberDMMPoolSession) Allowance

func (_KyberDMMPool *KyberDMMPoolSession) 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 (*KyberDMMPoolSession) AmpBps

func (_KyberDMMPool *KyberDMMPoolSession) AmpBps() (uint32, error)

AmpBps is a free data retrieval call binding the contract method 0x49386b16.

Solidity: function ampBps() view returns(uint32)

func (*KyberDMMPoolSession) Approve

func (_KyberDMMPool *KyberDMMPoolSession) 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 (*KyberDMMPoolSession) BalanceOf

func (_KyberDMMPool *KyberDMMPoolSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*KyberDMMPoolSession) Burn

func (_KyberDMMPool *KyberDMMPoolSession) Burn(to common.Address) (*types.Transaction, error)

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

Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)

func (*KyberDMMPoolSession) Decimals

func (_KyberDMMPool *KyberDMMPoolSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*KyberDMMPoolSession) DecreaseAllowance

func (_KyberDMMPool *KyberDMMPoolSession) 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 (*KyberDMMPoolSession) DomainSeparator

func (_KyberDMMPool *KyberDMMPoolSession) DomainSeparator() ([32]byte, error)

DomainSeparator is a free data retrieval call binding the contract method 0xf698da25.

Solidity: function domainSeparator() view returns(bytes32)

func (*KyberDMMPoolSession) Factory

func (_KyberDMMPool *KyberDMMPoolSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*KyberDMMPoolSession) GetReserves

func (_KyberDMMPool *KyberDMMPoolSession) GetReserves() (struct {
	Reserve0 *big.Int
	Reserve1 *big.Int
}, error)

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

Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1)

func (*KyberDMMPoolSession) GetTradeInfo

func (_KyberDMMPool *KyberDMMPoolSession) GetTradeInfo() (struct {
	Reserve0       *big.Int
	Reserve1       *big.Int
	VReserve0      *big.Int
	VReserve1      *big.Int
	FeeInPrecision *big.Int
}, error)

GetTradeInfo is a free data retrieval call binding the contract method 0xd6694027.

Solidity: function getTradeInfo() view returns(uint112 _reserve0, uint112 _reserve1, uint112 _vReserve0, uint112 _vReserve1, uint256 feeInPrecision)

func (*KyberDMMPoolSession) GetVolumeTrendData

func (_KyberDMMPool *KyberDMMPoolSession) GetVolumeTrendData() (struct {
	ShortEMA           *big.Int
	LongEMA            *big.Int
	CurrentBlockVolume *big.Int
	LastTradeBlock     *big.Int
}, error)

GetVolumeTrendData is a free data retrieval call binding the contract method 0x0d94d50b.

Solidity: function getVolumeTrendData() view returns(uint128 _shortEMA, uint128 _longEMA, uint128 _currentBlockVolume, uint128 _lastTradeBlock)

func (*KyberDMMPoolSession) IncreaseAllowance

func (_KyberDMMPool *KyberDMMPoolSession) 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 (*KyberDMMPoolSession) Initialize

func (_KyberDMMPool *KyberDMMPoolSession) Initialize(_token0 common.Address, _token1 common.Address, _ampBps uint32) (*types.Transaction, error)

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

Solidity: function initialize(address _token0, address _token1, uint32 _ampBps) returns()

func (*KyberDMMPoolSession) KLast

func (_KyberDMMPool *KyberDMMPoolSession) KLast() (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*KyberDMMPoolSession) MINIMUMLIQUIDITY

func (_KyberDMMPool *KyberDMMPoolSession) MINIMUMLIQUIDITY() (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*KyberDMMPoolSession) Mint

func (_KyberDMMPool *KyberDMMPoolSession) Mint(to common.Address) (*types.Transaction, error)

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

Solidity: function mint(address to) returns(uint256 liquidity)

func (*KyberDMMPoolSession) Name

func (_KyberDMMPool *KyberDMMPoolSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*KyberDMMPoolSession) Nonces

func (_KyberDMMPool *KyberDMMPoolSession) 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 (*KyberDMMPoolSession) PERMITTYPEHASH

func (_KyberDMMPool *KyberDMMPoolSession) PERMITTYPEHASH() ([32]byte, error)

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

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*KyberDMMPoolSession) Permit

func (_KyberDMMPool *KyberDMMPoolSession) 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 (*KyberDMMPoolSession) Skim

func (_KyberDMMPool *KyberDMMPoolSession) Skim(to common.Address) (*types.Transaction, error)

Skim is a paid mutator transaction binding the contract method 0xbc25cf77.

Solidity: function skim(address to) returns()

func (*KyberDMMPoolSession) Swap

func (_KyberDMMPool *KyberDMMPoolSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes callbackData) returns()

func (*KyberDMMPoolSession) Symbol

func (_KyberDMMPool *KyberDMMPoolSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*KyberDMMPoolSession) Sync

func (_KyberDMMPool *KyberDMMPoolSession) Sync() (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*KyberDMMPoolSession) Token0

func (_KyberDMMPool *KyberDMMPoolSession) Token0() (common.Address, error)

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

Solidity: function token0() view returns(address)

func (*KyberDMMPoolSession) Token1

func (_KyberDMMPool *KyberDMMPoolSession) Token1() (common.Address, error)

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

Solidity: function token1() view returns(address)

func (*KyberDMMPoolSession) TotalSupply

func (_KyberDMMPool *KyberDMMPoolSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*KyberDMMPoolSession) Transfer

func (_KyberDMMPool *KyberDMMPoolSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*KyberDMMPoolSession) TransferFrom

func (_KyberDMMPool *KyberDMMPoolSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type KyberDMMPoolTransactor

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

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

func NewKyberDMMPoolTransactor

func NewKyberDMMPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*KyberDMMPoolTransactor, error)

NewKyberDMMPoolTransactor creates a new write-only instance of KyberDMMPool, bound to a specific deployed contract.

func (*KyberDMMPoolTransactor) Approve

func (_KyberDMMPool *KyberDMMPoolTransactor) 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 (*KyberDMMPoolTransactor) Burn

func (_KyberDMMPool *KyberDMMPoolTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

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

Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)

func (*KyberDMMPoolTransactor) DecreaseAllowance

func (_KyberDMMPool *KyberDMMPoolTransactor) 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 (*KyberDMMPoolTransactor) IncreaseAllowance

func (_KyberDMMPool *KyberDMMPoolTransactor) 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 (*KyberDMMPoolTransactor) Initialize

func (_KyberDMMPool *KyberDMMPoolTransactor) Initialize(opts *bind.TransactOpts, _token0 common.Address, _token1 common.Address, _ampBps uint32) (*types.Transaction, error)

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

Solidity: function initialize(address _token0, address _token1, uint32 _ampBps) returns()

func (*KyberDMMPoolTransactor) Mint

func (_KyberDMMPool *KyberDMMPoolTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

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

Solidity: function mint(address to) returns(uint256 liquidity)

func (*KyberDMMPoolTransactor) Permit

func (_KyberDMMPool *KyberDMMPoolTransactor) 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 (*KyberDMMPoolTransactor) Skim

func (_KyberDMMPool *KyberDMMPoolTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)

Skim is a paid mutator transaction binding the contract method 0xbc25cf77.

Solidity: function skim(address to) returns()

func (*KyberDMMPoolTransactor) Swap

func (_KyberDMMPool *KyberDMMPoolTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, to common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes callbackData) returns()

func (*KyberDMMPoolTransactor) Sync

func (_KyberDMMPool *KyberDMMPoolTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*KyberDMMPoolTransactor) Transfer

func (_KyberDMMPool *KyberDMMPoolTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*KyberDMMPoolTransactor) TransferFrom

func (_KyberDMMPool *KyberDMMPoolTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type KyberDMMPoolTransactorRaw

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

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

func (*KyberDMMPoolTransactorRaw) Transact

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

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

func (*KyberDMMPoolTransactorRaw) Transfer

func (_KyberDMMPool *KyberDMMPoolTransactorRaw) 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 KyberDMMPoolTransactorSession

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

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

func (*KyberDMMPoolTransactorSession) Approve

func (_KyberDMMPool *KyberDMMPoolTransactorSession) 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 (*KyberDMMPoolTransactorSession) Burn

func (_KyberDMMPool *KyberDMMPoolTransactorSession) Burn(to common.Address) (*types.Transaction, error)

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

Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)

func (*KyberDMMPoolTransactorSession) DecreaseAllowance

func (_KyberDMMPool *KyberDMMPoolTransactorSession) 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 (*KyberDMMPoolTransactorSession) IncreaseAllowance

func (_KyberDMMPool *KyberDMMPoolTransactorSession) 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 (*KyberDMMPoolTransactorSession) Initialize

func (_KyberDMMPool *KyberDMMPoolTransactorSession) Initialize(_token0 common.Address, _token1 common.Address, _ampBps uint32) (*types.Transaction, error)

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

Solidity: function initialize(address _token0, address _token1, uint32 _ampBps) returns()

func (*KyberDMMPoolTransactorSession) Mint

func (_KyberDMMPool *KyberDMMPoolTransactorSession) Mint(to common.Address) (*types.Transaction, error)

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

Solidity: function mint(address to) returns(uint256 liquidity)

func (*KyberDMMPoolTransactorSession) Permit

func (_KyberDMMPool *KyberDMMPoolTransactorSession) 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 (*KyberDMMPoolTransactorSession) Skim

func (_KyberDMMPool *KyberDMMPoolTransactorSession) Skim(to common.Address) (*types.Transaction, error)

Skim is a paid mutator transaction binding the contract method 0xbc25cf77.

Solidity: function skim(address to) returns()

func (*KyberDMMPoolTransactorSession) Swap

func (_KyberDMMPool *KyberDMMPoolTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, callbackData []byte) (*types.Transaction, error)

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

Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes callbackData) returns()

func (*KyberDMMPoolTransactorSession) Sync

func (_KyberDMMPool *KyberDMMPoolTransactorSession) Sync() (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*KyberDMMPoolTransactorSession) Transfer

func (_KyberDMMPool *KyberDMMPoolTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*KyberDMMPoolTransactorSession) TransferFrom

func (_KyberDMMPool *KyberDMMPoolTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

Jump to

Keyboard shortcuts

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