isyncswap_factory

package
v0.0.125 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ISyncSwapFactoryABI = ISyncSwapFactoryMetaData.ABI

ISyncSwapFactoryABI is the input ABI used to generate the binding from. Deprecated: Use ISyncSwapFactoryMetaData.ABI instead.

View Source
var ISyncSwapFactoryMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDeployData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"getSwapFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"swapFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ISyncSwapFactoryMetaData contains all meta data concerning the ISyncSwapFactory contract.

Functions

This section is empty.

Types

type ISyncSwapFactory

type ISyncSwapFactory struct {
	ISyncSwapFactoryCaller     // Read-only binding to the contract
	ISyncSwapFactoryTransactor // Write-only binding to the contract
	ISyncSwapFactoryFilterer   // Log filterer for contract events
}

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

func NewISyncSwapFactory

func NewISyncSwapFactory(address common.Address, backend bind.ContractBackend) (*ISyncSwapFactory, error)

NewISyncSwapFactory creates a new instance of ISyncSwapFactory, bound to a specific deployed contract.

type ISyncSwapFactoryCaller

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

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

func NewISyncSwapFactoryCaller

func NewISyncSwapFactoryCaller(address common.Address, caller bind.ContractCaller) (*ISyncSwapFactoryCaller, error)

NewISyncSwapFactoryCaller creates a new read-only instance of ISyncSwapFactory, bound to a specific deployed contract.

func (*ISyncSwapFactoryCaller) GetDeployData

func (_ISyncSwapFactory *ISyncSwapFactoryCaller) GetDeployData(opts *bind.CallOpts) ([]byte, error)

GetDeployData is a free data retrieval call binding the contract method 0xd039f622.

Solidity: function getDeployData() view returns(bytes)

func (*ISyncSwapFactoryCaller) GetPool

func (_ISyncSwapFactory *ISyncSwapFactoryCaller) GetPool(opts *bind.CallOpts, tokenA common.Address, tokenB common.Address) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x531aa03e.

Solidity: function getPool(address tokenA, address tokenB) view returns(address pool)

func (*ISyncSwapFactoryCaller) GetSwapFee

func (_ISyncSwapFactory *ISyncSwapFactoryCaller) GetSwapFee(opts *bind.CallOpts, pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.

Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)

func (*ISyncSwapFactoryCaller) Master

func (_ISyncSwapFactory *ISyncSwapFactoryCaller) Master(opts *bind.CallOpts) (common.Address, error)

Master is a free data retrieval call binding the contract method 0xee97f7f3.

Solidity: function master() view returns(address)

type ISyncSwapFactoryCallerRaw

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

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

func (*ISyncSwapFactoryCallerRaw) Call

func (_ISyncSwapFactory *ISyncSwapFactoryCallerRaw) 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 ISyncSwapFactoryCallerSession

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

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

func (*ISyncSwapFactoryCallerSession) GetDeployData

func (_ISyncSwapFactory *ISyncSwapFactoryCallerSession) GetDeployData() ([]byte, error)

GetDeployData is a free data retrieval call binding the contract method 0xd039f622.

Solidity: function getDeployData() view returns(bytes)

func (*ISyncSwapFactoryCallerSession) GetPool

func (_ISyncSwapFactory *ISyncSwapFactoryCallerSession) GetPool(tokenA common.Address, tokenB common.Address) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x531aa03e.

Solidity: function getPool(address tokenA, address tokenB) view returns(address pool)

func (*ISyncSwapFactoryCallerSession) GetSwapFee

func (_ISyncSwapFactory *ISyncSwapFactoryCallerSession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.

Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)

func (*ISyncSwapFactoryCallerSession) Master

func (_ISyncSwapFactory *ISyncSwapFactoryCallerSession) Master() (common.Address, error)

Master is a free data retrieval call binding the contract method 0xee97f7f3.

Solidity: function master() view returns(address)

type ISyncSwapFactoryFilterer

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

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

func NewISyncSwapFactoryFilterer

func NewISyncSwapFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*ISyncSwapFactoryFilterer, error)

NewISyncSwapFactoryFilterer creates a new log filterer instance of ISyncSwapFactory, bound to a specific deployed contract.

func (*ISyncSwapFactoryFilterer) FilterPoolCreated

