axialRouter

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AxialRouterABI = AxialRouterMetaData.ABI

AxialRouterABI is the input ABI used to generate the binding from. Deprecated: Use AxialRouterMetaData.ABI instead.

View Source
var AxialRouterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"minToMint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"calculateRemoveLiquidity\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndex\",\"type\":\"uint8\"}],\"name\":\"calculateRemoveLiquidityOneToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"availableTokenAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"dx\",\"type\":\"uint256\"}],\"name\":\"calculateSwap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bool\",\"name\":\"deposit\",\"type\":\"bool\"}],\"name\":\"calculateTokenAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"flashLoanFeeBPS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getA\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAPrecise\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"index\",\"type\":\"uint8\"}],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"index\",\"type\":\"uint8\"}],\"name\":\"getTokenBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"}],\"name\":\"getTokenIndex\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"minAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"maxBurnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityImbalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndex\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"minAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityOneToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"tokenIndexFrom\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"tokenIndexTo\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"dx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDy\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AxialRouterMetaData contains all meta data concerning the AxialRouter contract.

Functions

This section is empty.

Types

type AxialRouter

type AxialRouter struct {
	AxialRouterCaller     // Read-only binding to the contract
	AxialRouterTransactor // Write-only binding to the contract
	AxialRouterFilterer   // Log filterer for contract events
}

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

func NewAxialRouter

func NewAxialRouter(address common.Address, backend bind.ContractBackend) (*AxialRouter, error)

NewAxialRouter creates a new instance of AxialRouter, bound to a specific deployed contract.

type AxialRouterCaller

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

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

func NewAxialRouterCaller

func NewAxialRouterCaller(address common.Address, caller bind.ContractCaller) (*AxialRouterCaller, error)

NewAxialRouterCaller creates a new read-only instance of AxialRouter, bound to a specific deployed contract.

func (*AxialRouterCaller) CalculateRemoveLiquidity

func (_AxialRouter *AxialRouterCaller) CalculateRemoveLiquidity(opts *bind.CallOpts, amount *big.Int) ([]*big.Int, error)

CalculateRemoveLiquidity is a free data retrieval call binding the contract method 0xf2fad2b6.

Solidity: function calculateRemoveLiquidity(uint256 amount) view returns(uint256[])

func (*AxialRouterCaller) CalculateRemoveLiquidityOneToken

func (_AxialRouter *AxialRouterCaller) CalculateRemoveLiquidityOneToken(opts *bind.CallOpts, tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)

CalculateRemoveLiquidityOneToken is a free data retrieval call binding the contract method 0x342a87a1.

Solidity: function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) view returns(uint256 availableTokenAmount)

func (*AxialRouterCaller) CalculateSwap

func (_AxialRouter *AxialRouterCaller) CalculateSwap(opts *bind.CallOpts, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)

CalculateSwap is a free data retrieval call binding the contract method 0xa95b089f.

Solidity: function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns(uint256)

func (*AxialRouterCaller) CalculateTokenAmount

func (_AxialRouter *AxialRouterCaller) CalculateTokenAmount(opts *bind.CallOpts, amounts []*big.Int, deposit bool) (*big.Int, error)

CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.

Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)

func (*AxialRouterCaller) FlashLoanFeeBPS

func (_AxialRouter *AxialRouterCaller) FlashLoanFeeBPS(opts *bind.CallOpts) (*big.Int, error)

FlashLoanFeeBPS is a free data retrieval call binding the contract method 0x7f1c825a.

Solidity: function flashLoanFeeBPS() view returns(uint256)

func (*AxialRouterCaller) GetA

func (_AxialRouter *AxialRouterCaller) GetA(opts *bind.CallOpts) (*big.Int, error)

GetA is a free data retrieval call binding the contract method 0xd46300fd.

Solidity: function getA() view returns(uint256)

func (*AxialRouterCaller) GetAPrecise

func (_AxialRouter *AxialRouterCaller) GetAPrecise(opts *bind.CallOpts) (*big.Int, error)

GetAPrecise is a free data retrieval call binding the contract method 0x0ba81959.

Solidity: function getAPrecise() view returns(uint256)

func (*AxialRouterCaller) GetToken

