tradeBot

package
v1.1.29 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TradeBotABI = TradeBotMetaData.ABI

TradeBotABI is the input ABI used to generate the binding from. Deprecated: Use TradeBotMetaData.ABI instead.

View Source
var TradeBotMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"wbnb\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"busd\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"usdt\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"usdc\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"BUSD\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"USDC\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"USDT\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WBNB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"getTradeLogById\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pairAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isBuy\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"internalType\":\"structTradeBot.TradeLog\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTradeLogCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pageIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pageSize\",\"type\":\"uint256\"}],\"name\":\"getTradeLogs\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pairAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isBuy\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"internalType\":\"structTradeBot.TradeLog[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mintChiToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sendBnbBack\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"sendTokenBack\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"sendTokenBackAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"setWhite\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"router\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"swap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

TradeBotMetaData contains all meta data concerning the TradeBot contract.

Functions

This section is empty.

Types

type TradeBot

type TradeBot struct {
	TradeBotCaller     // Read-only binding to the contract
	TradeBotTransactor // Write-only binding to the contract
	TradeBotFilterer   // Log filterer for contract events
}

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

func NewTradeBot

func NewTradeBot(address common.Address, backend bind.ContractBackend) (*TradeBot, error)

NewTradeBot creates a new instance of TradeBot, bound to a specific deployed contract.

type TradeBotCaller

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

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

func NewTradeBotCaller

func NewTradeBotCaller(address common.Address, caller bind.ContractCaller) (*TradeBotCaller, error)

NewTradeBotCaller creates a new read-only instance of TradeBot, bound to a specific deployed contract.

func (*TradeBotCaller) BUSD

func (_TradeBot *TradeBotCaller) BUSD(opts *bind.CallOpts) (common.Address, error)

BUSD is a free data retrieval call binding the contract method 0x484f4ea9.

Solidity: function BUSD() view returns(address)

func (*TradeBotCaller) GetPair

func (_TradeBot *TradeBotCaller) GetPair(opts *bind.CallOpts, router common.Address, token0 common.Address, token1 common.Address) (common.Address, error)

GetPair is a free data retrieval call binding the contract method 0x61e0b77f.

Solidity: function getPair(address router, address token0, address token1) view returns(address pair)

func (*TradeBotCaller) GetTradeLogById

func (_TradeBot *TradeBotCaller) GetTradeLogById(opts *bind.CallOpts, id *big.Int) (TradeBotTradeLog, error)

GetTradeLogById is a free data retrieval call binding the contract method 0x616c121a.

Solidity: function getTradeLogById(uint256 id) view returns((uint256,address,address,address,uint256,uint256,uint256,bool,uint256))

func (*TradeBotCaller) GetTradeLogCount

func (_TradeBot *TradeBotCaller) GetTradeLogCount(opts *bind.CallOpts) (*big.Int, error)

GetTradeLogCount is a free data retrieval call binding the contract method 0xa5900788.

Solidity: function getTradeLogCount() view returns(uint256)

func (*TradeBotCaller) GetTradeLogs

func (_TradeBot *TradeBotCaller) GetTradeLogs(opts *bind.CallOpts, pageIndex *big.Int, pageSize *big.Int) ([]TradeBotTradeLog, error)

GetTradeLogs is a free data retrieval call binding the contract method 0x57037df6.

Solidity: function getTradeLogs(uint256 pageIndex, uint256 pageSize) view returns((uint256,address,address,address,uint256,uint256,uint256,bool,uint256)[])

func (*TradeBotCaller) Owner

func (_TradeBot *TradeBotCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TradeBotCaller) USDC

func (_TradeBot *TradeBotCaller) USDC(opts *bind.CallOpts) (common.Address, error)

USDC is a free data retrieval call binding the contract method 0x89a30271.

Solidity: function USDC() view returns(address)

func (*TradeBotCaller) USDT

func (_TradeBot *TradeBotCaller) USDT(opts *bind.CallOpts) (common.Address, error)

USDT is a free data retrieval call binding the contract method 0xc54e44eb.

Solidity: function USDT() view returns(address)

func (*TradeBotCaller) WBNB

