Documentation ¶
Index ¶
- Constants
- Variables
- type Mock
- type MockCaller
- type MockCallerRaw
- type MockCallerSession
- type MockFilterer
- func (_Mock *MockFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*MockPairCreatedIterator, error)
- func (_Mock *MockFilterer) FilterSync(opts *bind.FilterOpts) (*MockSyncIterator, error)
- func (_Mock *MockFilterer) ParsePairCreated(log types.Log) (*MockPairCreated, error)
- func (_Mock *MockFilterer) ParseSync(log types.Log) (*MockSync, error)
- func (_Mock *MockFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *MockPairCreated, token0 []common.Address, ...) (event.Subscription, error)
- func (_Mock *MockFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *MockSync) (event.Subscription, error)
- type MockPairCreated
- type MockPairCreatedIterator
- type MockRaw
- func (_Mock *MockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Mock *MockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Mock *MockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MockSession
- type MockSync
- type MockSyncIterator
- type MockTransactor
- type MockTransactorRaw
- type MockTransactorSession
Constants ¶
const MockABI = "" /* 1468-byte string literal not displayed */
MockABI is the input ABI used to generate the binding from.
Variables ¶
var MockBin = "" /* 2110-byte string literal not displayed */
MockBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct { MockCaller // Read-only binding to the contract MockTransactor // Write-only binding to the contract MockFilterer // Log filterer for contract events }
Mock is an auto generated Go binding around an Ethereum contract.
func DeployMock ¶
func DeployMock(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Mock, error)
DeployMock deploys a new Ethereum contract, binding an instance of Mock to it.
type MockCaller ¶
type MockCaller struct {
// contains filtered or unexported fields
}
MockCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMockCaller ¶
func NewMockCaller(address common.Address, caller bind.ContractCaller) (*MockCaller, error)
NewMockCaller creates a new read-only instance of Mock, bound to a specific deployed contract.
func (*MockCaller) GetReserves ¶
func (_Mock *MockCaller) GetReserves(opts *bind.CallOpts) (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast uint32 }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)
type MockCallerRaw ¶
type MockCallerRaw struct {
Contract *MockCaller // Generic read-only contract binding to access the raw methods on
}
MockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MockCallerRaw) Call ¶
func (_Mock *MockCallerRaw) 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 MockCallerSession ¶
type MockCallerSession struct { Contract *MockCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MockCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MockCallerSession) GetReserves ¶
func (_Mock *MockCallerSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast uint32 }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)
type MockFilterer ¶
type MockFilterer struct {
// contains filtered or unexported fields
}
MockFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMockFilterer ¶
func NewMockFilterer(address common.Address, filterer bind.ContractFilterer) (*MockFilterer, error)
NewMockFilterer creates a new log filterer instance of Mock, bound to a specific deployed contract.
func (*MockFilterer) FilterPairCreated ¶
func (_Mock *MockFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*MockPairCreatedIterator, error)
FilterPairCreated is a free log retrieval operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9.
Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3)
func (*MockFilterer) FilterSync ¶
func (_Mock *MockFilterer) FilterSync(opts *bind.FilterOpts) (*MockSyncIterator, error)
FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*MockFilterer) ParsePairCreated ¶
func (_Mock *MockFilterer) ParsePairCreated(log types.Log) (*MockPairCreated, error)
ParsePairCreated is a log parse operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9.
Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3)
func (*MockFilterer) ParseSync ¶
func (_Mock *MockFilterer) ParseSync(log types.Log) (*MockSync, error)
ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*MockFilterer) WatchPairCreated ¶
func (_Mock *MockFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *MockPairCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error)
WatchPairCreated is a free log subscription operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9.
Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3)
func (*MockFilterer) WatchSync ¶
func (_Mock *MockFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *MockSync) (event.Subscription, error)
WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
type MockPairCreated ¶
type MockPairCreated struct { Token0 common.Address Token1 common.Address Pair common.Address Arg3 *big.Int Raw types.Log // Blockchain specific contextual infos }
MockPairCreated represents a PairCreated event raised by the Mock contract.
type MockPairCreatedIterator ¶
type MockPairCreatedIterator struct { Event *MockPairCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MockPairCreatedIterator is returned from FilterPairCreated and is used to iterate over the raw logs and unpacked data for PairCreated events raised by the Mock contract.
func (*MockPairCreatedIterator) Close ¶
func (it *MockPairCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MockPairCreatedIterator) Error ¶
func (it *MockPairCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MockPairCreatedIterator) Next ¶
func (it *MockPairCreatedIterator) 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 MockRaw ¶
type MockRaw struct {
Contract *Mock // Generic contract binding to access the raw methods on
}
MockRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MockRaw) Call ¶
func (_Mock *MockRaw) 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 (*MockRaw) Transact ¶
func (_Mock *MockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MockRaw) Transfer ¶
func (_Mock *MockRaw) 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 MockSession ¶
type MockSession struct { Contract *Mock // 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 }
MockSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MockSession) EmitPairCreated ¶
func (_Mock *MockSession) EmitPairCreated(_token0 common.Address, _token1 common.Address, _pair common.Address) (*types.Transaction, error)
EmitPairCreated is a paid mutator transaction binding the contract method 0x0f895136.
Solidity: function emitPairCreated(address _token0, address _token1, address _pair) returns()
func (*MockSession) EmitSync ¶
func (_Mock *MockSession) EmitSync() (*types.Transaction, error)
EmitSync is a paid mutator transaction binding the contract method 0x893770c6.
Solidity: function emitSync() returns()
func (*MockSession) GetReserves ¶
func (_Mock *MockSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast uint32 }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)
type MockSync ¶
type MockSync struct { Reserve0 *big.Int Reserve1 *big.Int Raw types.Log // Blockchain specific contextual infos }
MockSync represents a Sync event raised by the Mock contract.
type MockSyncIterator ¶
type MockSyncIterator struct { Event *MockSync // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MockSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the Mock contract.
func (*MockSyncIterator) Close ¶
func (it *MockSyncIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MockSyncIterator) Error ¶
func (it *MockSyncIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MockSyncIterator) Next ¶
func (it *MockSyncIterator) 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 MockTransactor ¶
type MockTransactor struct {
// contains filtered or unexported fields
}
MockTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMockTransactor ¶
func NewMockTransactor(address common.Address, transactor bind.ContractTransactor) (*MockTransactor, error)
NewMockTransactor creates a new write-only instance of Mock, bound to a specific deployed contract.
func (*MockTransactor) EmitPairCreated ¶
func (_Mock *MockTransactor) EmitPairCreated(opts *bind.TransactOpts, _token0 common.Address, _token1 common.Address, _pair common.Address) (*types.Transaction, error)
EmitPairCreated is a paid mutator transaction binding the contract method 0x0f895136.
Solidity: function emitPairCreated(address _token0, address _token1, address _pair) returns()
func (*MockTransactor) EmitSync ¶
func (_Mock *MockTransactor) EmitSync(opts *bind.TransactOpts) (*types.Transaction, error)
EmitSync is a paid mutator transaction binding the contract method 0x893770c6.
Solidity: function emitSync() returns()
type MockTransactorRaw ¶
type MockTransactorRaw struct {
Contract *MockTransactor // Generic write-only contract binding to access the raw methods on
}
MockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MockTransactorRaw) Transact ¶
func (_Mock *MockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MockTransactorRaw) Transfer ¶
func (_Mock *MockTransactorRaw) 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 MockTransactorSession ¶
type MockTransactorSession struct { Contract *MockTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MockTransactorSession) EmitPairCreated ¶
func (_Mock *MockTransactorSession) EmitPairCreated(_token0 common.Address, _token1 common.Address, _pair common.Address) (*types.Transaction, error)
EmitPairCreated is a paid mutator transaction binding the contract method 0x0f895136.
Solidity: function emitPairCreated(address _token0, address _token1, address _pair) returns()
func (*MockTransactorSession) EmitSync ¶
func (_Mock *MockTransactorSession) EmitSync() (*types.Transaction, error)
EmitSync is a paid mutator transaction binding the contract method 0x893770c6.
Solidity: function emitSync() returns()