abi

package
v0.0.0-...-32b5228 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BSCSwapAgentABI = "" /* 5522-byte string literal not displayed */

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

View Source
const ERC20ABI = "" /* 3452-byte string literal not displayed */

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

View Source
const ETHSwapAgentABI = "" /* 4370-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type BSCSwapAgent

type BSCSwapAgent struct {
	BSCSwapAgentCaller     // Read-only binding to the contract
	BSCSwapAgentTransactor // Write-only binding to the contract
	BSCSwapAgentFilterer   // Log filterer for contract events
}

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

func NewBSCSwapAgent

func NewBSCSwapAgent(address common.Address, backend bind.ContractBackend) (*BSCSwapAgent, error)

NewBSCSwapAgent creates a new instance of BSCSwapAgent, bound to a specific deployed contract.

type BSCSwapAgentCaller

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

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

func NewBSCSwapAgentCaller

func NewBSCSwapAgentCaller(address common.Address, caller bind.ContractCaller) (*BSCSwapAgentCaller, error)

NewBSCSwapAgentCaller creates a new read-only instance of BSCSwapAgent, bound to a specific deployed contract.

func (*BSCSwapAgentCaller) Bep20Implementation

func (_BSCSwapAgent *BSCSwapAgentCaller) Bep20Implementation(opts *bind.CallOpts) (common.Address, error)

Bep20Implementation is a free data retrieval call binding the contract method 0x66fec65c.

Solidity: function bep20Implementation() constant returns(address)

func (*BSCSwapAgentCaller) Bep20ProxyAdmin

func (_BSCSwapAgent *BSCSwapAgentCaller) Bep20ProxyAdmin(opts *bind.CallOpts) (common.Address, error)

Bep20ProxyAdmin is a free data retrieval call binding the contract method 0x0344165a.

Solidity: function bep20ProxyAdmin() constant returns(address)

func (*BSCSwapAgentCaller) FilledETHTx

func (_BSCSwapAgent *BSCSwapAgentCaller) FilledETHTx(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

FilledETHTx is a free data retrieval call binding the contract method 0x4e2dc7f1.

Solidity: function filledETHTx(bytes32 ) constant returns(bool)

func (*BSCSwapAgentCaller) Owner

func (_BSCSwapAgent *BSCSwapAgentCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*BSCSwapAgentCaller) SwapFee

func (_BSCSwapAgent *BSCSwapAgentCaller) SwapFee(opts *bind.CallOpts) (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() constant returns(uint256)

func (*BSCSwapAgentCaller) SwapMappingBSC2ETH

func (_BSCSwapAgent *BSCSwapAgentCaller) SwapMappingBSC2ETH(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

SwapMappingBSC2ETH is a free data retrieval call binding the contract method 0xbe0ace69.

Solidity: function swapMappingBSC2ETH(address ) constant returns(address)

func (*BSCSwapAgentCaller) SwapMappingETH2BSC

func (_BSCSwapAgent *BSCSwapAgentCaller) SwapMappingETH2BSC(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

SwapMappingETH2BSC is a free data retrieval call binding the contract method 0x60b810f1.

Solidity: function swapMappingETH2BSC(address ) constant returns(address)

type BSCSwapAgentCallerRaw

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

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

func (*BSCSwapAgentCallerRaw) Call

func (_BSCSwapAgent *BSCSwapAgentCallerRaw) 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 BSCSwapAgentCallerSession

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

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

func (*BSCSwapAgentCallerSession) Bep20Implementation

func (_BSCSwapAgent *BSCSwapAgentCallerSession) Bep20Implementation() (common.Address, error)

Bep20Implementation is a free data retrieval call binding the contract method 0x66fec65c.

Solidity: function bep20Implementation() constant returns(address)

func (*BSCSwapAgentCallerSession) Bep20ProxyAdmin

func (_BSCSwapAgent *BSCSwapAgentCallerSession) Bep20ProxyAdmin() (common.Address, error)

Bep20ProxyAdmin is a free data retrieval call binding the contract method 0x0344165a.

Solidity: function bep20ProxyAdmin() constant returns(address)

func (*BSCSwapAgentCallerSession) FilledETHTx

func (_BSCSwapAgent *BSCSwapAgentCallerSession) FilledETHTx(arg0 [32]byte) (bool, error)

FilledETHTx is a free data retrieval call binding the contract method 0x4e2dc7f1.

Solidity: function filledETHTx(bytes32 ) constant returns(bool)

func (*BSCSwapAgentCallerSession) Owner

func (_BSCSwapAgent *BSCSwapAgentCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*BSCSwapAgentCallerSession) SwapFee

func (_BSCSwapAgent *BSCSwapAgentCallerSession) SwapFee() (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() constant returns(uint256)

func (*BSCSwapAgentCallerSession) SwapMappingBSC2ETH

func (_BSCSwapAgent *BSCSwapAgentCallerSession) SwapMappingBSC2ETH(arg0 common.Address) (common.Address, error)

SwapMappingBSC2ETH is a free data retrieval call binding the contract method 0xbe0ace69.

Solidity: function swapMappingBSC2ETH(address ) constant returns(address)

func (*BSCSwapAgentCallerSession) SwapMappingETH2BSC

func (_BSCSwapAgent *BSCSwapAgentCallerSession) SwapMappingETH2BSC(arg0 common.Address) (common.Address, error)

SwapMappingETH2BSC is a free data retrieval call binding the contract method 0x60b810f1.

Solidity: function swapMappingETH2BSC(address ) constant returns(address)

type BSCSwapAgentFilterer

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

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

func NewBSCSwapAgentFilterer

func NewBSCSwapAgentFilterer(address common.Address, filterer bind.ContractFilterer) (*BSCSwapAgentFilterer, error)

NewBSCSwapAgentFilterer creates a new log filterer instance of BSCSwapAgent, bound to a specific deployed contract.

func (*BSCSwapAgentFilterer) FilterOwnershipTransferred

func (_BSCSwapAgent *BSCSwapAgentFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BSCSwapAgentOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BSCSwapAgentFilterer) FilterSwapFilled

func (_BSCSwapAgent *BSCSwapAgentFilterer) FilterSwapFilled(opts *bind.FilterOpts, bep20Addr []common.Address, ethTxHash [][32]byte, toAddress []common.Address) (*BSCSwapAgentSwapFilledIterator, error)

FilterSwapFilled is a free log retrieval operation binding the contract event 0x3bebd9a738291e69898b5dbfadb6329b4b09fc648bdef68762928e521463abd9.

Solidity: event SphynxSwapFilled(address indexed bep20Addr, bytes32 indexed ethTxHash, address indexed toAddress, uint256 amount)

func (*BSCSwapAgentFilterer) FilterSwapPairCreated

func (_BSCSwapAgent *BSCSwapAgentFilterer) FilterSwapPairCreated(opts *bind.FilterOpts, ethRegisterTxHash [][32]byte, bep20Addr []common.Address, erc20Addr []common.Address) (*BSCSwapAgentSwapPairCreatedIterator, error)

FilterSwapPairCreated is a free log retrieval operation binding the contract event 0xcc0314763eabceb74cd3d30ae785c09bfe4e204af2088b3bfcdbbe5082133db5.

Solidity: event SwapPairCreated(bytes32 indexed ethRegisterTxHash, address indexed bep20Addr, address indexed erc20Addr, string symbol, string name, uint8 decimals)

func (*BSCSwapAgentFilterer) FilterSwapStarted

func (_BSCSwapAgent *BSCSwapAgentFilterer) FilterSwapStarted(opts *bind.FilterOpts, bep20Addr []common.Address, erc20Addr []common.Address, fromAddr []common.Address) (*BSCSwapAgentSwapStartedIterator, error)

FilterSwapStarted is a free log retrieval operation binding the contract event 0x49c08ff11118922c1e8298915531eff9ef6f8b39b44b3e9952b75d47e1d0cdd0.

Solidity: event SwapStarted(address indexed bep20Addr, address indexed erc20Addr, address indexed fromAddr, uint256 amount, uint256 feeAmount)

func (*BSCSwapAgentFilterer) ParseOwnershipTransferred

func (_BSCSwapAgent *BSCSwapAgentFilterer) ParseOwnershipTransferred(log types.Log) (*BSCSwapAgentOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BSCSwapAgentFilterer) ParseSwapFilled

func (_BSCSwapAgent *BSCSwapAgentFilterer) ParseSwapFilled(log types.Log) (*BSCSwapAgentSwapFilled, error)

ParseSwapFilled is a log parse operation binding the contract event 0x3bebd9a738291e69898b5dbfadb6329b4b09fc648bdef68762928e521463abd9.

Solidity: event SphynxSwapFilled(address indexed bep20Addr, bytes32 indexed ethTxHash, address indexed toAddress, uint256 amount)

func (*BSCSwapAgentFilterer) ParseSwapPairCreated

func (_BSCSwapAgent *BSCSwapAgentFilterer) ParseSwapPairCreated(log types.Log) (*BSCSwapAgentSwapPairCreated, error)

ParseSwapPairCreated is a log parse operation binding the contract event 0xcc0314763eabceb74cd3d30ae785c09bfe4e204af2088b3bfcdbbe5082133db5.

Solidity: event SwapPairCreated(bytes32 indexed ethRegisterTxHash, address indexed bep20Addr, address indexed erc20Addr, string symbol, string name, uint8 decimals)

func (*BSCSwapAgentFilterer) ParseSwapStarted

func (_BSCSwapAgent *BSCSwapAgentFilterer) ParseSwapStarted(log types.Log) (*BSCSwapAgentSwapStarted, error)

ParseSwapStarted is a log parse operation binding the contract event 0x49c08ff11118922c1e8298915531eff9ef6f8b39b44b3e9952b75d47e1d0cdd0.

Solidity: event SwapStarted(address indexed bep20Addr, address indexed erc20Addr, address indexed fromAddr, uint256 amount, uint256 feeAmount)

func (*BSCSwapAgentFilterer) WatchOwnershipTransferred

func (_BSCSwapAgent *BSCSwapAgentFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BSCSwapAgentOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*BSCSwapAgentFilterer) WatchSwapFilled

func (_BSCSwapAgent *BSCSwapAgentFilterer) WatchSwapFilled(opts *bind.WatchOpts, sink chan<- *BSCSwapAgentSwapFilled, bep20Addr []common.Address, ethTxHash [][32]byte, toAddress []common.Address) (event.Subscription, error)

WatchSwapFilled is a free log subscription operation binding the contract event 0x3bebd9a738291e69898b5dbfadb6329b4b09fc648bdef68762928e521463abd9.

Solidity: event SphynxSwapFilled(address indexed bep20Addr, bytes32 indexed ethTxHash, address indexed toAddress, uint256 amount)

func (*BSCSwapAgentFilterer) WatchSwapPairCreated

func (_BSCSwapAgent *BSCSwapAgentFilterer) WatchSwapPairCreated(opts *bind.WatchOpts, sink chan<- *BSCSwapAgentSwapPairCreated, ethRegisterTxHash [][32]byte, bep20Addr []common.Address, erc20Addr []common.Address) (event.Subscription, error)

WatchSwapPairCreated is a free log subscription operation binding the contract event 0xcc0314763eabceb74cd3d30ae785c09bfe4e204af2088b3bfcdbbe5082133db5.

Solidity: event SwapPairCreated(bytes32 indexed ethRegisterTxHash, address indexed bep20Addr, address indexed erc20Addr, string symbol, string name, uint8 decimals)

func (*BSCSwapAgentFilterer) WatchSwapStarted

func (_BSCSwapAgent *BSCSwapAgentFilterer) WatchSwapStarted(opts *bind.WatchOpts, sink chan<- *BSCSwapAgentSwapStarted, bep20Addr []common.Address, erc20Addr []common.Address, fromAddr []common.Address) (event.Subscription, error)

WatchSwapStarted is a free log subscription operation binding the contract event 0x49c08ff11118922c1e8298915531eff9ef6f8b39b44b3e9952b75d47e1d0cdd0.

Solidity: event SwapStarted(address indexed bep20Addr, address indexed erc20Addr, address indexed fromAddr, uint256 amount, uint256 feeAmount)

type BSCSwapAgentOwnershipTransferred

type BSCSwapAgentOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

BSCSwapAgentOwnershipTransferred represents a OwnershipTransferred event raised by the BSCSwapAgent contract.

type BSCSwapAgentOwnershipTransferredIterator

type BSCSwapAgentOwnershipTransferredIterator struct {
	Event *BSCSwapAgentOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BSCSwapAgentOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the BSCSwapAgent contract.

func (*BSCSwapAgentOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*BSCSwapAgentOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BSCSwapAgentOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type BSCSwapAgentRaw

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

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

func (*BSCSwapAgentRaw) Call

func (_BSCSwapAgent *BSCSwapAgentRaw) 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 (*BSCSwapAgentRaw) Transact

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

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

func (*BSCSwapAgentRaw) Transfer

func (_BSCSwapAgent *BSCSwapAgentRaw) 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 BSCSwapAgentSession

type BSCSwapAgentSession struct {
	Contract     *BSCSwapAgent     // 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
}

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

func (*BSCSwapAgentSession) Bep20Implementation

func (_BSCSwapAgent *BSCSwapAgentSession) Bep20Implementation() (common.Address, error)

Bep20Implementation is a free data retrieval call binding the contract method 0x66fec65c.

Solidity: function bep20Implementation() constant returns(address)

func (*BSCSwapAgentSession) Bep20ProxyAdmin

func (_BSCSwapAgent *BSCSwapAgentSession) Bep20ProxyAdmin() (common.Address, error)

Bep20ProxyAdmin is a free data retrieval call binding the contract method 0x0344165a.

Solidity: function bep20ProxyAdmin() constant returns(address)

func (*BSCSwapAgentSession) CreateSwapPair

func (_BSCSwapAgent *BSCSwapAgentSession) CreateSwapPair(ethTxHash [32]byte, erc20Addr common.Address, name string, symbol string, decimals uint8) (*types.Transaction, error)

CreateSwapPair is a paid mutator transaction binding the contract method 0x32bd6e31.

Solidity: function createSwapPair(bytes32 ethTxHash, address erc20Addr, string name, string symbol, uint8 decimals) returns(address)

func (*BSCSwapAgentSession) FillETH2BSCSwap

func (_BSCSwapAgent *BSCSwapAgentSession) FillETH2BSCSwap(ethTxHash [32]byte, erc20Addr common.Address, toAddress common.Address, amount *big.Int) (*types.Transaction, error)

FillETH2BSCSwap is a paid mutator transaction binding the contract method 0xe307b931.

Solidity: function fillETH2BSCSwap(bytes32 ethTxHash, address erc20Addr, address toAddress, uint256 amount) returns(bool)

func (*BSCSwapAgentSession) FilledETHTx

func (_BSCSwapAgent *BSCSwapAgentSession) FilledETHTx(arg0 [32]byte) (bool, error)

FilledETHTx is a free data retrieval call binding the contract method 0x4e2dc7f1.

Solidity: function filledETHTx(bytes32 ) constant returns(bool)

func (*BSCSwapAgentSession) Initialize

func (_BSCSwapAgent *BSCSwapAgentSession) Initialize(bep20Impl common.Address, fee *big.Int, ownerAddr common.Address, bep20ProxyAdminAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address bep20Impl, uint256 fee, address ownerAddr, address bep20ProxyAdminAddr) returns()

func (*BSCSwapAgentSession) Owner

func (_BSCSwapAgent *BSCSwapAgentSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*BSCSwapAgentSession) RenounceOwnership

func (_BSCSwapAgent *BSCSwapAgentSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BSCSwapAgentSession) SetSwapFee

func (_BSCSwapAgent *BSCSwapAgentSession) SetSwapFee(fee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 fee) returns()

func (*BSCSwapAgentSession) SwapBSC2ETH

func (_BSCSwapAgent *BSCSwapAgentSession) SwapBSC2ETH(bep20Addr common.Address, amount *big.Int) (*types.Transaction, error)

SwapBSC2ETH is a paid mutator transaction binding the contract method 0x1ba3b150.

Solidity: function swapBSC2ETH(address bep20Addr, uint256 amount) returns(bool)

func (*BSCSwapAgentSession) SwapFee

func (_BSCSwapAgent *BSCSwapAgentSession) SwapFee() (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() constant returns(uint256)

func (*BSCSwapAgentSession) SwapMappingBSC2ETH

func (_BSCSwapAgent *BSCSwapAgentSession) SwapMappingBSC2ETH(arg0 common.Address) (common.Address, error)

SwapMappingBSC2ETH is a free data retrieval call binding the contract method 0xbe0ace69.

Solidity: function swapMappingBSC2ETH(address ) constant returns(address)

func (*BSCSwapAgentSession) SwapMappingETH2BSC

func (_BSCSwapAgent *BSCSwapAgentSession) SwapMappingETH2BSC(arg0 common.Address) (common.Address, error)

SwapMappingETH2BSC is a free data retrieval call binding the contract method 0x60b810f1.

Solidity: function swapMappingETH2BSC(address ) constant returns(address)

func (*BSCSwapAgentSession) TransferOwnership

func (_BSCSwapAgent *BSCSwapAgentSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type BSCSwapAgentSwapFilled

type BSCSwapAgentSwapFilled struct {
	Bep20Addr common.Address
	EthTxHash [32]byte
	ToAddress common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

BSCSwapAgentSwapFilled represents a SphynxSwapFilled event raised by the BSCSwapAgent contract.

type BSCSwapAgentSwapFilledIterator

type BSCSwapAgentSwapFilledIterator struct {
	Event *BSCSwapAgentSwapFilled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BSCSwapAgentSwapFilledIterator is returned from FilterSwapFilled and is used to iterate over the raw logs and unpacked data for SphynxSwapFilled events raised by the BSCSwapAgent contract.

func (*BSCSwapAgentSwapFilledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*BSCSwapAgentSwapFilledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BSCSwapAgentSwapFilledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type BSCSwapAgentSwapPairCreated

type BSCSwapAgentSwapPairCreated struct {
	EthRegisterTxHash [32]byte
	Bep20Addr         common.Address
	Erc20Addr         common.Address
	Symbol            string
	Name              string
	Decimals          uint8
	Raw               types.Log // Blockchain specific contextual infos
}

BSCSwapAgentSwapPairCreated represents a SwapPairCreated event raised by the BSCSwapAgent contract.

type BSCSwapAgentSwapPairCreatedIterator

type BSCSwapAgentSwapPairCreatedIterator struct {
	Event *BSCSwapAgentSwapPairCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BSCSwapAgentSwapPairCreatedIterator is returned from FilterSwapPairCreated and is used to iterate over the raw logs and unpacked data for SwapPairCreated events raised by the BSCSwapAgent contract.

func (*BSCSwapAgentSwapPairCreatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*BSCSwapAgentSwapPairCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BSCSwapAgentSwapPairCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type BSCSwapAgentSwapStarted

type BSCSwapAgentSwapStarted struct {
	Bep20Addr common.Address
	Erc20Addr common.Address
	FromAddr  common.Address
	Amount    *big.Int
	FeeAmount *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

BSCSwapAgentSwapStarted represents a SwapStarted event raised by the BSCSwapAgent contract.

type BSCSwapAgentSwapStartedIterator

type BSCSwapAgentSwapStartedIterator struct {
	Event *BSCSwapAgentSwapStarted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

BSCSwapAgentSwapStartedIterator is returned from FilterSwapStarted and is used to iterate over the raw logs and unpacked data for SwapStarted events raised by the BSCSwapAgent contract.

func (*BSCSwapAgentSwapStartedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*BSCSwapAgentSwapStartedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BSCSwapAgentSwapStartedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type BSCSwapAgentTransactor

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

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

func NewBSCSwapAgentTransactor

func NewBSCSwapAgentTransactor(address common.Address, transactor bind.ContractTransactor) (*BSCSwapAgentTransactor, error)

NewBSCSwapAgentTransactor creates a new write-only instance of BSCSwapAgent, bound to a specific deployed contract.

func (*BSCSwapAgentTransactor) CreateSwapPair

func (_BSCSwapAgent *BSCSwapAgentTransactor) CreateSwapPair(opts *bind.TransactOpts, ethTxHash [32]byte, erc20Addr common.Address, name string, symbol string, decimals uint8) (*types.Transaction, error)

CreateSwapPair is a paid mutator transaction binding the contract method 0x32bd6e31.

Solidity: function createSwapPair(bytes32 ethTxHash, address erc20Addr, string name, string symbol, uint8 decimals) returns(address)

func (*BSCSwapAgentTransactor) FillETH2BSCSwap

func (_BSCSwapAgent *BSCSwapAgentTransactor) FillETH2BSCSwap(opts *bind.TransactOpts, ethTxHash [32]byte, erc20Addr common.Address, toAddress common.Address, amount *big.Int) (*types.Transaction, error)

FillETH2BSCSwap is a paid mutator transaction binding the contract method 0xe307b931.

Solidity: function fillETH2BSCSwap(bytes32 ethTxHash, address erc20Addr, address toAddress, uint256 amount) returns(bool)

func (*BSCSwapAgentTransactor) Initialize

func (_BSCSwapAgent *BSCSwapAgentTransactor) Initialize(opts *bind.TransactOpts, bep20Impl common.Address, fee *big.Int, ownerAddr common.Address, bep20ProxyAdminAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address bep20Impl, uint256 fee, address ownerAddr, address bep20ProxyAdminAddr) returns()

func (*BSCSwapAgentTransactor) RenounceOwnership

func (_BSCSwapAgent *BSCSwapAgentTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BSCSwapAgentTransactor) SetSwapFee

func (_BSCSwapAgent *BSCSwapAgentTransactor) SetSwapFee(opts *bind.TransactOpts, fee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 fee) returns()

func (*BSCSwapAgentTransactor) SwapBSC2ETH

func (_BSCSwapAgent *BSCSwapAgentTransactor) SwapBSC2ETH(opts *bind.TransactOpts, bep20Addr common.Address, amount *big.Int) (*types.Transaction, error)

SwapBSC2ETH is a paid mutator transaction binding the contract method 0x1ba3b150.

Solidity: function swapBSC2ETH(address bep20Addr, uint256 amount) returns(bool)

func (*BSCSwapAgentTransactor) TransferOwnership

func (_BSCSwapAgent *BSCSwapAgentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type BSCSwapAgentTransactorRaw

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

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

func (*BSCSwapAgentTransactorRaw) Transact

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

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

func (*BSCSwapAgentTransactorRaw) Transfer

func (_BSCSwapAgent *BSCSwapAgentTransactorRaw) 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 BSCSwapAgentTransactorSession

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

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

func (*BSCSwapAgentTransactorSession) CreateSwapPair

func (_BSCSwapAgent *BSCSwapAgentTransactorSession) CreateSwapPair(ethTxHash [32]byte, erc20Addr common.Address, name string, symbol string, decimals uint8) (*types.Transaction, error)

CreateSwapPair is a paid mutator transaction binding the contract method 0x32bd6e31.

Solidity: function createSwapPair(bytes32 ethTxHash, address erc20Addr, string name, string symbol, uint8 decimals) returns(address)

func (*BSCSwapAgentTransactorSession) FillETH2BSCSwap

func (_BSCSwapAgent *BSCSwapAgentTransactorSession) FillETH2BSCSwap(ethTxHash [32]byte, erc20Addr common.Address, toAddress common.Address, amount *big.Int) (*types.Transaction, error)

FillETH2BSCSwap is a paid mutator transaction binding the contract method 0xe307b931.

Solidity: function fillETH2BSCSwap(bytes32 ethTxHash, address erc20Addr, address toAddress, uint256 amount) returns(bool)

func (*BSCSwapAgentTransactorSession) Initialize

func (_BSCSwapAgent *BSCSwapAgentTransactorSession) Initialize(bep20Impl common.Address, fee *big.Int, ownerAddr common.Address, bep20ProxyAdminAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address bep20Impl, uint256 fee, address ownerAddr, address bep20ProxyAdminAddr) returns()

func (*BSCSwapAgentTransactorSession) RenounceOwnership

func (_BSCSwapAgent *BSCSwapAgentTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*BSCSwapAgentTransactorSession) SetSwapFee

func (_BSCSwapAgent *BSCSwapAgentTransactorSession) SetSwapFee(fee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 fee) returns()

func (*BSCSwapAgentTransactorSession) SwapBSC2ETH

func (_BSCSwapAgent *BSCSwapAgentTransactorSession) SwapBSC2ETH(bep20Addr common.Address, amount *big.Int) (*types.Transaction, error)

SwapBSC2ETH is a paid mutator transaction binding the contract method 0x1ba3b150.

Solidity: function swapBSC2ETH(address bep20Addr, uint256 amount) returns(bool)

func (*BSCSwapAgentTransactorSession) TransferOwnership

func (_BSCSwapAgent *BSCSwapAgentTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type ERC20

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20Approval

type ERC20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ERC20Approval represents a Approval event raised by the ERC20 contract.

type ERC20ApprovalIterator

type ERC20ApprovalIterator struct {
	Event *ERC20Approval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20 contract.

func (*ERC20ApprovalIterator) Close

func (it *ERC20ApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20ApprovalIterator) Error

func (it *ERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ApprovalIterator) Next

func (it *ERC20ApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20Caller

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

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

func NewERC20Caller

func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error)

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Caller) Allowance

func (_ERC20 *ERC20Caller) 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) constant returns(uint256)

func (*ERC20Caller) BalanceOf

func (_ERC20 *ERC20Caller) 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) constant returns(uint256)

func (*ERC20Caller) Decimals

func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*ERC20Caller) GetOwner

func (_ERC20 *ERC20Caller) GetOwner(opts *bind.CallOpts) (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() constant returns(address)

func (*ERC20Caller) Name

func (_ERC20 *ERC20Caller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() constant returns(string)

func (*ERC20Caller) Symbol

func (_ERC20 *ERC20Caller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() constant returns(string)

func (*ERC20Caller) TotalSupply

func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) 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 ERC20CallerSession

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

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

func (*ERC20CallerSession) Allowance

func (_ERC20 *ERC20CallerSession) 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) constant returns(uint256)

func (*ERC20CallerSession) BalanceOf

func (_ERC20 *ERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*ERC20CallerSession) Decimals

func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*ERC20CallerSession) GetOwner

func (_ERC20 *ERC20CallerSession) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() constant returns(address)

func (*ERC20CallerSession) Name

func (_ERC20 *ERC20CallerSession) Name() (string, error)

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

Solidity: function name() constant returns(string)

func (*ERC20CallerSession) Symbol

func (_ERC20 *ERC20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() constant returns(string)

func (*ERC20CallerSession) TotalSupply

func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

type ERC20Filterer

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

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

func NewERC20Filterer

func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error)

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

func (*ERC20Filterer) FilterApproval

func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20Filterer) FilterTransfer

func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*ERC20Filterer) ParseApproval

func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20Filterer) ParseTransfer

func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*ERC20Filterer) WatchApproval

func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*ERC20Filterer) WatchTransfer

func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) 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 (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) 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 ERC20Session

type ERC20Session struct {
	Contract     *ERC20            // 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
}

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

func (*ERC20Session) Allowance

func (_ERC20 *ERC20Session) 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) constant returns(uint256)

func (*ERC20Session) Approve

func (_ERC20 *ERC20Session) 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 (*ERC20Session) BalanceOf

func (_ERC20 *ERC20Session) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*ERC20Session) Decimals

func (_ERC20 *ERC20Session) Decimals() (uint8, error)

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

Solidity: function decimals() constant returns(uint8)

func (*ERC20Session) GetOwner

func (_ERC20 *ERC20Session) GetOwner() (common.Address, error)

GetOwner is a free data retrieval call binding the contract method 0x893d20e8.

Solidity: function getOwner() constant returns(address)

func (*ERC20Session) Name

func (_ERC20 *ERC20Session) Name() (string, error)

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

Solidity: function name() constant returns(string)

func (*ERC20Session) Symbol

func (_ERC20 *ERC20Session) Symbol() (string, error)

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

Solidity: function symbol() constant returns(string)

func (*ERC20Session) TotalSupply

func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) 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 (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) 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 ERC20Transactor

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

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

func NewERC20Transactor

func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error)

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) Approve

func (_ERC20 *ERC20Transactor) 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 (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) 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 (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) 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 ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) 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 ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Approve

func (_ERC20 *ERC20TransactorSession) 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 (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) 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 (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) 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 ERC20Transfer

type ERC20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC20Transfer represents a Transfer event raised by the ERC20 contract.

type ERC20TransferIterator

type ERC20TransferIterator struct {
	Event *ERC20Transfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20 contract.

func (*ERC20TransferIterator) Close

func (it *ERC20TransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ERC20TransferIterator) Error

func (it *ERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TransferIterator) Next

func (it *ERC20TransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ETHSwapAgent

type ETHSwapAgent struct {
	ETHSwapAgentCaller     // Read-only binding to the contract
	ETHSwapAgentTransactor // Write-only binding to the contract
	ETHSwapAgentFilterer   // Log filterer for contract events
}

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

func NewETHSwapAgent

func NewETHSwapAgent(address common.Address, backend bind.ContractBackend) (*ETHSwapAgent, error)

NewETHSwapAgent creates a new instance of ETHSwapAgent, bound to a specific deployed contract.

type ETHSwapAgentCaller

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

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

func NewETHSwapAgentCaller

func NewETHSwapAgentCaller(address common.Address, caller bind.ContractCaller) (*ETHSwapAgentCaller, error)

NewETHSwapAgentCaller creates a new read-only instance of ETHSwapAgent, bound to a specific deployed contract.

func (*ETHSwapAgentCaller) FilledBSCTx

func (_ETHSwapAgent *ETHSwapAgentCaller) FilledBSCTx(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

FilledBSCTx is a free data retrieval call binding the contract method 0x50877c77.

Solidity: function filledBSCTx(bytes32 ) constant returns(bool)

func (*ETHSwapAgentCaller) Owner

func (_ETHSwapAgent *ETHSwapAgentCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*ETHSwapAgentCaller) RegisteredERC20

func (_ETHSwapAgent *ETHSwapAgentCaller) RegisteredERC20(opts *bind.CallOpts, arg0 common.Address) (bool, error)

RegisteredERC20 is a free data retrieval call binding the contract method 0x89b15604.

Solidity: function registeredERC20(address ) constant returns(bool)

func (*ETHSwapAgentCaller) SwapFee

func (_ETHSwapAgent *ETHSwapAgentCaller) SwapFee(opts *bind.CallOpts) (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() constant returns(uint256)

type ETHSwapAgentCallerRaw

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

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

func (*ETHSwapAgentCallerRaw) Call

func (_ETHSwapAgent *ETHSwapAgentCallerRaw) 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 ETHSwapAgentCallerSession

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

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

func (*ETHSwapAgentCallerSession) FilledBSCTx

func (_ETHSwapAgent *ETHSwapAgentCallerSession) FilledBSCTx(arg0 [32]byte) (bool, error)

FilledBSCTx is a free data retrieval call binding the contract method 0x50877c77.

Solidity: function filledBSCTx(bytes32 ) constant returns(bool)

func (*ETHSwapAgentCallerSession) Owner

func (_ETHSwapAgent *ETHSwapAgentCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*ETHSwapAgentCallerSession) RegisteredERC20

func (_ETHSwapAgent *ETHSwapAgentCallerSession) RegisteredERC20(arg0 common.Address) (bool, error)

RegisteredERC20 is a free data retrieval call binding the contract method 0x89b15604.

Solidity: function registeredERC20(address ) constant returns(bool)

func (*ETHSwapAgentCallerSession) SwapFee

func (_ETHSwapAgent *ETHSwapAgentCallerSession) SwapFee() (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() constant returns(uint256)

type ETHSwapAgentFilterer

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

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

func NewETHSwapAgentFilterer

func NewETHSwapAgentFilterer(address common.Address, filterer bind.ContractFilterer) (*ETHSwapAgentFilterer, error)

NewETHSwapAgentFilterer creates a new log filterer instance of ETHSwapAgent, bound to a specific deployed contract.

func (*ETHSwapAgentFilterer) FilterOwnershipTransferred

func (_ETHSwapAgent *ETHSwapAgentFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ETHSwapAgentOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ETHSwapAgentFilterer) FilterSwapFilled

func (_ETHSwapAgent *ETHSwapAgentFilterer) FilterSwapFilled(opts *bind.FilterOpts, erc20Addr []common.Address, bscTxHash [][32]byte, toAddress []common.Address) (*ETHSwapAgentSwapFilledIterator, error)

FilterSwapFilled is a free log retrieval operation binding the contract event 0x3bebd9a738291e69898b5dbfadb6329b4b09fc648bdef68762928e521463abd9.

Solidity: event SphynxSwapFilled(address indexed erc20Addr, bytes32 indexed bscTxHash, address indexed toAddress, uint256 amount)

func (*ETHSwapAgentFilterer) FilterSwapPairRegister

func (_ETHSwapAgent *ETHSwapAgentFilterer) FilterSwapPairRegister(opts *bind.FilterOpts, sponsor []common.Address, erc20Addr []common.Address) (*ETHSwapAgentSwapPairRegisterIterator, error)

FilterSwapPairRegister is a free log retrieval operation binding the contract event 0xfe3bd005e346323fa452df8cafc28c55b99e3766ba8750571d139c6cf5bc08a0.

Solidity: event SwapPairRegister(address indexed sponsor, address indexed erc20Addr, string name, string symbol, uint8 decimals)

func (*ETHSwapAgentFilterer) FilterSwapStarted

func (_ETHSwapAgent *ETHSwapAgentFilterer) FilterSwapStarted(opts *bind.FilterOpts, erc20Addr []common.Address, fromAddr []common.Address) (*ETHSwapAgentSwapStartedIterator, error)

FilterSwapStarted is a free log retrieval operation binding the contract event 0xf60309f865a6aa297da5fac6188136a02e5acfdf6e8f6d35257a9f4e9653170f.

Solidity: event SwapStarted(address indexed erc20Addr, address indexed fromAddr, uint256 amount, uint256 feeAmount)

func (*ETHSwapAgentFilterer) ParseOwnershipTransferred

func (_ETHSwapAgent *ETHSwapAgentFilterer) ParseOwnershipTransferred(log types.Log) (*ETHSwapAgentOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ETHSwapAgentFilterer) ParseSwapFilled

func (_ETHSwapAgent *ETHSwapAgentFilterer) ParseSwapFilled(log types.Log) (*ETHSwapAgentSwapFilled, error)

ParseSwapFilled is a log parse operation binding the contract event 0x3bebd9a738291e69898b5dbfadb6329b4b09fc648bdef68762928e521463abd9.

Solidity: event SphynxSwapFilled(address indexed erc20Addr, bytes32 indexed bscTxHash, address indexed toAddress, uint256 amount)

func (*ETHSwapAgentFilterer) ParseSwapPairRegister

func (_ETHSwapAgent *ETHSwapAgentFilterer) ParseSwapPairRegister(log types.Log) (*ETHSwapAgentSwapPairRegister, error)

ParseSwapPairRegister is a log parse operation binding the contract event 0xfe3bd005e346323fa452df8cafc28c55b99e3766ba8750571d139c6cf5bc08a0.

Solidity: event SwapPairRegister(address indexed sponsor, address indexed erc20Addr, string name, string symbol, uint8 decimals)

func (*ETHSwapAgentFilterer) ParseSwapStarted

func (_ETHSwapAgent *ETHSwapAgentFilterer) ParseSwapStarted(log types.Log) (*ETHSwapAgentSwapStarted, error)

ParseSwapStarted is a log parse operation binding the contract event 0xf60309f865a6aa297da5fac6188136a02e5acfdf6e8f6d35257a9f4e9653170f.

Solidity: event SwapStarted(address indexed erc20Addr, address indexed fromAddr, uint256 amount, uint256 feeAmount)

func (*ETHSwapAgentFilterer) WatchOwnershipTransferred

func (_ETHSwapAgent *ETHSwapAgentFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ETHSwapAgentOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ETHSwapAgentFilterer) WatchSwapFilled

func (_ETHSwapAgent *ETHSwapAgentFilterer) WatchSwapFilled(opts *bind.WatchOpts, sink chan<- *ETHSwapAgentSwapFilled, erc20Addr []common.Address, bscTxHash [][32]byte, toAddress []common.Address) (event.Subscription, error)

WatchSwapFilled is a free log subscription operation binding the contract event 0x3bebd9a738291e69898b5dbfadb6329b4b09fc648bdef68762928e521463abd9.

Solidity: event SphynxSwapFilled(address indexed erc20Addr, bytes32 indexed bscTxHash, address indexed toAddress, uint256 amount)

func (*ETHSwapAgentFilterer) WatchSwapPairRegister

func (_ETHSwapAgent *ETHSwapAgentFilterer) WatchSwapPairRegister(opts *bind.WatchOpts, sink chan<- *ETHSwapAgentSwapPairRegister, sponsor []common.Address, erc20Addr []common.Address) (event.Subscription, error)

WatchSwapPairRegister is a free log subscription operation binding the contract event 0xfe3bd005e346323fa452df8cafc28c55b99e3766ba8750571d139c6cf5bc08a0.

Solidity: event SwapPairRegister(address indexed sponsor, address indexed erc20Addr, string name, string symbol, uint8 decimals)

func (*ETHSwapAgentFilterer) WatchSwapStarted

func (_ETHSwapAgent *ETHSwapAgentFilterer) WatchSwapStarted(opts *bind.WatchOpts, sink chan<- *ETHSwapAgentSwapStarted, erc20Addr []common.Address, fromAddr []common.Address) (event.Subscription, error)

WatchSwapStarted is a free log subscription operation binding the contract event 0xf60309f865a6aa297da5fac6188136a02e5acfdf6e8f6d35257a9f4e9653170f.

Solidity: event SwapStarted(address indexed erc20Addr, address indexed fromAddr, uint256 amount, uint256 feeAmount)

type ETHSwapAgentOwnershipTransferred

type ETHSwapAgentOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

ETHSwapAgentOwnershipTransferred represents a OwnershipTransferred event raised by the ETHSwapAgent contract.

type ETHSwapAgentOwnershipTransferredIterator

type ETHSwapAgentOwnershipTransferredIterator struct {
	Event *ETHSwapAgentOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ETHSwapAgentOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ETHSwapAgent contract.

func (*ETHSwapAgentOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ETHSwapAgentOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ETHSwapAgentOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ETHSwapAgentRaw

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

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

func (*ETHSwapAgentRaw) Call

func (_ETHSwapAgent *ETHSwapAgentRaw) 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 (*ETHSwapAgentRaw) Transact

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

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

func (*ETHSwapAgentRaw) Transfer

func (_ETHSwapAgent *ETHSwapAgentRaw) 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 ETHSwapAgentSession

type ETHSwapAgentSession struct {
	Contract     *ETHSwapAgent     // 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
}

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

func (*ETHSwapAgentSession) FillBSC2ETHSwap

func (_ETHSwapAgent *ETHSwapAgentSession) FillBSC2ETHSwap(bscTxHash [32]byte, erc20Addr common.Address, toAddress common.Address, amount *big.Int) (*types.Transaction, error)

FillBSC2ETHSwap is a paid mutator transaction binding the contract method 0x9867df11.

Solidity: function fillBSC2ETHSwap(bytes32 bscTxHash, address erc20Addr, address toAddress, uint256 amount) returns(bool)

func (*ETHSwapAgentSession) FilledBSCTx

func (_ETHSwapAgent *ETHSwapAgentSession) FilledBSCTx(arg0 [32]byte) (bool, error)

FilledBSCTx is a free data retrieval call binding the contract method 0x50877c77.

Solidity: function filledBSCTx(bytes32 ) constant returns(bool)

func (*ETHSwapAgentSession) Initialize

func (_ETHSwapAgent *ETHSwapAgentSession) Initialize(fee *big.Int, ownerAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(uint256 fee, address ownerAddr) returns()

func (*ETHSwapAgentSession) Owner

func (_ETHSwapAgent *ETHSwapAgentSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*ETHSwapAgentSession) RegisterSwapPairToBSC

func (_ETHSwapAgent *ETHSwapAgentSession) RegisterSwapPairToBSC(erc20Addr common.Address) (*types.Transaction, error)

RegisterSwapPairToBSC is a paid mutator transaction binding the contract method 0x5c13c151.

Solidity: function registerSwapPairToBSC(address erc20Addr) returns(bool)

func (*ETHSwapAgentSession) RegisteredERC20

func (_ETHSwapAgent *ETHSwapAgentSession) RegisteredERC20(arg0 common.Address) (bool, error)

RegisteredERC20 is a free data retrieval call binding the contract method 0x89b15604.

Solidity: function registeredERC20(address ) constant returns(bool)

func (*ETHSwapAgentSession) RenounceOwnership

func (_ETHSwapAgent *ETHSwapAgentSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ETHSwapAgentSession) SetSwapFee

func (_ETHSwapAgent *ETHSwapAgentSession) SetSwapFee(fee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 fee) returns()

func (*ETHSwapAgentSession) SwapETH2BSC

func (_ETHSwapAgent *ETHSwapAgentSession) SwapETH2BSC(erc20Addr common.Address, amount *big.Int) (*types.Transaction, error)

SwapETH2BSC is a paid mutator transaction binding the contract method 0xb9927a9c.

Solidity: function swapETH2BSC(address erc20Addr, uint256 amount) returns(bool)

func (*ETHSwapAgentSession) SwapFee

func (_ETHSwapAgent *ETHSwapAgentSession) SwapFee() (*big.Int, error)

SwapFee is a free data retrieval call binding the contract method 0x54cf2aeb.

Solidity: function swapFee() constant returns(uint256)

func (*ETHSwapAgentSession) TransferOwnership

func (_ETHSwapAgent *ETHSwapAgentSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type ETHSwapAgentSwapFilled

type ETHSwapAgentSwapFilled struct {
	Erc20Addr common.Address
	BscTxHash [32]byte
	ToAddress common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

ETHSwapAgentSwapFilled represents a SphynxSwapFilled event raised by the ETHSwapAgent contract.

type ETHSwapAgentSwapFilledIterator

type ETHSwapAgentSwapFilledIterator struct {
	Event *ETHSwapAgentSwapFilled // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ETHSwapAgentSwapFilledIterator is returned from FilterSwapFilled and is used to iterate over the raw logs and unpacked data for SphynxSwapFilled events raised by the ETHSwapAgent contract.

func (*ETHSwapAgentSwapFilledIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ETHSwapAgentSwapFilledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ETHSwapAgentSwapFilledIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ETHSwapAgentSwapPairRegister

type ETHSwapAgentSwapPairRegister struct {
	Sponsor   common.Address
	Erc20Addr common.Address
	Name      string
	Symbol    string
	Decimals  uint8
	Raw       types.Log // Blockchain specific contextual infos
}

ETHSwapAgentSwapPairRegister represents a SwapPairRegister event raised by the ETHSwapAgent contract.

type ETHSwapAgentSwapPairRegisterIterator

type ETHSwapAgentSwapPairRegisterIterator struct {
	Event *ETHSwapAgentSwapPairRegister // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ETHSwapAgentSwapPairRegisterIterator is returned from FilterSwapPairRegister and is used to iterate over the raw logs and unpacked data for SwapPairRegister events raised by the ETHSwapAgent contract.

func (*ETHSwapAgentSwapPairRegisterIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ETHSwapAgentSwapPairRegisterIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ETHSwapAgentSwapPairRegisterIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ETHSwapAgentSwapStarted

type ETHSwapAgentSwapStarted struct {
	Erc20Addr common.Address
	FromAddr  common.Address
	Amount    *big.Int
	FeeAmount *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

ETHSwapAgentSwapStarted represents a SwapStarted event raised by the ETHSwapAgent contract.

type ETHSwapAgentSwapStartedIterator

type ETHSwapAgentSwapStartedIterator struct {
	Event *ETHSwapAgentSwapStarted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ETHSwapAgentSwapStartedIterator is returned from FilterSwapStarted and is used to iterate over the raw logs and unpacked data for SwapStarted events raised by the ETHSwapAgent contract.

func (*ETHSwapAgentSwapStartedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ETHSwapAgentSwapStartedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ETHSwapAgentSwapStartedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ETHSwapAgentTransactor

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

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

func NewETHSwapAgentTransactor

func NewETHSwapAgentTransactor(address common.Address, transactor bind.ContractTransactor) (*ETHSwapAgentTransactor, error)

NewETHSwapAgentTransactor creates a new write-only instance of ETHSwapAgent, bound to a specific deployed contract.

func (*ETHSwapAgentTransactor) FillBSC2ETHSwap

func (_ETHSwapAgent *ETHSwapAgentTransactor) FillBSC2ETHSwap(opts *bind.TransactOpts, bscTxHash [32]byte, erc20Addr common.Address, toAddress common.Address, amount *big.Int) (*types.Transaction, error)

FillBSC2ETHSwap is a paid mutator transaction binding the contract method 0x9867df11.

Solidity: function fillBSC2ETHSwap(bytes32 bscTxHash, address erc20Addr, address toAddress, uint256 amount) returns(bool)

func (*ETHSwapAgentTransactor) Initialize

func (_ETHSwapAgent *ETHSwapAgentTransactor) Initialize(opts *bind.TransactOpts, fee *big.Int, ownerAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(uint256 fee, address ownerAddr) returns()

func (*ETHSwapAgentTransactor) RegisterSwapPairToBSC

func (_ETHSwapAgent *ETHSwapAgentTransactor) RegisterSwapPairToBSC(opts *bind.TransactOpts, erc20Addr common.Address) (*types.Transaction, error)

RegisterSwapPairToBSC is a paid mutator transaction binding the contract method 0x5c13c151.

Solidity: function registerSwapPairToBSC(address erc20Addr) returns(bool)

func (*ETHSwapAgentTransactor) RenounceOwnership

func (_ETHSwapAgent *ETHSwapAgentTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ETHSwapAgentTransactor) SetSwapFee

func (_ETHSwapAgent *ETHSwapAgentTransactor) SetSwapFee(opts *bind.TransactOpts, fee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 fee) returns()

func (*ETHSwapAgentTransactor) SwapETH2BSC

func (_ETHSwapAgent *ETHSwapAgentTransactor) SwapETH2BSC(opts *bind.TransactOpts, erc20Addr common.Address, amount *big.Int) (*types.Transaction, error)

SwapETH2BSC is a paid mutator transaction binding the contract method 0xb9927a9c.

Solidity: function swapETH2BSC(address erc20Addr, uint256 amount) returns(bool)

func (*ETHSwapAgentTransactor) TransferOwnership

func (_ETHSwapAgent *ETHSwapAgentTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type ETHSwapAgentTransactorRaw

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

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

func (*ETHSwapAgentTransactorRaw) Transact

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

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

func (*ETHSwapAgentTransactorRaw) Transfer

func (_ETHSwapAgent *ETHSwapAgentTransactorRaw) 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 ETHSwapAgentTransactorSession

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

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

func (*ETHSwapAgentTransactorSession) FillBSC2ETHSwap

func (_ETHSwapAgent *ETHSwapAgentTransactorSession) FillBSC2ETHSwap(bscTxHash [32]byte, erc20Addr common.Address, toAddress common.Address, amount *big.Int) (*types.Transaction, error)

FillBSC2ETHSwap is a paid mutator transaction binding the contract method 0x9867df11.

Solidity: function fillBSC2ETHSwap(bytes32 bscTxHash, address erc20Addr, address toAddress, uint256 amount) returns(bool)

func (*ETHSwapAgentTransactorSession) Initialize

func (_ETHSwapAgent *ETHSwapAgentTransactorSession) Initialize(fee *big.Int, ownerAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(uint256 fee, address ownerAddr) returns()

func (*ETHSwapAgentTransactorSession) RegisterSwapPairToBSC

func (_ETHSwapAgent *ETHSwapAgentTransactorSession) RegisterSwapPairToBSC(erc20Addr common.Address) (*types.Transaction, error)

RegisterSwapPairToBSC is a paid mutator transaction binding the contract method 0x5c13c151.

Solidity: function registerSwapPairToBSC(address erc20Addr) returns(bool)

func (*ETHSwapAgentTransactorSession) RenounceOwnership

func (_ETHSwapAgent *ETHSwapAgentTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ETHSwapAgentTransactorSession) SetSwapFee

func (_ETHSwapAgent *ETHSwapAgentTransactorSession) SetSwapFee(fee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 fee) returns()

func (*ETHSwapAgentTransactorSession) SwapETH2BSC

func (_ETHSwapAgent *ETHSwapAgentTransactorSession) SwapETH2BSC(erc20Addr common.Address, amount *big.Int) (*types.Transaction, error)

SwapETH2BSC is a paid mutator transaction binding the contract method 0xb9927a9c.

Solidity: function swapETH2BSC(address erc20Addr, uint256 amount) returns(bool)

func (*ETHSwapAgentTransactorSession) TransferOwnership

func (_ETHSwapAgent *ETHSwapAgentTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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