func (_TradeBot *TradeBotCaller) WBNB(opts *bind.CallOpts) (common.Address, error)

WBNB is a free data retrieval call binding the contract method 0x8dd95002.

Solidity: function WBNB() view returns(address)

type TradeBotCallerRaw

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

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

func (*TradeBotCallerRaw) Call

func (_TradeBot *TradeBotCallerRaw) 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 TradeBotCallerSession

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

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

func (*TradeBotCallerSession) BUSD

func (_TradeBot *TradeBotCallerSession) BUSD() (common.Address, error)

BUSD is a free data retrieval call binding the contract method 0x484f4ea9.

Solidity: function BUSD() view returns(address)

func (*TradeBotCallerSession) GetPair

func (_TradeBot *TradeBotCallerSession) GetPair(router common.Address, token0 common.Address, token1 common.Address) (common.Address, error)

GetPair is a free data retrieval call binding the contract method 0x61e0b77f.

Solidity: function getPair(address router, address token0, address token1) view returns(address pair)

func (*TradeBotCallerSession) GetTradeLogById

func (_TradeBot *TradeBotCallerSession) GetTradeLogById(id *big.Int) (TradeBotTradeLog, error)

GetTradeLogById is a free data retrieval call binding the contract method 0x616c121a.

Solidity: function getTradeLogById(uint256 id) view returns((uint256,address,address,address,uint256,uint256,uint256,bool,uint256))

func (*TradeBotCallerSession) GetTradeLogCount

func (_TradeBot *TradeBotCallerSession) GetTradeLogCount() (*big.Int, error)

GetTradeLogCount is a free data retrieval call binding the contract method 0xa5900788.

Solidity: function getTradeLogCount() view returns(uint256)

func (*TradeBotCallerSession) GetTradeLogs

func (_TradeBot *TradeBotCallerSession) GetTradeLogs(pageIndex *big.Int, pageSize *big.Int) ([]TradeBotTradeLog, error)

GetTradeLogs is a free data retrieval call binding the contract method 0x57037df6.

Solidity: function getTradeLogs(uint256 pageIndex, uint256 pageSize) view returns((uint256,address,address,address,uint256,uint256,uint256,bool,uint256)[])

func (*TradeBotCallerSession) Owner

func (_TradeBot *TradeBotCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TradeBotCallerSession) USDC

func (_TradeBot *TradeBotCallerSession) USDC() (common.Address, error)

USDC is a free data retrieval call binding the contract method 0x89a30271.

Solidity: function USDC() view returns(address)

func (*TradeBotCallerSession) USDT

func (_TradeBot *TradeBotCallerSession) USDT() (common.Address, error)

USDT is a free data retrieval call binding the contract method 0xc54e44eb.

Solidity: function USDT() view returns(address)

func (*TradeBotCallerSession) WBNB

func (_TradeBot *TradeBotCallerSession) WBNB() (common.Address, error)

WBNB is a free data retrieval call binding the contract method 0x8dd95002.

Solidity: function WBNB() view returns(address)

type TradeBotFilterer

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

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

func NewTradeBotFilterer

func NewTradeBotFilterer(address common.Address, filterer bind.ContractFilterer) (*TradeBotFilterer, error)

NewTradeBotFilterer creates a new log filterer instance of TradeBot, bound to a specific deployed contract.

type TradeBotRaw

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

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

func (*TradeBotRaw) Call

func (_TradeBot *TradeBotRaw) 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 (*TradeBotRaw) Transact

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

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

func (*TradeBotRaw) Transfer

func (_TradeBot *TradeBotRaw) 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 TradeBotSession

type TradeBotSession struct {
	Contract     *TradeBot         // 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
}

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

func (*TradeBotSession) BUSD

func (_TradeBot *TradeBotSession) BUSD() (common.Address, error)

BUSD is a free data retrieval call binding the contract method 0x484f4ea9.

Solidity: function BUSD() view returns(address)

func (*TradeBotSession) GetPair

func (_TradeBot *TradeBotSession) GetPair(router common.Address, token0 common.Address, token1 common.Address) (common.Address, error)

GetPair is a free data retrieval call binding the contract method 0x61e0b77f.

Solidity: function getPair(address router, address token0, address token1) view returns(address pair)

func (*TradeBotSession) GetTradeLogById

func (_TradeBot *TradeBotSession) GetTradeLogById(id *big.Int) (TradeBotTradeLog, error)

GetTradeLogById is a free data retrieval call binding the contract method 0x616c121a.

Solidity: function getTradeLogById(uint256 id) view returns((uint256,address,address,address,uint256,uint256,uint256,bool,uint256))

func (*TradeBotSession) GetTradeLogCount

func (_TradeBot *TradeBotSession) GetTradeLogCount() (*big.Int, error)

GetTradeLogCount is a free data retrieval call binding the contract method 0xa5900788.

Solidity: function getTradeLogCount() view returns(uint256)

func (*TradeBotSession) GetTradeLogs

func (_TradeBot *TradeBotSession) GetTradeLogs(pageIndex *big.Int, pageSize *big.Int) ([]TradeBotTradeLog, error)

GetTradeLogs is a free data retrieval call binding the contract method 0x57037df6.

Solidity: function getTradeLogs(uint256 pageIndex, uint256 pageSize) view returns((uint256,address,address,address,uint256,uint256,uint256,bool,uint256)[])

func (*TradeBotSession) MintChiToken

func (_TradeBot *TradeBotSession) MintChiToken(amount *big.Int) (*types.Transaction, error)

MintChiToken is a paid mutator transaction binding the contract method 0x84c469f1.

Solidity: function mintChiToken(uint256 amount) returns()

func (*TradeBotSession) Owner

func (_TradeBot *TradeBotSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*TradeBotSession) Receive

func (_TradeBot *TradeBotSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TradeBotSession) SendBnbBack

func (_TradeBot *TradeBotSession) SendBnbBack() (*types.Transaction, error)

SendBnbBack is a paid mutator transaction binding the contract method 0xa80db93a.

Solidity: function sendBnbBack() returns()

func (*TradeBotSession) SendTokenBack

func (_TradeBot *TradeBotSession) SendTokenBack(token common.Address, amount *big.Int) (*types.Transaction, error)

SendTokenBack is a paid mutator transaction binding the contract method 0x9bbebbc1.

Solidity: function sendTokenBack(address token, uint256 amount) returns()

func (*TradeBotSession) SendTokenBackAll

func (_TradeBot *TradeBotSession) SendTokenBackAll(token common.Address) (*types.Transaction, error)

SendTokenBackAll is a paid mutator transaction binding the contract method 0xb735b89b.

Solidity: function sendTokenBackAll(address token) returns()

func (*TradeBotSession) SetWhite

func (_TradeBot *TradeBotSession) SetWhite(account common.Address) (*types.Transaction, error)

SetWhite is a paid mutator transaction binding the contract method 0xc03646ba.

Solidity: function setWhite(address account) returns()

func (*TradeBotSession) Swap