func (_ISyncSwapFactory *ISyncSwapFactoryFilterer) FilterPoolCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*ISyncSwapFactoryPoolCreatedIterator, error)

FilterPoolCreated is a free log retrieval operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.

Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)

func (*ISyncSwapFactoryFilterer) ParsePoolCreated

func (_ISyncSwapFactory *ISyncSwapFactoryFilterer) ParsePoolCreated(log types.Log) (*ISyncSwapFactoryPoolCreated, error)

ParsePoolCreated is a log parse operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.

Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)

func (*ISyncSwapFactoryFilterer) WatchPoolCreated

func (_ISyncSwapFactory *ISyncSwapFactoryFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *ISyncSwapFactoryPoolCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error)

WatchPoolCreated is a free log subscription operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.

Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)

type ISyncSwapFactoryPoolCreated

type ISyncSwapFactoryPoolCreated struct {
	Token0 common.Address
	Token1 common.Address
	Pool   common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

ISyncSwapFactoryPoolCreated represents a PoolCreated event raised by the ISyncSwapFactory contract.

type ISyncSwapFactoryPoolCreatedIterator

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

ISyncSwapFactoryPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the ISyncSwapFactory contract.

func (*ISyncSwapFactoryPoolCreatedIterator) Close

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

func (*ISyncSwapFactoryPoolCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ISyncSwapFactoryPoolCreatedIterator) 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 ISyncSwapFactoryRaw

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

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

func (*ISyncSwapFactoryRaw) Call

func (_ISyncSwapFactory *ISyncSwapFactoryRaw) 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 (*ISyncSwapFactoryRaw) Transact

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

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

func (*ISyncSwapFactoryRaw) Transfer

func (_ISyncSwapFactory *ISyncSwapFactoryRaw) 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 ISyncSwapFactorySession

type ISyncSwapFactorySession struct {
	Contract     *ISyncSwapFactory // 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
}

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

func (*ISyncSwapFactorySession) CreatePool

func (_ISyncSwapFactory *ISyncSwapFactorySession) CreatePool(data []byte) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.

Solidity: function createPool(bytes data) returns(address pool)

func (*ISyncSwapFactorySession) GetDeployData

func (_ISyncSwapFactory *ISyncSwapFactorySession) GetDeployData() ([]byte, error)

GetDeployData is a free data retrieval call binding the contract method 0xd039f622.

Solidity: function getDeployData() view returns(bytes)

func (*ISyncSwapFactorySession) GetPool

func (_ISyncSwapFactory *ISyncSwapFactorySession) GetPool(tokenA common.Address, tokenB common.Address) (common.Address, error)

GetPool is a free data retrieval call binding the contract method 0x531aa03e.

Solidity: function getPool(address tokenA, address tokenB) view returns(address pool)

func (*ISyncSwapFactorySession) GetSwapFee

func (_ISyncSwapFactory *ISyncSwapFactorySession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.

Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)

func (*ISyncSwapFactorySession) Master

func (_ISyncSwapFactory *ISyncSwapFactorySession) Master() (common.Address, error)

Master is a free data retrieval call binding the contract method 0xee97f7f3.

Solidity: function master() view returns(address)

type ISyncSwapFactoryTransactor

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

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

func NewISyncSwapFactoryTransactor

func NewISyncSwapFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*ISyncSwapFactoryTransactor, error)

NewISyncSwapFactoryTransactor creates a new write-only instance of ISyncSwapFactory, bound to a specific deployed contract.

func (*ISyncSwapFactoryTransactor) CreatePool

func (_ISyncSwapFactory *ISyncSwapFactoryTransactor) CreatePool(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.

Solidity: function createPool(bytes data) returns(address pool)

type ISyncSwapFactoryTransactorRaw

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

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

func (*ISyncSwapFactoryTransactorRaw) Transact

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

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

func (*ISyncSwapFactoryTransactorRaw) Transfer

func (_ISyncSwapFactory *ISyncSwapFactoryTransactorRaw) 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 ISyncSwapFactoryTransactorSession

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

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

func (*ISyncSwapFactoryTransactorSession) CreatePool

func (_ISyncSwapFactory *ISyncSwapFactoryTransactorSession) CreatePool(data []byte) (*types.Transaction, error)

CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.

Solidity: function createPool(bytes data) returns(address pool)

Jump to

Keyboard shortcuts

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