func (_AxialRouter *AxialRouterCaller) GetToken(opts *bind.CallOpts, index uint8) (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x82b86600.

Solidity: function getToken(uint8 index) view returns(address)

func (*AxialRouterCaller) GetTokenBalance

func (_AxialRouter *AxialRouterCaller) GetTokenBalance(opts *bind.CallOpts, index uint8) (*big.Int, error)

GetTokenBalance is a free data retrieval call binding the contract method 0x91ceb3eb.

Solidity: function getTokenBalance(uint8 index) view returns(uint256)

func (*AxialRouterCaller) GetTokenIndex

func (_AxialRouter *AxialRouterCaller) GetTokenIndex(opts *bind.CallOpts, tokenAddress common.Address) (uint8, error)

GetTokenIndex is a free data retrieval call binding the contract method 0x66c0bd24.

Solidity: function getTokenIndex(address tokenAddress) view returns(uint8)

type AxialRouterCallerRaw

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

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

func (*AxialRouterCallerRaw) Call

func (_AxialRouter *AxialRouterCallerRaw) 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 AxialRouterCallerSession

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

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

func (*AxialRouterCallerSession) CalculateRemoveLiquidity

func (_AxialRouter *AxialRouterCallerSession) CalculateRemoveLiquidity(amount *big.Int) ([]*big.Int, error)

CalculateRemoveLiquidity is a free data retrieval call binding the contract method 0xf2fad2b6.

Solidity: function calculateRemoveLiquidity(uint256 amount) view returns(uint256[])

func (*AxialRouterCallerSession) CalculateRemoveLiquidityOneToken

func (_AxialRouter *AxialRouterCallerSession) CalculateRemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)

CalculateRemoveLiquidityOneToken is a free data retrieval call binding the contract method 0x342a87a1.

Solidity: function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) view returns(uint256 availableTokenAmount)

func (*AxialRouterCallerSession) CalculateSwap

func (_AxialRouter *AxialRouterCallerSession) CalculateSwap(tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)

CalculateSwap is a free data retrieval call binding the contract method 0xa95b089f.

Solidity: function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns(uint256)

func (*AxialRouterCallerSession) CalculateTokenAmount

func (_AxialRouter *AxialRouterCallerSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)

CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.

Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)

func (*AxialRouterCallerSession) FlashLoanFeeBPS

func (_AxialRouter *AxialRouterCallerSession) FlashLoanFeeBPS() (*big.Int, error)

FlashLoanFeeBPS is a free data retrieval call binding the contract method 0x7f1c825a.

Solidity: function flashLoanFeeBPS() view returns(uint256)

func (*AxialRouterCallerSession) GetA

func (_AxialRouter *AxialRouterCallerSession) GetA() (*big.Int, error)

GetA is a free data retrieval call binding the contract method 0xd46300fd.

Solidity: function getA() view returns(uint256)

func (*AxialRouterCallerSession) GetAPrecise

func (_AxialRouter *AxialRouterCallerSession) GetAPrecise() (*big.Int, error)

GetAPrecise is a free data retrieval call binding the contract method 0x0ba81959.

Solidity: function getAPrecise() view returns(uint256)

func (*AxialRouterCallerSession) GetToken

func (_AxialRouter *AxialRouterCallerSession) GetToken(index uint8) (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x82b86600.

Solidity: function getToken(uint8 index) view returns(address)

func (*AxialRouterCallerSession) GetTokenBalance

func (_AxialRouter *AxialRouterCallerSession) GetTokenBalance(index uint8) (*big.Int, error)

GetTokenBalance is a free data retrieval call binding the contract method 0x91ceb3eb.

Solidity: function getTokenBalance(uint8 index) view returns(uint256)

func (*AxialRouterCallerSession) GetTokenIndex

func (_AxialRouter *AxialRouterCallerSession) GetTokenIndex(tokenAddress common.Address) (uint8, error)

GetTokenIndex is a free data retrieval call binding the contract method 0x66c0bd24.

Solidity: function getTokenIndex(address tokenAddress) view returns(uint8)

type AxialRouterFilterer

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

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

func NewAxialRouterFilterer

func NewAxialRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*AxialRouterFilterer, error)

NewAxialRouterFilterer creates a new log filterer instance of AxialRouter, bound to a specific deployed contract.

type AxialRouterRaw

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

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

func (*AxialRouterRaw) Call

func (_AxialRouter *AxialRouterRaw) 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 (*AxialRouterRaw) Transact

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

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

func (*AxialRouterRaw) Transfer

func (_AxialRouter *AxialRouterRaw) 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 AxialRouterSession

