Documentation ¶
Index ¶
- Variables
- type KyberZap
- type KyberZapCaller
- type KyberZapCallerRaw
- type KyberZapCallerSession
- type KyberZapFilterer
- type KyberZapRaw
- func (_KyberZap *KyberZapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_KyberZap *KyberZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_KyberZap *KyberZapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type KyberZapSession
- func (_KyberZap *KyberZapSession) ZapIn(tokenIn common.Address, tokenOut common.Address, userIn *big.Int, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapSession) ZapInEth(tokenOut common.Address, pool common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapSession) ZapOut(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapSession) ZapOutPermit(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- type KyberZapTransactor
- func (_KyberZap *KyberZapTransactor) ZapIn(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapTransactor) ZapInEth(opts *bind.TransactOpts, tokenOut common.Address, pool common.Address, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapTransactor) ZapOut(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapTransactor) ZapOutPermit(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, ...) (*types.Transaction, error)
- type KyberZapTransactorRaw
- type KyberZapTransactorSession
- func (_KyberZap *KyberZapTransactorSession) ZapIn(tokenIn common.Address, tokenOut common.Address, userIn *big.Int, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapTransactorSession) ZapInEth(tokenOut common.Address, pool common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapTransactorSession) ZapOut(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
- func (_KyberZap *KyberZapTransactorSession) ZapOutPermit(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, ...) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var KyberZapABI = KyberZapMetaData.ABI
KyberZapABI is the input ABI used to generate the binding from. Deprecated: Use KyberZapMetaData.ABI instead.
var KyberZapMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"userIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minLpQty\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"zapIn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minLpQty\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"zapInEth\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minTokenOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"zapOut\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minTokenOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"zapOutPermit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
KyberZapMetaData contains all meta data concerning the KyberZap contract.
Functions ¶
This section is empty.
Types ¶
type KyberZap ¶
type KyberZap struct { KyberZapCaller // Read-only binding to the contract KyberZapTransactor // Write-only binding to the contract KyberZapFilterer // Log filterer for contract events }
KyberZap is an auto generated Go binding around an Ethereum contract.
func NewKyberZap ¶
NewKyberZap creates a new instance of KyberZap, bound to a specific deployed contract.
type KyberZapCaller ¶
type KyberZapCaller struct {
// contains filtered or unexported fields
}
KyberZapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewKyberZapCaller ¶
func NewKyberZapCaller(address common.Address, caller bind.ContractCaller) (*KyberZapCaller, error)
NewKyberZapCaller creates a new read-only instance of KyberZap, bound to a specific deployed contract.
type KyberZapCallerRaw ¶
type KyberZapCallerRaw struct {
Contract *KyberZapCaller // Generic read-only contract binding to access the raw methods on
}
KyberZapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*KyberZapCallerRaw) Call ¶
func (_KyberZap *KyberZapCallerRaw) 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 KyberZapCallerSession ¶
type KyberZapCallerSession struct { Contract *KyberZapCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
KyberZapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type KyberZapFilterer ¶
type KyberZapFilterer struct {
// contains filtered or unexported fields
}
KyberZapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewKyberZapFilterer ¶
func NewKyberZapFilterer(address common.Address, filterer bind.ContractFilterer) (*KyberZapFilterer, error)
NewKyberZapFilterer creates a new log filterer instance of KyberZap, bound to a specific deployed contract.
type KyberZapRaw ¶
type KyberZapRaw struct {
Contract *KyberZap // Generic contract binding to access the raw methods on
}
KyberZapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*KyberZapRaw) Call ¶
func (_KyberZap *KyberZapRaw) 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 (*KyberZapRaw) Transact ¶
func (_KyberZap *KyberZapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KyberZapRaw) Transfer ¶
func (_KyberZap *KyberZapRaw) 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 KyberZapSession ¶
type KyberZapSession struct { Contract *KyberZap // 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 }
KyberZapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*KyberZapSession) ZapIn ¶
func (_KyberZap *KyberZapSession) ZapIn(tokenIn common.Address, tokenOut common.Address, userIn *big.Int, pool common.Address, to common.Address, minLpQty *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapIn is a paid mutator transaction binding the contract method 0x5ce9303a.
Solidity: function zapIn(address tokenIn, address tokenOut, uint256 userIn, address pool, address to, uint256 minLpQty, uint256 deadline) returns()
func (*KyberZapSession) ZapInEth ¶
func (_KyberZap *KyberZapSession) ZapInEth(tokenOut common.Address, pool common.Address, to common.Address, minLpQty *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapInEth is a paid mutator transaction binding the contract method 0x71679309.
Solidity: function zapInEth(address tokenOut, address pool, address to, uint256 minLpQty, uint256 deadline) payable returns()
func (*KyberZapSession) ZapOut ¶
func (_KyberZap *KyberZapSession) ZapOut(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, pool common.Address, to common.Address, minTokenOut *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapOut is a paid mutator transaction binding the contract method 0xd4f9ec73.
Solidity: function zapOut(address tokenIn, address tokenOut, uint256 liquidity, address pool, address to, uint256 minTokenOut, uint256 deadline) returns()
func (*KyberZapSession) ZapOutPermit ¶
func (_KyberZap *KyberZapSession) ZapOutPermit(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, pool common.Address, to common.Address, minTokenOut *big.Int, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
ZapOutPermit is a paid mutator transaction binding the contract method 0x2bb1a4ec.
Solidity: function zapOutPermit(address tokenIn, address tokenOut, uint256 liquidity, address pool, address to, uint256 minTokenOut, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns()
type KyberZapTransactor ¶
type KyberZapTransactor struct {
// contains filtered or unexported fields
}
KyberZapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewKyberZapTransactor ¶
func NewKyberZapTransactor(address common.Address, transactor bind.ContractTransactor) (*KyberZapTransactor, error)
NewKyberZapTransactor creates a new write-only instance of KyberZap, bound to a specific deployed contract.
func (*KyberZapTransactor) ZapIn ¶
func (_KyberZap *KyberZapTransactor) ZapIn(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, userIn *big.Int, pool common.Address, to common.Address, minLpQty *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapIn is a paid mutator transaction binding the contract method 0x5ce9303a.
Solidity: function zapIn(address tokenIn, address tokenOut, uint256 userIn, address pool, address to, uint256 minLpQty, uint256 deadline) returns()
func (*KyberZapTransactor) ZapInEth ¶
func (_KyberZap *KyberZapTransactor) ZapInEth(opts *bind.TransactOpts, tokenOut common.Address, pool common.Address, to common.Address, minLpQty *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapInEth is a paid mutator transaction binding the contract method 0x71679309.
Solidity: function zapInEth(address tokenOut, address pool, address to, uint256 minLpQty, uint256 deadline) payable returns()
func (*KyberZapTransactor) ZapOut ¶
func (_KyberZap *KyberZapTransactor) ZapOut(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, pool common.Address, to common.Address, minTokenOut *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapOut is a paid mutator transaction binding the contract method 0xd4f9ec73.
Solidity: function zapOut(address tokenIn, address tokenOut, uint256 liquidity, address pool, address to, uint256 minTokenOut, uint256 deadline) returns()
func (*KyberZapTransactor) ZapOutPermit ¶
func (_KyberZap *KyberZapTransactor) ZapOutPermit(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, pool common.Address, to common.Address, minTokenOut *big.Int, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
ZapOutPermit is a paid mutator transaction binding the contract method 0x2bb1a4ec.
Solidity: function zapOutPermit(address tokenIn, address tokenOut, uint256 liquidity, address pool, address to, uint256 minTokenOut, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns()
type KyberZapTransactorRaw ¶
type KyberZapTransactorRaw struct {
Contract *KyberZapTransactor // Generic write-only contract binding to access the raw methods on
}
KyberZapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*KyberZapTransactorRaw) Transact ¶
func (_KyberZap *KyberZapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KyberZapTransactorRaw) Transfer ¶
func (_KyberZap *KyberZapTransactorRaw) 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 KyberZapTransactorSession ¶
type KyberZapTransactorSession struct { Contract *KyberZapTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
KyberZapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*KyberZapTransactorSession) ZapIn ¶
func (_KyberZap *KyberZapTransactorSession) ZapIn(tokenIn common.Address, tokenOut common.Address, userIn *big.Int, pool common.Address, to common.Address, minLpQty *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapIn is a paid mutator transaction binding the contract method 0x5ce9303a.
Solidity: function zapIn(address tokenIn, address tokenOut, uint256 userIn, address pool, address to, uint256 minLpQty, uint256 deadline) returns()
func (*KyberZapTransactorSession) ZapInEth ¶
func (_KyberZap *KyberZapTransactorSession) ZapInEth(tokenOut common.Address, pool common.Address, to common.Address, minLpQty *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapInEth is a paid mutator transaction binding the contract method 0x71679309.
Solidity: function zapInEth(address tokenOut, address pool, address to, uint256 minLpQty, uint256 deadline) payable returns()
func (*KyberZapTransactorSession) ZapOut ¶
func (_KyberZap *KyberZapTransactorSession) ZapOut(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, pool common.Address, to common.Address, minTokenOut *big.Int, deadline *big.Int) (*types.Transaction, error)
ZapOut is a paid mutator transaction binding the contract method 0xd4f9ec73.
Solidity: function zapOut(address tokenIn, address tokenOut, uint256 liquidity, address pool, address to, uint256 minTokenOut, uint256 deadline) returns()
func (*KyberZapTransactorSession) ZapOutPermit ¶
func (_KyberZap *KyberZapTransactorSession) ZapOutPermit(tokenIn common.Address, tokenOut common.Address, liquidity *big.Int, pool common.Address, to common.Address, minTokenOut *big.Int, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
ZapOutPermit is a paid mutator transaction binding the contract method 0x2bb1a4ec.
Solidity: function zapOutPermit(address tokenIn, address tokenOut, uint256 liquidity, address pool, address to, uint256 minTokenOut, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns()