hkyber

package
v0.0.0-...-07f9ec2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const HkyberABI = "" /* 1671-byte string literal not displayed */

HkyberABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hkyber

type Hkyber struct {
	HkyberCaller     // Read-only binding to the contract
	HkyberTransactor // Write-only binding to the contract
	HkyberFilterer   // Log filterer for contract events
}

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

func NewHkyber

func NewHkyber(address common.Address, backend bind.ContractBackend) (*Hkyber, error)

NewHkyber creates a new instance of Hkyber, bound to a specific deployed contract.

type HkyberCaller

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

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

func NewHkyberCaller

func NewHkyberCaller(address common.Address, caller bind.ContractCaller) (*HkyberCaller, error)

NewHkyberCaller creates a new read-only instance of Hkyber, bound to a specific deployed contract.

func (*HkyberCaller) Tokens

func (_Hkyber *HkyberCaller) Tokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Tokens is a free data retrieval call binding the contract method 0x4f64b2be.

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

type HkyberCallerRaw

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

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

func (*HkyberCallerRaw) Call

func (_Hkyber *HkyberCallerRaw) 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 HkyberCallerSession

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

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

func (*HkyberCallerSession) Tokens

func (_Hkyber *HkyberCallerSession) Tokens(arg0 *big.Int) (common.Address, error)

Tokens is a free data retrieval call binding the contract method 0x4f64b2be.

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

type HkyberFilterer

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

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

func NewHkyberFilterer

func NewHkyberFilterer(address common.Address, filterer bind.ContractFilterer) (*HkyberFilterer, error)

NewHkyberFilterer creates a new log filterer instance of Hkyber, bound to a specific deployed contract.

type HkyberRaw

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

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

func (*HkyberRaw) Call

func (_Hkyber *HkyberRaw) 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 (*HkyberRaw) Transact

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

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

func (*HkyberRaw) Transfer

func (_Hkyber *HkyberRaw) 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 HkyberSession

type HkyberSession struct {
	Contract     *Hkyber           // 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
}

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

func (*HkyberSession) SwapEtherToToken

func (_Hkyber *HkyberSession) SwapEtherToToken(value *big.Int, token common.Address, minRate *big.Int) (*types.Transaction, error)

SwapEtherToToken is a paid mutator transaction binding the contract method 0x43ac1dc6.

Solidity: function swapEtherToToken(uint256 value, address token, uint256 minRate) payable returns(uint256 destAmount)

func (*HkyberSession) SwapTokenToEther

func (_Hkyber *HkyberSession) SwapTokenToEther(token common.Address, tokenQty *big.Int, minRate *big.Int) (*types.Transaction, error)

SwapTokenToEther is a paid mutator transaction binding the contract method 0x3bba21dc.

Solidity: function swapTokenToEther(address token, uint256 tokenQty, uint256 minRate) payable returns(uint256 destAmount)

func (*HkyberSession) SwapTokenToToken

func (_Hkyber *HkyberSession) SwapTokenToToken(srcToken common.Address, srcQty *big.Int, destToken common.Address, minRate *big.Int) (*types.Transaction, error)

SwapTokenToToken is a paid mutator transaction binding the contract method 0x7409e2eb.

Solidity: function swapTokenToToken(address srcToken, uint256 srcQty, address destToken, uint256 minRate) payable returns(uint256 destAmount)

func (*HkyberSession) Tokens

func (_Hkyber *HkyberSession) Tokens(arg0 *big.Int) (common.Address, error)

Tokens is a free data retrieval call binding the contract method 0x4f64b2be.

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

type HkyberTransactor

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

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

func NewHkyberTransactor

func NewHkyberTransactor(address common.Address, transactor bind.ContractTransactor) (*HkyberTransactor, error)

NewHkyberTransactor creates a new write-only instance of Hkyber, bound to a specific deployed contract.

func (*HkyberTransactor) SwapEtherToToken

func (_Hkyber *HkyberTransactor) SwapEtherToToken(opts *bind.TransactOpts, value *big.Int, token common.Address, minRate *big.Int) (*types.Transaction, error)

SwapEtherToToken is a paid mutator transaction binding the contract method 0x43ac1dc6.

Solidity: function swapEtherToToken(uint256 value, address token, uint256 minRate) payable returns(uint256 destAmount)

func (*HkyberTransactor) SwapTokenToEther

func (_Hkyber *HkyberTransactor) SwapTokenToEther(opts *bind.TransactOpts, token common.Address, tokenQty *big.Int, minRate *big.Int) (*types.Transaction, error)

SwapTokenToEther is a paid mutator transaction binding the contract method 0x3bba21dc.

Solidity: function swapTokenToEther(address token, uint256 tokenQty, uint256 minRate) payable returns(uint256 destAmount)

func (*HkyberTransactor) SwapTokenToToken

func (_Hkyber *HkyberTransactor) SwapTokenToToken(opts *bind.TransactOpts, srcToken common.Address, srcQty *big.Int, destToken common.Address, minRate *big.Int) (*types.Transaction, error)

SwapTokenToToken is a paid mutator transaction binding the contract method 0x7409e2eb.

Solidity: function swapTokenToToken(address srcToken, uint256 srcQty, address destToken, uint256 minRate) payable returns(uint256 destAmount)

type HkyberTransactorRaw

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

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

func (*HkyberTransactorRaw) Transact

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

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

func (*HkyberTransactorRaw) Transfer

func (_Hkyber *HkyberTransactorRaw) 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 HkyberTransactorSession

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

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

func (*HkyberTransactorSession) SwapEtherToToken

func (_Hkyber *HkyberTransactorSession) SwapEtherToToken(value *big.Int, token common.Address, minRate *big.Int) (*types.Transaction, error)

SwapEtherToToken is a paid mutator transaction binding the contract method 0x43ac1dc6.

Solidity: function swapEtherToToken(uint256 value, address token, uint256 minRate) payable returns(uint256 destAmount)

func (*HkyberTransactorSession) SwapTokenToEther

func (_Hkyber *HkyberTransactorSession) SwapTokenToEther(token common.Address, tokenQty *big.Int, minRate *big.Int) (*types.Transaction, error)

SwapTokenToEther is a paid mutator transaction binding the contract method 0x3bba21dc.

Solidity: function swapTokenToEther(address token, uint256 tokenQty, uint256 minRate) payable returns(uint256 destAmount)

func (*HkyberTransactorSession) SwapTokenToToken

func (_Hkyber *HkyberTransactorSession) SwapTokenToToken(srcToken common.Address, srcQty *big.Int, destToken common.Address, minRate *big.Int) (*types.Transaction, error)

SwapTokenToToken is a paid mutator transaction binding the contract method 0x7409e2eb.

Solidity: function swapTokenToToken(address srcToken, uint256 srcQty, address destToken, uint256 minRate) payable returns(uint256 destAmount)

Jump to

Keyboard shortcuts

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