OtokenFactory

package
v1.4.1-rc-49 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OtokenFactoryABI = "" /* 3453-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type OtokenFactory

type OtokenFactory struct {
	OtokenFactoryCaller     // Read-only binding to the contract
	OtokenFactoryTransactor // Write-only binding to the contract
	OtokenFactoryFilterer   // Log filterer for contract events
}

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

func NewOtokenFactory

func NewOtokenFactory(address common.Address, backend bind.ContractBackend) (*OtokenFactory, error)

NewOtokenFactory creates a new instance of OtokenFactory, bound to a specific deployed contract.

type OtokenFactoryCaller

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

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

func NewOtokenFactoryCaller

func NewOtokenFactoryCaller(address common.Address, caller bind.ContractCaller) (*OtokenFactoryCaller, error)

NewOtokenFactoryCaller creates a new read-only instance of OtokenFactory, bound to a specific deployed contract.

func (*OtokenFactoryCaller) AddressBook

func (_OtokenFactory *OtokenFactoryCaller) AddressBook(opts *bind.CallOpts) (common.Address, error)

AddressBook is a free data retrieval call binding the contract method 0xf5887cdd.

Solidity: function addressBook() view returns(address)

func (*OtokenFactoryCaller) GetOtoken

func (_OtokenFactory *OtokenFactoryCaller) GetOtoken(opts *bind.CallOpts, _underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (common.Address, error)

GetOtoken is a free data retrieval call binding the contract method 0x11547054.

Solidity: function getOtoken(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) view returns(address)

func (*OtokenFactoryCaller) GetOtokensLength

func (_OtokenFactory *OtokenFactoryCaller) GetOtokensLength(opts *bind.CallOpts) (*big.Int, error)

GetOtokensLength is a free data retrieval call binding the contract method 0x46e63dc4.

Solidity: function getOtokensLength() view returns(uint256)

func (*OtokenFactoryCaller) GetTargetOtokenAddress

func (_OtokenFactory *OtokenFactoryCaller) GetTargetOtokenAddress(opts *bind.CallOpts, _underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (common.Address, error)

GetTargetOtokenAddress is a free data retrieval call binding the contract method 0xb86b9a64.

Solidity: function getTargetOtokenAddress(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) view returns(address)

func (*OtokenFactoryCaller) Otokens

func (_OtokenFactory *OtokenFactoryCaller) Otokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Otokens is a free data retrieval call binding the contract method 0xde0120de.

Solidity: function otokens(uint256 ) view returns(address)

type OtokenFactoryCallerRaw

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

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

func (*OtokenFactoryCallerRaw) Call

func (_OtokenFactory *OtokenFactoryCallerRaw) 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 OtokenFactoryCallerSession

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

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

func (*OtokenFactoryCallerSession) AddressBook

func (_OtokenFactory *OtokenFactoryCallerSession) AddressBook() (common.Address, error)

AddressBook is a free data retrieval call binding the contract method 0xf5887cdd.

Solidity: function addressBook() view returns(address)

func (*OtokenFactoryCallerSession) GetOtoken

func (_OtokenFactory *OtokenFactoryCallerSession) GetOtoken(_underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (common.Address, error)

GetOtoken is a free data retrieval call binding the contract method 0x11547054.

Solidity: function getOtoken(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) view returns(address)

func (*OtokenFactoryCallerSession) GetOtokensLength

func (_OtokenFactory *OtokenFactoryCallerSession) GetOtokensLength() (*big.Int, error)

GetOtokensLength is a free data retrieval call binding the contract method 0x46e63dc4.

Solidity: function getOtokensLength() view returns(uint256)

func (*OtokenFactoryCallerSession) GetTargetOtokenAddress

func (_OtokenFactory *OtokenFactoryCallerSession) GetTargetOtokenAddress(_underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (common.Address, error)

GetTargetOtokenAddress is a free data retrieval call binding the contract method 0xb86b9a64.

Solidity: function getTargetOtokenAddress(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) view returns(address)

func (*OtokenFactoryCallerSession) Otokens

func (_OtokenFactory *OtokenFactoryCallerSession) Otokens(arg0 *big.Int) (common.Address, error)

Otokens is a free data retrieval call binding the contract method 0xde0120de.

Solidity: function otokens(uint256 ) view returns(address)

type OtokenFactoryFilterer

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

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

func NewOtokenFactoryFilterer

func NewOtokenFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*OtokenFactoryFilterer, error)

NewOtokenFactoryFilterer creates a new log filterer instance of OtokenFactory, bound to a specific deployed contract.

func (*OtokenFactoryFilterer) FilterOtokenCreated

func (_OtokenFactory *OtokenFactoryFilterer) FilterOtokenCreated(opts *bind.FilterOpts, underlying []common.Address, strike []common.Address, collateral []common.Address) (*OtokenFactoryOtokenCreatedIterator, error)

FilterOtokenCreated is a free log retrieval operation binding the contract event 0xedf283b0b3396dd34e23a917cb887ad557f18a593be3a2e9c069fd59f19a811a.

Solidity: event OtokenCreated(address tokenAddress, address creator, address indexed underlying, address indexed strike, address indexed collateral, uint256 strikePrice, uint256 expiry, bool isPut)

func (*OtokenFactoryFilterer) ParseOtokenCreated

func (_OtokenFactory *OtokenFactoryFilterer) ParseOtokenCreated(log types.Log) (*OtokenFactoryOtokenCreated, error)

ParseOtokenCreated is a log parse operation binding the contract event 0xedf283b0b3396dd34e23a917cb887ad557f18a593be3a2e9c069fd59f19a811a.

Solidity: event OtokenCreated(address tokenAddress, address creator, address indexed underlying, address indexed strike, address indexed collateral, uint256 strikePrice, uint256 expiry, bool isPut)

func (*OtokenFactoryFilterer) WatchOtokenCreated

func (_OtokenFactory *OtokenFactoryFilterer) WatchOtokenCreated(opts *bind.WatchOpts, sink chan<- *OtokenFactoryOtokenCreated, underlying []common.Address, strike []common.Address, collateral []common.Address) (event.Subscription, error)

WatchOtokenCreated is a free log subscription operation binding the contract event 0xedf283b0b3396dd34e23a917cb887ad557f18a593be3a2e9c069fd59f19a811a.

Solidity: event OtokenCreated(address tokenAddress, address creator, address indexed underlying, address indexed strike, address indexed collateral, uint256 strikePrice, uint256 expiry, bool isPut)

type OtokenFactoryOtokenCreated

type OtokenFactoryOtokenCreated struct {
	TokenAddress common.Address
	Creator      common.Address
	Underlying   common.Address
	Strike       common.Address
	Collateral   common.Address
	StrikePrice  *big.Int
	Expiry       *big.Int
	IsPut        bool
	Raw          types.Log // Blockchain specific contextual infos
}

OtokenFactoryOtokenCreated represents a OtokenCreated event raised by the OtokenFactory contract.

type OtokenFactoryOtokenCreatedIterator

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

OtokenFactoryOtokenCreatedIterator is returned from FilterOtokenCreated and is used to iterate over the raw logs and unpacked data for OtokenCreated events raised by the OtokenFactory contract.

func (*OtokenFactoryOtokenCreatedIterator) Close

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

func (*OtokenFactoryOtokenCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*OtokenFactoryOtokenCreatedIterator) 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 OtokenFactoryRaw

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

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

func (*OtokenFactoryRaw) Call

func (_OtokenFactory *OtokenFactoryRaw) 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 (*OtokenFactoryRaw) Transact

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

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

func (*OtokenFactoryRaw) Transfer

func (_OtokenFactory *OtokenFactoryRaw) 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 OtokenFactorySession

type OtokenFactorySession struct {
	Contract     *OtokenFactory    // 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
}

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

func (*OtokenFactorySession) AddressBook

func (_OtokenFactory *OtokenFactorySession) AddressBook() (common.Address, error)

AddressBook is a free data retrieval call binding the contract method 0xf5887cdd.

Solidity: function addressBook() view returns(address)

func (*OtokenFactorySession) CreateOtoken

func (_OtokenFactory *OtokenFactorySession) CreateOtoken(_underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (*types.Transaction, error)

CreateOtoken is a paid mutator transaction binding the contract method 0xc0974630.

Solidity: function createOtoken(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) returns(address)

func (*OtokenFactorySession) GetOtoken

func (_OtokenFactory *OtokenFactorySession) GetOtoken(_underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (common.Address, error)

GetOtoken is a free data retrieval call binding the contract method 0x11547054.

Solidity: function getOtoken(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) view returns(address)

func (*OtokenFactorySession) GetOtokensLength

func (_OtokenFactory *OtokenFactorySession) GetOtokensLength() (*big.Int, error)

GetOtokensLength is a free data retrieval call binding the contract method 0x46e63dc4.

Solidity: function getOtokensLength() view returns(uint256)

func (*OtokenFactorySession) GetTargetOtokenAddress

func (_OtokenFactory *OtokenFactorySession) GetTargetOtokenAddress(_underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (common.Address, error)

GetTargetOtokenAddress is a free data retrieval call binding the contract method 0xb86b9a64.

Solidity: function getTargetOtokenAddress(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) view returns(address)

func (*OtokenFactorySession) Otokens

func (_OtokenFactory *OtokenFactorySession) Otokens(arg0 *big.Int) (common.Address, error)

Otokens is a free data retrieval call binding the contract method 0xde0120de.

Solidity: function otokens(uint256 ) view returns(address)

type OtokenFactoryTransactor

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

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

func NewOtokenFactoryTransactor

func NewOtokenFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*OtokenFactoryTransactor, error)

NewOtokenFactoryTransactor creates a new write-only instance of OtokenFactory, bound to a specific deployed contract.

func (*OtokenFactoryTransactor) CreateOtoken

func (_OtokenFactory *OtokenFactoryTransactor) CreateOtoken(opts *bind.TransactOpts, _underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (*types.Transaction, error)

CreateOtoken is a paid mutator transaction binding the contract method 0xc0974630.

Solidity: function createOtoken(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) returns(address)

type OtokenFactoryTransactorRaw

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

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

func (*OtokenFactoryTransactorRaw) Transact

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

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

func (*OtokenFactoryTransactorRaw) Transfer

func (_OtokenFactory *OtokenFactoryTransactorRaw) 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 OtokenFactoryTransactorSession

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

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

func (*OtokenFactoryTransactorSession) CreateOtoken

func (_OtokenFactory *OtokenFactoryTransactorSession) CreateOtoken(_underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiry *big.Int, _isPut bool) (*types.Transaction, error)

CreateOtoken is a paid mutator transaction binding the contract method 0xc0974630.

Solidity: function createOtoken(address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiry, bool _isPut) returns(address)

Jump to

Keyboard shortcuts

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