func (_TradeBot *TradeBotSession) Swap(router common.Address, token0 common.Address, token1 common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function swap(address router, address token0, address token1, uint256 amount) returns()

func (*TradeBotSession) USDC

func (_TradeBot *TradeBotSession) USDC() (common.Address, error)

USDC is a free data retrieval call binding the contract method 0x89a30271.

Solidity: function USDC() view returns(address)

func (*TradeBotSession) USDT

func (_TradeBot *TradeBotSession) USDT() (common.Address, error)

USDT is a free data retrieval call binding the contract method 0xc54e44eb.

Solidity: function USDT() view returns(address)

func (*TradeBotSession) WBNB

func (_TradeBot *TradeBotSession) WBNB() (common.Address, error)

WBNB is a free data retrieval call binding the contract method 0x8dd95002.

Solidity: function WBNB() view returns(address)

type TradeBotTradeLog

type TradeBotTradeLog struct {
	Id          *big.Int
	PairAddress common.Address
	Token0      common.Address
	Token1      common.Address
	AmountIn    *big.Int
	AmountOut   *big.Int
	Timestamp   *big.Int
	IsBuy       bool
	Price       *big.Int
}

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

type TradeBotTransactor

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

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

func NewTradeBotTransactor

func NewTradeBotTransactor(address common.Address, transactor bind.ContractTransactor) (*TradeBotTransactor, error)

NewTradeBotTransactor creates a new write-only instance of TradeBot, bound to a specific deployed contract.

func (*TradeBotTransactor) MintChiToken

func (_TradeBot *TradeBotTransactor) MintChiToken(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

MintChiToken is a paid mutator transaction binding the contract method 0x84c469f1.

Solidity: function mintChiToken(uint256 amount) returns()

func (*TradeBotTransactor) Receive

func (_TradeBot *TradeBotTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TradeBotTransactor) SendBnbBack

func (_TradeBot *TradeBotTransactor) SendBnbBack(opts *bind.TransactOpts) (*types.Transaction, error)

SendBnbBack is a paid mutator transaction binding the contract method 0xa80db93a.

Solidity: function sendBnbBack() returns()

func (*TradeBotTransactor) SendTokenBack

func (_TradeBot *TradeBotTransactor) SendTokenBack(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)

SendTokenBack is a paid mutator transaction binding the contract method 0x9bbebbc1.

Solidity: function sendTokenBack(address token, uint256 amount) returns()

func (*TradeBotTransactor) SendTokenBackAll

func (_TradeBot *TradeBotTransactor) SendTokenBackAll(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

SendTokenBackAll is a paid mutator transaction binding the contract method 0xb735b89b.

Solidity: function sendTokenBackAll(address token) returns()

func (*TradeBotTransactor) SetWhite

func (_TradeBot *TradeBotTransactor) SetWhite(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

SetWhite is a paid mutator transaction binding the contract method 0xc03646ba.

Solidity: function setWhite(address account) returns()

func (*TradeBotTransactor) Swap

func (_TradeBot *TradeBotTransactor) Swap(opts *bind.TransactOpts, router common.Address, token0 common.Address, token1 common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function swap(address router, address token0, address token1, uint256 amount) returns()

type TradeBotTransactorRaw

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

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

func (*TradeBotTransactorRaw) Transact

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

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

func (*TradeBotTransactorRaw) Transfer

func (_TradeBot *TradeBotTransactorRaw) 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 TradeBotTransactorSession

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

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

func (*TradeBotTransactorSession) MintChiToken

func (_TradeBot *TradeBotTransactorSession) MintChiToken(amount *big.Int) (*types.Transaction, error)

MintChiToken is a paid mutator transaction binding the contract method 0x84c469f1.

Solidity: function mintChiToken(uint256 amount) returns()

func (*TradeBotTransactorSession) Receive

func (_TradeBot *TradeBotTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*TradeBotTransactorSession) SendBnbBack

func (_TradeBot *TradeBotTransactorSession) SendBnbBack() (*types.Transaction, error)

SendBnbBack is a paid mutator transaction binding the contract method 0xa80db93a.

Solidity: function sendBnbBack() returns()

func (*TradeBotTransactorSession) SendTokenBack

func (_TradeBot *TradeBotTransactorSession) SendTokenBack(token common.Address, amount *big.Int) (*types.Transaction, error)

SendTokenBack is a paid mutator transaction binding the contract method 0x9bbebbc1.

Solidity: function sendTokenBack(address token, uint256 amount) returns()

func (*TradeBotTransactorSession) SendTokenBackAll

func (_TradeBot *TradeBotTransactorSession) SendTokenBackAll(token common.Address) (*types.Transaction, error)

SendTokenBackAll is a paid mutator transaction binding the contract method 0xb735b89b.

Solidity: function sendTokenBackAll(address token) returns()

func (*TradeBotTransactorSession) SetWhite

func (_TradeBot *TradeBotTransactorSession) SetWhite(account common.Address) (*types.Transaction, error)

SetWhite is a paid mutator transaction binding the contract method 0xc03646ba.

Solidity: function setWhite(address account) returns()

func (*TradeBotTransactorSession) Swap

func (_TradeBot *TradeBotTransactorSession) Swap(router common.Address, token0 common.Address, token1 common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function swap(address router, address token0, address token1, uint256 amount) returns()

Jump to

Keyboard shortcuts

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