Otoken

package
v1.3.6-rc-103 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OtokenABI = "" /* 7451-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Otoken

type Otoken struct {
	OtokenCaller     // Read-only binding to the contract
	OtokenTransactor // Write-only binding to the contract
	OtokenFilterer   // Log filterer for contract events
}

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

func NewOtoken

func NewOtoken(address common.Address, backend bind.ContractBackend) (*Otoken, error)

NewOtoken creates a new instance of Otoken, bound to a specific deployed contract.

type OtokenApproval

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

OtokenApproval represents a Approval event raised by the Otoken contract.

type OtokenApprovalIterator

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

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

func (*OtokenApprovalIterator) Close

func (it *OtokenApprovalIterator) Close() error

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

func (*OtokenApprovalIterator) Error

func (it *OtokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*OtokenApprovalIterator) Next

func (it *OtokenApprovalIterator) 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 OtokenCaller

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

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

func NewOtokenCaller

func NewOtokenCaller(address common.Address, caller bind.ContractCaller) (*OtokenCaller, error)

NewOtokenCaller creates a new read-only instance of Otoken, bound to a specific deployed contract.

func (*OtokenCaller) Allowance

func (_Otoken *OtokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*OtokenCaller) BalanceOf

func (_Otoken *OtokenCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*OtokenCaller) CollateralAsset

func (_Otoken *OtokenCaller) CollateralAsset(opts *bind.CallOpts) (common.Address, error)

CollateralAsset is a free data retrieval call binding the contract method 0xaabaecd6.

Solidity: function collateralAsset() view returns(address)

func (*OtokenCaller) Controller

func (_Otoken *OtokenCaller) Controller(opts *bind.CallOpts) (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*OtokenCaller) DOMAINSEPARATOR

func (_Otoken *OtokenCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*OtokenCaller) Decimals

func (_Otoken *OtokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*OtokenCaller) ExpiryTimestamp

func (_Otoken *OtokenCaller) ExpiryTimestamp(opts *bind.CallOpts) (*big.Int, error)

ExpiryTimestamp is a free data retrieval call binding the contract method 0xade6e2aa.

Solidity: function expiryTimestamp() view returns(uint256)

func (*OtokenCaller) GetOtokenDetails

func (_Otoken *OtokenCaller) GetOtokenDetails(opts *bind.CallOpts) (common.Address, common.Address, common.Address, *big.Int, *big.Int, bool, error)

GetOtokenDetails is a free data retrieval call binding the contract method 0xaf0968fc.

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

func (*OtokenCaller) IsPut

func (_Otoken *OtokenCaller) IsPut(opts *bind.CallOpts) (bool, error)

IsPut is a free data retrieval call binding the contract method 0xf3c274a6.

Solidity: function isPut() view returns(bool)

func (*OtokenCaller) Name

func (_Otoken *OtokenCaller) Name(opts *bind.CallOpts) (string, error)

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

Solidity: function name() view returns(string)

func (*OtokenCaller) Nonces

func (_Otoken *OtokenCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*OtokenCaller) StrikeAsset

func (_Otoken *OtokenCaller) StrikeAsset(opts *bind.CallOpts) (common.Address, error)

StrikeAsset is a free data retrieval call binding the contract method 0x17d69bc8.

Solidity: function strikeAsset() view returns(address)

func (*OtokenCaller) StrikePrice

func (_Otoken *OtokenCaller) StrikePrice(opts *bind.CallOpts) (*big.Int, error)

StrikePrice is a free data retrieval call binding the contract method 0xc52987cf.

Solidity: function strikePrice() view returns(uint256)

func (*OtokenCaller) Symbol

func (_Otoken *OtokenCaller) Symbol(opts *bind.CallOpts) (string, error)

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

Solidity: function symbol() view returns(string)

func (*OtokenCaller) TotalSupply

func (_Otoken *OtokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*OtokenCaller) UnderlyingAsset

func (_Otoken *OtokenCaller) UnderlyingAsset(opts *bind.CallOpts) (common.Address, error)

UnderlyingAsset is a free data retrieval call binding the contract method 0x7158da7c.

Solidity: function underlyingAsset() view returns(address)

type OtokenCallerRaw

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

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

func (*OtokenCallerRaw) Call

func (_Otoken *OtokenCallerRaw) 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 OtokenCallerSession

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

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

func (*OtokenCallerSession) Allowance

func (_Otoken *OtokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*OtokenCallerSession) BalanceOf

func (_Otoken *OtokenCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*OtokenCallerSession) CollateralAsset

func (_Otoken *OtokenCallerSession) CollateralAsset() (common.Address, error)

CollateralAsset is a free data retrieval call binding the contract method 0xaabaecd6.

Solidity: function collateralAsset() view returns(address)

func (*OtokenCallerSession) Controller

func (_Otoken *OtokenCallerSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*OtokenCallerSession) DOMAINSEPARATOR

func (_Otoken *OtokenCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*OtokenCallerSession) Decimals

func (_Otoken *OtokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*OtokenCallerSession) ExpiryTimestamp

func (_Otoken *OtokenCallerSession) ExpiryTimestamp() (*big.Int, error)

ExpiryTimestamp is a free data retrieval call binding the contract method 0xade6e2aa.

Solidity: function expiryTimestamp() view returns(uint256)

func (*OtokenCallerSession) GetOtokenDetails

func (_Otoken *OtokenCallerSession) GetOtokenDetails() (common.Address, common.Address, common.Address, *big.Int, *big.Int, bool, error)

GetOtokenDetails is a free data retrieval call binding the contract method 0xaf0968fc.

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

func (*OtokenCallerSession) IsPut

func (_Otoken *OtokenCallerSession) IsPut() (bool, error)

IsPut is a free data retrieval call binding the contract method 0xf3c274a6.

Solidity: function isPut() view returns(bool)

func (*OtokenCallerSession) Name

func (_Otoken *OtokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*OtokenCallerSession) Nonces

func (_Otoken *OtokenCallerSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*OtokenCallerSession) StrikeAsset

func (_Otoken *OtokenCallerSession) StrikeAsset() (common.Address, error)

StrikeAsset is a free data retrieval call binding the contract method 0x17d69bc8.

Solidity: function strikeAsset() view returns(address)

func (*OtokenCallerSession) StrikePrice

func (_Otoken *OtokenCallerSession) StrikePrice() (*big.Int, error)

StrikePrice is a free data retrieval call binding the contract method 0xc52987cf.

Solidity: function strikePrice() view returns(uint256)

func (*OtokenCallerSession) Symbol

func (_Otoken *OtokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*OtokenCallerSession) TotalSupply

func (_Otoken *OtokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*OtokenCallerSession) UnderlyingAsset

func (_Otoken *OtokenCallerSession) UnderlyingAsset() (common.Address, error)

UnderlyingAsset is a free data retrieval call binding the contract method 0x7158da7c.

Solidity: function underlyingAsset() view returns(address)

type OtokenFilterer

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

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

func NewOtokenFilterer

func NewOtokenFilterer(address common.Address, filterer bind.ContractFilterer) (*OtokenFilterer, error)

NewOtokenFilterer creates a new log filterer instance of Otoken, bound to a specific deployed contract.

func (*OtokenFilterer) FilterApproval

func (_Otoken *OtokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*OtokenApprovalIterator, error)

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

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

func (*OtokenFilterer) FilterTransfer

func (_Otoken *OtokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*OtokenTransferIterator, error)

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

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

func (*OtokenFilterer) ParseApproval

func (_Otoken *OtokenFilterer) ParseApproval(log types.Log) (*OtokenApproval, error)

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

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

func (*OtokenFilterer) ParseTransfer

func (_Otoken *OtokenFilterer) ParseTransfer(log types.Log) (*OtokenTransfer, error)

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

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

func (*OtokenFilterer) WatchApproval

func (_Otoken *OtokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *OtokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

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

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

func (*OtokenFilterer) WatchTransfer

func (_Otoken *OtokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *OtokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

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

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

type OtokenRaw

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

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

func (*OtokenRaw) Call

func (_Otoken *OtokenRaw) 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 (*OtokenRaw) Transact

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

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

func (*OtokenRaw) Transfer

func (_Otoken *OtokenRaw) 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 OtokenSession

type OtokenSession struct {
	Contract     *Otoken           // 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
}

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

func (*OtokenSession) Allowance

func (_Otoken *OtokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*OtokenSession) Approve

func (_Otoken *OtokenSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*OtokenSession) BalanceOf

func (_Otoken *OtokenSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*OtokenSession) BurnOtoken

func (_Otoken *OtokenSession) BurnOtoken(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnOtoken is a paid mutator transaction binding the contract method 0x56d878f7.

Solidity: function burnOtoken(address account, uint256 amount) returns()

func (*OtokenSession) CollateralAsset

func (_Otoken *OtokenSession) CollateralAsset() (common.Address, error)

CollateralAsset is a free data retrieval call binding the contract method 0xaabaecd6.

Solidity: function collateralAsset() view returns(address)

func (*OtokenSession) Controller

func (_Otoken *OtokenSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*OtokenSession) DOMAINSEPARATOR

func (_Otoken *OtokenSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*OtokenSession) Decimals

func (_Otoken *OtokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*OtokenSession) DecreaseAllowance

func (_Otoken *OtokenSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*OtokenSession) ExpiryTimestamp

func (_Otoken *OtokenSession) ExpiryTimestamp() (*big.Int, error)

ExpiryTimestamp is a free data retrieval call binding the contract method 0xade6e2aa.

Solidity: function expiryTimestamp() view returns(uint256)

func (*OtokenSession) GetOtokenDetails

func (_Otoken *OtokenSession) GetOtokenDetails() (common.Address, common.Address, common.Address, *big.Int, *big.Int, bool, error)

GetOtokenDetails is a free data retrieval call binding the contract method 0xaf0968fc.

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

func (*OtokenSession) IncreaseAllowance

func (_Otoken *OtokenSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*OtokenSession) Init

func (_Otoken *OtokenSession) Init(_addressBook common.Address, _underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiryTimestamp *big.Int, _isPut bool) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0xf630df34.

Solidity: function init(address _addressBook, address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiryTimestamp, bool _isPut) returns()

func (*OtokenSession) IsPut

func (_Otoken *OtokenSession) IsPut() (bool, error)

IsPut is a free data retrieval call binding the contract method 0xf3c274a6.

Solidity: function isPut() view returns(bool)

func (*OtokenSession) MintOtoken

func (_Otoken *OtokenSession) MintOtoken(account common.Address, amount *big.Int) (*types.Transaction, error)

MintOtoken is a paid mutator transaction binding the contract method 0x51b0a410.

Solidity: function mintOtoken(address account, uint256 amount) returns()

func (*OtokenSession) Name

func (_Otoken *OtokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*OtokenSession) Nonces

func (_Otoken *OtokenSession) Nonces(owner common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address owner) view returns(uint256)

func (*OtokenSession) Permit

func (_Otoken *OtokenSession) Permit(owner common.Address, spender common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*OtokenSession) StrikeAsset

func (_Otoken *OtokenSession) StrikeAsset() (common.Address, error)

StrikeAsset is a free data retrieval call binding the contract method 0x17d69bc8.

Solidity: function strikeAsset() view returns(address)

func (*OtokenSession) StrikePrice

func (_Otoken *OtokenSession) StrikePrice() (*big.Int, error)

StrikePrice is a free data retrieval call binding the contract method 0xc52987cf.

Solidity: function strikePrice() view returns(uint256)

func (*OtokenSession) Symbol

func (_Otoken *OtokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*OtokenSession) TotalSupply

func (_Otoken *OtokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*OtokenSession) Transfer

func (_Otoken *OtokenSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*OtokenSession) TransferFrom

func (_Otoken *OtokenSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

func (*OtokenSession) UnderlyingAsset

func (_Otoken *OtokenSession) UnderlyingAsset() (common.Address, error)

UnderlyingAsset is a free data retrieval call binding the contract method 0x7158da7c.

Solidity: function underlyingAsset() view returns(address)

type OtokenTransactor

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

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

func NewOtokenTransactor

func NewOtokenTransactor(address common.Address, transactor bind.ContractTransactor) (*OtokenTransactor, error)

NewOtokenTransactor creates a new write-only instance of Otoken, bound to a specific deployed contract.

func (*OtokenTransactor) Approve

func (_Otoken *OtokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*OtokenTransactor) BurnOtoken

func (_Otoken *OtokenTransactor) BurnOtoken(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

BurnOtoken is a paid mutator transaction binding the contract method 0x56d878f7.

Solidity: function burnOtoken(address account, uint256 amount) returns()

func (*OtokenTransactor) DecreaseAllowance

func (_Otoken *OtokenTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*OtokenTransactor) IncreaseAllowance

func (_Otoken *OtokenTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*OtokenTransactor) Init

func (_Otoken *OtokenTransactor) Init(opts *bind.TransactOpts, _addressBook common.Address, _underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiryTimestamp *big.Int, _isPut bool) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0xf630df34.

Solidity: function init(address _addressBook, address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiryTimestamp, bool _isPut) returns()

func (*OtokenTransactor) MintOtoken

func (_Otoken *OtokenTransactor) MintOtoken(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

MintOtoken is a paid mutator transaction binding the contract method 0x51b0a410.

Solidity: function mintOtoken(address account, uint256 amount) returns()

func (*OtokenTransactor) Permit

func (_Otoken *OtokenTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*OtokenTransactor) Transfer

func (_Otoken *OtokenTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*OtokenTransactor) TransferFrom

func (_Otoken *OtokenTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type OtokenTransactorRaw

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

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

func (*OtokenTransactorRaw) Transact

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

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

func (*OtokenTransactorRaw) Transfer

func (_Otoken *OtokenTransactorRaw) 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 OtokenTransactorSession

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

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

func (*OtokenTransactorSession) Approve

func (_Otoken *OtokenTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*OtokenTransactorSession) BurnOtoken

func (_Otoken *OtokenTransactorSession) BurnOtoken(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnOtoken is a paid mutator transaction binding the contract method 0x56d878f7.

Solidity: function burnOtoken(address account, uint256 amount) returns()

func (*OtokenTransactorSession) DecreaseAllowance

func (_Otoken *OtokenTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*OtokenTransactorSession) IncreaseAllowance

func (_Otoken *OtokenTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*OtokenTransactorSession) Init

func (_Otoken *OtokenTransactorSession) Init(_addressBook common.Address, _underlyingAsset common.Address, _strikeAsset common.Address, _collateralAsset common.Address, _strikePrice *big.Int, _expiryTimestamp *big.Int, _isPut bool) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0xf630df34.

Solidity: function init(address _addressBook, address _underlyingAsset, address _strikeAsset, address _collateralAsset, uint256 _strikePrice, uint256 _expiryTimestamp, bool _isPut) returns()

func (*OtokenTransactorSession) MintOtoken

func (_Otoken *OtokenTransactorSession) MintOtoken(account common.Address, amount *big.Int) (*types.Transaction, error)

MintOtoken is a paid mutator transaction binding the contract method 0x51b0a410.

Solidity: function mintOtoken(address account, uint256 amount) returns()

func (*OtokenTransactorSession) Permit

func (_Otoken *OtokenTransactorSession) Permit(owner common.Address, spender common.Address, amount *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)

Permit is a paid mutator transaction binding the contract method 0xd505accf.

Solidity: function permit(address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()

func (*OtokenTransactorSession) Transfer

func (_Otoken *OtokenTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address recipient, uint256 amount) returns(bool)

func (*OtokenTransactorSession) TransferFrom

func (_Otoken *OtokenTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)

type OtokenTransfer

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

OtokenTransfer represents a Transfer event raised by the Otoken contract.

type OtokenTransferIterator

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

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

func (*OtokenTransferIterator) Close

func (it *OtokenTransferIterator) Close() error

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

func (*OtokenTransferIterator) Error

func (it *OtokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*OtokenTransferIterator) Next

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

Jump to

Keyboard shortcuts

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