type AxialRouterSession struct {
	Contract     *AxialRouter      // 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
}

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

func (*AxialRouterSession) AddLiquidity

func (_AxialRouter *AxialRouterSession) AddLiquidity(amounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x4d49e87d.

Solidity: function addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline) returns(uint256)

func (*AxialRouterSession) CalculateRemoveLiquidity

func (_AxialRouter *AxialRouterSession) CalculateRemoveLiquidity(amount *big.Int) ([]*big.Int, error)

CalculateRemoveLiquidity is a free data retrieval call binding the contract method 0xf2fad2b6.

Solidity: function calculateRemoveLiquidity(uint256 amount) view returns(uint256[])

func (*AxialRouterSession) CalculateRemoveLiquidityOneToken

func (_AxialRouter *AxialRouterSession) CalculateRemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8) (*big.Int, error)

CalculateRemoveLiquidityOneToken is a free data retrieval call binding the contract method 0x342a87a1.

Solidity: function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) view returns(uint256 availableTokenAmount)

func (*AxialRouterSession) CalculateSwap

func (_AxialRouter *AxialRouterSession) CalculateSwap(tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int) (*big.Int, error)

CalculateSwap is a free data retrieval call binding the contract method 0xa95b089f.

Solidity: function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) view returns(uint256)

func (*AxialRouterSession) CalculateTokenAmount

func (_AxialRouter *AxialRouterSession) CalculateTokenAmount(amounts []*big.Int, deposit bool) (*big.Int, error)

CalculateTokenAmount is a free data retrieval call binding the contract method 0xe6ab2806.

Solidity: function calculateTokenAmount(uint256[] amounts, bool deposit) view returns(uint256)

func (*AxialRouterSession) FlashLoan

func (_AxialRouter *AxialRouterSession) FlashLoan(receiver common.Address, token common.Address, amount *big.Int, params []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.

Solidity: function flashLoan(address receiver, address token, uint256 amount, bytes params) returns()

func (*AxialRouterSession) FlashLoanFeeBPS

func (_AxialRouter *AxialRouterSession) FlashLoanFeeBPS() (*big.Int, error)

FlashLoanFeeBPS is a free data retrieval call binding the contract method 0x7f1c825a.

Solidity: function flashLoanFeeBPS() view returns(uint256)

func (*AxialRouterSession) GetA

func (_AxialRouter *AxialRouterSession) GetA() (*big.Int, error)

GetA is a free data retrieval call binding the contract method 0xd46300fd.

Solidity: function getA() view returns(uint256)

func (*AxialRouterSession) GetAPrecise

func (_AxialRouter *AxialRouterSession) GetAPrecise() (*big.Int, error)

GetAPrecise is a free data retrieval call binding the contract method 0x0ba81959.

Solidity: function getAPrecise() view returns(uint256)

func (*AxialRouterSession) GetToken

func (_AxialRouter *AxialRouterSession) GetToken(index uint8) (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x82b86600.

Solidity: function getToken(uint8 index) view returns(address)

func (*AxialRouterSession) GetTokenBalance

func (_AxialRouter *AxialRouterSession) GetTokenBalance(index uint8) (*big.Int, error)

GetTokenBalance is a free data retrieval call binding the contract method 0x91ceb3eb.

Solidity: function getTokenBalance(uint8 index) view returns(uint256)

func (*AxialRouterSession) GetTokenIndex

func (_AxialRouter *AxialRouterSession) GetTokenIndex(tokenAddress common.Address) (uint8, error)

GetTokenIndex is a free data retrieval call binding the contract method 0x66c0bd24.

Solidity: function getTokenIndex(address tokenAddress) view returns(uint8)

func (*AxialRouterSession) RemoveLiquidity

func (_AxialRouter *AxialRouterSession) RemoveLiquidity(amount *big.Int, minAmounts []*big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0x31cd52b0.

Solidity: function removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) returns(uint256[])

func (*AxialRouterSession) RemoveLiquidityImbalance

func (_AxialRouter *AxialRouterSession) RemoveLiquidityImbalance(amounts []*big.Int, maxBurnAmount *big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0x84cdd9bc.

Solidity: function removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) returns(uint256)

func (*AxialRouterSession) RemoveLiquidityOneToken

func (_AxialRouter *AxialRouterSession) RemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8, minAmount *big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidityOneToken is a paid mutator transaction binding the contract method 0x3e3a1560.

Solidity: function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) returns(uint256)

func (*AxialRouterSession) Swap

func (_AxialRouter *AxialRouterSession) Swap(tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)

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

Solidity: function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns(uint256)

type AxialRouterTransactor

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

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

func NewAxialRouterTransactor

func NewAxialRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*AxialRouterTransactor, error)

