PremiaOption

package
v1.2.1-rc-5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PremiaOptionABI = "" /* 24465-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type PremiaOption

type PremiaOption struct {
	PremiaOptionCaller     // Read-only binding to the contract
	PremiaOptionTransactor // Write-only binding to the contract
	PremiaOptionFilterer   // Log filterer for contract events
}

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

func NewPremiaOption

func NewPremiaOption(address common.Address, backend bind.ContractBackend) (*PremiaOption, error)

NewPremiaOption creates a new instance of PremiaOption, bound to a specific deployed contract.

type PremiaOptionApprovalForAll

type PremiaOptionApprovalForAll struct {
	Account  common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

PremiaOptionApprovalForAll represents a ApprovalForAll event raised by the PremiaOption contract.

type PremiaOptionApprovalForAllIterator

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

PremiaOptionApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the PremiaOption contract.

func (*PremiaOptionApprovalForAllIterator) Close

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

func (*PremiaOptionApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionApprovalForAllIterator) 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 PremiaOptionCaller

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

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

func NewPremiaOptionCaller

func NewPremiaOptionCaller(address common.Address, caller bind.ContractCaller) (*PremiaOptionCaller, error)

NewPremiaOptionCaller creates a new read-only instance of PremiaOption, bound to a specific deployed contract.

func (*PremiaOptionCaller) BalanceOf

func (_PremiaOption *PremiaOptionCaller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*PremiaOptionCaller) BalanceOfBatch

func (_PremiaOption *PremiaOptionCaller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*PremiaOptionCaller) Denominator

func (_PremiaOption *PremiaOptionCaller) Denominator(opts *bind.CallOpts) (common.Address, error)

Denominator is a free data retrieval call binding the contract method 0x96ce0795.

Solidity: function denominator() view returns(address)

func (*PremiaOptionCaller) DenominatorDecimals

func (_PremiaOption *PremiaOptionCaller) DenominatorDecimals(opts *bind.CallOpts) (uint8, error)

DenominatorDecimals is a free data retrieval call binding the contract method 0x4cc47c0d.

Solidity: function denominatorDecimals() view returns(uint8)

func (*PremiaOptionCaller) FeeCalculator

func (_PremiaOption *PremiaOptionCaller) FeeCalculator(opts *bind.CallOpts) (common.Address, error)

FeeCalculator is a free data retrieval call binding the contract method 0xb00eb9fe.

Solidity: function feeCalculator() view returns(address)

func (*PremiaOptionCaller) FeeRecipient

func (_PremiaOption *PremiaOptionCaller) FeeRecipient(opts *bind.CallOpts) (common.Address, error)

FeeRecipient is a free data retrieval call binding the contract method 0x46904840.

Solidity: function feeRecipient() view returns(address)

func (*PremiaOptionCaller) GetExerciseQuote

func (_PremiaOption *PremiaOptionCaller) GetExerciseQuote(opts *bind.CallOpts, _from common.Address, _option PremiaOptionOptionData, _amount *big.Int, _referrer common.Address, _decimals uint8) (PremiaOptionQuoteExercise, error)

GetExerciseQuote is a free data retrieval call binding the contract method 0x3e998172.

Solidity: function getExerciseQuote(address _from, (address,uint256,uint256,bool,uint256,uint256,uint256,uint256,uint8) _option, uint256 _amount, address _referrer, uint8 _decimals) view returns((address,uint256,uint8,address,uint256,uint8,uint256,uint256))

func (*PremiaOptionCaller) GetOptionId

func (_PremiaOption *PremiaOptionCaller) GetOptionId(opts *bind.CallOpts, _token common.Address, _expiration *big.Int, _strikePrice *big.Int, _isCall bool) (*big.Int, error)

GetOptionId is a free data retrieval call binding the contract method 0x263621f3.

Solidity: function getOptionId(address _token, uint256 _expiration, uint256 _strikePrice, bool _isCall) view returns(uint256)

func (*PremiaOptionCaller) GetWriteQuote

func (_PremiaOption *PremiaOptionCaller) GetWriteQuote(opts *bind.CallOpts, _from common.Address, _option PremiaOptionOptionWriteArgs, _referrer common.Address, _decimals uint8) (PremiaOptionQuoteWrite, error)

GetWriteQuote is a free data retrieval call binding the contract method 0xd35daf2b.

Solidity: function getWriteQuote(address _from, (address,uint256,uint256,uint256,bool) _option, address _referrer, uint8 _decimals) view returns((address,uint256,uint8,uint256,uint256))

func (*PremiaOptionCaller) IsApprovedForAll

func (_PremiaOption *PremiaOptionCaller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*PremiaOptionCaller) MaxExpiration

func (_PremiaOption *PremiaOptionCaller) MaxExpiration(opts *bind.CallOpts) (*big.Int, error)

MaxExpiration is a free data retrieval call binding the contract method 0x25bee3e9.

Solidity: function maxExpiration() view returns(uint256)

func (*PremiaOptionCaller) NbWritten

func (_PremiaOption *PremiaOptionCaller) NbWritten(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)

NbWritten is a free data retrieval call binding the contract method 0x410e4e26.

Solidity: function nbWritten(address , uint256 ) view returns(uint256)

func (*PremiaOptionCaller) NextOptionId

func (_PremiaOption *PremiaOptionCaller) NextOptionId(opts *bind.CallOpts) (*big.Int, error)

NextOptionId is a free data retrieval call binding the contract method 0x9215abb0.

Solidity: function nextOptionId() view returns(uint256)

func (*PremiaOptionCaller) OptionData

func (_PremiaOption *PremiaOptionCaller) OptionData(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Token         common.Address
	StrikePrice   *big.Int
	Expiration    *big.Int
	IsCall        bool
	ClaimsPreExp  *big.Int
	ClaimsPostExp *big.Int
	Exercised     *big.Int
	Supply        *big.Int
	Decimals      uint8
}, error)

OptionData is a free data retrieval call binding the contract method 0x1f01a794.

Solidity: function optionData(uint256 ) view returns(address token, uint256 strikePrice, uint256 expiration, bool isCall, uint256 claimsPreExp, uint256 claimsPostExp, uint256 exercised, uint256 supply, uint8 decimals)

func (*PremiaOptionCaller) Options

func (_PremiaOption *PremiaOptionCaller) Options(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 bool) (*big.Int, error)

Options is a free data retrieval call binding the contract method 0xb4ac9460.

Solidity: function options(address , uint256 , uint256 , bool ) view returns(uint256)

func (*PremiaOptionCaller) Owner

func (_PremiaOption *PremiaOptionCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PremiaOptionCaller) Pools

func (_PremiaOption *PremiaOptionCaller) Pools(opts *bind.CallOpts, arg0 *big.Int) (struct {
	TokenAmount       *big.Int
	DenominatorAmount *big.Int
}, error)

Pools is a free data retrieval call binding the contract method 0xac4afa38.

Solidity: function pools(uint256 ) view returns(uint256 tokenAmount, uint256 denominatorAmount)

func (*PremiaOptionCaller) PremiaReferral

func (_PremiaOption *PremiaOptionCaller) PremiaReferral(opts *bind.CallOpts) (common.Address, error)

PremiaReferral is a free data retrieval call binding the contract method 0x4ebd2287.

Solidity: function premiaReferral() view returns(address)

func (*PremiaOptionCaller) SupportsInterface

func (_PremiaOption *PremiaOptionCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*PremiaOptionCaller) TokenStrikeIncrement

func (_PremiaOption *PremiaOptionCaller) TokenStrikeIncrement(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TokenStrikeIncrement is a free data retrieval call binding the contract method 0x48af1968.

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

func (*PremiaOptionCaller) Tokens

func (_PremiaOption *PremiaOptionCaller) Tokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Tokens is a free data retrieval call binding the contract method 0x4f64b2be.

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

func (*PremiaOptionCaller) TokensLength

func (_PremiaOption *PremiaOptionCaller) TokensLength(opts *bind.CallOpts) (*big.Int, error)

TokensLength is a free data retrieval call binding the contract method 0xd92fc67b.

Solidity: function tokensLength() view returns(uint256)

func (*PremiaOptionCaller) UPremia

func (_PremiaOption *PremiaOptionCaller) UPremia(opts *bind.CallOpts) (common.Address, error)

UPremia is a free data retrieval call binding the contract method 0xb9a8e9d3.

Solidity: function uPremia() view returns(address)

func (*PremiaOptionCaller) Uri

func (_PremiaOption *PremiaOptionCaller) Uri(opts *bind.CallOpts, arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

func (*PremiaOptionCaller) WhitelistedUniswapRouters

func (_PremiaOption *PremiaOptionCaller) WhitelistedUniswapRouters(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

WhitelistedUniswapRouters is a free data retrieval call binding the contract method 0xdbe5f0eb.

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

type PremiaOptionCallerRaw

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

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

func (*PremiaOptionCallerRaw) Call

func (_PremiaOption *PremiaOptionCallerRaw) 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 PremiaOptionCallerSession

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

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

func (*PremiaOptionCallerSession) BalanceOf

func (_PremiaOption *PremiaOptionCallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*PremiaOptionCallerSession) BalanceOfBatch

func (_PremiaOption *PremiaOptionCallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*PremiaOptionCallerSession) Denominator

func (_PremiaOption *PremiaOptionCallerSession) Denominator() (common.Address, error)

Denominator is a free data retrieval call binding the contract method 0x96ce0795.

Solidity: function denominator() view returns(address)

func (*PremiaOptionCallerSession) DenominatorDecimals

func (_PremiaOption *PremiaOptionCallerSession) DenominatorDecimals() (uint8, error)

DenominatorDecimals is a free data retrieval call binding the contract method 0x4cc47c0d.

Solidity: function denominatorDecimals() view returns(uint8)

func (*PremiaOptionCallerSession) FeeCalculator

func (_PremiaOption *PremiaOptionCallerSession) FeeCalculator() (common.Address, error)

FeeCalculator is a free data retrieval call binding the contract method 0xb00eb9fe.

Solidity: function feeCalculator() view returns(address)

func (*PremiaOptionCallerSession) FeeRecipient

func (_PremiaOption *PremiaOptionCallerSession) FeeRecipient() (common.Address, error)

FeeRecipient is a free data retrieval call binding the contract method 0x46904840.

Solidity: function feeRecipient() view returns(address)

func (*PremiaOptionCallerSession) GetExerciseQuote

func (_PremiaOption *PremiaOptionCallerSession) GetExerciseQuote(_from common.Address, _option PremiaOptionOptionData, _amount *big.Int, _referrer common.Address, _decimals uint8) (PremiaOptionQuoteExercise, error)

GetExerciseQuote is a free data retrieval call binding the contract method 0x3e998172.

Solidity: function getExerciseQuote(address _from, (address,uint256,uint256,bool,uint256,uint256,uint256,uint256,uint8) _option, uint256 _amount, address _referrer, uint8 _decimals) view returns((address,uint256,uint8,address,uint256,uint8,uint256,uint256))

func (*PremiaOptionCallerSession) GetOptionId

func (_PremiaOption *PremiaOptionCallerSession) GetOptionId(_token common.Address, _expiration *big.Int, _strikePrice *big.Int, _isCall bool) (*big.Int, error)

GetOptionId is a free data retrieval call binding the contract method 0x263621f3.

Solidity: function getOptionId(address _token, uint256 _expiration, uint256 _strikePrice, bool _isCall) view returns(uint256)

func (*PremiaOptionCallerSession) GetWriteQuote

func (_PremiaOption *PremiaOptionCallerSession) GetWriteQuote(_from common.Address, _option PremiaOptionOptionWriteArgs, _referrer common.Address, _decimals uint8) (PremiaOptionQuoteWrite, error)

GetWriteQuote is a free data retrieval call binding the contract method 0xd35daf2b.

Solidity: function getWriteQuote(address _from, (address,uint256,uint256,uint256,bool) _option, address _referrer, uint8 _decimals) view returns((address,uint256,uint8,uint256,uint256))

func (*PremiaOptionCallerSession) IsApprovedForAll

func (_PremiaOption *PremiaOptionCallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*PremiaOptionCallerSession) MaxExpiration

func (_PremiaOption *PremiaOptionCallerSession) MaxExpiration() (*big.Int, error)

MaxExpiration is a free data retrieval call binding the contract method 0x25bee3e9.

Solidity: function maxExpiration() view returns(uint256)

func (*PremiaOptionCallerSession) NbWritten

func (_PremiaOption *PremiaOptionCallerSession) NbWritten(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

NbWritten is a free data retrieval call binding the contract method 0x410e4e26.

Solidity: function nbWritten(address , uint256 ) view returns(uint256)

func (*PremiaOptionCallerSession) NextOptionId

func (_PremiaOption *PremiaOptionCallerSession) NextOptionId() (*big.Int, error)

NextOptionId is a free data retrieval call binding the contract method 0x9215abb0.

Solidity: function nextOptionId() view returns(uint256)

func (*PremiaOptionCallerSession) OptionData

func (_PremiaOption *PremiaOptionCallerSession) OptionData(arg0 *big.Int) (struct {
	Token         common.Address
	StrikePrice   *big.Int
	Expiration    *big.Int
	IsCall        bool
	ClaimsPreExp  *big.Int
	ClaimsPostExp *big.Int
	Exercised     *big.Int
	Supply        *big.Int
	Decimals      uint8
}, error)

OptionData is a free data retrieval call binding the contract method 0x1f01a794.

Solidity: function optionData(uint256 ) view returns(address token, uint256 strikePrice, uint256 expiration, bool isCall, uint256 claimsPreExp, uint256 claimsPostExp, uint256 exercised, uint256 supply, uint8 decimals)

func (*PremiaOptionCallerSession) Options

func (_PremiaOption *PremiaOptionCallerSession) Options(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 bool) (*big.Int, error)

Options is a free data retrieval call binding the contract method 0xb4ac9460.

Solidity: function options(address , uint256 , uint256 , bool ) view returns(uint256)

func (*PremiaOptionCallerSession) Owner

func (_PremiaOption *PremiaOptionCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PremiaOptionCallerSession) Pools

func (_PremiaOption *PremiaOptionCallerSession) Pools(arg0 *big.Int) (struct {
	TokenAmount       *big.Int
	DenominatorAmount *big.Int
}, error)

Pools is a free data retrieval call binding the contract method 0xac4afa38.

Solidity: function pools(uint256 ) view returns(uint256 tokenAmount, uint256 denominatorAmount)

func (*PremiaOptionCallerSession) PremiaReferral

func (_PremiaOption *PremiaOptionCallerSession) PremiaReferral() (common.Address, error)

PremiaReferral is a free data retrieval call binding the contract method 0x4ebd2287.

Solidity: function premiaReferral() view returns(address)

func (*PremiaOptionCallerSession) SupportsInterface

func (_PremiaOption *PremiaOptionCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*PremiaOptionCallerSession) TokenStrikeIncrement

func (_PremiaOption *PremiaOptionCallerSession) TokenStrikeIncrement(arg0 common.Address) (*big.Int, error)

TokenStrikeIncrement is a free data retrieval call binding the contract method 0x48af1968.

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

func (*PremiaOptionCallerSession) Tokens

func (_PremiaOption *PremiaOptionCallerSession) Tokens(arg0 *big.Int) (common.Address, error)

Tokens is a free data retrieval call binding the contract method 0x4f64b2be.

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

func (*PremiaOptionCallerSession) TokensLength

func (_PremiaOption *PremiaOptionCallerSession) TokensLength() (*big.Int, error)

TokensLength is a free data retrieval call binding the contract method 0xd92fc67b.

Solidity: function tokensLength() view returns(uint256)

func (*PremiaOptionCallerSession) UPremia

func (_PremiaOption *PremiaOptionCallerSession) UPremia() (common.Address, error)

UPremia is a free data retrieval call binding the contract method 0xb9a8e9d3.

Solidity: function uPremia() view returns(address)

func (*PremiaOptionCallerSession) Uri

func (_PremiaOption *PremiaOptionCallerSession) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

func (*PremiaOptionCallerSession) WhitelistedUniswapRouters

func (_PremiaOption *PremiaOptionCallerSession) WhitelistedUniswapRouters(arg0 *big.Int) (common.Address, error)

WhitelistedUniswapRouters is a free data retrieval call binding the contract method 0xdbe5f0eb.

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

type PremiaOptionFeePaid

type PremiaOptionFeePaid struct {
	User        common.Address
	Token       common.Address
	Referrer    common.Address
	FeeProtocol *big.Int
	FeeReferrer *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

PremiaOptionFeePaid represents a FeePaid event raised by the PremiaOption contract.

type PremiaOptionFeePaidIterator

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

PremiaOptionFeePaidIterator is returned from FilterFeePaid and is used to iterate over the raw logs and unpacked data for FeePaid events raised by the PremiaOption contract.

func (*PremiaOptionFeePaidIterator) Close

func (it *PremiaOptionFeePaidIterator) Close() error

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

func (*PremiaOptionFeePaidIterator) Error

func (it *PremiaOptionFeePaidIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionFeePaidIterator) Next

func (it *PremiaOptionFeePaidIterator) 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 PremiaOptionFilterer

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

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

func NewPremiaOptionFilterer

func NewPremiaOptionFilterer(address common.Address, filterer bind.ContractFilterer) (*PremiaOptionFilterer, error)

NewPremiaOptionFilterer creates a new log filterer instance of PremiaOption, bound to a specific deployed contract.

func (*PremiaOptionFilterer) FilterApprovalForAll

func (_PremiaOption *PremiaOptionFilterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, operator []common.Address) (*PremiaOptionApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*PremiaOptionFilterer) FilterFeePaid

func (_PremiaOption *PremiaOptionFilterer) FilterFeePaid(opts *bind.FilterOpts, user []common.Address, token []common.Address, referrer []common.Address) (*PremiaOptionFeePaidIterator, error)

FilterFeePaid is a free log retrieval operation binding the contract event 0x7b025f69f5843a875988abc4e248350e4e5d0ec876e181973034e7a5c5bad884.

Solidity: event FeePaid(address indexed user, address indexed token, address indexed referrer, uint256 feeProtocol, uint256 feeReferrer)

func (*PremiaOptionFilterer) FilterOptionCancelled

func (_PremiaOption *PremiaOptionFilterer) FilterOptionCancelled(opts *bind.FilterOpts, owner []common.Address, optionId []*big.Int, token []common.Address) (*PremiaOptionOptionCancelledIterator, error)

FilterOptionCancelled is a free log retrieval operation binding the contract event 0x9035f481e4b25fdafc60883ab62c86fec841bb1c318f5b189ebee1b10ced360b.

Solidity: event OptionCancelled(address indexed owner, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) FilterOptionExercised

func (_PremiaOption *PremiaOptionFilterer) FilterOptionExercised(opts *bind.FilterOpts, user []common.Address, optionId []*big.Int, token []common.Address) (*PremiaOptionOptionExercisedIterator, error)

FilterOptionExercised is a free log retrieval operation binding the contract event 0xa9149acb233878ee232a8279e24b74301705dcfd2319e4bf98bda4b04040afd6.

Solidity: event OptionExercised(address indexed user, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) FilterOptionIdCreated

func (_PremiaOption *PremiaOptionFilterer) FilterOptionIdCreated(opts *bind.FilterOpts, optionId []*big.Int, token []common.Address) (*PremiaOptionOptionIdCreatedIterator, error)

FilterOptionIdCreated is a free log retrieval operation binding the contract event 0xfde1d545a79e30139419cf7880b5c46d455dd9f1dfd88cc6cbc898d348af72ff.

Solidity: event OptionIdCreated(uint256 indexed optionId, address indexed token)

func (*PremiaOptionFilterer) FilterOptionWritten

func (_PremiaOption *PremiaOptionFilterer) FilterOptionWritten(opts *bind.FilterOpts, owner []common.Address, optionId []*big.Int, token []common.Address) (*PremiaOptionOptionWrittenIterator, error)

FilterOptionWritten is a free log retrieval operation binding the contract event 0xb621f8758571be4a426feacc13e4bb7a476c12cda0805ba65f14f89d1a0a05c3.

Solidity: event OptionWritten(address indexed owner, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) FilterOwnershipTransferred

func (_PremiaOption *PremiaOptionFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*PremiaOptionOwnershipTransferredIterator, error)

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

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

func (*PremiaOptionFilterer) FilterSetToken

func (_PremiaOption *PremiaOptionFilterer) FilterSetToken(opts *bind.FilterOpts, token []common.Address) (*PremiaOptionSetTokenIterator, error)

FilterSetToken is a free log retrieval operation binding the contract event 0x720764556647dd167f4229d6a4255ac86018e302a50fc29dd67a70edb7b314d0.

Solidity: event SetToken(address indexed token, uint256 strikePriceIncrement)

func (*PremiaOptionFilterer) FilterTransferBatch

func (_PremiaOption *PremiaOptionFilterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*PremiaOptionTransferBatchIterator, error)

FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*PremiaOptionFilterer) FilterTransferSingle

func (_PremiaOption *PremiaOptionFilterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*PremiaOptionTransferSingleIterator, error)

FilterTransferSingle is a free log retrieval operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*PremiaOptionFilterer) FilterURI

func (_PremiaOption *PremiaOptionFilterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*PremiaOptionURIIterator, error)

FilterURI is a free log retrieval operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*PremiaOptionFilterer) FilterWithdraw

func (_PremiaOption *PremiaOptionFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address, optionId []*big.Int, token []common.Address) (*PremiaOptionWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x457f950b75085c30ff780acd57bde642ff1316cc4aad9f286af2c1ffc4163a78.

Solidity: event Withdraw(address indexed user, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) ParseApprovalForAll

func (_PremiaOption *PremiaOptionFilterer) ParseApprovalForAll(log types.Log) (*PremiaOptionApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*PremiaOptionFilterer) ParseFeePaid

func (_PremiaOption *PremiaOptionFilterer) ParseFeePaid(log types.Log) (*PremiaOptionFeePaid, error)

ParseFeePaid is a log parse operation binding the contract event 0x7b025f69f5843a875988abc4e248350e4e5d0ec876e181973034e7a5c5bad884.

Solidity: event FeePaid(address indexed user, address indexed token, address indexed referrer, uint256 feeProtocol, uint256 feeReferrer)

func (*PremiaOptionFilterer) ParseOptionCancelled

func (_PremiaOption *PremiaOptionFilterer) ParseOptionCancelled(log types.Log) (*PremiaOptionOptionCancelled, error)

ParseOptionCancelled is a log parse operation binding the contract event 0x9035f481e4b25fdafc60883ab62c86fec841bb1c318f5b189ebee1b10ced360b.

Solidity: event OptionCancelled(address indexed owner, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) ParseOptionExercised

func (_PremiaOption *PremiaOptionFilterer) ParseOptionExercised(log types.Log) (*PremiaOptionOptionExercised, error)

ParseOptionExercised is a log parse operation binding the contract event 0xa9149acb233878ee232a8279e24b74301705dcfd2319e4bf98bda4b04040afd6.

Solidity: event OptionExercised(address indexed user, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) ParseOptionIdCreated

func (_PremiaOption *PremiaOptionFilterer) ParseOptionIdCreated(log types.Log) (*PremiaOptionOptionIdCreated, error)

ParseOptionIdCreated is a log parse operation binding the contract event 0xfde1d545a79e30139419cf7880b5c46d455dd9f1dfd88cc6cbc898d348af72ff.

Solidity: event OptionIdCreated(uint256 indexed optionId, address indexed token)

func (*PremiaOptionFilterer) ParseOptionWritten

func (_PremiaOption *PremiaOptionFilterer) ParseOptionWritten(log types.Log) (*PremiaOptionOptionWritten, error)

ParseOptionWritten is a log parse operation binding the contract event 0xb621f8758571be4a426feacc13e4bb7a476c12cda0805ba65f14f89d1a0a05c3.

Solidity: event OptionWritten(address indexed owner, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) ParseOwnershipTransferred

func (_PremiaOption *PremiaOptionFilterer) ParseOwnershipTransferred(log types.Log) (*PremiaOptionOwnershipTransferred, error)

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

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

func (*PremiaOptionFilterer) ParseSetToken

func (_PremiaOption *PremiaOptionFilterer) ParseSetToken(log types.Log) (*PremiaOptionSetToken, error)

ParseSetToken is a log parse operation binding the contract event 0x720764556647dd167f4229d6a4255ac86018e302a50fc29dd67a70edb7b314d0.

Solidity: event SetToken(address indexed token, uint256 strikePriceIncrement)

func (*PremiaOptionFilterer) ParseTransferBatch

func (_PremiaOption *PremiaOptionFilterer) ParseTransferBatch(log types.Log) (*PremiaOptionTransferBatch, error)

ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*PremiaOptionFilterer) ParseTransferSingle

func (_PremiaOption *PremiaOptionFilterer) ParseTransferSingle(log types.Log) (*PremiaOptionTransferSingle, error)

ParseTransferSingle is a log parse operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*PremiaOptionFilterer) ParseURI

func (_PremiaOption *PremiaOptionFilterer) ParseURI(log types.Log) (*PremiaOptionURI, error)

ParseURI is a log parse operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*PremiaOptionFilterer) ParseWithdraw

func (_PremiaOption *PremiaOptionFilterer) ParseWithdraw(log types.Log) (*PremiaOptionWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x457f950b75085c30ff780acd57bde642ff1316cc4aad9f286af2c1ffc4163a78.

Solidity: event Withdraw(address indexed user, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) WatchApprovalForAll

func (_PremiaOption *PremiaOptionFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *PremiaOptionApprovalForAll, account []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*PremiaOptionFilterer) WatchFeePaid

func (_PremiaOption *PremiaOptionFilterer) WatchFeePaid(opts *bind.WatchOpts, sink chan<- *PremiaOptionFeePaid, user []common.Address, token []common.Address, referrer []common.Address) (event.Subscription, error)

WatchFeePaid is a free log subscription operation binding the contract event 0x7b025f69f5843a875988abc4e248350e4e5d0ec876e181973034e7a5c5bad884.

Solidity: event FeePaid(address indexed user, address indexed token, address indexed referrer, uint256 feeProtocol, uint256 feeReferrer)

func (*PremiaOptionFilterer) WatchOptionCancelled

func (_PremiaOption *PremiaOptionFilterer) WatchOptionCancelled(opts *bind.WatchOpts, sink chan<- *PremiaOptionOptionCancelled, owner []common.Address, optionId []*big.Int, token []common.Address) (event.Subscription, error)

WatchOptionCancelled is a free log subscription operation binding the contract event 0x9035f481e4b25fdafc60883ab62c86fec841bb1c318f5b189ebee1b10ced360b.

Solidity: event OptionCancelled(address indexed owner, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) WatchOptionExercised

func (_PremiaOption *PremiaOptionFilterer) WatchOptionExercised(opts *bind.WatchOpts, sink chan<- *PremiaOptionOptionExercised, user []common.Address, optionId []*big.Int, token []common.Address) (event.Subscription, error)

WatchOptionExercised is a free log subscription operation binding the contract event 0xa9149acb233878ee232a8279e24b74301705dcfd2319e4bf98bda4b04040afd6.

Solidity: event OptionExercised(address indexed user, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) WatchOptionIdCreated

func (_PremiaOption *PremiaOptionFilterer) WatchOptionIdCreated(opts *bind.WatchOpts, sink chan<- *PremiaOptionOptionIdCreated, optionId []*big.Int, token []common.Address) (event.Subscription, error)

WatchOptionIdCreated is a free log subscription operation binding the contract event 0xfde1d545a79e30139419cf7880b5c46d455dd9f1dfd88cc6cbc898d348af72ff.

Solidity: event OptionIdCreated(uint256 indexed optionId, address indexed token)

func (*PremiaOptionFilterer) WatchOptionWritten

func (_PremiaOption *PremiaOptionFilterer) WatchOptionWritten(opts *bind.WatchOpts, sink chan<- *PremiaOptionOptionWritten, owner []common.Address, optionId []*big.Int, token []common.Address) (event.Subscription, error)

WatchOptionWritten is a free log subscription operation binding the contract event 0xb621f8758571be4a426feacc13e4bb7a476c12cda0805ba65f14f89d1a0a05c3.

Solidity: event OptionWritten(address indexed owner, uint256 indexed optionId, address indexed token, uint256 amount)

func (*PremiaOptionFilterer) WatchOwnershipTransferred

func (_PremiaOption *PremiaOptionFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *PremiaOptionOwnershipTransferred, 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 (*PremiaOptionFilterer) WatchSetToken

func (_PremiaOption *PremiaOptionFilterer) WatchSetToken(opts *bind.WatchOpts, sink chan<- *PremiaOptionSetToken, token []common.Address) (event.Subscription, error)

WatchSetToken is a free log subscription operation binding the contract event 0x720764556647dd167f4229d6a4255ac86018e302a50fc29dd67a70edb7b314d0.

Solidity: event SetToken(address indexed token, uint256 strikePriceIncrement)

func (*PremiaOptionFilterer) WatchTransferBatch

func (_PremiaOption *PremiaOptionFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *PremiaOptionTransferBatch, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*PremiaOptionFilterer) WatchTransferSingle

func (_PremiaOption *PremiaOptionFilterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *PremiaOptionTransferSingle, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferSingle is a free log subscription operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*PremiaOptionFilterer) WatchURI

func (_PremiaOption *PremiaOptionFilterer) WatchURI(opts *bind.WatchOpts, sink chan<- *PremiaOptionURI, id []*big.Int) (event.Subscription, error)

WatchURI is a free log subscription operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*PremiaOptionFilterer) WatchWithdraw

func (_PremiaOption *PremiaOptionFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *PremiaOptionWithdraw, user []common.Address, optionId []*big.Int, token []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x457f950b75085c30ff780acd57bde642ff1316cc4aad9f286af2c1ffc4163a78.

Solidity: event Withdraw(address indexed user, uint256 indexed optionId, address indexed token, uint256 amount)

type PremiaOptionOptionCancelled

type PremiaOptionOptionCancelled struct {
	Owner    common.Address
	OptionId *big.Int
	Token    common.Address
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PremiaOptionOptionCancelled represents a OptionCancelled event raised by the PremiaOption contract.

type PremiaOptionOptionCancelledIterator

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

PremiaOptionOptionCancelledIterator is returned from FilterOptionCancelled and is used to iterate over the raw logs and unpacked data for OptionCancelled events raised by the PremiaOption contract.

func (*PremiaOptionOptionCancelledIterator) Close

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

func (*PremiaOptionOptionCancelledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionOptionCancelledIterator) 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 PremiaOptionOptionData

type PremiaOptionOptionData struct {
	Token         common.Address
	StrikePrice   *big.Int
	Expiration    *big.Int
	IsCall        bool
	ClaimsPreExp  *big.Int
	ClaimsPostExp *big.Int
	Exercised     *big.Int
	Supply        *big.Int
	Decimals      uint8
}

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

type PremiaOptionOptionExercised

type PremiaOptionOptionExercised struct {
	User     common.Address
	OptionId *big.Int
	Token    common.Address
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PremiaOptionOptionExercised represents a OptionExercised event raised by the PremiaOption contract.

type PremiaOptionOptionExercisedIterator

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

PremiaOptionOptionExercisedIterator is returned from FilterOptionExercised and is used to iterate over the raw logs and unpacked data for OptionExercised events raised by the PremiaOption contract.

func (*PremiaOptionOptionExercisedIterator) Close

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

func (*PremiaOptionOptionExercisedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionOptionExercisedIterator) 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 PremiaOptionOptionIdCreated

type PremiaOptionOptionIdCreated struct {
	OptionId *big.Int
	Token    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

PremiaOptionOptionIdCreated represents a OptionIdCreated event raised by the PremiaOption contract.

type PremiaOptionOptionIdCreatedIterator

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

PremiaOptionOptionIdCreatedIterator is returned from FilterOptionIdCreated and is used to iterate over the raw logs and unpacked data for OptionIdCreated events raised by the PremiaOption contract.

func (*PremiaOptionOptionIdCreatedIterator) Close

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

func (*PremiaOptionOptionIdCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionOptionIdCreatedIterator) 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 PremiaOptionOptionWriteArgs

type PremiaOptionOptionWriteArgs struct {
	Token       common.Address
	Amount      *big.Int
	StrikePrice *big.Int
	Expiration  *big.Int
	IsCall      bool
}

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

type PremiaOptionOptionWritten

type PremiaOptionOptionWritten struct {
	Owner    common.Address
	OptionId *big.Int
	Token    common.Address
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PremiaOptionOptionWritten represents a OptionWritten event raised by the PremiaOption contract.

type PremiaOptionOptionWrittenIterator

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

PremiaOptionOptionWrittenIterator is returned from FilterOptionWritten and is used to iterate over the raw logs and unpacked data for OptionWritten events raised by the PremiaOption contract.

func (*PremiaOptionOptionWrittenIterator) Close

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

func (*PremiaOptionOptionWrittenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionOptionWrittenIterator) 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 PremiaOptionOwnershipTransferred

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

PremiaOptionOwnershipTransferred represents a OwnershipTransferred event raised by the PremiaOption contract.

type PremiaOptionOwnershipTransferredIterator

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

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

func (*PremiaOptionOwnershipTransferredIterator) Close

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

func (*PremiaOptionOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionOwnershipTransferredIterator) 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 PremiaOptionQuoteExercise

type PremiaOptionQuoteExercise struct {
	InputToken     common.Address
	Input          *big.Int
	InputDecimals  uint8
	OutputToken    common.Address
	Output         *big.Int
	OutputDecimals uint8
	Fee            *big.Int
	FeeReferrer    *big.Int
}

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

type PremiaOptionQuoteWrite

type PremiaOptionQuoteWrite struct {
	CollateralToken    common.Address
	Collateral         *big.Int
	CollateralDecimals uint8
	Fee                *big.Int
	FeeReferrer        *big.Int
}

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

type PremiaOptionRaw

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

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

func (*PremiaOptionRaw) Call

func (_PremiaOption *PremiaOptionRaw) 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 (*PremiaOptionRaw) Transact

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

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

func (*PremiaOptionRaw) Transfer

func (_PremiaOption *PremiaOptionRaw) 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 PremiaOptionSession

type PremiaOptionSession struct {
	Contract     *PremiaOption     // 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
}

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

func (*PremiaOptionSession) BalanceOf

func (_PremiaOption *PremiaOptionSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*PremiaOptionSession) BalanceOfBatch

func (_PremiaOption *PremiaOptionSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*PremiaOptionSession) CancelOption

func (_PremiaOption *PremiaOptionSession) CancelOption(_optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

CancelOption is a paid mutator transaction binding the contract method 0x30b025eb.

Solidity: function cancelOption(uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionSession) CancelOptionFrom

func (_PremiaOption *PremiaOptionSession) CancelOptionFrom(_from common.Address, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

CancelOptionFrom is a paid mutator transaction binding the contract method 0xf3944b27.

Solidity: function cancelOptionFrom(address _from, uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionSession) Denominator

func (_PremiaOption *PremiaOptionSession) Denominator() (common.Address, error)

Denominator is a free data retrieval call binding the contract method 0x96ce0795.

Solidity: function denominator() view returns(address)

func (*PremiaOptionSession) DenominatorDecimals

func (_PremiaOption *PremiaOptionSession) DenominatorDecimals() (uint8, error)

DenominatorDecimals is a free data retrieval call binding the contract method 0x4cc47c0d.

Solidity: function denominatorDecimals() view returns(uint8)

func (*PremiaOptionSession) ExerciseOption

func (_PremiaOption *PremiaOptionSession) ExerciseOption(_optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

ExerciseOption is a paid mutator transaction binding the contract method 0x3a5b7c82.

Solidity: function exerciseOption(uint256 _optionId, uint256 _amount, address _referrer) returns()

func (*PremiaOptionSession) ExerciseOptionFrom

func (_PremiaOption *PremiaOptionSession) ExerciseOptionFrom(_from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

ExerciseOptionFrom is a paid mutator transaction binding the contract method 0x2216ef60.

Solidity: function exerciseOptionFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer) returns()

func (*PremiaOptionSession) FeeCalculator

func (_PremiaOption *PremiaOptionSession) FeeCalculator() (common.Address, error)

FeeCalculator is a free data retrieval call binding the contract method 0xb00eb9fe.

Solidity: function feeCalculator() view returns(address)

func (*PremiaOptionSession) FeeRecipient

func (_PremiaOption *PremiaOptionSession) FeeRecipient() (common.Address, error)

FeeRecipient is a free data retrieval call binding the contract method 0x46904840.

Solidity: function feeRecipient() view returns(address)

func (*PremiaOptionSession) FlashExerciseOption

func (_PremiaOption *PremiaOptionSession) FlashExerciseOption(_optionId *big.Int, _amount *big.Int, _referrer common.Address, _router common.Address, _amountInMax *big.Int, _path []common.Address) (*types.Transaction, error)

FlashExerciseOption is a paid mutator transaction binding the contract method 0xb7f1dd2e.

Solidity: function flashExerciseOption(uint256 _optionId, uint256 _amount, address _referrer, address _router, uint256 _amountInMax, address[] _path) returns()

func (*PremiaOptionSession) FlashExerciseOptionFrom

func (_PremiaOption *PremiaOptionSession) FlashExerciseOptionFrom(_from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address, _router common.Address, _amountInMax *big.Int, _path []common.Address) (*types.Transaction, error)

FlashExerciseOptionFrom is a paid mutator transaction binding the contract method 0x5c6a945e.

Solidity: function flashExerciseOptionFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer, address _router, uint256 _amountInMax, address[] _path) returns()

func (*PremiaOptionSession) FlashLoan

func (_PremiaOption *PremiaOptionSession) FlashLoan(_tokenAddress common.Address, _amount *big.Int, _receiver common.Address) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x02c25b54.

Solidity: function flashLoan(address _tokenAddress, uint256 _amount, address _receiver) returns()

func (*PremiaOptionSession) GetExerciseQuote

func (_PremiaOption *PremiaOptionSession) GetExerciseQuote(_from common.Address, _option PremiaOptionOptionData, _amount *big.Int, _referrer common.Address, _decimals uint8) (PremiaOptionQuoteExercise, error)

GetExerciseQuote is a free data retrieval call binding the contract method 0x3e998172.

Solidity: function getExerciseQuote(address _from, (address,uint256,uint256,bool,uint256,uint256,uint256,uint256,uint8) _option, uint256 _amount, address _referrer, uint8 _decimals) view returns((address,uint256,uint8,address,uint256,uint8,uint256,uint256))

func (*PremiaOptionSession) GetOptionId

func (_PremiaOption *PremiaOptionSession) GetOptionId(_token common.Address, _expiration *big.Int, _strikePrice *big.Int, _isCall bool) (*big.Int, error)

GetOptionId is a free data retrieval call binding the contract method 0x263621f3.

Solidity: function getOptionId(address _token, uint256 _expiration, uint256 _strikePrice, bool _isCall) view returns(uint256)

func (*PremiaOptionSession) GetOptionIdOrCreate

func (_PremiaOption *PremiaOptionSession) GetOptionIdOrCreate(_token common.Address, _expiration *big.Int, _strikePrice *big.Int, _isCall bool) (*types.Transaction, error)

GetOptionIdOrCreate is a paid mutator transaction binding the contract method 0xbf9092ce.

Solidity: function getOptionIdOrCreate(address _token, uint256 _expiration, uint256 _strikePrice, bool _isCall) returns(uint256)

func (*PremiaOptionSession) GetWriteQuote

func (_PremiaOption *PremiaOptionSession) GetWriteQuote(_from common.Address, _option PremiaOptionOptionWriteArgs, _referrer common.Address, _decimals uint8) (PremiaOptionQuoteWrite, error)

GetWriteQuote is a free data retrieval call binding the contract method 0xd35daf2b.

Solidity: function getWriteQuote(address _from, (address,uint256,uint256,uint256,bool) _option, address _referrer, uint8 _decimals) view returns((address,uint256,uint8,uint256,uint256))

func (*PremiaOptionSession) IsApprovedForAll

func (_PremiaOption *PremiaOptionSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*PremiaOptionSession) MaxExpiration

func (_PremiaOption *PremiaOptionSession) MaxExpiration() (*big.Int, error)

MaxExpiration is a free data retrieval call binding the contract method 0x25bee3e9.

Solidity: function maxExpiration() view returns(uint256)

func (*PremiaOptionSession) NbWritten

func (_PremiaOption *PremiaOptionSession) NbWritten(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

NbWritten is a free data retrieval call binding the contract method 0x410e4e26.

Solidity: function nbWritten(address , uint256 ) view returns(uint256)

func (*PremiaOptionSession) NextOptionId

func (_PremiaOption *PremiaOptionSession) NextOptionId() (*big.Int, error)

NextOptionId is a free data retrieval call binding the contract method 0x9215abb0.

Solidity: function nextOptionId() view returns(uint256)

func (*PremiaOptionSession) OptionData

func (_PremiaOption *PremiaOptionSession) OptionData(arg0 *big.Int) (struct {
	Token         common.Address
	StrikePrice   *big.Int
	Expiration    *big.Int
	IsCall        bool
	ClaimsPreExp  *big.Int
	ClaimsPostExp *big.Int
	Exercised     *big.Int
	Supply        *big.Int
	Decimals      uint8
}, error)

OptionData is a free data retrieval call binding the contract method 0x1f01a794.

Solidity: function optionData(uint256 ) view returns(address token, uint256 strikePrice, uint256 expiration, bool isCall, uint256 claimsPreExp, uint256 claimsPostExp, uint256 exercised, uint256 supply, uint8 decimals)

func (*PremiaOptionSession) Options

func (_PremiaOption *PremiaOptionSession) Options(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 bool) (*big.Int, error)

Options is a free data retrieval call binding the contract method 0xb4ac9460.

Solidity: function options(address , uint256 , uint256 , bool ) view returns(uint256)

func (*PremiaOptionSession) Owner

func (_PremiaOption *PremiaOptionSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*PremiaOptionSession) Pools

func (_PremiaOption *PremiaOptionSession) Pools(arg0 *big.Int) (struct {
	TokenAmount       *big.Int
	DenominatorAmount *big.Int
}, error)

Pools is a free data retrieval call binding the contract method 0xac4afa38.

Solidity: function pools(uint256 ) view returns(uint256 tokenAmount, uint256 denominatorAmount)

func (*PremiaOptionSession) PremiaReferral

func (_PremiaOption *PremiaOptionSession) PremiaReferral() (common.Address, error)

PremiaReferral is a free data retrieval call binding the contract method 0x4ebd2287.

Solidity: function premiaReferral() view returns(address)

func (*PremiaOptionSession) RenounceOwnership

func (_PremiaOption *PremiaOptionSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PremiaOptionSession) SafeBatchTransferFrom

func (_PremiaOption *PremiaOptionSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*PremiaOptionSession) SafeTransferFrom

func (_PremiaOption *PremiaOptionSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*PremiaOptionSession) SetApprovalForAll

func (_PremiaOption *PremiaOptionSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*PremiaOptionSession) SetFeeCalculator

func (_PremiaOption *PremiaOptionSession) SetFeeCalculator(_feeCalculator common.Address) (*types.Transaction, error)

SetFeeCalculator is a paid mutator transaction binding the contract method 0x8c66d04f.

Solidity: function setFeeCalculator(address _feeCalculator) returns()

func (*PremiaOptionSession) SetFeeRecipient

func (_PremiaOption *PremiaOptionSession) SetFeeRecipient(_feeRecipient common.Address) (*types.Transaction, error)

SetFeeRecipient is a paid mutator transaction binding the contract method 0xe74b981b.

Solidity: function setFeeRecipient(address _feeRecipient) returns()

func (*PremiaOptionSession) SetMaxExpiration

func (_PremiaOption *PremiaOptionSession) SetMaxExpiration(_max *big.Int) (*types.Transaction, error)

SetMaxExpiration is a paid mutator transaction binding the contract method 0x0676695b.

Solidity: function setMaxExpiration(uint256 _max) returns()

func (*PremiaOptionSession) SetPremiaReferral

func (_PremiaOption *PremiaOptionSession) SetPremiaReferral(_premiaReferral common.Address) (*types.Transaction, error)

SetPremiaReferral is a paid mutator transaction binding the contract method 0xf18e1a94.

Solidity: function setPremiaReferral(address _premiaReferral) returns()

func (*PremiaOptionSession) SetPremiaUncutErc20

func (_PremiaOption *PremiaOptionSession) SetPremiaUncutErc20(_uPremia common.Address) (*types.Transaction, error)

SetPremiaUncutErc20 is a paid mutator transaction binding the contract method 0xc0b5f2cc.

Solidity: function setPremiaUncutErc20(address _uPremia) returns()

func (*PremiaOptionSession) SetTokens

func (_PremiaOption *PremiaOptionSession) SetTokens(_tokens []common.Address, _strikePriceIncrement []*big.Int) (*types.Transaction, error)

SetTokens is a paid mutator transaction binding the contract method 0xc8390a48.

Solidity: function setTokens(address[] _tokens, uint256[] _strikePriceIncrement) returns()

func (*PremiaOptionSession) SetURI

func (_PremiaOption *PremiaOptionSession) SetURI(_newUri string) (*types.Transaction, error)

SetURI is a paid mutator transaction binding the contract method 0x02fe5305.

Solidity: function setURI(string _newUri) returns()

func (*PremiaOptionSession) SetWhitelistedUniswapRouters

func (_PremiaOption *PremiaOptionSession) SetWhitelistedUniswapRouters(_addrList []common.Address) (*types.Transaction, error)

SetWhitelistedUniswapRouters is a paid mutator transaction binding the contract method 0x9fe9f848.

Solidity: function setWhitelistedUniswapRouters(address[] _addrList) returns()

func (*PremiaOptionSession) SupportsInterface

func (_PremiaOption *PremiaOptionSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*PremiaOptionSession) TokenStrikeIncrement

func (_PremiaOption *PremiaOptionSession) TokenStrikeIncrement(arg0 common.Address) (*big.Int, error)

TokenStrikeIncrement is a free data retrieval call binding the contract method 0x48af1968.

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

func (*PremiaOptionSession) Tokens

func (_PremiaOption *PremiaOptionSession) Tokens(arg0 *big.Int) (common.Address, error)

Tokens is a free data retrieval call binding the contract method 0x4f64b2be.

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

func (*PremiaOptionSession) TokensLength

func (_PremiaOption *PremiaOptionSession) TokensLength() (*big.Int, error)

TokensLength is a free data retrieval call binding the contract method 0xd92fc67b.

Solidity: function tokensLength() view returns(uint256)

func (*PremiaOptionSession) TransferOwnership

func (_PremiaOption *PremiaOptionSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*PremiaOptionSession) UPremia

func (_PremiaOption *PremiaOptionSession) UPremia() (common.Address, error)

UPremia is a free data retrieval call binding the contract method 0xb9a8e9d3.

Solidity: function uPremia() view returns(address)

func (*PremiaOptionSession) Uri

func (_PremiaOption *PremiaOptionSession) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

func (*PremiaOptionSession) WhitelistedUniswapRouters

func (_PremiaOption *PremiaOptionSession) WhitelistedUniswapRouters(arg0 *big.Int) (common.Address, error)

WhitelistedUniswapRouters is a free data retrieval call binding the contract method 0xdbe5f0eb.

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

func (*PremiaOptionSession) Withdraw

func (_PremiaOption *PremiaOptionSession) Withdraw(_optionId *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _optionId) returns()

func (*PremiaOptionSession) WithdrawFrom

func (_PremiaOption *PremiaOptionSession) WithdrawFrom(_from common.Address, _optionId *big.Int) (*types.Transaction, error)

WithdrawFrom is a paid mutator transaction binding the contract method 0x9470b0bd.

Solidity: function withdrawFrom(address _from, uint256 _optionId) returns()

func (*PremiaOptionSession) WithdrawPreExpiration

func (_PremiaOption *PremiaOptionSession) WithdrawPreExpiration(_optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

WithdrawPreExpiration is a paid mutator transaction binding the contract method 0x5c070b65.

Solidity: function withdrawPreExpiration(uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionSession) WithdrawPreExpirationFrom

func (_PremiaOption *PremiaOptionSession) WithdrawPreExpirationFrom(_from common.Address, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

WithdrawPreExpirationFrom is a paid mutator transaction binding the contract method 0xa852c7e7.

Solidity: function withdrawPreExpirationFrom(address _from, uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionSession) WriteOption

func (_PremiaOption *PremiaOptionSession) WriteOption(_option PremiaOptionOptionWriteArgs, _referrer common.Address) (*types.Transaction, error)

WriteOption is a paid mutator transaction binding the contract method 0x0e2e8c54.

Solidity: function writeOption((address,uint256,uint256,uint256,bool) _option, address _referrer) returns(uint256)

func (*PremiaOptionSession) WriteOptionFrom

func (_PremiaOption *PremiaOptionSession) WriteOptionFrom(_from common.Address, _option PremiaOptionOptionWriteArgs, _referrer common.Address) (*types.Transaction, error)

WriteOptionFrom is a paid mutator transaction binding the contract method 0x8e5a2892.

Solidity: function writeOptionFrom(address _from, (address,uint256,uint256,uint256,bool) _option, address _referrer) returns(uint256)

func (*PremiaOptionSession) WriteOptionWithIdFrom

func (_PremiaOption *PremiaOptionSession) WriteOptionWithIdFrom(_from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

WriteOptionWithIdFrom is a paid mutator transaction binding the contract method 0xd48b0e52.

Solidity: function writeOptionWithIdFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer) returns(uint256)

type PremiaOptionSetToken

type PremiaOptionSetToken struct {
	Token                common.Address
	StrikePriceIncrement *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

PremiaOptionSetToken represents a SetToken event raised by the PremiaOption contract.

type PremiaOptionSetTokenIterator

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

PremiaOptionSetTokenIterator is returned from FilterSetToken and is used to iterate over the raw logs and unpacked data for SetToken events raised by the PremiaOption contract.

func (*PremiaOptionSetTokenIterator) Close

func (it *PremiaOptionSetTokenIterator) Close() error

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

func (*PremiaOptionSetTokenIterator) Error

func (it *PremiaOptionSetTokenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionSetTokenIterator) 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 PremiaOptionTransactor

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

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

func NewPremiaOptionTransactor

func NewPremiaOptionTransactor(address common.Address, transactor bind.ContractTransactor) (*PremiaOptionTransactor, error)

NewPremiaOptionTransactor creates a new write-only instance of PremiaOption, bound to a specific deployed contract.

func (*PremiaOptionTransactor) CancelOption

func (_PremiaOption *PremiaOptionTransactor) CancelOption(opts *bind.TransactOpts, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

CancelOption is a paid mutator transaction binding the contract method 0x30b025eb.

Solidity: function cancelOption(uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactor) CancelOptionFrom

func (_PremiaOption *PremiaOptionTransactor) CancelOptionFrom(opts *bind.TransactOpts, _from common.Address, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

CancelOptionFrom is a paid mutator transaction binding the contract method 0xf3944b27.

Solidity: function cancelOptionFrom(address _from, uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactor) ExerciseOption

func (_PremiaOption *PremiaOptionTransactor) ExerciseOption(opts *bind.TransactOpts, _optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

ExerciseOption is a paid mutator transaction binding the contract method 0x3a5b7c82.

Solidity: function exerciseOption(uint256 _optionId, uint256 _amount, address _referrer) returns()

func (*PremiaOptionTransactor) ExerciseOptionFrom

func (_PremiaOption *PremiaOptionTransactor) ExerciseOptionFrom(opts *bind.TransactOpts, _from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

ExerciseOptionFrom is a paid mutator transaction binding the contract method 0x2216ef60.

Solidity: function exerciseOptionFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer) returns()

func (*PremiaOptionTransactor) FlashExerciseOption

func (_PremiaOption *PremiaOptionTransactor) FlashExerciseOption(opts *bind.TransactOpts, _optionId *big.Int, _amount *big.Int, _referrer common.Address, _router common.Address, _amountInMax *big.Int, _path []common.Address) (*types.Transaction, error)

FlashExerciseOption is a paid mutator transaction binding the contract method 0xb7f1dd2e.

Solidity: function flashExerciseOption(uint256 _optionId, uint256 _amount, address _referrer, address _router, uint256 _amountInMax, address[] _path) returns()

func (*PremiaOptionTransactor) FlashExerciseOptionFrom

func (_PremiaOption *PremiaOptionTransactor) FlashExerciseOptionFrom(opts *bind.TransactOpts, _from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address, _router common.Address, _amountInMax *big.Int, _path []common.Address) (*types.Transaction, error)

FlashExerciseOptionFrom is a paid mutator transaction binding the contract method 0x5c6a945e.

Solidity: function flashExerciseOptionFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer, address _router, uint256 _amountInMax, address[] _path) returns()

func (*PremiaOptionTransactor) FlashLoan

func (_PremiaOption *PremiaOptionTransactor) FlashLoan(opts *bind.TransactOpts, _tokenAddress common.Address, _amount *big.Int, _receiver common.Address) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x02c25b54.

Solidity: function flashLoan(address _tokenAddress, uint256 _amount, address _receiver) returns()

func (*PremiaOptionTransactor) GetOptionIdOrCreate

func (_PremiaOption *PremiaOptionTransactor) GetOptionIdOrCreate(opts *bind.TransactOpts, _token common.Address, _expiration *big.Int, _strikePrice *big.Int, _isCall bool) (*types.Transaction, error)

GetOptionIdOrCreate is a paid mutator transaction binding the contract method 0xbf9092ce.

Solidity: function getOptionIdOrCreate(address _token, uint256 _expiration, uint256 _strikePrice, bool _isCall) returns(uint256)

func (*PremiaOptionTransactor) RenounceOwnership

func (_PremiaOption *PremiaOptionTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PremiaOptionTransactor) SafeBatchTransferFrom

func (_PremiaOption *PremiaOptionTransactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*PremiaOptionTransactor) SafeTransferFrom

func (_PremiaOption *PremiaOptionTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*PremiaOptionTransactor) SetApprovalForAll

func (_PremiaOption *PremiaOptionTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*PremiaOptionTransactor) SetFeeCalculator

func (_PremiaOption *PremiaOptionTransactor) SetFeeCalculator(opts *bind.TransactOpts, _feeCalculator common.Address) (*types.Transaction, error)

SetFeeCalculator is a paid mutator transaction binding the contract method 0x8c66d04f.

Solidity: function setFeeCalculator(address _feeCalculator) returns()

func (*PremiaOptionTransactor) SetFeeRecipient

func (_PremiaOption *PremiaOptionTransactor) SetFeeRecipient(opts *bind.TransactOpts, _feeRecipient common.Address) (*types.Transaction, error)

SetFeeRecipient is a paid mutator transaction binding the contract method 0xe74b981b.

Solidity: function setFeeRecipient(address _feeRecipient) returns()

func (*PremiaOptionTransactor) SetMaxExpiration

func (_PremiaOption *PremiaOptionTransactor) SetMaxExpiration(opts *bind.TransactOpts, _max *big.Int) (*types.Transaction, error)

SetMaxExpiration is a paid mutator transaction binding the contract method 0x0676695b.

Solidity: function setMaxExpiration(uint256 _max) returns()

func (*PremiaOptionTransactor) SetPremiaReferral

func (_PremiaOption *PremiaOptionTransactor) SetPremiaReferral(opts *bind.TransactOpts, _premiaReferral common.Address) (*types.Transaction, error)

SetPremiaReferral is a paid mutator transaction binding the contract method 0xf18e1a94.

Solidity: function setPremiaReferral(address _premiaReferral) returns()

func (*PremiaOptionTransactor) SetPremiaUncutErc20

func (_PremiaOption *PremiaOptionTransactor) SetPremiaUncutErc20(opts *bind.TransactOpts, _uPremia common.Address) (*types.Transaction, error)

SetPremiaUncutErc20 is a paid mutator transaction binding the contract method 0xc0b5f2cc.

Solidity: function setPremiaUncutErc20(address _uPremia) returns()

func (*PremiaOptionTransactor) SetTokens

func (_PremiaOption *PremiaOptionTransactor) SetTokens(opts *bind.TransactOpts, _tokens []common.Address, _strikePriceIncrement []*big.Int) (*types.Transaction, error)

SetTokens is a paid mutator transaction binding the contract method 0xc8390a48.

Solidity: function setTokens(address[] _tokens, uint256[] _strikePriceIncrement) returns()

func (*PremiaOptionTransactor) SetURI

func (_PremiaOption *PremiaOptionTransactor) SetURI(opts *bind.TransactOpts, _newUri string) (*types.Transaction, error)

SetURI is a paid mutator transaction binding the contract method 0x02fe5305.

Solidity: function setURI(string _newUri) returns()

func (*PremiaOptionTransactor) SetWhitelistedUniswapRouters

func (_PremiaOption *PremiaOptionTransactor) SetWhitelistedUniswapRouters(opts *bind.TransactOpts, _addrList []common.Address) (*types.Transaction, error)

SetWhitelistedUniswapRouters is a paid mutator transaction binding the contract method 0x9fe9f848.

Solidity: function setWhitelistedUniswapRouters(address[] _addrList) returns()

func (*PremiaOptionTransactor) TransferOwnership

func (_PremiaOption *PremiaOptionTransactor) 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()

func (*PremiaOptionTransactor) Withdraw

func (_PremiaOption *PremiaOptionTransactor) Withdraw(opts *bind.TransactOpts, _optionId *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _optionId) returns()

func (*PremiaOptionTransactor) WithdrawFrom

func (_PremiaOption *PremiaOptionTransactor) WithdrawFrom(opts *bind.TransactOpts, _from common.Address, _optionId *big.Int) (*types.Transaction, error)

WithdrawFrom is a paid mutator transaction binding the contract method 0x9470b0bd.

Solidity: function withdrawFrom(address _from, uint256 _optionId) returns()

func (*PremiaOptionTransactor) WithdrawPreExpiration

func (_PremiaOption *PremiaOptionTransactor) WithdrawPreExpiration(opts *bind.TransactOpts, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

WithdrawPreExpiration is a paid mutator transaction binding the contract method 0x5c070b65.

Solidity: function withdrawPreExpiration(uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactor) WithdrawPreExpirationFrom

func (_PremiaOption *PremiaOptionTransactor) WithdrawPreExpirationFrom(opts *bind.TransactOpts, _from common.Address, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

WithdrawPreExpirationFrom is a paid mutator transaction binding the contract method 0xa852c7e7.

Solidity: function withdrawPreExpirationFrom(address _from, uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactor) WriteOption

func (_PremiaOption *PremiaOptionTransactor) WriteOption(opts *bind.TransactOpts, _option PremiaOptionOptionWriteArgs, _referrer common.Address) (*types.Transaction, error)

WriteOption is a paid mutator transaction binding the contract method 0x0e2e8c54.

Solidity: function writeOption((address,uint256,uint256,uint256,bool) _option, address _referrer) returns(uint256)

func (*PremiaOptionTransactor) WriteOptionFrom

func (_PremiaOption *PremiaOptionTransactor) WriteOptionFrom(opts *bind.TransactOpts, _from common.Address, _option PremiaOptionOptionWriteArgs, _referrer common.Address) (*types.Transaction, error)

WriteOptionFrom is a paid mutator transaction binding the contract method 0x8e5a2892.

Solidity: function writeOptionFrom(address _from, (address,uint256,uint256,uint256,bool) _option, address _referrer) returns(uint256)

func (*PremiaOptionTransactor) WriteOptionWithIdFrom

func (_PremiaOption *PremiaOptionTransactor) WriteOptionWithIdFrom(opts *bind.TransactOpts, _from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

WriteOptionWithIdFrom is a paid mutator transaction binding the contract method 0xd48b0e52.

Solidity: function writeOptionWithIdFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer) returns(uint256)

type PremiaOptionTransactorRaw

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

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

func (*PremiaOptionTransactorRaw) Transact

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

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

func (*PremiaOptionTransactorRaw) Transfer

func (_PremiaOption *PremiaOptionTransactorRaw) 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 PremiaOptionTransactorSession

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

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

func (*PremiaOptionTransactorSession) CancelOption

func (_PremiaOption *PremiaOptionTransactorSession) CancelOption(_optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

CancelOption is a paid mutator transaction binding the contract method 0x30b025eb.

Solidity: function cancelOption(uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactorSession) CancelOptionFrom

func (_PremiaOption *PremiaOptionTransactorSession) CancelOptionFrom(_from common.Address, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

CancelOptionFrom is a paid mutator transaction binding the contract method 0xf3944b27.

Solidity: function cancelOptionFrom(address _from, uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactorSession) ExerciseOption

func (_PremiaOption *PremiaOptionTransactorSession) ExerciseOption(_optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

ExerciseOption is a paid mutator transaction binding the contract method 0x3a5b7c82.

Solidity: function exerciseOption(uint256 _optionId, uint256 _amount, address _referrer) returns()

func (*PremiaOptionTransactorSession) ExerciseOptionFrom

func (_PremiaOption *PremiaOptionTransactorSession) ExerciseOptionFrom(_from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

ExerciseOptionFrom is a paid mutator transaction binding the contract method 0x2216ef60.

Solidity: function exerciseOptionFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer) returns()

func (*PremiaOptionTransactorSession) FlashExerciseOption

func (_PremiaOption *PremiaOptionTransactorSession) FlashExerciseOption(_optionId *big.Int, _amount *big.Int, _referrer common.Address, _router common.Address, _amountInMax *big.Int, _path []common.Address) (*types.Transaction, error)

FlashExerciseOption is a paid mutator transaction binding the contract method 0xb7f1dd2e.

Solidity: function flashExerciseOption(uint256 _optionId, uint256 _amount, address _referrer, address _router, uint256 _amountInMax, address[] _path) returns()

func (*PremiaOptionTransactorSession) FlashExerciseOptionFrom

func (_PremiaOption *PremiaOptionTransactorSession) FlashExerciseOptionFrom(_from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address, _router common.Address, _amountInMax *big.Int, _path []common.Address) (*types.Transaction, error)

FlashExerciseOptionFrom is a paid mutator transaction binding the contract method 0x5c6a945e.

Solidity: function flashExerciseOptionFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer, address _router, uint256 _amountInMax, address[] _path) returns()

func (*PremiaOptionTransactorSession) FlashLoan

func (_PremiaOption *PremiaOptionTransactorSession) FlashLoan(_tokenAddress common.Address, _amount *big.Int, _receiver common.Address) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0x02c25b54.

Solidity: function flashLoan(address _tokenAddress, uint256 _amount, address _receiver) returns()

func (*PremiaOptionTransactorSession) GetOptionIdOrCreate

func (_PremiaOption *PremiaOptionTransactorSession) GetOptionIdOrCreate(_token common.Address, _expiration *big.Int, _strikePrice *big.Int, _isCall bool) (*types.Transaction, error)

GetOptionIdOrCreate is a paid mutator transaction binding the contract method 0xbf9092ce.

Solidity: function getOptionIdOrCreate(address _token, uint256 _expiration, uint256 _strikePrice, bool _isCall) returns(uint256)

func (*PremiaOptionTransactorSession) RenounceOwnership

func (_PremiaOption *PremiaOptionTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*PremiaOptionTransactorSession) SafeBatchTransferFrom

func (_PremiaOption *PremiaOptionTransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) returns()

func (*PremiaOptionTransactorSession) SafeTransferFrom

func (_PremiaOption *PremiaOptionTransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, amount *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) returns()

func (*PremiaOptionTransactorSession) SetApprovalForAll

func (_PremiaOption *PremiaOptionTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*PremiaOptionTransactorSession) SetFeeCalculator

func (_PremiaOption *PremiaOptionTransactorSession) SetFeeCalculator(_feeCalculator common.Address) (*types.Transaction, error)

SetFeeCalculator is a paid mutator transaction binding the contract method 0x8c66d04f.

Solidity: function setFeeCalculator(address _feeCalculator) returns()

func (*PremiaOptionTransactorSession) SetFeeRecipient

func (_PremiaOption *PremiaOptionTransactorSession) SetFeeRecipient(_feeRecipient common.Address) (*types.Transaction, error)

SetFeeRecipient is a paid mutator transaction binding the contract method 0xe74b981b.

Solidity: function setFeeRecipient(address _feeRecipient) returns()

func (*PremiaOptionTransactorSession) SetMaxExpiration

func (_PremiaOption *PremiaOptionTransactorSession) SetMaxExpiration(_max *big.Int) (*types.Transaction, error)

SetMaxExpiration is a paid mutator transaction binding the contract method 0x0676695b.

Solidity: function setMaxExpiration(uint256 _max) returns()

func (*PremiaOptionTransactorSession) SetPremiaReferral

func (_PremiaOption *PremiaOptionTransactorSession) SetPremiaReferral(_premiaReferral common.Address) (*types.Transaction, error)

SetPremiaReferral is a paid mutator transaction binding the contract method 0xf18e1a94.

Solidity: function setPremiaReferral(address _premiaReferral) returns()

func (*PremiaOptionTransactorSession) SetPremiaUncutErc20

func (_PremiaOption *PremiaOptionTransactorSession) SetPremiaUncutErc20(_uPremia common.Address) (*types.Transaction, error)

SetPremiaUncutErc20 is a paid mutator transaction binding the contract method 0xc0b5f2cc.

Solidity: function setPremiaUncutErc20(address _uPremia) returns()

func (*PremiaOptionTransactorSession) SetTokens

func (_PremiaOption *PremiaOptionTransactorSession) SetTokens(_tokens []common.Address, _strikePriceIncrement []*big.Int) (*types.Transaction, error)

SetTokens is a paid mutator transaction binding the contract method 0xc8390a48.

Solidity: function setTokens(address[] _tokens, uint256[] _strikePriceIncrement) returns()

func (*PremiaOptionTransactorSession) SetURI

func (_PremiaOption *PremiaOptionTransactorSession) SetURI(_newUri string) (*types.Transaction, error)

SetURI is a paid mutator transaction binding the contract method 0x02fe5305.

Solidity: function setURI(string _newUri) returns()

func (*PremiaOptionTransactorSession) SetWhitelistedUniswapRouters

func (_PremiaOption *PremiaOptionTransactorSession) SetWhitelistedUniswapRouters(_addrList []common.Address) (*types.Transaction, error)

SetWhitelistedUniswapRouters is a paid mutator transaction binding the contract method 0x9fe9f848.

Solidity: function setWhitelistedUniswapRouters(address[] _addrList) returns()

func (*PremiaOptionTransactorSession) TransferOwnership

func (_PremiaOption *PremiaOptionTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*PremiaOptionTransactorSession) Withdraw

func (_PremiaOption *PremiaOptionTransactorSession) Withdraw(_optionId *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.

Solidity: function withdraw(uint256 _optionId) returns()

func (*PremiaOptionTransactorSession) WithdrawFrom

func (_PremiaOption *PremiaOptionTransactorSession) WithdrawFrom(_from common.Address, _optionId *big.Int) (*types.Transaction, error)

WithdrawFrom is a paid mutator transaction binding the contract method 0x9470b0bd.

Solidity: function withdrawFrom(address _from, uint256 _optionId) returns()

func (*PremiaOptionTransactorSession) WithdrawPreExpiration

func (_PremiaOption *PremiaOptionTransactorSession) WithdrawPreExpiration(_optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

WithdrawPreExpiration is a paid mutator transaction binding the contract method 0x5c070b65.

Solidity: function withdrawPreExpiration(uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactorSession) WithdrawPreExpirationFrom

func (_PremiaOption *PremiaOptionTransactorSession) WithdrawPreExpirationFrom(_from common.Address, _optionId *big.Int, _amount *big.Int) (*types.Transaction, error)

WithdrawPreExpirationFrom is a paid mutator transaction binding the contract method 0xa852c7e7.

Solidity: function withdrawPreExpirationFrom(address _from, uint256 _optionId, uint256 _amount) returns()

func (*PremiaOptionTransactorSession) WriteOption

func (_PremiaOption *PremiaOptionTransactorSession) WriteOption(_option PremiaOptionOptionWriteArgs, _referrer common.Address) (*types.Transaction, error)

WriteOption is a paid mutator transaction binding the contract method 0x0e2e8c54.

Solidity: function writeOption((address,uint256,uint256,uint256,bool) _option, address _referrer) returns(uint256)

func (*PremiaOptionTransactorSession) WriteOptionFrom

func (_PremiaOption *PremiaOptionTransactorSession) WriteOptionFrom(_from common.Address, _option PremiaOptionOptionWriteArgs, _referrer common.Address) (*types.Transaction, error)

WriteOptionFrom is a paid mutator transaction binding the contract method 0x8e5a2892.

Solidity: function writeOptionFrom(address _from, (address,uint256,uint256,uint256,bool) _option, address _referrer) returns(uint256)

func (*PremiaOptionTransactorSession) WriteOptionWithIdFrom

func (_PremiaOption *PremiaOptionTransactorSession) WriteOptionWithIdFrom(_from common.Address, _optionId *big.Int, _amount *big.Int, _referrer common.Address) (*types.Transaction, error)

WriteOptionWithIdFrom is a paid mutator transaction binding the contract method 0xd48b0e52.

Solidity: function writeOptionWithIdFrom(address _from, uint256 _optionId, uint256 _amount, address _referrer) returns(uint256)

type PremiaOptionTransferBatch

type PremiaOptionTransferBatch struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Ids      []*big.Int
	Values   []*big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PremiaOptionTransferBatch represents a TransferBatch event raised by the PremiaOption contract.

type PremiaOptionTransferBatchIterator

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

PremiaOptionTransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the PremiaOption contract.

func (*PremiaOptionTransferBatchIterator) Close

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

func (*PremiaOptionTransferBatchIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionTransferBatchIterator) 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 PremiaOptionTransferSingle

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

PremiaOptionTransferSingle represents a TransferSingle event raised by the PremiaOption contract.

type PremiaOptionTransferSingleIterator

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

PremiaOptionTransferSingleIterator is returned from FilterTransferSingle and is used to iterate over the raw logs and unpacked data for TransferSingle events raised by the PremiaOption contract.

func (*PremiaOptionTransferSingleIterator) Close

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

func (*PremiaOptionTransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionTransferSingleIterator) 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 PremiaOptionURI

type PremiaOptionURI struct {
	Value string
	Id    *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

PremiaOptionURI represents a URI event raised by the PremiaOption contract.

type PremiaOptionURIIterator

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

PremiaOptionURIIterator is returned from FilterURI and is used to iterate over the raw logs and unpacked data for URI events raised by the PremiaOption contract.

func (*PremiaOptionURIIterator) Close

func (it *PremiaOptionURIIterator) Close() error

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

func (*PremiaOptionURIIterator) Error

func (it *PremiaOptionURIIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionURIIterator) Next

func (it *PremiaOptionURIIterator) 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 PremiaOptionWithdraw

type PremiaOptionWithdraw struct {
	User     common.Address
	OptionId *big.Int
	Token    common.Address
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

PremiaOptionWithdraw represents a Withdraw event raised by the PremiaOption contract.

type PremiaOptionWithdrawIterator

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

PremiaOptionWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the PremiaOption contract.

func (*PremiaOptionWithdrawIterator) Close

func (it *PremiaOptionWithdrawIterator) Close() error

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

func (*PremiaOptionWithdrawIterator) Error

func (it *PremiaOptionWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PremiaOptionWithdrawIterator) 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.

Jump to

Keyboard shortcuts

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