NewAxialRouterTransactor creates a new write-only instance of AxialRouter, bound to a specific deployed contract.

func (*AxialRouterTransactor) AddLiquidity

func (_AxialRouter *AxialRouterTransactor) AddLiquidity(opts *bind.TransactOpts, amounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x4d49e87d.

Solidity: function addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline) returns(uint256)

func (*AxialRouterTransactor) FlashLoan

func (_AxialRouter *AxialRouterTransactor) FlashLoan(opts *bind.TransactOpts, receiver common.Address, token common.Address, amount *big.Int, params []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.

Solidity: function flashLoan(address receiver, address token, uint256 amount, bytes params) returns()

func (*AxialRouterTransactor) RemoveLiquidity

func (_AxialRouter *AxialRouterTransactor) RemoveLiquidity(opts *bind.TransactOpts, amount *big.Int, minAmounts []*big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0x31cd52b0.

Solidity: function removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) returns(uint256[])

func (*AxialRouterTransactor) RemoveLiquidityImbalance

func (_AxialRouter *AxialRouterTransactor) RemoveLiquidityImbalance(opts *bind.TransactOpts, amounts []*big.Int, maxBurnAmount *big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0x84cdd9bc.

Solidity: function removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) returns(uint256)

func (*AxialRouterTransactor) RemoveLiquidityOneToken

func (_AxialRouter *AxialRouterTransactor) RemoveLiquidityOneToken(opts *bind.TransactOpts, tokenAmount *big.Int, tokenIndex uint8, minAmount *big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidityOneToken is a paid mutator transaction binding the contract method 0x3e3a1560.

Solidity: function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) returns(uint256)

func (*AxialRouterTransactor) Swap

func (_AxialRouter *AxialRouterTransactor) Swap(opts *bind.TransactOpts, tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)

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

Solidity: function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns(uint256)

type AxialRouterTransactorRaw

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

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

func (*AxialRouterTransactorRaw) Transact

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

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

func (*AxialRouterTransactorRaw) Transfer

func (_AxialRouter *AxialRouterTransactorRaw) 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 AxialRouterTransactorSession

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

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

func (*AxialRouterTransactorSession) AddLiquidity

func (_AxialRouter *AxialRouterTransactorSession) AddLiquidity(amounts []*big.Int, minToMint *big.Int, deadline *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x4d49e87d.

Solidity: function addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline) returns(uint256)

func (*AxialRouterTransactorSession) FlashLoan

func (_AxialRouter *AxialRouterTransactorSession) FlashLoan(receiver common.Address, token common.Address, amount *big.Int, params []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.

Solidity: function flashLoan(address receiver, address token, uint256 amount, bytes params) returns()

func (*AxialRouterTransactorSession) RemoveLiquidity

func (_AxialRouter *AxialRouterTransactorSession) RemoveLiquidity(amount *big.Int, minAmounts []*big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0x31cd52b0.

Solidity: function removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) returns(uint256[])

func (*AxialRouterTransactorSession) RemoveLiquidityImbalance

func (_AxialRouter *AxialRouterTransactorSession) RemoveLiquidityImbalance(amounts []*big.Int, maxBurnAmount *big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0x84cdd9bc.

Solidity: function removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) returns(uint256)

func (*AxialRouterTransactorSession) RemoveLiquidityOneToken

func (_AxialRouter *AxialRouterTransactorSession) RemoveLiquidityOneToken(tokenAmount *big.Int, tokenIndex uint8, minAmount *big.Int, deadline *big.Int) (*types.Transaction, error)

RemoveLiquidityOneToken is a paid mutator transaction binding the contract method 0x3e3a1560.

Solidity: function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) returns(uint256)

func (*AxialRouterTransactorSession) Swap

func (_AxialRouter *AxialRouterTransactorSession) Swap(tokenIndexFrom uint8, tokenIndexTo uint8, dx *big.Int, minDy *big.Int, deadline *big.Int) (*types.Transaction, error)

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

Solidity: function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) returns(uint256)

Jump to

Keyboard shortcuts

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