lyra

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 15 Imported by: 0

README

Avalon version

The ABIs of Lyra Avalon are available here: https://github.com/lyra-finance/lyra-protocol/blob/master/deployments/mainnet-ovm/lyra.json Alternative solution is to copy them from (Optimistic) Etherscan. This is what we use for the quoter. We use this (fork) contract: https://github.com/cryptohazard/lyra-quoter . We copy the ABI here: https://optimistic.etherscan.io/address/0xea83ee73eB397c5974CB6b5220AE0A32fbE48B2B#code

abigen --abi=./ABI/OptionMarket.abi --pkg=lyra --out=OptionMarket.go
abigen --abi=./ABI/OptionMarketViewer.abi --pkg=lyrap --out=OptionMarketViewer.go
abigen --abi=./ABI/LyraRegistry.abi --pkg=lyrar --out=LyraRegistry.go
abigen --abi=./ABI/LyraQuoter.abi  --pkg=lyraq --out=LyraQuoter.go

Then correct the package of OptionMarketViewer from lyrapto lyra. And then, in the same file, change OptionMarketOptionMarketParameters to OptionMarketOptionMarketParam because it becomes duplicates.

Then correct the package of LyraRegistry from lyrarto lyra.

Finally change lyraqto lyrafor quoter.

Old version (pre-avalon)

Small tricks

The ABIs were taken from Etherscan because I couldn't make solc compile properly the solidity files and the file(lyra.json) on Lyra source code is not up to date (TODO: open an issue). OptionMarket.sol and OptionMarketViewer.sol (smart contracts) have very similar functions so I used:

abigen --abi=./ABI/OptionMarket.abi --pkg=lyra --out=lyra/OptionMarket.go
abigen --abi=./build/OptionMarketViewer.abi --pkg=lyrap --out=lyra/OptionMarketViewer.go

Then correct the package of OptionMarketViewer from lyrapto lyra. There should be an easier way to do it but that's it for the time being.

Prices

Prices will represent the total cost for 1 option. When it is for options buying, the prices thus will include the fees of Lyra. When it is for options selling, the prices will deduce the fees taken by Lyra from the premium.

Documentation

Index

Constants

View Source
const (
	QuoterAddress = "0xea83ee73eB397c5974CB6b5220AE0A32fbE48B2B"
)

Variables

View Source
var LyraABI = LyraMetaData.ABI

LyraABI is the input ABI used to generate the binding from. Deprecated: Use LyraMetaData.ABI instead.

View Source
var LyraMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"}],\"name\":\"AlreadyInitialised\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BaseTransferFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"BoardAlreadySettled\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"}],\"name\":\"BoardExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"BoardIsFrozen\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"BoardNotExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"BoardNotFrozen\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"enumOptionMarket.NonZeroValues\",\"name\":\"valueType\",\"type\":\"uint8\"}],\"name\":\"ExpectedNonZeroValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"InvalidBoardId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"}],\"name\":\"InvalidExpiryTimestamp\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feePortionReserved\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staticBaseSettlementFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.OptionMarketParameters\",\"name\":\"optionMarketParams\",\"type\":\"tuple\"}],\"name\":\"InvalidOptionMarketParams\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"}],\"name\":\"InvalidStrikeId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"}],\"name\":\"OnlyNominatedOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OnlyOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"}],\"name\":\"OnlySecurityModule\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"QuoteTransferFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"strikesLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewsLength\",\"type\":\"uint256\"}],\"name\":\"StrikeSkewLengthMismatch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxCost\",\"type\":\"uint256\"}],\"name\":\"TotalCostOutsideOfSpecifiedBounds\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"iterations\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expectedAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tradeAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalAmount\",\"type\":\"uint256\"}],\"name\":\"TradeIterationsHasRemainder\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"}],\"name\":\"BoardBaseIvSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"}],\"name\":\"BoardCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"}],\"name\":\"BoardFrozen\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"spotPriceAtExpiry\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalUserLongProfitQuote\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalBoardLongCallCollateral\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalBoardLongPutCollateral\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAMMShortCallProfitBase\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAMMShortCallProfitQuote\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalAMMShortPutProfitQuote\",\"type\":\"uint256\"}],\"name\":\"BoardSettled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feePortionReserved\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staticBaseSettlementFee\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structOptionMarket.OptionMarketParameters\",\"name\":\"optionMarketParams\",\"type\":\"tuple\"}],\"name\":\"OptionMarketParamsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"quoteAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"baseAmount\",\"type\":\"uint256\"}],\"name\":\"SMClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"}],\"name\":\"StrikeAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"}],\"name\":\"StrikeSkewSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionMarket.OptionType\",\"name\":\"optionType\",\"type\":\"uint8\"},{\"internalType\":\"enumOptionMarket.TradeDirection\",\"name\":\"tradeDirection\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"setCollateralTo\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isForceClose\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"spotPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reservedFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structOptionMarket.TradeEventData\",\"name\":\"trade\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"premium\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionPriceFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFee\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"preTradeAmmNetStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"postTradeAmmNetStdVega\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"vegaUtil\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"volTraded\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"NAV\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaUtilFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.VegaUtilFeeComponents\",\"name\":\"vegaUtilFee\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"varianceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVariance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"varianceFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.VarianceFeeComponents\",\"name\":\"varianceFee\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"totalFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"volTraded\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newBaseIv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"newSkew\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structOptionMarketPricer.TradeResult[]\",\"name\":\"tradeResults\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"rewardBeneficiary\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"returnCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lpPremiums\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lpFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidatorFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"smFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"insolventAmount\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structOptionMarket.LiquidationEventData\",\"name\":\"liquidation\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"Trade\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountCollateral\",\"type\":\"uint256\"}],\"name\":\"addCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"}],\"name\":\"addStrikeToBoard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"boardToPriceAtExpiry\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iterations\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionMarket.OptionType\",\"name\":\"optionType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"setCollateralTo\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minTotalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxTotalCost\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.TradeInputParameters\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"closePosition\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.Result\",\"name\":\"result\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIV\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"strikePrices\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"skews\",\"type\":\"uint256[]\"},{\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"}],\"name\":\"createOptionBoard\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iterations\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionMarket.OptionType\",\"name\":\"optionType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"setCollateralTo\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minTotalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxTotalCost\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.TradeInputParameters\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"forceClosePosition\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.Result\",\"name\":\"result\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"forceSettleBoard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"getBoardAndStrikeDetails\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iv\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"},{\"internalType\":\"uint256[]\",\"name\":\"strikeIds\",\"type\":\"uint256[]\"}],\"internalType\":\"structOptionMarket.OptionBoard\",\"name\":\"\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCall\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuote\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.Strike[]\",\"name\":\"\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"getBoardStrikes\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"strikeIds\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getLiveBoards\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_liveBoards\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNumLiveBoards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"numLiveBoards\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"getOptionBoard\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iv\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"},{\"internalType\":\"uint256[]\",\"name\":\"strikeIds\",\"type\":\"uint256[]\"}],\"internalType\":\"structOptionMarket.OptionBoard\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOptionMarketParams\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feePortionReserved\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staticBaseSettlementFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.OptionMarketParameters\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"}],\"name\":\"getSettlementParameters\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceAtExpiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikeToBaseReturned\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"}],\"name\":\"getStrike\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCall\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuote\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.Strike\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"}],\"name\":\"getStrikeAndBoard\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCall\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuote\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.Strike\",\"name\":\"\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iv\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"},{\"internalType\":\"uint256[]\",\"name\":\"strikeIds\",\"type\":\"uint256[]\"}],\"internalType\":\"structOptionMarket.OptionBoard\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"}],\"name\":\"getStrikeAndExpiry\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractSynthetixAdapter\",\"name\":\"_synthetixAdapter\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityPool\",\"name\":\"_liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"_optionPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"_greekCache\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"_shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"_optionToken\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"_quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"_baseAsset\",\"type\":\"address\"}],\"name\":\"init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"rewardBeneficiary\",\"type\":\"address\"}],\"name\":\"liquidatePosition\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iterations\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionMarket.OptionType\",\"name\":\"optionType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"setCollateralTo\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minTotalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxTotalCost\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.TradeInputParameters\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"openPosition\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.Result\",\"name\":\"result\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"}],\"name\":\"setBoardBaseIv\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"frozen\",\"type\":\"bool\"}],\"name\":\"setBoardFrozen\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feePortionReserved\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staticBaseSettlementFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.OptionMarketParameters\",\"name\":\"_optionMarketParams\",\"type\":\"tuple\"}],\"name\":\"setOptionMarketParams\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"}],\"name\":\"setStrikeSkew\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"settleExpiredBoard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"smClaim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

LyraMetaData contains all meta data concerning the Lyra contract.

View Source
var LyrapABI = LyrapMetaData.ABI

LyrapABI is the input ABI used to generate the binding from. Deprecated: Use LyrapMetaData.ABI instead.

View Source
var LyrapMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"}],\"name\":\"OnlyNominatedOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OnlyOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"RemovingInvalidMarket\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"structOptionMarketViewer.OptionMarketAddresses\",\"name\":\"market\",\"type\":\"tuple\"}],\"name\":\"MarketAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"internalType\":\"structOptionMarketViewer.OptionMarketAddresses\",\"name\":\"newMarketAddresses\",\"type\":\"tuple\"}],\"name\":\"addMarket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"getBoard\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceAtExpiry\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseGwavIV\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"netGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseSkew\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"callDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"putDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"stdVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putPrice\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.StrikeGreeks\",\"name\":\"cachedGreeks\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"baseReturnedRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCallOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPutOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBaseOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuoteOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPutOpenInterest\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketViewer.StrikeView[]\",\"name\":\"strikes\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.BoardView\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"getBoardForBaseKey\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceAtExpiry\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseGwavIV\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"netGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseSkew\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"callDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"putDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"stdVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putPrice\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.StrikeGreeks\",\"name\":\"cachedGreeks\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"baseReturnedRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCallOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPutOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBaseOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuoteOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPutOpenInterest\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketViewer.StrikeView[]\",\"name\":\"strikes\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.BoardView\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"}],\"name\":\"getBoardForStrikeId\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceAtExpiry\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseGwavIV\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"netGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseSkew\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"callDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"putDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"stdVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putPrice\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.StrikeGreeks\",\"name\":\"cachedGreeks\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"baseReturnedRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCallOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPutOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBaseOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuoteOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPutOpenInterest\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketViewer.StrikeView[]\",\"name\":\"strikes\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.BoardView\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket[]\",\"name\":\"markets\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getLiquidityBalancesAndAllowances\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketViewer.LiquidityBalanceAndAllowance[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"getLiveBoards\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceAtExpiry\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseGwavIV\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"netGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseSkew\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"callDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"putDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"stdVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putPrice\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.StrikeGreeks\",\"name\":\"cachedGreeks\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"baseReturnedRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCallOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPutOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBaseOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuoteOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPutOpenInterest\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketViewer.StrikeView[]\",\"name\":\"strikes\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.BoardView[]\",\"name\":\"marketBoards\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"getMarket\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"totalQueuedDeposits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalQueuedWithdrawals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenPrice\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"internalType\":\"structOptionMarketViewer.OptionMarketAddresses\",\"name\":\"marketAddresses\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feePortionReserved\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staticBaseSettlementFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.OptionMarketParameters\",\"name\":\"optionMarketParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minDepositWithdraw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewVarianceCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewVarianceCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"guardianMultisig\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"guardianDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardSettlementCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePaid\",\"type\":\"uint256\"}],\"internalType\":\"structLiquidityPool.LiquidityPoolParameters\",\"name\":\"lpParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxStrikesPerBoard\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptableSpotPricePercentMove\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staleUpdateDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"varianceIvGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"varianceSkewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionValueIvGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionValueSkewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gwavSkewFloor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gwavSkewCap\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"rateAndCarry\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.GreekCacheParameters\",\"name\":\"greekCacheParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"ivGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidateVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidatePostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortSpotMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidateSpotMin\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.ForceCloseParameters\",\"name\":\"forceCloseParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minStaticQuoteCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minStaticBaseCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolPointA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolPointB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callSpotPriceShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putSpotPriceShock\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.MinCollateralParameters\",\"name\":\"minCollatParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"optionPriceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionPriceFee1xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionPriceFee2xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFee1xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFee2xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"standardSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewAdjustmentFactor\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.PricingParameters\",\"name\":\"pricingParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"minDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"minForceCloseDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"tradingCutoff\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minBaseIV\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxBaseIV\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minVol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxVol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"absMinSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"absMaxSkew\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"capSkewsToAbs\",\"type\":\"bool\"}],\"internalType\":\"structOptionMarketPricer.TradeLimitParameters\",\"name\":\"tradeLimitParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"defaultVarianceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseVarianceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewAdjustmentCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"referenceSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticSkewAdjustment\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticIvVariance\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.VarianceFeeParameters\",\"name\":\"varianceFeeParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"penaltyRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidatorFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"smFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidationFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionToken.PartialCollateralParameters\",\"name\":\"partialCollatParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"interactionDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"hedgeCap\",\"type\":\"uint256\"}],\"internalType\":\"structPoolHedger.PoolHedgerParameters\",\"name\":\"poolHedgerParams\",\"type\":\"tuple\"}],\"internalType\":\"structOptionMarketViewer.MarketParameters\",\"name\":\"marketParameters\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"freeLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"burnableLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usedCollatLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pendingDeltaLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usedDeltaLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"NAV\",\"type\":\"uint256\"}],\"internalType\":\"structLiquidityPool.Liquidity\",\"name\":\"liquidity\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"globalNetGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceAtExpiry\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseGwavIV\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"netGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseSkew\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"callDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"putDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"stdVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putPrice\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.StrikeGreeks\",\"name\":\"cachedGreeks\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"baseReturnedRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCallOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPutOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBaseOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuoteOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPutOpenInterest\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketViewer.StrikeView[]\",\"name\":\"strikes\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.BoardView[]\",\"name\":\"liveBoards\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"spotPrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"quoteKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"baseKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"quoteBaseFeeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseQuoteFeeRate\",\"type\":\"uint256\"}],\"internalType\":\"structSynthetixAdapter.ExchangeParams\",\"name\":\"exchangeParams\",\"type\":\"tuple\"}],\"internalType\":\"structOptionMarketViewer.MarketViewWithBoards\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMarketAddresses\",\"outputs\":[{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"internalType\":\"structOptionMarketViewer.OptionMarketAddresses[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseKey\",\"type\":\"bytes32\"}],\"name\":\"getMarketForBaseKey\",\"outputs\":[{\"components\":[{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"totalQueuedDeposits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalQueuedWithdrawals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenPrice\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"internalType\":\"structOptionMarketViewer.OptionMarketAddresses\",\"name\":\"marketAddresses\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feePortionReserved\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staticBaseSettlementFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.OptionMarketParameters\",\"name\":\"optionMarketParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minDepositWithdraw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewVarianceCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewVarianceCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"guardianMultisig\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"guardianDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardSettlementCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePaid\",\"type\":\"uint256\"}],\"internalType\":\"structLiquidityPool.LiquidityPoolParameters\",\"name\":\"lpParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxStrikesPerBoard\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptableSpotPricePercentMove\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staleUpdateDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"varianceIvGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"varianceSkewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionValueIvGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionValueSkewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gwavSkewFloor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gwavSkewCap\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"rateAndCarry\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.GreekCacheParameters\",\"name\":\"greekCacheParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"ivGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidateVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidatePostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortSpotMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidateSpotMin\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.ForceCloseParameters\",\"name\":\"forceCloseParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minStaticQuoteCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minStaticBaseCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolPointA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolPointB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callSpotPriceShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putSpotPriceShock\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.MinCollateralParameters\",\"name\":\"minCollatParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"optionPriceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionPriceFee1xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionPriceFee2xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFee1xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFee2xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"standardSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewAdjustmentFactor\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.PricingParameters\",\"name\":\"pricingParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"minDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"minForceCloseDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"tradingCutoff\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minBaseIV\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxBaseIV\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minVol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxVol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"absMinSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"absMaxSkew\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"capSkewsToAbs\",\"type\":\"bool\"}],\"internalType\":\"structOptionMarketPricer.TradeLimitParameters\",\"name\":\"tradeLimitParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"defaultVarianceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseVarianceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewAdjustmentCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"referenceSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticSkewAdjustment\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticIvVariance\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.VarianceFeeParameters\",\"name\":\"varianceFeeParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"penaltyRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidatorFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"smFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidationFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionToken.PartialCollateralParameters\",\"name\":\"partialCollatParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"interactionDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"hedgeCap\",\"type\":\"uint256\"}],\"internalType\":\"structPoolHedger.PoolHedgerParameters\",\"name\":\"poolHedgerParams\",\"type\":\"tuple\"}],\"internalType\":\"structOptionMarketViewer.MarketParameters\",\"name\":\"marketParameters\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"freeLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"burnableLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usedCollatLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pendingDeltaLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usedDeltaLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"NAV\",\"type\":\"uint256\"}],\"internalType\":\"structLiquidityPool.Liquidity\",\"name\":\"liquidity\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"globalNetGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseIv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"priceAtExpiry\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseGwavIV\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"netGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikePrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseSkew\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"callDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"putDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"stdVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callPrice\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putPrice\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.StrikeGreeks\",\"name\":\"cachedGreeks\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"baseReturnedRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longCallOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPutOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallBaseOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortCallQuoteOpenInterest\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPutOpenInterest\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketViewer.StrikeView[]\",\"name\":\"strikes\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.BoardView[]\",\"name\":\"liveBoards\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"spotPrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"quoteKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"baseKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"quoteBaseFeeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseQuoteFeeRate\",\"type\":\"uint256\"}],\"internalType\":\"structSynthetixAdapter.ExchangeParams\",\"name\":\"exchangeParams\",\"type\":\"tuple\"}],\"internalType\":\"structOptionMarketViewer.MarketViewWithBoards\",\"name\":\"market\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket[]\",\"name\":\"markets\",\"type\":\"address[]\"}],\"name\":\"getMarkets\",\"outputs\":[{\"components\":[{\"internalType\":\"contractIAddressResolver\",\"name\":\"addressResolver\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"bool\",\"name\":\"isPaused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"totalQueuedDeposits\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalQueuedWithdrawals\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenPrice\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"internalType\":\"structOptionMarketViewer.OptionMarketAddresses\",\"name\":\"marketAddresses\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxBoardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"securityModule\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"feePortionReserved\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staticBaseSettlementFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarket.OptionMarketParameters\",\"name\":\"optionMarketParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minDepositWithdraw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawalFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidityCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewVarianceCBThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewVarianceCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"guardianMultisig\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"guardianDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardSettlementCBTimeout\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxFeePaid\",\"type\":\"uint256\"}],\"internalType\":\"structLiquidityPool.LiquidityPoolParameters\",\"name\":\"lpParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"maxStrikesPerBoard\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"acceptableSpotPricePercentMove\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"staleUpdateDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"varianceIvGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"varianceSkewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionValueIvGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionValueSkewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gwavSkewFloor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gwavSkewCap\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"rateAndCarry\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.GreekCacheParameters\",\"name\":\"greekCacheParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"ivGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewGWAVPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortPostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"longPostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidateVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidatePostCutoffVolShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shortSpotMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidateSpotMin\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.ForceCloseParameters\",\"name\":\"forceCloseParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minStaticQuoteCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minStaticBaseCollateral\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolPointA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"shockVolPointB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"callSpotPriceShock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"putSpotPriceShock\",\"type\":\"uint256\"}],\"internalType\":\"structOptionGreekCache.MinCollateralParameters\",\"name\":\"minCollatParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"optionPriceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionPriceFee1xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"optionPriceFee2xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFee1xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"spotPriceFee2xPoint\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"standardSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewAdjustmentFactor\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.PricingParameters\",\"name\":\"pricingParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"minDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"minForceCloseDelta\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"tradingCutoff\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minBaseIV\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxBaseIV\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minVol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxVol\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"absMinSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"absMaxSkew\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"capSkewsToAbs\",\"type\":\"bool\"}],\"internalType\":\"structOptionMarketPricer.TradeLimitParameters\",\"name\":\"tradeLimitParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"defaultVarianceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"forceCloseVarianceFeeCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"skewAdjustmentCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"referenceSkew\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticSkewAdjustment\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"vegaCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticVega\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ivVarianceCoefficient\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minimumStaticIvVariance\",\"type\":\"uint256\"}],\"internalType\":\"structOptionMarketPricer.VarianceFeeParameters\",\"name\":\"varianceFeeParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"penaltyRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidatorFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"smFeeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidationFee\",\"type\":\"uint256\"}],\"internalType\":\"structOptionToken.PartialCollateralParameters\",\"name\":\"partialCollatParams\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"interactionDelay\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"hedgeCap\",\"type\":\"uint256\"}],\"internalType\":\"structPoolHedger.PoolHedgerParameters\",\"name\":\"poolHedgerParams\",\"type\":\"tuple\"}],\"internalType\":\"structOptionMarketViewer.MarketParameters\",\"name\":\"marketParameters\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"freeLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"burnableLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usedCollatLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pendingDeltaLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"usedDeltaLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"NAV\",\"type\":\"uint256\"}],\"internalType\":\"structLiquidityPool.Liquidity\",\"name\":\"liquidity\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"netDelta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netStdVega\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"netOptionValue\",\"type\":\"int256\"}],\"internalType\":\"structOptionGreekCache.NetGreeks\",\"name\":\"globalNetGreeks\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"spotPrice\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"quoteKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"baseKey\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"quoteBaseFeeRate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseQuoteFeeRate\",\"type\":\"uint256\"}],\"internalType\":\"structSynthetixAdapter.ExchangeParams\",\"name\":\"exchangeParams\",\"type\":\"tuple\"}],\"internalType\":\"structOptionMarketViewer.MarketView[]\",\"name\":\"markets\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.MarketsView\",\"name\":\"marketsView\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getOwnerPositions\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionMarket.OptionType\",\"name\":\"optionType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionToken.PositionState\",\"name\":\"state\",\"type\":\"uint8\"}],\"internalType\":\"structOptionToken.OptionPosition[]\",\"name\":\"positions\",\"type\":\"tuple[]\"}],\"internalType\":\"structOptionMarketViewer.MarketOptionPositions[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"getOwnerPositionsInRange\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"positionId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionMarket.OptionType\",\"name\":\"optionType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateral\",\"type\":\"uint256\"},{\"internalType\":\"enumOptionToken.PositionState\",\"name\":\"state\",\"type\":\"uint8\"}],\"internalType\":\"structOptionToken.OptionPosition[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractSynthetixAdapter\",\"name\":\"_synthetixAdapter\",\"type\":\"address\"}],\"name\":\"init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"marketAddresses\",\"outputs\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"optionMarkets\",\"outputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"removeMarket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"synthetixAdapter\",\"outputs\":[{\"internalType\":\"contractSynthetixAdapter\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

LyrapMetaData contains all meta data concerning the Lyrap contract.

View Source
var LyraqABI = LyraqMetaData.ABI

LyraqABI is the input ABI used to generate the binding from. Deprecated: Use LyraqMetaData.ABI instead.

View Source
var LyraqMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_lyraRegister\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"BoardAlreadySettled\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"boardExpiry\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentTime\",\"type\":\"uint256\"}],\"name\":\"BoardExpired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"boardId\",\"type\":\"uint256\"}],\"name\":\"BoardIsFrozen\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"enumIOptionMarket.NonZeroValues\",\"name\":\"valueType\",\"type\":\"uint8\"}],\"name\":\"ExpectedNonZeroValue\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"}],\"name\":\"InvalidStrikeId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"contractIOptionMarket\",\"name\":\"_optionMarket\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iterations\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"fullQuotes\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIOptionMarket\",\"name\":\"_optionMarket\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"strikeId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"iterations\",\"type\":\"uint256\"},{\"internalType\":\"enumIOptionMarket.OptionType\",\"name\":\"optionType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalPremium\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalFee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"register\",\"outputs\":[{\"internalType\":\"contractILyraRegister\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

LyraqMetaData contains all meta data concerning the Lyraq contract.

View Source
var LyrarABI = LyrarMetaData.ABI

LyrarABI is the input ABI used to generate the binding from. Deprecated: Use LyrarMetaData.ABI instead.

View Source
var LyrarMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"contractName\",\"type\":\"bytes32\"}],\"name\":\"NonExistentGlobalContract\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"optionMarket\",\"type\":\"address\"}],\"name\":\"NonExistentMarket\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"nominatedOwner\",\"type\":\"address\"}],\"name\":\"OnlyNominatedOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OnlyOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"thrower\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"RemovingInvalidMarket\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"name\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"GlobalAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"MarketRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractGWAVOracle\",\"name\":\"gwavOracle\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"structLyraRegistry.OptionMarketAddresses\",\"name\":\"market\",\"type\":\"tuple\"}],\"name\":\"MarketUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerNominated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractGWAVOracle\",\"name\":\"gwavOracle\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"internalType\":\"structLyraRegistry.OptionMarketAddresses\",\"name\":\"newMarketAddresses\",\"type\":\"tuple\"}],\"name\":\"addMarket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"contractName\",\"type\":\"bytes32\"}],\"name\":\"getGlobalAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"globalContract\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"}],\"name\":\"getMarketAddresses\",\"outputs\":[{\"components\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractGWAVOracle\",\"name\":\"gwavOracle\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"internalType\":\"structLyraRegistry.OptionMarketAddresses\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"globalAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"marketAddresses\",\"outputs\":[{\"internalType\":\"contractLiquidityPool\",\"name\":\"liquidityPool\",\"type\":\"address\"},{\"internalType\":\"contractLiquidityToken\",\"name\":\"liquidityToken\",\"type\":\"address\"},{\"internalType\":\"contractOptionGreekCache\",\"name\":\"greekCache\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarket\",\"name\":\"optionMarket\",\"type\":\"address\"},{\"internalType\":\"contractOptionMarketPricer\",\"name\":\"optionMarketPricer\",\"type\":\"address\"},{\"internalType\":\"contractOptionToken\",\"name\":\"optionToken\",\"type\":\"address\"},{\"internalType\":\"contractPoolHedger\",\"name\":\"poolHedger\",\"type\":\"address\"},{\"internalType\":\"contractShortCollateral\",\"name\":\"shortCollateral\",\"type\":\"address\"},{\"internalType\":\"contractGWAVOracle\",\"name\":\"gwavOracle\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"quoteAsset\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"baseAsset\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"nominateNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nominatedOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"optionMarkets\",\"outputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractOptionMarket\",\"name\":\"market\",\"type\":\"address\"}],\"name\":\"removeMarket\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"names\",\"type\":\"bytes32[]\"},{\"internalType\":\"address[]\",\"name\":\"addresses\",\"type\":\"address[]\"}],\"name\":\"updateGlobalAddresses\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"bytecode\":\"0x608060405234801561001057600080fd5b50600080546001600160a01b0319163390811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a16113c98061006e6000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80637f2e060011610081578063c4158a511161005b578063c4158a51146101e2578063c71b7e5314610202578063db9132361461030e57600080fd5b80637f2e0600146101795780638acce68f1461018c5780638da5cb5b146101c257600080fd5b806330a12dc4116100b257806330a12dc41461013e57806353a47bb71461015157806379ba50971461017157600080fd5b80631627540c146100d9578063199bc905146100ee5780631cb6684514610101575b600080fd5b6100ec6100e7366004610e1e565b610321565b005b6100ec6100fc366004610ef5565b6103a2565b61011461010f366004610fcf565b6105cf565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100ec61014c366004611080565b610606565b6001546101149073ffffffffffffffffffffffffffffffffffffffff1681565b6100ec6107aa565b610114610187366004610fcf565b6108c7565b61011461019a366004610fcf565b60046020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6000546101149073ffffffffffffffffffffffffffffffffffffffff1681565b6101f56101f0366004610e1e565b610931565b6040516101359190611139565b610296610210366004610e1e565b600360208190526000918252604090912080546001820154600283015493830154600484015460058501546006860154600787015460088801546009890154600a9099015473ffffffffffffffffffffffffffffffffffffffff9889169a978916999789169896871697958716969485169593851694928316939183169291821691168b565b6040805173ffffffffffffffffffffffffffffffffffffffff9c8d1681529a8c1660208c0152988b16988a01989098529589166060890152938816608088015291871660a0870152861660c0860152851660e08501528416610100840152831661012083015290911661014082015261016001610135565b6100ec61031c366004610e1e565b610a9a565b610329610aae565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b6103aa610aae565b606081015173ffffffffffffffffffffffffffffffffffffffff9081166000908152600360208190526040909120015416610459576060810151600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790555b60608101805173ffffffffffffffffffffffffffffffffffffffff908116600090815260036020818152604092839020865181547fffffffffffffffffffffffff000000000000000000000000000000000000000090811691871691909117825591870151600182018054841691871691909117905583870151600282018054841691871691909117905594519185018054821692851692831790556080860151600486018054831691861691909117905560a0860151600586018054831691861691909117905560c0860151600686018054831691861691909117905560e0860151600786018054831691861691909117905561010086015160088601805483169186169190911790556101208601516009860180548316918616919091179055610140860151600a90950180549091169490931693909317909155517fa090264792b8766dd953a6d1775028cdd591d04a748e045c19b98135970e9127906105c4908490611139565b60405180910390a250565b600281815481106105df57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b61060e610aae565b81518151811461067f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6c656e677468206d69736d61746368000000000000000000000000000000000060448201526064015b60405180910390fd5b60005b818110156107a45782818151811061069c5761069c6112b6565b6020026020010151600460008684815181106106ba576106ba6112b6565b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838181518110610720576107206112b6565b60200260200101517fdf028fe8b079d8195054d23416d2537debdd0f58695e83cd840d822e6a4c2e8084838151811061075b5761075b6112b6565b602002602001015160405161078c919073ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b60405180910390a261079d81611314565b9050610682565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610823576001546040517f96cf9ed800000000000000000000000000000000000000000000000000000000815230600482015233602482015273ffffffffffffffffffffffffffffffffffffffff9091166044820152606401610676565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1680156108f757919050565b6040517f8e5b5d0800000000000000000000000000000000000000000000000000000000815260048101839052602401610676565b919050565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081019190915273ffffffffffffffffffffffffffffffffffffffff80831660009081526003602081815260409283902083516101608101855281548616815260018201548616928101929092526002810154851693820193909352908201548316606082018190526004830154841660808301526005830154841660a08301526006830154841660c08301526007830154841660e08301526008830154841661010083015260098301548416610120830152600a9092015490921661014083015215610a505792915050565b6040517f228c8d1600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610676565b610aa2610aae565b610aab81610b29565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b27576000546040517f1abc2f9800000000000000000000000000000000000000000000000000000000815230600482015233602482015273ffffffffffffffffffffffffffffffffffffffff9091166044820152606401610676565b565b600254600080805b83811015610ba7578473ffffffffffffffffffffffffffffffffffffffff1660028281548110610b6357610b636112b6565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff161415610b975780925060019150610ba7565b610ba081611314565b9050610b31565b5080610bfd576040517ff3aface400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff85166024820152604401610676565b6002610c0a60018561134d565b81548110610c1a57610c1a6112b6565b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169184908110610c5357610c536112b6565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506002805480610cac57610cac611364565b60008281526020812082017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590910190915560405173ffffffffffffffffffffffffffffffffffffffff8616917f59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d7791a250505073ffffffffffffffffffffffffffffffffffffffff16600090815260036020819052604090912080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811682556001820180548216905560028201805482169055918101805483169055600481018054831690556005810180548316905560068101805483169055600781018054831690556008810180548316905560098101805483169055600a0180549091169055565b73ffffffffffffffffffffffffffffffffffffffff81168114610aab57600080fd5b600060208284031215610e3057600080fd5b8135610e3b81610dfc565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610160810167ffffffffffffffff81118282101715610e9557610e95610e42565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610ee257610ee2610e42565b604052919050565b803561092c81610dfc565b60006101608284031215610f0857600080fd5b610f10610e71565b610f1983610eea565b8152610f2760208401610eea565b6020820152610f3860408401610eea565b6040820152610f4960608401610eea565b6060820152610f5a60808401610eea565b6080820152610f6b60a08401610eea565b60a0820152610f7c60c08401610eea565b60c0820152610f8d60e08401610eea565b60e0820152610100610fa0818501610eea565b90820152610120610fb2848201610eea565b90820152610140610fc4848201610eea565b908201529392505050565b600060208284031215610fe157600080fd5b5035919050565b600067ffffffffffffffff82111561100257611002610e42565b5060051b60200190565b600082601f83011261101d57600080fd5b8135602061103261102d83610fe8565b610e9b565b82815260059290921b8401810191818101908684111561105157600080fd5b8286015b8481101561107557803561106881610dfc565b8352918301918301611055565b509695505050505050565b6000806040838503121561109357600080fd5b823567ffffffffffffffff808211156110ab57600080fd5b818501915085601f8301126110bf57600080fd5b813560206110cf61102d83610fe8565b82815260059290921b840181019181810190898411156110ee57600080fd5b948201945b8386101561110c578535825294820194908201906110f3565b9650508601359250508082111561112257600080fd5b5061112f8582860161100c565b9150509250929050565b815173ffffffffffffffffffffffffffffffffffffffff1681526101608101602083015161117f602084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060408301516111a7604084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060608301516111cf606084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060808301516111f7608084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060a083015161121f60a084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060c083015161124760c084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060e083015161126f60e084018273ffffffffffffffffffffffffffffffffffffffff169052565b506101008381015173ffffffffffffffffffffffffffffffffffffffff90811691840191909152610120808501518216908401526101409384015116929091019190915290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611346576113466112e5565b5060010190565b60008282101561135f5761135f6112e5565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122042d5b51a2967d3b5d324ef0e55f66327cc0bbbd893c48589f4b15d830068e9db64736f6c63430008090033\",\"deployedBytecode\":\"0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80637f2e060011610081578063c4158a511161005b578063c4158a51146101e2578063c71b7e5314610202578063db9132361461030e57600080fd5b80637f2e0600146101795780638acce68f1461018c5780638da5cb5b146101c257600080fd5b806330a12dc4116100b257806330a12dc41461013e57806353a47bb71461015157806379ba50971461017157600080fd5b80631627540c146100d9578063199bc905146100ee5780631cb6684514610101575b600080fd5b6100ec6100e7366004610e1e565b610321565b005b6100ec6100fc366004610ef5565b6103a2565b61011461010f366004610fcf565b6105cf565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100ec61014c366004611080565b610606565b6001546101149073ffffffffffffffffffffffffffffffffffffffff1681565b6100ec6107aa565b610114610187366004610fcf565b6108c7565b61011461019a366004610fcf565b60046020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6000546101149073ffffffffffffffffffffffffffffffffffffffff1681565b6101f56101f0366004610e1e565b610931565b6040516101359190611139565b610296610210366004610e1e565b600360208190526000918252604090912080546001820154600283015493830154600484015460058501546006860154600787015460088801546009890154600a9099015473ffffffffffffffffffffffffffffffffffffffff9889169a978916999789169896871697958716969485169593851694928316939183169291821691168b565b6040805173ffffffffffffffffffffffffffffffffffffffff9c8d1681529a8c1660208c0152988b16988a01989098529589166060890152938816608088015291871660a0870152861660c0860152851660e08501528416610100840152831661012083015290911661014082015261016001610135565b6100ec61031c366004610e1e565b610a9a565b610329610aae565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b6103aa610aae565b606081015173ffffffffffffffffffffffffffffffffffffffff9081166000908152600360208190526040909120015416610459576060810151600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790555b60608101805173ffffffffffffffffffffffffffffffffffffffff908116600090815260036020818152604092839020865181547fffffffffffffffffffffffff000000000000000000000000000000000000000090811691871691909117825591870151600182018054841691871691909117905583870151600282018054841691871691909117905594519185018054821692851692831790556080860151600486018054831691861691909117905560a0860151600586018054831691861691909117905560c0860151600686018054831691861691909117905560e0860151600786018054831691861691909117905561010086015160088601805483169186169190911790556101208601516009860180548316918616919091179055610140860151600a90950180549091169490931693909317909155517fa090264792b8766dd953a6d1775028cdd591d04a748e045c19b98135970e9127906105c4908490611139565b60405180910390a250565b600281815481106105df57600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b61060e610aae565b81518151811461067f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f6c656e677468206d69736d61746368000000000000000000000000000000000060448201526064015b60405180910390fd5b60005b818110156107a45782818151811061069c5761069c6112b6565b6020026020010151600460008684815181106106ba576106ba6112b6565b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838181518110610720576107206112b6565b60200260200101517fdf028fe8b079d8195054d23416d2537debdd0f58695e83cd840d822e6a4c2e8084838151811061075b5761075b6112b6565b602002602001015160405161078c919073ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b60405180910390a261079d81611314565b9050610682565b50505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610823576001546040517f96cf9ed800000000000000000000000000000000000000000000000000000000815230600482015233602482015273ffffffffffffffffffffffffffffffffffffffff9091166044820152606401610676565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60008181526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1680156108f757919050565b6040517f8e5b5d0800000000000000000000000000000000000000000000000000000000815260048101839052602401610676565b919050565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081019190915273ffffffffffffffffffffffffffffffffffffffff80831660009081526003602081815260409283902083516101608101855281548616815260018201548616928101929092526002810154851693820193909352908201548316606082018190526004830154841660808301526005830154841660a08301526006830154841660c08301526007830154841660e08301526008830154841661010083015260098301548416610120830152600a9092015490921661014083015215610a505792915050565b6040517f228c8d1600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610676565b610aa2610aae565b610aab81610b29565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b27576000546040517f1abc2f9800000000000000000000000000000000000000000000000000000000815230600482015233602482015273ffffffffffffffffffffffffffffffffffffffff9091166044820152606401610676565b565b600254600080805b83811015610ba7578473ffffffffffffffffffffffffffffffffffffffff1660028281548110610b6357610b636112b6565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff161415610b975780925060019150610ba7565b610ba081611314565b9050610b31565b5080610bfd576040517ff3aface400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff85166024820152604401610676565b6002610c0a60018561134d565b81548110610c1a57610c1a6112b6565b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169184908110610c5357610c536112b6565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506002805480610cac57610cac611364565b60008281526020812082017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590910190915560405173ffffffffffffffffffffffffffffffffffffffff8616917f59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d7791a250505073ffffffffffffffffffffffffffffffffffffffff16600090815260036020819052604090912080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811682556001820180548216905560028201805482169055918101805483169055600481018054831690556005810180548316905560068101805483169055600781018054831690556008810180548316905560098101805483169055600a0180549091169055565b73ffffffffffffffffffffffffffffffffffffffff81168114610aab57600080fd5b600060208284031215610e3057600080fd5b8135610e3b81610dfc565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610160810167ffffffffffffffff81118282101715610e9557610e95610e42565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610ee257610ee2610e42565b604052919050565b803561092c81610dfc565b60006101608284031215610f0857600080fd5b610f10610e71565b610f1983610eea565b8152610f2760208401610eea565b6020820152610f3860408401610eea565b6040820152610f4960608401610eea565b6060820152610f5a60808401610eea565b6080820152610f6b60a08401610eea565b60a0820152610f7c60c08401610eea565b60c0820152610f8d60e08401610eea565b60e0820152610100610fa0818501610eea565b90820152610120610fb2848201610eea565b90820152610140610fc4848201610eea565b908201529392505050565b600060208284031215610fe157600080fd5b5035919050565b600067ffffffffffffffff82111561100257611002610e42565b5060051b60200190565b600082601f83011261101d57600080fd5b8135602061103261102d83610fe8565b610e9b565b82815260059290921b8401810191818101908684111561105157600080fd5b8286015b8481101561107557803561106881610dfc565b8352918301918301611055565b509695505050505050565b6000806040838503121561109357600080fd5b823567ffffffffffffffff808211156110ab57600080fd5b818501915085601f8301126110bf57600080fd5b813560206110cf61102d83610fe8565b82815260059290921b840181019181810190898411156110ee57600080fd5b948201945b8386101561110c578535825294820194908201906110f3565b9650508601359250508082111561112257600080fd5b5061112f8582860161100c565b9150509250929050565b815173ffffffffffffffffffffffffffffffffffffffff1681526101608101602083015161117f602084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060408301516111a7604084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060608301516111cf606084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060808301516111f7608084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060a083015161121f60a084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060c083015161124760c084018273ffffffffffffffffffffffffffffffffffffffff169052565b5060e083015161126f60e084018273ffffffffffffffffffffffffffffffffffffffff169052565b506101008381015173ffffffffffffffffffffffffffffffffffffffff90811691840191909152610120808501518216908401526101409384015116929091019190915290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611346576113466112e5565b5060010190565b60008282101561135f5761135f6112e5565b500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122042d5b51a2967d3b5d324ef0e55f66327cc0bbbd893c48589f4b15d830068e9db64736f6c63430008090033\",\"linkReferences\":{},\"deployedLinkReferences\":{}}",
}

LyrarMetaData contains all meta data concerning the Lyrar contract.

Functions

func Asset added in v0.5.7

func Asset(address common.Address) string

Types

type LiquidityPoolLiquidity added in v0.5.7

type LiquidityPoolLiquidity struct {
	FreeLiquidity         *big.Int
	BurnableLiquidity     *big.Int
	UsedCollatLiquidity   *big.Int
	PendingDeltaLiquidity *big.Int
	UsedDeltaLiquidity    *big.Int
	NAV                   *big.Int
}

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

type LiquidityPoolLiquidityPoolParameters added in v0.5.7

type LiquidityPoolLiquidityPoolParameters struct {
	MinDepositWithdraw       *big.Int
	DepositDelay             *big.Int
	WithdrawalDelay          *big.Int
	WithdrawalFee            *big.Int
	LiquidityCBThreshold     *big.Int
	LiquidityCBTimeout       *big.Int
	IvVarianceCBThreshold    *big.Int
	SkewVarianceCBThreshold  *big.Int
	IvVarianceCBTimeout      *big.Int
	SkewVarianceCBTimeout    *big.Int
	GuardianMultisig         common.Address
	GuardianDelay            *big.Int
	BoardSettlementCBTimeout *big.Int
	MaxFeePaid               *big.Int
}

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

type Lyra

type Lyra struct {
	LyraCaller     // Read-only binding to the contract
	LyraTransactor // Write-only binding to the contract
	LyraFilterer   // Log filterer for contract events
}

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

func NewLyra

func NewLyra(address common.Address, backend bind.ContractBackend) (*Lyra, error)

NewLyra creates a new instance of Lyra, bound to a specific deployed contract.

type LyraBoardBaseIvSet

type LyraBoardBaseIvSet struct {
	BoardId *big.Int
	BaseIv  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

LyraBoardBaseIvSet represents a BoardBaseIvSet event raised by the Lyra contract.

type LyraBoardBaseIvSetIterator

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

LyraBoardBaseIvSetIterator is returned from FilterBoardBaseIvSet and is used to iterate over the raw logs and unpacked data for BoardBaseIvSet events raised by the Lyra contract.

func (*LyraBoardBaseIvSetIterator) Close

func (it *LyraBoardBaseIvSetIterator) Close() error

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

func (*LyraBoardBaseIvSetIterator) Error

func (it *LyraBoardBaseIvSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraBoardBaseIvSetIterator) Next

func (it *LyraBoardBaseIvSetIterator) 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 LyraBoardCreated

type LyraBoardCreated struct {
	BoardId *big.Int
	Expiry  *big.Int
	BaseIv  *big.Int
	Frozen  bool
	Raw     types.Log // Blockchain specific contextual infos
}

LyraBoardCreated represents a BoardCreated event raised by the Lyra contract.

type LyraBoardCreatedIterator

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

LyraBoardCreatedIterator is returned from FilterBoardCreated and is used to iterate over the raw logs and unpacked data for BoardCreated events raised by the Lyra contract.

func (*LyraBoardCreatedIterator) Close

func (it *LyraBoardCreatedIterator) Close() error

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

func (*LyraBoardCreatedIterator) Error

func (it *LyraBoardCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraBoardCreatedIterator) Next

func (it *LyraBoardCreatedIterator) 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 LyraBoardFrozen

type LyraBoardFrozen struct {
	BoardId *big.Int
	Frozen  bool
	Raw     types.Log // Blockchain specific contextual infos
}

LyraBoardFrozen represents a BoardFrozen event raised by the Lyra contract.

type LyraBoardFrozenIterator

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

LyraBoardFrozenIterator is returned from FilterBoardFrozen and is used to iterate over the raw logs and unpacked data for BoardFrozen events raised by the Lyra contract.

func (*LyraBoardFrozenIterator) Close

func (it *LyraBoardFrozenIterator) Close() error

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

func (*LyraBoardFrozenIterator) Error

func (it *LyraBoardFrozenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraBoardFrozenIterator) Next

func (it *LyraBoardFrozenIterator) 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 LyraBoardSettled added in v0.5.7

type LyraBoardSettled struct {
	BoardId                      *big.Int
	SpotPriceAtExpiry            *big.Int
	TotalUserLongProfitQuote     *big.Int
	TotalBoardLongCallCollateral *big.Int
	TotalBoardLongPutCollateral  *big.Int
	TotalAMMShortCallProfitBase  *big.Int
	TotalAMMShortCallProfitQuote *big.Int
	TotalAMMShortPutProfitQuote  *big.Int
	Raw                          types.Log // Blockchain specific contextual infos
}

LyraBoardSettled represents a BoardSettled event raised by the Lyra contract.

type LyraBoardSettledIterator added in v0.5.7

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

LyraBoardSettledIterator is returned from FilterBoardSettled and is used to iterate over the raw logs and unpacked data for BoardSettled events raised by the Lyra contract.

func (*LyraBoardSettledIterator) Close added in v0.5.7

func (it *LyraBoardSettledIterator) Close() error

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

func (*LyraBoardSettledIterator) Error added in v0.5.7

func (it *LyraBoardSettledIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraBoardSettledIterator) Next added in v0.5.7

func (it *LyraBoardSettledIterator) 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 LyraCaller

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

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

func NewLyraCaller

func NewLyraCaller(address common.Address, caller bind.ContractCaller) (*LyraCaller, error)

NewLyraCaller creates a new read-only instance of Lyra, bound to a specific deployed contract.

func (*LyraCaller) BoardToPriceAtExpiry

func (_Lyra *LyraCaller) BoardToPriceAtExpiry(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

BoardToPriceAtExpiry is a free data retrieval call binding the contract method 0xd1e9e811.

Solidity: function boardToPriceAtExpiry(uint256 ) view returns(uint256)

func (*LyraCaller) GetBoardAndStrikeDetails added in v0.5.7

func (_Lyra *LyraCaller) GetBoardAndStrikeDetails(opts *bind.CallOpts, boardId *big.Int) (OptionMarketOptionBoard, []OptionMarketStrike, []*big.Int, *big.Int, error)

GetBoardAndStrikeDetails is a free data retrieval call binding the contract method 0x1f18a342.

Solidity: function getBoardAndStrikeDetails(uint256 boardId) view returns((uint256,uint256,uint256,bool,uint256[]), (uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)[], uint256[], uint256)

func (*LyraCaller) GetBoardStrikes added in v0.5.7

func (_Lyra *LyraCaller) GetBoardStrikes(opts *bind.CallOpts, boardId *big.Int) ([]*big.Int, error)

GetBoardStrikes is a free data retrieval call binding the contract method 0x5d9d310c.

Solidity: function getBoardStrikes(uint256 boardId) view returns(uint256[] strikeIds)

func (*LyraCaller) GetLiveBoards

func (_Lyra *LyraCaller) GetLiveBoards(opts *bind.CallOpts) ([]*big.Int, error)

GetLiveBoards is a free data retrieval call binding the contract method 0x7e7088eb.

Solidity: function getLiveBoards() view returns(uint256[] _liveBoards)

func (*LyraCaller) GetNumLiveBoards added in v0.5.7

func (_Lyra *LyraCaller) GetNumLiveBoards(opts *bind.CallOpts) (*big.Int, error)

GetNumLiveBoards is a free data retrieval call binding the contract method 0xeed6601a.

Solidity: function getNumLiveBoards() view returns(uint256 numLiveBoards)

func (*LyraCaller) GetOptionBoard added in v0.5.7

func (_Lyra *LyraCaller) GetOptionBoard(opts *bind.CallOpts, boardId *big.Int) (OptionMarketOptionBoard, error)

GetOptionBoard is a free data retrieval call binding the contract method 0x16a54f50.

Solidity: function getOptionBoard(uint256 boardId) view returns((uint256,uint256,uint256,bool,uint256[]))

func (*LyraCaller) GetOptionMarketParams added in v0.5.7

func (_Lyra *LyraCaller) GetOptionMarketParams(opts *bind.CallOpts) (OptionMarketOptionMarketParameters, error)

GetOptionMarketParams is a free data retrieval call binding the contract method 0x3105dd9c.

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

func (*LyraCaller) GetSettlementParameters added in v0.5.7

func (_Lyra *LyraCaller) GetSettlementParameters(opts *bind.CallOpts, strikeId *big.Int) (struct {
	StrikePrice          *big.Int
	PriceAtExpiry        *big.Int
	StrikeToBaseReturned *big.Int
}, error)

GetSettlementParameters is a free data retrieval call binding the contract method 0x1fdb6cbd.

Solidity: function getSettlementParameters(uint256 strikeId) view returns(uint256 strikePrice, uint256 priceAtExpiry, uint256 strikeToBaseReturned)

func (*LyraCaller) GetStrike added in v0.5.7

func (_Lyra *LyraCaller) GetStrike(opts *bind.CallOpts, strikeId *big.Int) (OptionMarketStrike, error)

GetStrike is a free data retrieval call binding the contract method 0xa6063c05.

Solidity: function getStrike(uint256 strikeId) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256))

func (*LyraCaller) GetStrikeAndBoard added in v0.5.7

func (_Lyra *LyraCaller) GetStrikeAndBoard(opts *bind.CallOpts, strikeId *big.Int) (OptionMarketStrike, OptionMarketOptionBoard, error)

GetStrikeAndBoard is a free data retrieval call binding the contract method 0xc4c4a0d0.

Solidity: function getStrikeAndBoard(uint256 strikeId) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256), (uint256,uint256,uint256,bool,uint256[]))

func (*LyraCaller) GetStrikeAndExpiry added in v0.5.7

func (_Lyra *LyraCaller) GetStrikeAndExpiry(opts *bind.CallOpts, strikeId *big.Int) (struct {
	StrikePrice *big.Int
	Expiry      *big.Int
}, error)

GetStrikeAndExpiry is a free data retrieval call binding the contract method 0xcf6bcba0.

Solidity: function getStrikeAndExpiry(uint256 strikeId) view returns(uint256 strikePrice, uint256 expiry)

func (*LyraCaller) NominatedOwner added in v0.5.7

func (_Lyra *LyraCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyraCaller) Owner added in v0.5.7

func (_Lyra *LyraCaller) 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)

type LyraCallerRaw

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

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

func (*LyraCallerRaw) Call

func (_Lyra *LyraCallerRaw) 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 LyraCallerSession

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

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

func (*LyraCallerSession) BoardToPriceAtExpiry

func (_Lyra *LyraCallerSession) BoardToPriceAtExpiry(arg0 *big.Int) (*big.Int, error)

BoardToPriceAtExpiry is a free data retrieval call binding the contract method 0xd1e9e811.

Solidity: function boardToPriceAtExpiry(uint256 ) view returns(uint256)

func (*LyraCallerSession) GetBoardAndStrikeDetails added in v0.5.7

func (_Lyra *LyraCallerSession) GetBoardAndStrikeDetails(boardId *big.Int) (OptionMarketOptionBoard, []OptionMarketStrike, []*big.Int, *big.Int, error)

GetBoardAndStrikeDetails is a free data retrieval call binding the contract method 0x1f18a342.

Solidity: function getBoardAndStrikeDetails(uint256 boardId) view returns((uint256,uint256,uint256,bool,uint256[]), (uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)[], uint256[], uint256)

func (*LyraCallerSession) GetBoardStrikes added in v0.5.7

func (_Lyra *LyraCallerSession) GetBoardStrikes(boardId *big.Int) ([]*big.Int, error)

GetBoardStrikes is a free data retrieval call binding the contract method 0x5d9d310c.

Solidity: function getBoardStrikes(uint256 boardId) view returns(uint256[] strikeIds)

func (*LyraCallerSession) GetLiveBoards

func (_Lyra *LyraCallerSession) GetLiveBoards() ([]*big.Int, error)

GetLiveBoards is a free data retrieval call binding the contract method 0x7e7088eb.

Solidity: function getLiveBoards() view returns(uint256[] _liveBoards)

func (*LyraCallerSession) GetNumLiveBoards added in v0.5.7

func (_Lyra *LyraCallerSession) GetNumLiveBoards() (*big.Int, error)

GetNumLiveBoards is a free data retrieval call binding the contract method 0xeed6601a.

Solidity: function getNumLiveBoards() view returns(uint256 numLiveBoards)

func (*LyraCallerSession) GetOptionBoard added in v0.5.7

func (_Lyra *LyraCallerSession) GetOptionBoard(boardId *big.Int) (OptionMarketOptionBoard, error)

GetOptionBoard is a free data retrieval call binding the contract method 0x16a54f50.

Solidity: function getOptionBoard(uint256 boardId) view returns((uint256,uint256,uint256,bool,uint256[]))

func (*LyraCallerSession) GetOptionMarketParams added in v0.5.7

func (_Lyra *LyraCallerSession) GetOptionMarketParams() (OptionMarketOptionMarketParameters, error)

GetOptionMarketParams is a free data retrieval call binding the contract method 0x3105dd9c.

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

func (*LyraCallerSession) GetSettlementParameters added in v0.5.7

func (_Lyra *LyraCallerSession) GetSettlementParameters(strikeId *big.Int) (struct {
	StrikePrice          *big.Int
	PriceAtExpiry        *big.Int
	StrikeToBaseReturned *big.Int
}, error)

GetSettlementParameters is a free data retrieval call binding the contract method 0x1fdb6cbd.

Solidity: function getSettlementParameters(uint256 strikeId) view returns(uint256 strikePrice, uint256 priceAtExpiry, uint256 strikeToBaseReturned)

func (*LyraCallerSession) GetStrike added in v0.5.7

func (_Lyra *LyraCallerSession) GetStrike(strikeId *big.Int) (OptionMarketStrike, error)

GetStrike is a free data retrieval call binding the contract method 0xa6063c05.

Solidity: function getStrike(uint256 strikeId) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256))

func (*LyraCallerSession) GetStrikeAndBoard added in v0.5.7

func (_Lyra *LyraCallerSession) GetStrikeAndBoard(strikeId *big.Int) (OptionMarketStrike, OptionMarketOptionBoard, error)

GetStrikeAndBoard is a free data retrieval call binding the contract method 0xc4c4a0d0.

Solidity: function getStrikeAndBoard(uint256 strikeId) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256), (uint256,uint256,uint256,bool,uint256[]))

func (*LyraCallerSession) GetStrikeAndExpiry added in v0.5.7

func (_Lyra *LyraCallerSession) GetStrikeAndExpiry(strikeId *big.Int) (struct {
	StrikePrice *big.Int
	Expiry      *big.Int
}, error)

GetStrikeAndExpiry is a free data retrieval call binding the contract method 0xcf6bcba0.

Solidity: function getStrikeAndExpiry(uint256 strikeId) view returns(uint256 strikePrice, uint256 expiry)

func (*LyraCallerSession) NominatedOwner added in v0.5.7

func (_Lyra *LyraCallerSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyraCallerSession) Owner added in v0.5.7

func (_Lyra *LyraCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

type LyraFilterer

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

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

func NewLyraFilterer

func NewLyraFilterer(address common.Address, filterer bind.ContractFilterer) (*LyraFilterer, error)

NewLyraFilterer creates a new log filterer instance of Lyra, bound to a specific deployed contract.

func (*LyraFilterer) FilterBoardBaseIvSet

func (_Lyra *LyraFilterer) FilterBoardBaseIvSet(opts *bind.FilterOpts, boardId []*big.Int) (*LyraBoardBaseIvSetIterator, error)

FilterBoardBaseIvSet is a free log retrieval operation binding the contract event 0x27dc10bc12529bac536af6dbf5d4b270673ac7aeb848c334e4038ef55ecce881.

Solidity: event BoardBaseIvSet(uint256 indexed boardId, uint256 baseIv)

func (*LyraFilterer) FilterBoardCreated

func (_Lyra *LyraFilterer) FilterBoardCreated(opts *bind.FilterOpts, boardId []*big.Int) (*LyraBoardCreatedIterator, error)

FilterBoardCreated is a free log retrieval operation binding the contract event 0xcb94f87a9b05d8957b230ed8ef82ef8ef24fb02e374b4b1300c402ccb3b8868e.

Solidity: event BoardCreated(uint256 indexed boardId, uint256 expiry, uint256 baseIv, bool frozen)

func (*LyraFilterer) FilterBoardFrozen

func (_Lyra *LyraFilterer) FilterBoardFrozen(opts *bind.FilterOpts, boardId []*big.Int) (*LyraBoardFrozenIterator, error)

FilterBoardFrozen is a free log retrieval operation binding the contract event 0xab7e756517bb425436c10403644a884802e0b2d5105f9f5386823b7c42ca5d5f.

Solidity: event BoardFrozen(uint256 indexed boardId, bool frozen)

func (*LyraFilterer) FilterBoardSettled added in v0.5.7

func (_Lyra *LyraFilterer) FilterBoardSettled(opts *bind.FilterOpts, boardId []*big.Int) (*LyraBoardSettledIterator, error)

FilterBoardSettled is a free log retrieval operation binding the contract event 0xdb2372d9a91045fa42195170e972ab572d182278c275fbb277fed93ac5ddda82.

Solidity: event BoardSettled(uint256 indexed boardId, uint256 spotPriceAtExpiry, uint256 totalUserLongProfitQuote, uint256 totalBoardLongCallCollateral, uint256 totalBoardLongPutCollateral, uint256 totalAMMShortCallProfitBase, uint256 totalAMMShortCallProfitQuote, uint256 totalAMMShortPutProfitQuote)

func (*LyraFilterer) FilterOptionMarketParamsSet added in v0.5.7

func (_Lyra *LyraFilterer) FilterOptionMarketParamsSet(opts *bind.FilterOpts) (*LyraOptionMarketParamsSetIterator, error)

FilterOptionMarketParamsSet is a free log retrieval operation binding the contract event 0x19854f162a92eaba887a94b15691fb68f39b5ffc2a48f1eccd9ebac965432d80.

Solidity: event OptionMarketParamsSet((uint256,address,uint256,uint256) optionMarketParams)

func (*LyraFilterer) FilterOwnerChanged added in v0.5.7

func (_Lyra *LyraFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*LyraOwnerChangedIterator, error)

FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyraFilterer) FilterOwnerNominated added in v0.5.7

func (_Lyra *LyraFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*LyraOwnerNominatedIterator, error)

FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*LyraFilterer) FilterSMClaimed added in v0.5.7

func (_Lyra *LyraFilterer) FilterSMClaimed(opts *bind.FilterOpts) (*LyraSMClaimedIterator, error)

FilterSMClaimed is a free log retrieval operation binding the contract event 0x37b3d08ef7ea83f3a646520b4d8d248a92ffba0f65943f3bc3a8d58dd149e94b.

Solidity: event SMClaimed(address securityModule, uint256 quoteAmount, uint256 baseAmount)

func (*LyraFilterer) FilterStrikeAdded added in v0.5.7

func (_Lyra *LyraFilterer) FilterStrikeAdded(opts *bind.FilterOpts, boardId []*big.Int, strikeId []*big.Int) (*LyraStrikeAddedIterator, error)

FilterStrikeAdded is a free log retrieval operation binding the contract event 0x8dba15d5569538a96f1404ee74da67080a64e02c5cfbadf4b8908f90320178a1.

Solidity: event StrikeAdded(uint256 indexed boardId, uint256 indexed strikeId, uint256 strikePrice, uint256 skew)

func (*LyraFilterer) FilterStrikeSkewSet added in v0.5.7

func (_Lyra *LyraFilterer) FilterStrikeSkewSet(opts *bind.FilterOpts, strikeId []*big.Int) (*LyraStrikeSkewSetIterator, error)

FilterStrikeSkewSet is a free log retrieval operation binding the contract event 0xe494e8ea1592ce5eff63e093b9aa6d5208883099ea0a8734e64a518226fd443e.

Solidity: event StrikeSkewSet(uint256 indexed strikeId, uint256 skew)

func (*LyraFilterer) FilterTrade added in v0.5.7

func (_Lyra *LyraFilterer) FilterTrade(opts *bind.FilterOpts, trader []common.Address, strikeId []*big.Int, positionId []*big.Int) (*LyraTradeIterator, error)

FilterTrade is a free log retrieval operation binding the contract event 0xb587f4a964cfbcea150e428bfd686fc9305b9c66a45f0daa0ff6f3e99e612d4d.

Solidity: event Trade(address indexed trader, uint256 indexed strikeId, uint256 indexed positionId, (uint256,uint256,uint8,uint8,uint256,uint256,bool,uint256,uint256,uint256) trade, (uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256)[] tradeResults, (address,address,uint256,uint256,uint256,uint256,uint256,uint256) liquidation, uint256 timestamp)

func (*LyraFilterer) ParseBoardBaseIvSet

func (_Lyra *LyraFilterer) ParseBoardBaseIvSet(log types.Log) (*LyraBoardBaseIvSet, error)

ParseBoardBaseIvSet is a log parse operation binding the contract event 0x27dc10bc12529bac536af6dbf5d4b270673ac7aeb848c334e4038ef55ecce881.

Solidity: event BoardBaseIvSet(uint256 indexed boardId, uint256 baseIv)

func (*LyraFilterer) ParseBoardCreated

func (_Lyra *LyraFilterer) ParseBoardCreated(log types.Log) (*LyraBoardCreated, error)

ParseBoardCreated is a log parse operation binding the contract event 0xcb94f87a9b05d8957b230ed8ef82ef8ef24fb02e374b4b1300c402ccb3b8868e.

Solidity: event BoardCreated(uint256 indexed boardId, uint256 expiry, uint256 baseIv, bool frozen)

func (*LyraFilterer) ParseBoardFrozen

func (_Lyra *LyraFilterer) ParseBoardFrozen(log types.Log) (*LyraBoardFrozen, error)

ParseBoardFrozen is a log parse operation binding the contract event 0xab7e756517bb425436c10403644a884802e0b2d5105f9f5386823b7c42ca5d5f.

Solidity: event BoardFrozen(uint256 indexed boardId, bool frozen)

func (*LyraFilterer) ParseBoardSettled added in v0.5.7

func (_Lyra *LyraFilterer) ParseBoardSettled(log types.Log) (*LyraBoardSettled, error)

ParseBoardSettled is a log parse operation binding the contract event 0xdb2372d9a91045fa42195170e972ab572d182278c275fbb277fed93ac5ddda82.

Solidity: event BoardSettled(uint256 indexed boardId, uint256 spotPriceAtExpiry, uint256 totalUserLongProfitQuote, uint256 totalBoardLongCallCollateral, uint256 totalBoardLongPutCollateral, uint256 totalAMMShortCallProfitBase, uint256 totalAMMShortCallProfitQuote, uint256 totalAMMShortPutProfitQuote)

func (*LyraFilterer) ParseOptionMarketParamsSet added in v0.5.7

func (_Lyra *LyraFilterer) ParseOptionMarketParamsSet(log types.Log) (*LyraOptionMarketParamsSet, error)

ParseOptionMarketParamsSet is a log parse operation binding the contract event 0x19854f162a92eaba887a94b15691fb68f39b5ffc2a48f1eccd9ebac965432d80.

Solidity: event OptionMarketParamsSet((uint256,address,uint256,uint256) optionMarketParams)

func (*LyraFilterer) ParseOwnerChanged added in v0.5.7

func (_Lyra *LyraFilterer) ParseOwnerChanged(log types.Log) (*LyraOwnerChanged, error)

ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyraFilterer) ParseOwnerNominated added in v0.5.7

func (_Lyra *LyraFilterer) ParseOwnerNominated(log types.Log) (*LyraOwnerNominated, error)

ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*LyraFilterer) ParseSMClaimed added in v0.5.7

func (_Lyra *LyraFilterer) ParseSMClaimed(log types.Log) (*LyraSMClaimed, error)

ParseSMClaimed is a log parse operation binding the contract event 0x37b3d08ef7ea83f3a646520b4d8d248a92ffba0f65943f3bc3a8d58dd149e94b.

Solidity: event SMClaimed(address securityModule, uint256 quoteAmount, uint256 baseAmount)

func (*LyraFilterer) ParseStrikeAdded added in v0.5.7

func (_Lyra *LyraFilterer) ParseStrikeAdded(log types.Log) (*LyraStrikeAdded, error)

ParseStrikeAdded is a log parse operation binding the contract event 0x8dba15d5569538a96f1404ee74da67080a64e02c5cfbadf4b8908f90320178a1.

Solidity: event StrikeAdded(uint256 indexed boardId, uint256 indexed strikeId, uint256 strikePrice, uint256 skew)

func (*LyraFilterer) ParseStrikeSkewSet added in v0.5.7

func (_Lyra *LyraFilterer) ParseStrikeSkewSet(log types.Log) (*LyraStrikeSkewSet, error)

ParseStrikeSkewSet is a log parse operation binding the contract event 0xe494e8ea1592ce5eff63e093b9aa6d5208883099ea0a8734e64a518226fd443e.

Solidity: event StrikeSkewSet(uint256 indexed strikeId, uint256 skew)

func (*LyraFilterer) ParseTrade added in v0.5.7

func (_Lyra *LyraFilterer) ParseTrade(log types.Log) (*LyraTrade, error)

ParseTrade is a log parse operation binding the contract event 0xb587f4a964cfbcea150e428bfd686fc9305b9c66a45f0daa0ff6f3e99e612d4d.

Solidity: event Trade(address indexed trader, uint256 indexed strikeId, uint256 indexed positionId, (uint256,uint256,uint8,uint8,uint256,uint256,bool,uint256,uint256,uint256) trade, (uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256)[] tradeResults, (address,address,uint256,uint256,uint256,uint256,uint256,uint256) liquidation, uint256 timestamp)

func (*LyraFilterer) WatchBoardBaseIvSet

func (_Lyra *LyraFilterer) WatchBoardBaseIvSet(opts *bind.WatchOpts, sink chan<- *LyraBoardBaseIvSet, boardId []*big.Int) (event.Subscription, error)

WatchBoardBaseIvSet is a free log subscription operation binding the contract event 0x27dc10bc12529bac536af6dbf5d4b270673ac7aeb848c334e4038ef55ecce881.

Solidity: event BoardBaseIvSet(uint256 indexed boardId, uint256 baseIv)

func (*LyraFilterer) WatchBoardCreated

func (_Lyra *LyraFilterer) WatchBoardCreated(opts *bind.WatchOpts, sink chan<- *LyraBoardCreated, boardId []*big.Int) (event.Subscription, error)

WatchBoardCreated is a free log subscription operation binding the contract event 0xcb94f87a9b05d8957b230ed8ef82ef8ef24fb02e374b4b1300c402ccb3b8868e.

Solidity: event BoardCreated(uint256 indexed boardId, uint256 expiry, uint256 baseIv, bool frozen)

func (*LyraFilterer) WatchBoardFrozen

func (_Lyra *LyraFilterer) WatchBoardFrozen(opts *bind.WatchOpts, sink chan<- *LyraBoardFrozen, boardId []*big.Int) (event.Subscription, error)

WatchBoardFrozen is a free log subscription operation binding the contract event 0xab7e756517bb425436c10403644a884802e0b2d5105f9f5386823b7c42ca5d5f.

Solidity: event BoardFrozen(uint256 indexed boardId, bool frozen)

func (*LyraFilterer) WatchBoardSettled added in v0.5.7

func (_Lyra *LyraFilterer) WatchBoardSettled(opts *bind.WatchOpts, sink chan<- *LyraBoardSettled, boardId []*big.Int) (event.Subscription, error)

WatchBoardSettled is a free log subscription operation binding the contract event 0xdb2372d9a91045fa42195170e972ab572d182278c275fbb277fed93ac5ddda82.

Solidity: event BoardSettled(uint256 indexed boardId, uint256 spotPriceAtExpiry, uint256 totalUserLongProfitQuote, uint256 totalBoardLongCallCollateral, uint256 totalBoardLongPutCollateral, uint256 totalAMMShortCallProfitBase, uint256 totalAMMShortCallProfitQuote, uint256 totalAMMShortPutProfitQuote)

func (*LyraFilterer) WatchOptionMarketParamsSet added in v0.5.7

func (_Lyra *LyraFilterer) WatchOptionMarketParamsSet(opts *bind.WatchOpts, sink chan<- *LyraOptionMarketParamsSet) (event.Subscription, error)

WatchOptionMarketParamsSet is a free log subscription operation binding the contract event 0x19854f162a92eaba887a94b15691fb68f39b5ffc2a48f1eccd9ebac965432d80.

Solidity: event OptionMarketParamsSet((uint256,address,uint256,uint256) optionMarketParams)

func (*LyraFilterer) WatchOwnerChanged added in v0.5.7

func (_Lyra *LyraFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *LyraOwnerChanged) (event.Subscription, error)

WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyraFilterer) WatchOwnerNominated added in v0.5.7

func (_Lyra *LyraFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *LyraOwnerNominated) (event.Subscription, error)

WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*LyraFilterer) WatchSMClaimed added in v0.5.7

func (_Lyra *LyraFilterer) WatchSMClaimed(opts *bind.WatchOpts, sink chan<- *LyraSMClaimed) (event.Subscription, error)

WatchSMClaimed is a free log subscription operation binding the contract event 0x37b3d08ef7ea83f3a646520b4d8d248a92ffba0f65943f3bc3a8d58dd149e94b.

Solidity: event SMClaimed(address securityModule, uint256 quoteAmount, uint256 baseAmount)

func (*LyraFilterer) WatchStrikeAdded added in v0.5.7

func (_Lyra *LyraFilterer) WatchStrikeAdded(opts *bind.WatchOpts, sink chan<- *LyraStrikeAdded, boardId []*big.Int, strikeId []*big.Int) (event.Subscription, error)

WatchStrikeAdded is a free log subscription operation binding the contract event 0x8dba15d5569538a96f1404ee74da67080a64e02c5cfbadf4b8908f90320178a1.

Solidity: event StrikeAdded(uint256 indexed boardId, uint256 indexed strikeId, uint256 strikePrice, uint256 skew)

func (*LyraFilterer) WatchStrikeSkewSet added in v0.5.7

func (_Lyra *LyraFilterer) WatchStrikeSkewSet(opts *bind.WatchOpts, sink chan<- *LyraStrikeSkewSet, strikeId []*big.Int) (event.Subscription, error)

WatchStrikeSkewSet is a free log subscription operation binding the contract event 0xe494e8ea1592ce5eff63e093b9aa6d5208883099ea0a8734e64a518226fd443e.

Solidity: event StrikeSkewSet(uint256 indexed strikeId, uint256 skew)

func (*LyraFilterer) WatchTrade added in v0.5.7

func (_Lyra *LyraFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *LyraTrade, trader []common.Address, strikeId []*big.Int, positionId []*big.Int) (event.Subscription, error)

WatchTrade is a free log subscription operation binding the contract event 0xb587f4a964cfbcea150e428bfd686fc9305b9c66a45f0daa0ff6f3e99e612d4d.

Solidity: event Trade(address indexed trader, uint256 indexed strikeId, uint256 indexed positionId, (uint256,uint256,uint8,uint8,uint256,uint256,bool,uint256,uint256,uint256) trade, (uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256)[] tradeResults, (address,address,uint256,uint256,uint256,uint256,uint256,uint256) liquidation, uint256 timestamp)

type LyraOptionMarketParamsSet added in v0.5.7

type LyraOptionMarketParamsSet struct {
	OptionMarketParams OptionMarketOptionMarketParameters
	Raw                types.Log // Blockchain specific contextual infos
}

LyraOptionMarketParamsSet represents a OptionMarketParamsSet event raised by the Lyra contract.

type LyraOptionMarketParamsSetIterator added in v0.5.7

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

LyraOptionMarketParamsSetIterator is returned from FilterOptionMarketParamsSet and is used to iterate over the raw logs and unpacked data for OptionMarketParamsSet events raised by the Lyra contract.

func (*LyraOptionMarketParamsSetIterator) Close added in v0.5.7

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

func (*LyraOptionMarketParamsSetIterator) Error added in v0.5.7

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraOptionMarketParamsSetIterator) Next added in v0.5.7

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 LyraOwnerChanged added in v0.5.7

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

LyraOwnerChanged represents a OwnerChanged event raised by the Lyra contract.

type LyraOwnerChangedIterator added in v0.5.7

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

LyraOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the Lyra contract.

func (*LyraOwnerChangedIterator) Close added in v0.5.7

func (it *LyraOwnerChangedIterator) Close() error

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

func (*LyraOwnerChangedIterator) Error added in v0.5.7

func (it *LyraOwnerChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraOwnerChangedIterator) Next added in v0.5.7

func (it *LyraOwnerChangedIterator) 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 LyraOwnerNominated added in v0.5.7

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

LyraOwnerNominated represents a OwnerNominated event raised by the Lyra contract.

type LyraOwnerNominatedIterator added in v0.5.7

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

LyraOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the Lyra contract.

func (*LyraOwnerNominatedIterator) Close added in v0.5.7

func (it *LyraOwnerNominatedIterator) Close() error

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

func (*LyraOwnerNominatedIterator) Error added in v0.5.7

func (it *LyraOwnerNominatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraOwnerNominatedIterator) Next added in v0.5.7

func (it *LyraOwnerNominatedIterator) 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 LyraRaw

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

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

func (*LyraRaw) Call

func (_Lyra *LyraRaw) 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 (*LyraRaw) Transact

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

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

func (*LyraRaw) Transfer

func (_Lyra *LyraRaw) 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 LyraRegistryOptionMarketAddresses added in v0.5.7

type LyraRegistryOptionMarketAddresses struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	PoolHedger         common.Address
	ShortCollateral    common.Address
	GwavOracle         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}

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

type LyraSMClaimed added in v0.5.7

type LyraSMClaimed struct {
	SecurityModule common.Address
	QuoteAmount    *big.Int
	BaseAmount     *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

LyraSMClaimed represents a SMClaimed event raised by the Lyra contract.

type LyraSMClaimedIterator added in v0.5.7

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

LyraSMClaimedIterator is returned from FilterSMClaimed and is used to iterate over the raw logs and unpacked data for SMClaimed events raised by the Lyra contract.

func (*LyraSMClaimedIterator) Close added in v0.5.7

func (it *LyraSMClaimedIterator) Close() error

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

func (*LyraSMClaimedIterator) Error added in v0.5.7

func (it *LyraSMClaimedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraSMClaimedIterator) Next added in v0.5.7

func (it *LyraSMClaimedIterator) 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 LyraSession

type LyraSession struct {
	Contract     *Lyra             // 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
}

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

func (*LyraSession) AcceptOwnership added in v0.5.7

func (_Lyra *LyraSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyraSession) AddCollateral added in v0.5.7

func (_Lyra *LyraSession) AddCollateral(positionId *big.Int, amountCollateral *big.Int) (*types.Transaction, error)

AddCollateral is a paid mutator transaction binding the contract method 0xa8f35adf.

Solidity: function addCollateral(uint256 positionId, uint256 amountCollateral) returns()

func (*LyraSession) AddStrikeToBoard added in v0.5.7

func (_Lyra *LyraSession) AddStrikeToBoard(boardId *big.Int, strikePrice *big.Int, skew *big.Int) (*types.Transaction, error)

AddStrikeToBoard is a paid mutator transaction binding the contract method 0x05c8954a.

Solidity: function addStrikeToBoard(uint256 boardId, uint256 strikePrice, uint256 skew) returns()

func (*LyraSession) BoardToPriceAtExpiry

func (_Lyra *LyraSession) BoardToPriceAtExpiry(arg0 *big.Int) (*big.Int, error)

BoardToPriceAtExpiry is a free data retrieval call binding the contract method 0xd1e9e811.

Solidity: function boardToPriceAtExpiry(uint256 ) view returns(uint256)

func (*LyraSession) ClosePosition

func (_Lyra *LyraSession) ClosePosition(params OptionMarketTradeInputParameters) (*types.Transaction, error)

ClosePosition is a paid mutator transaction binding the contract method 0x92b4632c.

Solidity: function closePosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraSession) CreateOptionBoard

func (_Lyra *LyraSession) CreateOptionBoard(expiry *big.Int, baseIV *big.Int, strikePrices []*big.Int, skews []*big.Int, frozen bool) (*types.Transaction, error)

CreateOptionBoard is a paid mutator transaction binding the contract method 0x2dd0776b.

Solidity: function createOptionBoard(uint256 expiry, uint256 baseIV, uint256[] strikePrices, uint256[] skews, bool frozen) returns(uint256 boardId)

func (*LyraSession) ForceClosePosition added in v0.5.7

func (_Lyra *LyraSession) ForceClosePosition(params OptionMarketTradeInputParameters) (*types.Transaction, error)

ForceClosePosition is a paid mutator transaction binding the contract method 0xe4e83e3d.

Solidity: function forceClosePosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraSession) ForceSettleBoard added in v0.5.7

func (_Lyra *LyraSession) ForceSettleBoard(boardId *big.Int) (*types.Transaction, error)

ForceSettleBoard is a paid mutator transaction binding the contract method 0x90e32fba.

Solidity: function forceSettleBoard(uint256 boardId) returns()

func (*LyraSession) GetBoardAndStrikeDetails added in v0.5.7

func (_Lyra *LyraSession) GetBoardAndStrikeDetails(boardId *big.Int) (OptionMarketOptionBoard, []OptionMarketStrike, []*big.Int, *big.Int, error)

GetBoardAndStrikeDetails is a free data retrieval call binding the contract method 0x1f18a342.

Solidity: function getBoardAndStrikeDetails(uint256 boardId) view returns((uint256,uint256,uint256,bool,uint256[]), (uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)[], uint256[], uint256)

func (*LyraSession) GetBoardStrikes added in v0.5.7

func (_Lyra *LyraSession) GetBoardStrikes(boardId *big.Int) ([]*big.Int, error)

GetBoardStrikes is a free data retrieval call binding the contract method 0x5d9d310c.

Solidity: function getBoardStrikes(uint256 boardId) view returns(uint256[] strikeIds)

func (*LyraSession) GetLiveBoards

func (_Lyra *LyraSession) GetLiveBoards() ([]*big.Int, error)

GetLiveBoards is a free data retrieval call binding the contract method 0x7e7088eb.

Solidity: function getLiveBoards() view returns(uint256[] _liveBoards)

func (*LyraSession) GetNumLiveBoards added in v0.5.7

func (_Lyra *LyraSession) GetNumLiveBoards() (*big.Int, error)

GetNumLiveBoards is a free data retrieval call binding the contract method 0xeed6601a.

Solidity: function getNumLiveBoards() view returns(uint256 numLiveBoards)

func (*LyraSession) GetOptionBoard added in v0.5.7

func (_Lyra *LyraSession) GetOptionBoard(boardId *big.Int) (OptionMarketOptionBoard, error)

GetOptionBoard is a free data retrieval call binding the contract method 0x16a54f50.

Solidity: function getOptionBoard(uint256 boardId) view returns((uint256,uint256,uint256,bool,uint256[]))

func (*LyraSession) GetOptionMarketParams added in v0.5.7

func (_Lyra *LyraSession) GetOptionMarketParams() (OptionMarketOptionMarketParameters, error)

GetOptionMarketParams is a free data retrieval call binding the contract method 0x3105dd9c.

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

func (*LyraSession) GetSettlementParameters added in v0.5.7

func (_Lyra *LyraSession) GetSettlementParameters(strikeId *big.Int) (struct {
	StrikePrice          *big.Int
	PriceAtExpiry        *big.Int
	StrikeToBaseReturned *big.Int
}, error)

GetSettlementParameters is a free data retrieval call binding the contract method 0x1fdb6cbd.

Solidity: function getSettlementParameters(uint256 strikeId) view returns(uint256 strikePrice, uint256 priceAtExpiry, uint256 strikeToBaseReturned)

func (*LyraSession) GetStrike added in v0.5.7

func (_Lyra *LyraSession) GetStrike(strikeId *big.Int) (OptionMarketStrike, error)

GetStrike is a free data retrieval call binding the contract method 0xa6063c05.

Solidity: function getStrike(uint256 strikeId) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256))

func (*LyraSession) GetStrikeAndBoard added in v0.5.7

func (_Lyra *LyraSession) GetStrikeAndBoard(strikeId *big.Int) (OptionMarketStrike, OptionMarketOptionBoard, error)

GetStrikeAndBoard is a free data retrieval call binding the contract method 0xc4c4a0d0.

Solidity: function getStrikeAndBoard(uint256 strikeId) view returns((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256), (uint256,uint256,uint256,bool,uint256[]))

func (*LyraSession) GetStrikeAndExpiry added in v0.5.7

func (_Lyra *LyraSession) GetStrikeAndExpiry(strikeId *big.Int) (struct {
	StrikePrice *big.Int
	Expiry      *big.Int
}, error)

GetStrikeAndExpiry is a free data retrieval call binding the contract method 0xcf6bcba0.

Solidity: function getStrikeAndExpiry(uint256 strikeId) view returns(uint256 strikePrice, uint256 expiry)

func (*LyraSession) Init

func (_Lyra *LyraSession) Init(_synthetixAdapter common.Address, _liquidityPool common.Address, _optionPricer common.Address, _greekCache common.Address, _shortCollateral common.Address, _optionToken common.Address, _quoteAsset common.Address, _baseAsset common.Address) (*types.Transaction, error)

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

Solidity: function init(address _synthetixAdapter, address _liquidityPool, address _optionPricer, address _greekCache, address _shortCollateral, address _optionToken, address _quoteAsset, address _baseAsset) returns()

func (*LyraSession) LiquidatePosition added in v0.5.7

func (_Lyra *LyraSession) LiquidatePosition(positionId *big.Int, rewardBeneficiary common.Address) (*types.Transaction, error)

LiquidatePosition is a paid mutator transaction binding the contract method 0x5f036de1.

Solidity: function liquidatePosition(uint256 positionId, address rewardBeneficiary) returns()

func (*LyraSession) NominateNewOwner added in v0.5.7

func (_Lyra *LyraSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyraSession) NominatedOwner added in v0.5.7

func (_Lyra *LyraSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyraSession) OpenPosition

func (_Lyra *LyraSession) OpenPosition(params OptionMarketTradeInputParameters) (*types.Transaction, error)

OpenPosition is a paid mutator transaction binding the contract method 0x0037f2bc.

Solidity: function openPosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraSession) Owner added in v0.5.7

func (_Lyra *LyraSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LyraSession) SetBoardBaseIv

func (_Lyra *LyraSession) SetBoardBaseIv(boardId *big.Int, baseIv *big.Int) (*types.Transaction, error)

SetBoardBaseIv is a paid mutator transaction binding the contract method 0x18cc7e86.

Solidity: function setBoardBaseIv(uint256 boardId, uint256 baseIv) returns()

func (*LyraSession) SetBoardFrozen

func (_Lyra *LyraSession) SetBoardFrozen(boardId *big.Int, frozen bool) (*types.Transaction, error)

SetBoardFrozen is a paid mutator transaction binding the contract method 0xa9c9d125.

Solidity: function setBoardFrozen(uint256 boardId, bool frozen) returns()

func (*LyraSession) SetOptionMarketParams added in v0.5.7

func (_Lyra *LyraSession) SetOptionMarketParams(_optionMarketParams OptionMarketOptionMarketParameters) (*types.Transaction, error)

SetOptionMarketParams is a paid mutator transaction binding the contract method 0x1227e500.

Solidity: function setOptionMarketParams((uint256,address,uint256,uint256) _optionMarketParams) returns()

func (*LyraSession) SetStrikeSkew added in v0.5.7

func (_Lyra *LyraSession) SetStrikeSkew(strikeId *big.Int, skew *big.Int) (*types.Transaction, error)

SetStrikeSkew is a paid mutator transaction binding the contract method 0xe7a5897b.

Solidity: function setStrikeSkew(uint256 strikeId, uint256 skew) returns()

func (*LyraSession) SettleExpiredBoard added in v0.5.7

func (_Lyra *LyraSession) SettleExpiredBoard(boardId *big.Int) (*types.Transaction, error)

SettleExpiredBoard is a paid mutator transaction binding the contract method 0x7c1de425.

Solidity: function settleExpiredBoard(uint256 boardId) returns()

func (*LyraSession) SmClaim added in v0.5.7

func (_Lyra *LyraSession) SmClaim() (*types.Transaction, error)

SmClaim is a paid mutator transaction binding the contract method 0xebc20866.

Solidity: function smClaim() returns()

type LyraStrikeAdded added in v0.5.7

type LyraStrikeAdded struct {
	BoardId     *big.Int
	StrikeId    *big.Int
	StrikePrice *big.Int
	Skew        *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

LyraStrikeAdded represents a StrikeAdded event raised by the Lyra contract.

type LyraStrikeAddedIterator added in v0.5.7

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

LyraStrikeAddedIterator is returned from FilterStrikeAdded and is used to iterate over the raw logs and unpacked data for StrikeAdded events raised by the Lyra contract.

func (*LyraStrikeAddedIterator) Close added in v0.5.7

func (it *LyraStrikeAddedIterator) Close() error

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

func (*LyraStrikeAddedIterator) Error added in v0.5.7

func (it *LyraStrikeAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraStrikeAddedIterator) Next added in v0.5.7

func (it *LyraStrikeAddedIterator) 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 LyraStrikeSkewSet added in v0.5.7

type LyraStrikeSkewSet struct {
	StrikeId *big.Int
	Skew     *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

LyraStrikeSkewSet represents a StrikeSkewSet event raised by the Lyra contract.

type LyraStrikeSkewSetIterator added in v0.5.7

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

LyraStrikeSkewSetIterator is returned from FilterStrikeSkewSet and is used to iterate over the raw logs and unpacked data for StrikeSkewSet events raised by the Lyra contract.

func (*LyraStrikeSkewSetIterator) Close added in v0.5.7

func (it *LyraStrikeSkewSetIterator) Close() error

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

func (*LyraStrikeSkewSetIterator) Error added in v0.5.7

func (it *LyraStrikeSkewSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraStrikeSkewSetIterator) Next added in v0.5.7

func (it *LyraStrikeSkewSetIterator) 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 LyraTrade added in v0.5.7

type LyraTrade struct {
	Trader       common.Address
	StrikeId     *big.Int
	PositionId   *big.Int
	Trade        OptionMarketTradeEventData
	TradeResults []OptionMarketPricerTradeResult
	Liquidation  OptionMarketLiquidationEventData
	Timestamp    *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

LyraTrade represents a Trade event raised by the Lyra contract.

type LyraTradeIterator added in v0.5.7

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

LyraTradeIterator is returned from FilterTrade and is used to iterate over the raw logs and unpacked data for Trade events raised by the Lyra contract.

func (*LyraTradeIterator) Close added in v0.5.7

func (it *LyraTradeIterator) Close() error

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

func (*LyraTradeIterator) Error added in v0.5.7

func (it *LyraTradeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyraTradeIterator) Next added in v0.5.7

func (it *LyraTradeIterator) 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 LyraTransactor

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

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

func NewLyraTransactor

func NewLyraTransactor(address common.Address, transactor bind.ContractTransactor) (*LyraTransactor, error)

NewLyraTransactor creates a new write-only instance of Lyra, bound to a specific deployed contract.

func (*LyraTransactor) AcceptOwnership added in v0.5.7

func (_Lyra *LyraTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyraTransactor) AddCollateral added in v0.5.7

func (_Lyra *LyraTransactor) AddCollateral(opts *bind.TransactOpts, positionId *big.Int, amountCollateral *big.Int) (*types.Transaction, error)

AddCollateral is a paid mutator transaction binding the contract method 0xa8f35adf.

Solidity: function addCollateral(uint256 positionId, uint256 amountCollateral) returns()

func (*LyraTransactor) AddStrikeToBoard added in v0.5.7

func (_Lyra *LyraTransactor) AddStrikeToBoard(opts *bind.TransactOpts, boardId *big.Int, strikePrice *big.Int, skew *big.Int) (*types.Transaction, error)

AddStrikeToBoard is a paid mutator transaction binding the contract method 0x05c8954a.

Solidity: function addStrikeToBoard(uint256 boardId, uint256 strikePrice, uint256 skew) returns()

func (*LyraTransactor) ClosePosition

ClosePosition is a paid mutator transaction binding the contract method 0x92b4632c.

Solidity: function closePosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraTransactor) CreateOptionBoard

func (_Lyra *LyraTransactor) CreateOptionBoard(opts *bind.TransactOpts, expiry *big.Int, baseIV *big.Int, strikePrices []*big.Int, skews []*big.Int, frozen bool) (*types.Transaction, error)

CreateOptionBoard is a paid mutator transaction binding the contract method 0x2dd0776b.

Solidity: function createOptionBoard(uint256 expiry, uint256 baseIV, uint256[] strikePrices, uint256[] skews, bool frozen) returns(uint256 boardId)

func (*LyraTransactor) ForceClosePosition added in v0.5.7

func (_Lyra *LyraTransactor) ForceClosePosition(opts *bind.TransactOpts, params OptionMarketTradeInputParameters) (*types.Transaction, error)

ForceClosePosition is a paid mutator transaction binding the contract method 0xe4e83e3d.

Solidity: function forceClosePosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraTransactor) ForceSettleBoard added in v0.5.7

func (_Lyra *LyraTransactor) ForceSettleBoard(opts *bind.TransactOpts, boardId *big.Int) (*types.Transaction, error)

ForceSettleBoard is a paid mutator transaction binding the contract method 0x90e32fba.

Solidity: function forceSettleBoard(uint256 boardId) returns()

func (*LyraTransactor) Init

func (_Lyra *LyraTransactor) Init(opts *bind.TransactOpts, _synthetixAdapter common.Address, _liquidityPool common.Address, _optionPricer common.Address, _greekCache common.Address, _shortCollateral common.Address, _optionToken common.Address, _quoteAsset common.Address, _baseAsset common.Address) (*types.Transaction, error)

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

Solidity: function init(address _synthetixAdapter, address _liquidityPool, address _optionPricer, address _greekCache, address _shortCollateral, address _optionToken, address _quoteAsset, address _baseAsset) returns()

func (*LyraTransactor) LiquidatePosition added in v0.5.7

func (_Lyra *LyraTransactor) LiquidatePosition(opts *bind.TransactOpts, positionId *big.Int, rewardBeneficiary common.Address) (*types.Transaction, error)

LiquidatePosition is a paid mutator transaction binding the contract method 0x5f036de1.

Solidity: function liquidatePosition(uint256 positionId, address rewardBeneficiary) returns()

func (*LyraTransactor) NominateNewOwner added in v0.5.7

func (_Lyra *LyraTransactor) NominateNewOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyraTransactor) OpenPosition

OpenPosition is a paid mutator transaction binding the contract method 0x0037f2bc.

Solidity: function openPosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraTransactor) SetBoardBaseIv

func (_Lyra *LyraTransactor) SetBoardBaseIv(opts *bind.TransactOpts, boardId *big.Int, baseIv *big.Int) (*types.Transaction, error)

SetBoardBaseIv is a paid mutator transaction binding the contract method 0x18cc7e86.

Solidity: function setBoardBaseIv(uint256 boardId, uint256 baseIv) returns()

func (*LyraTransactor) SetBoardFrozen

func (_Lyra *LyraTransactor) SetBoardFrozen(opts *bind.TransactOpts, boardId *big.Int, frozen bool) (*types.Transaction, error)

SetBoardFrozen is a paid mutator transaction binding the contract method 0xa9c9d125.

Solidity: function setBoardFrozen(uint256 boardId, bool frozen) returns()

func (*LyraTransactor) SetOptionMarketParams added in v0.5.7

func (_Lyra *LyraTransactor) SetOptionMarketParams(opts *bind.TransactOpts, _optionMarketParams OptionMarketOptionMarketParameters) (*types.Transaction, error)

SetOptionMarketParams is a paid mutator transaction binding the contract method 0x1227e500.

Solidity: function setOptionMarketParams((uint256,address,uint256,uint256) _optionMarketParams) returns()

func (*LyraTransactor) SetStrikeSkew added in v0.5.7

func (_Lyra *LyraTransactor) SetStrikeSkew(opts *bind.TransactOpts, strikeId *big.Int, skew *big.Int) (*types.Transaction, error)

SetStrikeSkew is a paid mutator transaction binding the contract method 0xe7a5897b.

Solidity: function setStrikeSkew(uint256 strikeId, uint256 skew) returns()

func (*LyraTransactor) SettleExpiredBoard added in v0.5.7

func (_Lyra *LyraTransactor) SettleExpiredBoard(opts *bind.TransactOpts, boardId *big.Int) (*types.Transaction, error)

SettleExpiredBoard is a paid mutator transaction binding the contract method 0x7c1de425.

Solidity: function settleExpiredBoard(uint256 boardId) returns()

func (*LyraTransactor) SmClaim added in v0.5.7

func (_Lyra *LyraTransactor) SmClaim(opts *bind.TransactOpts) (*types.Transaction, error)

SmClaim is a paid mutator transaction binding the contract method 0xebc20866.

Solidity: function smClaim() returns()

type LyraTransactorRaw

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

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

func (*LyraTransactorRaw) Transact

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

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

func (*LyraTransactorRaw) Transfer

func (_Lyra *LyraTransactorRaw) 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 LyraTransactorSession

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

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

func (*LyraTransactorSession) AcceptOwnership added in v0.5.7

func (_Lyra *LyraTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyraTransactorSession) AddCollateral added in v0.5.7

func (_Lyra *LyraTransactorSession) AddCollateral(positionId *big.Int, amountCollateral *big.Int) (*types.Transaction, error)

AddCollateral is a paid mutator transaction binding the contract method 0xa8f35adf.

Solidity: function addCollateral(uint256 positionId, uint256 amountCollateral) returns()

func (*LyraTransactorSession) AddStrikeToBoard added in v0.5.7

func (_Lyra *LyraTransactorSession) AddStrikeToBoard(boardId *big.Int, strikePrice *big.Int, skew *big.Int) (*types.Transaction, error)

AddStrikeToBoard is a paid mutator transaction binding the contract method 0x05c8954a.

Solidity: function addStrikeToBoard(uint256 boardId, uint256 strikePrice, uint256 skew) returns()

func (*LyraTransactorSession) ClosePosition

ClosePosition is a paid mutator transaction binding the contract method 0x92b4632c.

Solidity: function closePosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraTransactorSession) CreateOptionBoard

func (_Lyra *LyraTransactorSession) CreateOptionBoard(expiry *big.Int, baseIV *big.Int, strikePrices []*big.Int, skews []*big.Int, frozen bool) (*types.Transaction, error)

CreateOptionBoard is a paid mutator transaction binding the contract method 0x2dd0776b.

Solidity: function createOptionBoard(uint256 expiry, uint256 baseIV, uint256[] strikePrices, uint256[] skews, bool frozen) returns(uint256 boardId)

func (*LyraTransactorSession) ForceClosePosition added in v0.5.7

func (_Lyra *LyraTransactorSession) ForceClosePosition(params OptionMarketTradeInputParameters) (*types.Transaction, error)

ForceClosePosition is a paid mutator transaction binding the contract method 0xe4e83e3d.

Solidity: function forceClosePosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraTransactorSession) ForceSettleBoard added in v0.5.7

func (_Lyra *LyraTransactorSession) ForceSettleBoard(boardId *big.Int) (*types.Transaction, error)

ForceSettleBoard is a paid mutator transaction binding the contract method 0x90e32fba.

Solidity: function forceSettleBoard(uint256 boardId) returns()

func (*LyraTransactorSession) Init

func (_Lyra *LyraTransactorSession) Init(_synthetixAdapter common.Address, _liquidityPool common.Address, _optionPricer common.Address, _greekCache common.Address, _shortCollateral common.Address, _optionToken common.Address, _quoteAsset common.Address, _baseAsset common.Address) (*types.Transaction, error)

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

Solidity: function init(address _synthetixAdapter, address _liquidityPool, address _optionPricer, address _greekCache, address _shortCollateral, address _optionToken, address _quoteAsset, address _baseAsset) returns()

func (*LyraTransactorSession) LiquidatePosition added in v0.5.7

func (_Lyra *LyraTransactorSession) LiquidatePosition(positionId *big.Int, rewardBeneficiary common.Address) (*types.Transaction, error)

LiquidatePosition is a paid mutator transaction binding the contract method 0x5f036de1.

Solidity: function liquidatePosition(uint256 positionId, address rewardBeneficiary) returns()

func (*LyraTransactorSession) NominateNewOwner added in v0.5.7

func (_Lyra *LyraTransactorSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyraTransactorSession) OpenPosition

OpenPosition is a paid mutator transaction binding the contract method 0x0037f2bc.

Solidity: function openPosition((uint256,uint256,uint256,uint8,uint256,uint256,uint256,uint256) params) returns((uint256,uint256,uint256) result)

func (*LyraTransactorSession) SetBoardBaseIv

func (_Lyra *LyraTransactorSession) SetBoardBaseIv(boardId *big.Int, baseIv *big.Int) (*types.Transaction, error)

SetBoardBaseIv is a paid mutator transaction binding the contract method 0x18cc7e86.

Solidity: function setBoardBaseIv(uint256 boardId, uint256 baseIv) returns()

func (*LyraTransactorSession) SetBoardFrozen

func (_Lyra *LyraTransactorSession) SetBoardFrozen(boardId *big.Int, frozen bool) (*types.Transaction, error)

SetBoardFrozen is a paid mutator transaction binding the contract method 0xa9c9d125.

Solidity: function setBoardFrozen(uint256 boardId, bool frozen) returns()

func (*LyraTransactorSession) SetOptionMarketParams added in v0.5.7

func (_Lyra *LyraTransactorSession) SetOptionMarketParams(_optionMarketParams OptionMarketOptionMarketParameters) (*types.Transaction, error)

SetOptionMarketParams is a paid mutator transaction binding the contract method 0x1227e500.

Solidity: function setOptionMarketParams((uint256,address,uint256,uint256) _optionMarketParams) returns()

func (*LyraTransactorSession) SetStrikeSkew added in v0.5.7

func (_Lyra *LyraTransactorSession) SetStrikeSkew(strikeId *big.Int, skew *big.Int) (*types.Transaction, error)

SetStrikeSkew is a paid mutator transaction binding the contract method 0xe7a5897b.

Solidity: function setStrikeSkew(uint256 strikeId, uint256 skew) returns()

func (*LyraTransactorSession) SettleExpiredBoard added in v0.5.7

func (_Lyra *LyraTransactorSession) SettleExpiredBoard(boardId *big.Int) (*types.Transaction, error)

SettleExpiredBoard is a paid mutator transaction binding the contract method 0x7c1de425.

Solidity: function settleExpiredBoard(uint256 boardId) returns()

func (*LyraTransactorSession) SmClaim added in v0.5.7

func (_Lyra *LyraTransactorSession) SmClaim() (*types.Transaction, error)

SmClaim is a paid mutator transaction binding the contract method 0xebc20866.

Solidity: function smClaim() returns()

type Lyrap

type Lyrap struct {
	LyrapCaller     // Read-only binding to the contract
	LyrapTransactor // Write-only binding to the contract
	LyrapFilterer   // Log filterer for contract events
}

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

func NewLyrap

func NewLyrap(address common.Address, backend bind.ContractBackend) (*Lyrap, error)

NewLyrap creates a new instance of Lyrap, bound to a specific deployed contract.

type LyrapCaller

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

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

func NewLyrapCaller

func NewLyrapCaller(address common.Address, caller bind.ContractCaller) (*LyrapCaller, error)

NewLyrapCaller creates a new read-only instance of Lyrap, bound to a specific deployed contract.

func (*LyrapCaller) GetBoard

func (_Lyrap *LyrapCaller) GetBoard(opts *bind.CallOpts, market common.Address, boardId *big.Int) (OptionMarketViewerBoardView, error)

GetBoard is a free data retrieval call binding the contract method 0x5d033f7f.

Solidity: function getBoard(address market, uint256 boardId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapCaller) GetBoardForBaseKey added in v0.5.7

func (_Lyrap *LyrapCaller) GetBoardForBaseKey(opts *bind.CallOpts, baseKey [32]byte, boardId *big.Int) (OptionMarketViewerBoardView, error)

GetBoardForBaseKey is a free data retrieval call binding the contract method 0xa9306dba.

Solidity: function getBoardForBaseKey(bytes32 baseKey, uint256 boardId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapCaller) GetBoardForStrikeId added in v0.5.7

func (_Lyrap *LyrapCaller) GetBoardForStrikeId(opts *bind.CallOpts, market common.Address, strikeId *big.Int) (OptionMarketViewerBoardView, error)

GetBoardForStrikeId is a free data retrieval call binding the contract method 0xac6e227b.

Solidity: function getBoardForStrikeId(address market, uint256 strikeId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapCaller) GetLiquidityBalancesAndAllowances added in v0.5.7

func (_Lyrap *LyrapCaller) GetLiquidityBalancesAndAllowances(opts *bind.CallOpts, markets []common.Address, account common.Address) ([]OptionMarketViewerLiquidityBalanceAndAllowance, error)

GetLiquidityBalancesAndAllowances is a free data retrieval call binding the contract method 0x25646545.

Solidity: function getLiquidityBalancesAndAllowances(address[] markets, address account) view returns((address,uint256,uint256)[])

func (*LyrapCaller) GetLiveBoards

func (_Lyrap *LyrapCaller) GetLiveBoards(opts *bind.CallOpts, market common.Address) ([]OptionMarketViewerBoardView, error)

GetLiveBoards is a free data retrieval call binding the contract method 0xb0862c0e.

Solidity: function getLiveBoards(address market) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[] marketBoards)

func (*LyrapCaller) GetMarket added in v0.5.7

GetMarket is a free data retrieval call binding the contract method 0xd4dfadbf.

Solidity: function getMarket(address market) view returns((bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[],(uint256,bytes32,bytes32,uint256,uint256)))

func (*LyrapCaller) GetMarketAddresses added in v0.5.7

func (_Lyrap *LyrapCaller) GetMarketAddresses(opts *bind.CallOpts) ([]OptionMarketViewerOptionMarketAddresses, error)

GetMarketAddresses is a free data retrieval call binding the contract method 0x97ce0d31.

Solidity: function getMarketAddresses() view returns((address,address,address,address,address,address,address,address,address,address)[])

func (*LyrapCaller) GetMarketForBaseKey added in v0.5.7

func (_Lyrap *LyrapCaller) GetMarketForBaseKey(opts *bind.CallOpts, baseKey [32]byte) (OptionMarketViewerMarketViewWithBoards, error)

GetMarketForBaseKey is a free data retrieval call binding the contract method 0x6cc9023f.

Solidity: function getMarketForBaseKey(bytes32 baseKey) view returns((bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[],(uint256,bytes32,bytes32,uint256,uint256)) market)

func (*LyrapCaller) GetMarkets added in v0.5.7

func (_Lyrap *LyrapCaller) GetMarkets(opts *bind.CallOpts, markets []common.Address) (OptionMarketViewerMarketsView, error)

GetMarkets is a free data retrieval call binding the contract method 0x1139e3f1.

Solidity: function getMarkets(address[] markets) view returns((address,bool,(bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(uint256,bytes32,bytes32,uint256,uint256))[]) marketsView)

func (*LyrapCaller) GetOwnerPositions added in v0.5.7

func (_Lyrap *LyrapCaller) GetOwnerPositions(opts *bind.CallOpts, account common.Address) ([]OptionMarketViewerMarketOptionPositions, error)

GetOwnerPositions is a free data retrieval call binding the contract method 0x845e1259.

Solidity: function getOwnerPositions(address account) view returns((address,(uint256,uint256,uint8,uint256,uint256,uint8)[])[])

func (*LyrapCaller) GetOwnerPositionsInRange added in v0.5.7

func (_Lyrap *LyrapCaller) GetOwnerPositionsInRange(opts *bind.CallOpts, market common.Address, account common.Address, start *big.Int, limit *big.Int) ([]OptionTokenOptionPosition, error)

GetOwnerPositionsInRange is a free data retrieval call binding the contract method 0x9cdaffe2.

Solidity: function getOwnerPositionsInRange(address market, address account, uint256 start, uint256 limit) view returns((uint256,uint256,uint8,uint256,uint256,uint8)[])

func (*LyrapCaller) Initialized added in v0.5.7

func (_Lyrap *LyrapCaller) Initialized(opts *bind.CallOpts) (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() view returns(bool)

func (*LyrapCaller) MarketAddresses added in v0.5.7

func (_Lyrap *LyrapCaller) MarketAddresses(opts *bind.CallOpts, arg0 common.Address) (struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	ShortCollateral    common.Address
	PoolHedger         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}, error)

MarketAddresses is a free data retrieval call binding the contract method 0xc71b7e53.

Solidity: function marketAddresses(address ) view returns(address liquidityPool, address liquidityToken, address greekCache, address optionMarket, address optionMarketPricer, address optionToken, address shortCollateral, address poolHedger, address quoteAsset, address baseAsset)

func (*LyrapCaller) NominatedOwner added in v0.5.7

func (_Lyrap *LyrapCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyrapCaller) OptionMarkets added in v0.5.7

func (_Lyrap *LyrapCaller) OptionMarkets(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

OptionMarkets is a free data retrieval call binding the contract method 0x1cb66845.

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

func (*LyrapCaller) Owner added in v0.5.7

func (_Lyrap *LyrapCaller) 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 (*LyrapCaller) SynthetixAdapter added in v0.5.7

func (_Lyrap *LyrapCaller) SynthetixAdapter(opts *bind.CallOpts) (common.Address, error)

SynthetixAdapter is a free data retrieval call binding the contract method 0xd2f5a5bb.

Solidity: function synthetixAdapter() view returns(address)

type LyrapCallerRaw

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

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

func (*LyrapCallerRaw) Call

func (_Lyrap *LyrapCallerRaw) 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 LyrapCallerSession

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

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

func (*LyrapCallerSession) GetBoard

func (_Lyrap *LyrapCallerSession) GetBoard(market common.Address, boardId *big.Int) (OptionMarketViewerBoardView, error)

GetBoard is a free data retrieval call binding the contract method 0x5d033f7f.

Solidity: function getBoard(address market, uint256 boardId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapCallerSession) GetBoardForBaseKey added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetBoardForBaseKey(baseKey [32]byte, boardId *big.Int) (OptionMarketViewerBoardView, error)

GetBoardForBaseKey is a free data retrieval call binding the contract method 0xa9306dba.

Solidity: function getBoardForBaseKey(bytes32 baseKey, uint256 boardId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapCallerSession) GetBoardForStrikeId added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetBoardForStrikeId(market common.Address, strikeId *big.Int) (OptionMarketViewerBoardView, error)

GetBoardForStrikeId is a free data retrieval call binding the contract method 0xac6e227b.

Solidity: function getBoardForStrikeId(address market, uint256 strikeId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapCallerSession) GetLiquidityBalancesAndAllowances added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetLiquidityBalancesAndAllowances(markets []common.Address, account common.Address) ([]OptionMarketViewerLiquidityBalanceAndAllowance, error)

GetLiquidityBalancesAndAllowances is a free data retrieval call binding the contract method 0x25646545.

Solidity: function getLiquidityBalancesAndAllowances(address[] markets, address account) view returns((address,uint256,uint256)[])

func (*LyrapCallerSession) GetLiveBoards

func (_Lyrap *LyrapCallerSession) GetLiveBoards(market common.Address) ([]OptionMarketViewerBoardView, error)

GetLiveBoards is a free data retrieval call binding the contract method 0xb0862c0e.

Solidity: function getLiveBoards(address market) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[] marketBoards)

func (*LyrapCallerSession) GetMarket added in v0.5.7

GetMarket is a free data retrieval call binding the contract method 0xd4dfadbf.

Solidity: function getMarket(address market) view returns((bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[],(uint256,bytes32,bytes32,uint256,uint256)))

func (*LyrapCallerSession) GetMarketAddresses added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetMarketAddresses() ([]OptionMarketViewerOptionMarketAddresses, error)

GetMarketAddresses is a free data retrieval call binding the contract method 0x97ce0d31.

Solidity: function getMarketAddresses() view returns((address,address,address,address,address,address,address,address,address,address)[])

func (*LyrapCallerSession) GetMarketForBaseKey added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetMarketForBaseKey(baseKey [32]byte) (OptionMarketViewerMarketViewWithBoards, error)

GetMarketForBaseKey is a free data retrieval call binding the contract method 0x6cc9023f.

Solidity: function getMarketForBaseKey(bytes32 baseKey) view returns((bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[],(uint256,bytes32,bytes32,uint256,uint256)) market)

func (*LyrapCallerSession) GetMarkets added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetMarkets(markets []common.Address) (OptionMarketViewerMarketsView, error)

GetMarkets is a free data retrieval call binding the contract method 0x1139e3f1.

Solidity: function getMarkets(address[] markets) view returns((address,bool,(bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(uint256,bytes32,bytes32,uint256,uint256))[]) marketsView)

func (*LyrapCallerSession) GetOwnerPositions added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetOwnerPositions(account common.Address) ([]OptionMarketViewerMarketOptionPositions, error)

GetOwnerPositions is a free data retrieval call binding the contract method 0x845e1259.

Solidity: function getOwnerPositions(address account) view returns((address,(uint256,uint256,uint8,uint256,uint256,uint8)[])[])

func (*LyrapCallerSession) GetOwnerPositionsInRange added in v0.5.7

func (_Lyrap *LyrapCallerSession) GetOwnerPositionsInRange(market common.Address, account common.Address, start *big.Int, limit *big.Int) ([]OptionTokenOptionPosition, error)

GetOwnerPositionsInRange is a free data retrieval call binding the contract method 0x9cdaffe2.

Solidity: function getOwnerPositionsInRange(address market, address account, uint256 start, uint256 limit) view returns((uint256,uint256,uint8,uint256,uint256,uint8)[])

func (*LyrapCallerSession) Initialized added in v0.5.7

func (_Lyrap *LyrapCallerSession) Initialized() (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() view returns(bool)

func (*LyrapCallerSession) MarketAddresses added in v0.5.7

func (_Lyrap *LyrapCallerSession) MarketAddresses(arg0 common.Address) (struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	ShortCollateral    common.Address
	PoolHedger         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}, error)

MarketAddresses is a free data retrieval call binding the contract method 0xc71b7e53.

Solidity: function marketAddresses(address ) view returns(address liquidityPool, address liquidityToken, address greekCache, address optionMarket, address optionMarketPricer, address optionToken, address shortCollateral, address poolHedger, address quoteAsset, address baseAsset)

func (*LyrapCallerSession) NominatedOwner added in v0.5.7

func (_Lyrap *LyrapCallerSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyrapCallerSession) OptionMarkets added in v0.5.7

func (_Lyrap *LyrapCallerSession) OptionMarkets(arg0 *big.Int) (common.Address, error)

OptionMarkets is a free data retrieval call binding the contract method 0x1cb66845.

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

func (*LyrapCallerSession) Owner added in v0.5.7

func (_Lyrap *LyrapCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LyrapCallerSession) SynthetixAdapter added in v0.5.7

func (_Lyrap *LyrapCallerSession) SynthetixAdapter() (common.Address, error)

SynthetixAdapter is a free data retrieval call binding the contract method 0xd2f5a5bb.

Solidity: function synthetixAdapter() view returns(address)

type LyrapFilterer

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

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

func NewLyrapFilterer

func NewLyrapFilterer(address common.Address, filterer bind.ContractFilterer) (*LyrapFilterer, error)

NewLyrapFilterer creates a new log filterer instance of Lyrap, bound to a specific deployed contract.

func (*LyrapFilterer) FilterMarketAdded added in v0.5.7

func (_Lyrap *LyrapFilterer) FilterMarketAdded(opts *bind.FilterOpts) (*LyrapMarketAddedIterator, error)

FilterMarketAdded is a free log retrieval operation binding the contract event 0xd3777d9870fa8e7682a422021d48549c180f7b06a647478f5211caef6b6a4ee8.

Solidity: event MarketAdded((address,address,address,address,address,address,address,address,address,address) market)

func (*LyrapFilterer) FilterMarketRemoved added in v0.5.7

func (_Lyrap *LyrapFilterer) FilterMarketRemoved(opts *bind.FilterOpts) (*LyrapMarketRemovedIterator, error)

FilterMarketRemoved is a free log retrieval operation binding the contract event 0x59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d77.

Solidity: event MarketRemoved(address market)

func (*LyrapFilterer) FilterOwnerChanged added in v0.5.7

func (_Lyrap *LyrapFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*LyrapOwnerChangedIterator, error)

FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyrapFilterer) FilterOwnerNominated added in v0.5.7

func (_Lyrap *LyrapFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*LyrapOwnerNominatedIterator, error)

FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*LyrapFilterer) ParseMarketAdded added in v0.5.7

func (_Lyrap *LyrapFilterer) ParseMarketAdded(log types.Log) (*LyrapMarketAdded, error)

ParseMarketAdded is a log parse operation binding the contract event 0xd3777d9870fa8e7682a422021d48549c180f7b06a647478f5211caef6b6a4ee8.

Solidity: event MarketAdded((address,address,address,address,address,address,address,address,address,address) market)

func (*LyrapFilterer) ParseMarketRemoved added in v0.5.7

func (_Lyrap *LyrapFilterer) ParseMarketRemoved(log types.Log) (*LyrapMarketRemoved, error)

ParseMarketRemoved is a log parse operation binding the contract event 0x59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d77.

Solidity: event MarketRemoved(address market)

func (*LyrapFilterer) ParseOwnerChanged added in v0.5.7

func (_Lyrap *LyrapFilterer) ParseOwnerChanged(log types.Log) (*LyrapOwnerChanged, error)

ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyrapFilterer) ParseOwnerNominated added in v0.5.7

func (_Lyrap *LyrapFilterer) ParseOwnerNominated(log types.Log) (*LyrapOwnerNominated, error)

ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*LyrapFilterer) WatchMarketAdded added in v0.5.7

func (_Lyrap *LyrapFilterer) WatchMarketAdded(opts *bind.WatchOpts, sink chan<- *LyrapMarketAdded) (event.Subscription, error)

WatchMarketAdded is a free log subscription operation binding the contract event 0xd3777d9870fa8e7682a422021d48549c180f7b06a647478f5211caef6b6a4ee8.

Solidity: event MarketAdded((address,address,address,address,address,address,address,address,address,address) market)

func (*LyrapFilterer) WatchMarketRemoved added in v0.5.7

func (_Lyrap *LyrapFilterer) WatchMarketRemoved(opts *bind.WatchOpts, sink chan<- *LyrapMarketRemoved) (event.Subscription, error)

WatchMarketRemoved is a free log subscription operation binding the contract event 0x59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d77.

Solidity: event MarketRemoved(address market)

func (*LyrapFilterer) WatchOwnerChanged added in v0.5.7

func (_Lyrap *LyrapFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *LyrapOwnerChanged) (event.Subscription, error)

WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyrapFilterer) WatchOwnerNominated added in v0.5.7

func (_Lyrap *LyrapFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *LyrapOwnerNominated) (event.Subscription, error)

WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

type LyrapMarketAdded added in v0.5.7

type LyrapMarketAdded struct {
	Market OptionMarketViewerOptionMarketAddresses
	Raw    types.Log // Blockchain specific contextual infos
}

LyrapMarketAdded represents a MarketAdded event raised by the Lyrap contract.

type LyrapMarketAddedIterator added in v0.5.7

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

LyrapMarketAddedIterator is returned from FilterMarketAdded and is used to iterate over the raw logs and unpacked data for MarketAdded events raised by the Lyrap contract.

func (*LyrapMarketAddedIterator) Close added in v0.5.7

func (it *LyrapMarketAddedIterator) Close() error

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

func (*LyrapMarketAddedIterator) Error added in v0.5.7

func (it *LyrapMarketAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrapMarketAddedIterator) Next added in v0.5.7

func (it *LyrapMarketAddedIterator) 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 LyrapMarketRemoved added in v0.5.7

type LyrapMarketRemoved struct {
	Market common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

LyrapMarketRemoved represents a MarketRemoved event raised by the Lyrap contract.

type LyrapMarketRemovedIterator added in v0.5.7

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

LyrapMarketRemovedIterator is returned from FilterMarketRemoved and is used to iterate over the raw logs and unpacked data for MarketRemoved events raised by the Lyrap contract.

func (*LyrapMarketRemovedIterator) Close added in v0.5.7

func (it *LyrapMarketRemovedIterator) Close() error

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

func (*LyrapMarketRemovedIterator) Error added in v0.5.7

func (it *LyrapMarketRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrapMarketRemovedIterator) Next added in v0.5.7

func (it *LyrapMarketRemovedIterator) 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 LyrapOwnerChanged added in v0.5.7

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

LyrapOwnerChanged represents a OwnerChanged event raised by the Lyrap contract.

type LyrapOwnerChangedIterator added in v0.5.7

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

LyrapOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the Lyrap contract.

func (*LyrapOwnerChangedIterator) Close added in v0.5.7

func (it *LyrapOwnerChangedIterator) Close() error

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

func (*LyrapOwnerChangedIterator) Error added in v0.5.7

func (it *LyrapOwnerChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrapOwnerChangedIterator) Next added in v0.5.7

func (it *LyrapOwnerChangedIterator) 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 LyrapOwnerNominated added in v0.5.7

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

LyrapOwnerNominated represents a OwnerNominated event raised by the Lyrap contract.

type LyrapOwnerNominatedIterator added in v0.5.7

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

LyrapOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the Lyrap contract.

func (*LyrapOwnerNominatedIterator) Close added in v0.5.7

func (it *LyrapOwnerNominatedIterator) Close() error

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

func (*LyrapOwnerNominatedIterator) Error added in v0.5.7

func (it *LyrapOwnerNominatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrapOwnerNominatedIterator) Next added in v0.5.7

func (it *LyrapOwnerNominatedIterator) 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 LyrapRaw

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

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

func (*LyrapRaw) Call

func (_Lyrap *LyrapRaw) 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 (*LyrapRaw) Transact

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

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

func (*LyrapRaw) Transfer

func (_Lyrap *LyrapRaw) 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 LyrapSession

type LyrapSession struct {
	Contract     *Lyrap            // 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
}

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

func (*LyrapSession) AcceptOwnership added in v0.5.7

func (_Lyrap *LyrapSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyrapSession) AddMarket added in v0.5.7

func (_Lyrap *LyrapSession) AddMarket(newMarketAddresses OptionMarketViewerOptionMarketAddresses) (*types.Transaction, error)

AddMarket is a paid mutator transaction binding the contract method 0x7f68720f.

Solidity: function addMarket((address,address,address,address,address,address,address,address,address,address) newMarketAddresses) returns()

func (*LyrapSession) GetBoard

func (_Lyrap *LyrapSession) GetBoard(market common.Address, boardId *big.Int) (OptionMarketViewerBoardView, error)

GetBoard is a free data retrieval call binding the contract method 0x5d033f7f.

Solidity: function getBoard(address market, uint256 boardId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapSession) GetBoardForBaseKey added in v0.5.7

func (_Lyrap *LyrapSession) GetBoardForBaseKey(baseKey [32]byte, boardId *big.Int) (OptionMarketViewerBoardView, error)

GetBoardForBaseKey is a free data retrieval call binding the contract method 0xa9306dba.

Solidity: function getBoardForBaseKey(bytes32 baseKey, uint256 boardId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapSession) GetBoardForStrikeId added in v0.5.7

func (_Lyrap *LyrapSession) GetBoardForStrikeId(market common.Address, strikeId *big.Int) (OptionMarketViewerBoardView, error)

GetBoardForStrikeId is a free data retrieval call binding the contract method 0xac6e227b.

Solidity: function getBoardForStrikeId(address market, uint256 strikeId) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[]))

func (*LyrapSession) GetLiquidityBalancesAndAllowances added in v0.5.7

func (_Lyrap *LyrapSession) GetLiquidityBalancesAndAllowances(markets []common.Address, account common.Address) ([]OptionMarketViewerLiquidityBalanceAndAllowance, error)

GetLiquidityBalancesAndAllowances is a free data retrieval call binding the contract method 0x25646545.

Solidity: function getLiquidityBalancesAndAllowances(address[] markets, address account) view returns((address,uint256,uint256)[])

func (*LyrapSession) GetLiveBoards

func (_Lyrap *LyrapSession) GetLiveBoards(market common.Address) ([]OptionMarketViewerBoardView, error)

GetLiveBoards is a free data retrieval call binding the contract method 0xb0862c0e.

Solidity: function getLiveBoards(address market) view returns((address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[] marketBoards)

func (*LyrapSession) GetMarket added in v0.5.7

GetMarket is a free data retrieval call binding the contract method 0xd4dfadbf.

Solidity: function getMarket(address market) view returns((bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[],(uint256,bytes32,bytes32,uint256,uint256)))

func (*LyrapSession) GetMarketAddresses added in v0.5.7

func (_Lyrap *LyrapSession) GetMarketAddresses() ([]OptionMarketViewerOptionMarketAddresses, error)

GetMarketAddresses is a free data retrieval call binding the contract method 0x97ce0d31.

Solidity: function getMarketAddresses() view returns((address,address,address,address,address,address,address,address,address,address)[])

func (*LyrapSession) GetMarketForBaseKey added in v0.5.7

func (_Lyrap *LyrapSession) GetMarketForBaseKey(baseKey [32]byte) (OptionMarketViewerMarketViewWithBoards, error)

GetMarketForBaseKey is a free data retrieval call binding the contract method 0x6cc9023f.

Solidity: function getMarketForBaseKey(bytes32 baseKey) view returns((bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(address,uint256,uint256,uint256,uint256,bool,uint256,(int256,int256,int256),(uint256,uint256,uint256,uint256,uint256,(int256,int256,uint256,uint256,uint256),uint256,uint256,uint256,uint256,uint256,uint256)[])[],(uint256,bytes32,bytes32,uint256,uint256)) market)

func (*LyrapSession) GetMarkets added in v0.5.7

func (_Lyrap *LyrapSession) GetMarkets(markets []common.Address) (OptionMarketViewerMarketsView, error)

GetMarkets is a free data retrieval call binding the contract method 0x1139e3f1.

Solidity: function getMarkets(address[] markets) view returns((address,bool,(bool,uint256,uint256,uint256,(address,address,address,address,address,address,address,address,address,address),((uint256,address,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,int256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool),(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256),(uint256,uint256,uint256,uint256),(uint256,uint256)),(uint256,uint256,uint256,uint256,uint256,uint256),(int256,int256,int256),(uint256,bytes32,bytes32,uint256,uint256))[]) marketsView)

func (*LyrapSession) GetOwnerPositions added in v0.5.7

func (_Lyrap *LyrapSession) GetOwnerPositions(account common.Address) ([]OptionMarketViewerMarketOptionPositions, error)

GetOwnerPositions is a free data retrieval call binding the contract method 0x845e1259.

Solidity: function getOwnerPositions(address account) view returns((address,(uint256,uint256,uint8,uint256,uint256,uint8)[])[])

func (*LyrapSession) GetOwnerPositionsInRange added in v0.5.7

func (_Lyrap *LyrapSession) GetOwnerPositionsInRange(market common.Address, account common.Address, start *big.Int, limit *big.Int) ([]OptionTokenOptionPosition, error)

GetOwnerPositionsInRange is a free data retrieval call binding the contract method 0x9cdaffe2.

Solidity: function getOwnerPositionsInRange(address market, address account, uint256 start, uint256 limit) view returns((uint256,uint256,uint8,uint256,uint256,uint8)[])

func (*LyrapSession) Init

func (_Lyrap *LyrapSession) Init(_synthetixAdapter common.Address) (*types.Transaction, error)

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

Solidity: function init(address _synthetixAdapter) returns()

func (*LyrapSession) Initialized added in v0.5.7

func (_Lyrap *LyrapSession) Initialized() (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() view returns(bool)

func (*LyrapSession) MarketAddresses added in v0.5.7

func (_Lyrap *LyrapSession) MarketAddresses(arg0 common.Address) (struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	ShortCollateral    common.Address
	PoolHedger         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}, error)

MarketAddresses is a free data retrieval call binding the contract method 0xc71b7e53.

Solidity: function marketAddresses(address ) view returns(address liquidityPool, address liquidityToken, address greekCache, address optionMarket, address optionMarketPricer, address optionToken, address shortCollateral, address poolHedger, address quoteAsset, address baseAsset)

func (*LyrapSession) NominateNewOwner added in v0.5.7

func (_Lyrap *LyrapSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyrapSession) NominatedOwner added in v0.5.7

func (_Lyrap *LyrapSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyrapSession) OptionMarkets added in v0.5.7

func (_Lyrap *LyrapSession) OptionMarkets(arg0 *big.Int) (common.Address, error)

OptionMarkets is a free data retrieval call binding the contract method 0x1cb66845.

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

func (*LyrapSession) Owner added in v0.5.7

func (_Lyrap *LyrapSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LyrapSession) RemoveMarket added in v0.5.7

func (_Lyrap *LyrapSession) RemoveMarket(market common.Address) (*types.Transaction, error)

RemoveMarket is a paid mutator transaction binding the contract method 0xdb913236.

Solidity: function removeMarket(address market) returns()

func (*LyrapSession) SynthetixAdapter added in v0.5.7

func (_Lyrap *LyrapSession) SynthetixAdapter() (common.Address, error)

SynthetixAdapter is a free data retrieval call binding the contract method 0xd2f5a5bb.

Solidity: function synthetixAdapter() view returns(address)

type LyrapTransactor

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

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

func NewLyrapTransactor

func NewLyrapTransactor(address common.Address, transactor bind.ContractTransactor) (*LyrapTransactor, error)

NewLyrapTransactor creates a new write-only instance of Lyrap, bound to a specific deployed contract.

func (*LyrapTransactor) AcceptOwnership added in v0.5.7

func (_Lyrap *LyrapTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyrapTransactor) AddMarket added in v0.5.7

func (_Lyrap *LyrapTransactor) AddMarket(opts *bind.TransactOpts, newMarketAddresses OptionMarketViewerOptionMarketAddresses) (*types.Transaction, error)

AddMarket is a paid mutator transaction binding the contract method 0x7f68720f.

Solidity: function addMarket((address,address,address,address,address,address,address,address,address,address) newMarketAddresses) returns()

func (*LyrapTransactor) Init

func (_Lyrap *LyrapTransactor) Init(opts *bind.TransactOpts, _synthetixAdapter common.Address) (*types.Transaction, error)

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

Solidity: function init(address _synthetixAdapter) returns()

func (*LyrapTransactor) NominateNewOwner added in v0.5.7

func (_Lyrap *LyrapTransactor) NominateNewOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyrapTransactor) RemoveMarket added in v0.5.7

func (_Lyrap *LyrapTransactor) RemoveMarket(opts *bind.TransactOpts, market common.Address) (*types.Transaction, error)

RemoveMarket is a paid mutator transaction binding the contract method 0xdb913236.

Solidity: function removeMarket(address market) returns()

type LyrapTransactorRaw

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

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

func (*LyrapTransactorRaw) Transact

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

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

func (*LyrapTransactorRaw) Transfer

func (_Lyrap *LyrapTransactorRaw) 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 LyrapTransactorSession

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

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

func (*LyrapTransactorSession) AcceptOwnership added in v0.5.7

func (_Lyrap *LyrapTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyrapTransactorSession) AddMarket added in v0.5.7

func (_Lyrap *LyrapTransactorSession) AddMarket(newMarketAddresses OptionMarketViewerOptionMarketAddresses) (*types.Transaction, error)

AddMarket is a paid mutator transaction binding the contract method 0x7f68720f.

Solidity: function addMarket((address,address,address,address,address,address,address,address,address,address) newMarketAddresses) returns()

func (*LyrapTransactorSession) Init

func (_Lyrap *LyrapTransactorSession) Init(_synthetixAdapter common.Address) (*types.Transaction, error)

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

Solidity: function init(address _synthetixAdapter) returns()

func (*LyrapTransactorSession) NominateNewOwner added in v0.5.7

func (_Lyrap *LyrapTransactorSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyrapTransactorSession) RemoveMarket added in v0.5.7

func (_Lyrap *LyrapTransactorSession) RemoveMarket(market common.Address) (*types.Transaction, error)

RemoveMarket is a paid mutator transaction binding the contract method 0xdb913236.

Solidity: function removeMarket(address market) returns()

type Lyraq added in v0.5.7

type Lyraq struct {
	LyraqCaller     // Read-only binding to the contract
	LyraqTransactor // Write-only binding to the contract
	LyraqFilterer   // Log filterer for contract events
}

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

func NewLyraq added in v0.5.7

func NewLyraq(address common.Address, backend bind.ContractBackend) (*Lyraq, error)

NewLyraq creates a new instance of Lyraq, bound to a specific deployed contract.

type LyraqCaller added in v0.5.7

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

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

func NewLyraqCaller added in v0.5.7

func NewLyraqCaller(address common.Address, caller bind.ContractCaller) (*LyraqCaller, error)

NewLyraqCaller creates a new read-only instance of Lyraq, bound to a specific deployed contract.

func (*LyraqCaller) FullQuotes added in v0.5.7

func (_Lyraq *LyraqCaller) FullQuotes(opts *bind.CallOpts, _optionMarket common.Address, strikeId *big.Int, iterations *big.Int, amount *big.Int) ([]*big.Int, []*big.Int, error)

FullQuotes is a free data retrieval call binding the contract method 0xae2275b3.

Solidity: function fullQuotes(address _optionMarket, uint256 strikeId, uint256 iterations, uint256 amount) view returns(uint256[], uint256[])

func (*LyraqCaller) Quote added in v0.5.7

func (_Lyraq *LyraqCaller) Quote(opts *bind.CallOpts, _optionMarket common.Address, strikeId *big.Int, iterations *big.Int, optionType uint8, amount *big.Int) (struct {
	TotalPremium *big.Int
	TotalFee     *big.Int
}, error)

Quote is a free data retrieval call binding the contract method 0x4c438ca7.

Solidity: function quote(address _optionMarket, uint256 strikeId, uint256 iterations, uint8 optionType, uint256 amount) view returns(uint256 totalPremium, uint256 totalFee)

func (*LyraqCaller) Register added in v0.5.7

func (_Lyraq *LyraqCaller) Register(opts *bind.CallOpts) (common.Address, error)

Register is a free data retrieval call binding the contract method 0x1aa3a008.

Solidity: function register() view returns(address)

type LyraqCallerRaw added in v0.5.7

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

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

func (*LyraqCallerRaw) Call added in v0.5.7

func (_Lyraq *LyraqCallerRaw) 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 LyraqCallerSession added in v0.5.7

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

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

func (*LyraqCallerSession) FullQuotes added in v0.5.7

func (_Lyraq *LyraqCallerSession) FullQuotes(_optionMarket common.Address, strikeId *big.Int, iterations *big.Int, amount *big.Int) ([]*big.Int, []*big.Int, error)

FullQuotes is a free data retrieval call binding the contract method 0xae2275b3.

Solidity: function fullQuotes(address _optionMarket, uint256 strikeId, uint256 iterations, uint256 amount) view returns(uint256[], uint256[])

func (*LyraqCallerSession) Quote added in v0.5.7

func (_Lyraq *LyraqCallerSession) Quote(_optionMarket common.Address, strikeId *big.Int, iterations *big.Int, optionType uint8, amount *big.Int) (struct {
	TotalPremium *big.Int
	TotalFee     *big.Int
}, error)

Quote is a free data retrieval call binding the contract method 0x4c438ca7.

Solidity: function quote(address _optionMarket, uint256 strikeId, uint256 iterations, uint8 optionType, uint256 amount) view returns(uint256 totalPremium, uint256 totalFee)

func (*LyraqCallerSession) Register added in v0.5.7

func (_Lyraq *LyraqCallerSession) Register() (common.Address, error)

Register is a free data retrieval call binding the contract method 0x1aa3a008.

Solidity: function register() view returns(address)

type LyraqFilterer added in v0.5.7

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

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

func NewLyraqFilterer added in v0.5.7

func NewLyraqFilterer(address common.Address, filterer bind.ContractFilterer) (*LyraqFilterer, error)

NewLyraqFilterer creates a new log filterer instance of Lyraq, bound to a specific deployed contract.

type LyraqRaw added in v0.5.7

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

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

func (*LyraqRaw) Call added in v0.5.7

func (_Lyraq *LyraqRaw) 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 (*LyraqRaw) Transact added in v0.5.7

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

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

func (*LyraqRaw) Transfer added in v0.5.7

func (_Lyraq *LyraqRaw) 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 LyraqSession added in v0.5.7

type LyraqSession struct {
	Contract     *Lyraq            // 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
}

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

func (*LyraqSession) FullQuotes added in v0.5.7

func (_Lyraq *LyraqSession) FullQuotes(_optionMarket common.Address, strikeId *big.Int, iterations *big.Int, amount *big.Int) ([]*big.Int, []*big.Int, error)

FullQuotes is a free data retrieval call binding the contract method 0xae2275b3.

Solidity: function fullQuotes(address _optionMarket, uint256 strikeId, uint256 iterations, uint256 amount) view returns(uint256[], uint256[])

func (*LyraqSession) Quote added in v0.5.7

func (_Lyraq *LyraqSession) Quote(_optionMarket common.Address, strikeId *big.Int, iterations *big.Int, optionType uint8, amount *big.Int) (struct {
	TotalPremium *big.Int
	TotalFee     *big.Int
}, error)

Quote is a free data retrieval call binding the contract method 0x4c438ca7.

Solidity: function quote(address _optionMarket, uint256 strikeId, uint256 iterations, uint8 optionType, uint256 amount) view returns(uint256 totalPremium, uint256 totalFee)

func (*LyraqSession) Register added in v0.5.7

func (_Lyraq *LyraqSession) Register() (common.Address, error)

Register is a free data retrieval call binding the contract method 0x1aa3a008.

Solidity: function register() view returns(address)

type LyraqTransactor added in v0.5.7

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

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

func NewLyraqTransactor added in v0.5.7

func NewLyraqTransactor(address common.Address, transactor bind.ContractTransactor) (*LyraqTransactor, error)

NewLyraqTransactor creates a new write-only instance of Lyraq, bound to a specific deployed contract.

type LyraqTransactorRaw added in v0.5.7

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

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

func (*LyraqTransactorRaw) Transact added in v0.5.7

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

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

func (*LyraqTransactorRaw) Transfer added in v0.5.7

func (_Lyraq *LyraqTransactorRaw) 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 LyraqTransactorSession added in v0.5.7

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

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

type Lyrar added in v0.5.7

type Lyrar struct {
	LyrarCaller     // Read-only binding to the contract
	LyrarTransactor // Write-only binding to the contract
	LyrarFilterer   // Log filterer for contract events
}

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

func NewLyrar added in v0.5.7

func NewLyrar(address common.Address, backend bind.ContractBackend) (*Lyrar, error)

NewLyrar creates a new instance of Lyrar, bound to a specific deployed contract.

type LyrarCaller added in v0.5.7

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

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

func NewLyrarCaller added in v0.5.7

func NewLyrarCaller(address common.Address, caller bind.ContractCaller) (*LyrarCaller, error)

NewLyrarCaller creates a new read-only instance of Lyrar, bound to a specific deployed contract.

func (*LyrarCaller) GetGlobalAddress added in v0.5.7

func (_Lyrar *LyrarCaller) GetGlobalAddress(opts *bind.CallOpts, contractName [32]byte) (common.Address, error)

GetGlobalAddress is a free data retrieval call binding the contract method 0x7f2e0600.

Solidity: function getGlobalAddress(bytes32 contractName) view returns(address globalContract)

func (*LyrarCaller) GetMarketAddresses added in v0.5.7

func (_Lyrar *LyrarCaller) GetMarketAddresses(opts *bind.CallOpts, optionMarket common.Address) (LyraRegistryOptionMarketAddresses, error)

GetMarketAddresses is a free data retrieval call binding the contract method 0xc4158a51.

Solidity: function getMarketAddresses(address optionMarket) view returns((address,address,address,address,address,address,address,address,address,address,address))

func (*LyrarCaller) GlobalAddresses added in v0.5.7

func (_Lyrar *LyrarCaller) GlobalAddresses(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

GlobalAddresses is a free data retrieval call binding the contract method 0x8acce68f.

Solidity: function globalAddresses(bytes32 ) view returns(address)

func (*LyrarCaller) MarketAddresses added in v0.5.7

func (_Lyrar *LyrarCaller) MarketAddresses(opts *bind.CallOpts, arg0 common.Address) (struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	PoolHedger         common.Address
	ShortCollateral    common.Address
	GwavOracle         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}, error)

MarketAddresses is a free data retrieval call binding the contract method 0xc71b7e53.

Solidity: function marketAddresses(address ) view returns(address liquidityPool, address liquidityToken, address greekCache, address optionMarket, address optionMarketPricer, address optionToken, address poolHedger, address shortCollateral, address gwavOracle, address quoteAsset, address baseAsset)

func (*LyrarCaller) NominatedOwner added in v0.5.7

func (_Lyrar *LyrarCaller) NominatedOwner(opts *bind.CallOpts) (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyrarCaller) OptionMarkets added in v0.5.7

func (_Lyrar *LyrarCaller) OptionMarkets(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

OptionMarkets is a free data retrieval call binding the contract method 0x1cb66845.

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

func (*LyrarCaller) Owner added in v0.5.7

func (_Lyrar *LyrarCaller) 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)

type LyrarCallerRaw added in v0.5.7

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

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

func (*LyrarCallerRaw) Call added in v0.5.7

func (_Lyrar *LyrarCallerRaw) 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 LyrarCallerSession added in v0.5.7

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

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

func (*LyrarCallerSession) GetGlobalAddress added in v0.5.7

func (_Lyrar *LyrarCallerSession) GetGlobalAddress(contractName [32]byte) (common.Address, error)

GetGlobalAddress is a free data retrieval call binding the contract method 0x7f2e0600.

Solidity: function getGlobalAddress(bytes32 contractName) view returns(address globalContract)

func (*LyrarCallerSession) GetMarketAddresses added in v0.5.7

func (_Lyrar *LyrarCallerSession) GetMarketAddresses(optionMarket common.Address) (LyraRegistryOptionMarketAddresses, error)

GetMarketAddresses is a free data retrieval call binding the contract method 0xc4158a51.

Solidity: function getMarketAddresses(address optionMarket) view returns((address,address,address,address,address,address,address,address,address,address,address))

func (*LyrarCallerSession) GlobalAddresses added in v0.5.7

func (_Lyrar *LyrarCallerSession) GlobalAddresses(arg0 [32]byte) (common.Address, error)

GlobalAddresses is a free data retrieval call binding the contract method 0x8acce68f.

Solidity: function globalAddresses(bytes32 ) view returns(address)

func (*LyrarCallerSession) MarketAddresses added in v0.5.7

func (_Lyrar *LyrarCallerSession) MarketAddresses(arg0 common.Address) (struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	PoolHedger         common.Address
	ShortCollateral    common.Address
	GwavOracle         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}, error)

MarketAddresses is a free data retrieval call binding the contract method 0xc71b7e53.

Solidity: function marketAddresses(address ) view returns(address liquidityPool, address liquidityToken, address greekCache, address optionMarket, address optionMarketPricer, address optionToken, address poolHedger, address shortCollateral, address gwavOracle, address quoteAsset, address baseAsset)

func (*LyrarCallerSession) NominatedOwner added in v0.5.7

func (_Lyrar *LyrarCallerSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyrarCallerSession) OptionMarkets added in v0.5.7

func (_Lyrar *LyrarCallerSession) OptionMarkets(arg0 *big.Int) (common.Address, error)

OptionMarkets is a free data retrieval call binding the contract method 0x1cb66845.

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

func (*LyrarCallerSession) Owner added in v0.5.7

func (_Lyrar *LyrarCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

type LyrarFilterer added in v0.5.7

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

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

func NewLyrarFilterer added in v0.5.7

func NewLyrarFilterer(address common.Address, filterer bind.ContractFilterer) (*LyrarFilterer, error)

NewLyrarFilterer creates a new log filterer instance of Lyrar, bound to a specific deployed contract.

func (*LyrarFilterer) FilterGlobalAddressUpdated added in v0.5.7

func (_Lyrar *LyrarFilterer) FilterGlobalAddressUpdated(opts *bind.FilterOpts, name [][32]byte) (*LyrarGlobalAddressUpdatedIterator, error)

FilterGlobalAddressUpdated is a free log retrieval operation binding the contract event 0xdf028fe8b079d8195054d23416d2537debdd0f58695e83cd840d822e6a4c2e80.

Solidity: event GlobalAddressUpdated(bytes32 indexed name, address addr)

func (*LyrarFilterer) FilterMarketRemoved added in v0.5.7

func (_Lyrar *LyrarFilterer) FilterMarketRemoved(opts *bind.FilterOpts, market []common.Address) (*LyrarMarketRemovedIterator, error)

FilterMarketRemoved is a free log retrieval operation binding the contract event 0x59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d77.

Solidity: event MarketRemoved(address indexed market)

func (*LyrarFilterer) FilterMarketUpdated added in v0.5.7

func (_Lyrar *LyrarFilterer) FilterMarketUpdated(opts *bind.FilterOpts, optionMarket []common.Address) (*LyrarMarketUpdatedIterator, error)

FilterMarketUpdated is a free log retrieval operation binding the contract event 0xa090264792b8766dd953a6d1775028cdd591d04a748e045c19b98135970e9127.

Solidity: event MarketUpdated(address indexed optionMarket, (address,address,address,address,address,address,address,address,address,address,address) market)

func (*LyrarFilterer) FilterOwnerChanged added in v0.5.7

func (_Lyrar *LyrarFilterer) FilterOwnerChanged(opts *bind.FilterOpts) (*LyrarOwnerChangedIterator, error)

FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyrarFilterer) FilterOwnerNominated added in v0.5.7

func (_Lyrar *LyrarFilterer) FilterOwnerNominated(opts *bind.FilterOpts) (*LyrarOwnerNominatedIterator, error)

FilterOwnerNominated is a free log retrieval operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*LyrarFilterer) ParseGlobalAddressUpdated added in v0.5.7

func (_Lyrar *LyrarFilterer) ParseGlobalAddressUpdated(log types.Log) (*LyrarGlobalAddressUpdated, error)

ParseGlobalAddressUpdated is a log parse operation binding the contract event 0xdf028fe8b079d8195054d23416d2537debdd0f58695e83cd840d822e6a4c2e80.

Solidity: event GlobalAddressUpdated(bytes32 indexed name, address addr)

func (*LyrarFilterer) ParseMarketRemoved added in v0.5.7

func (_Lyrar *LyrarFilterer) ParseMarketRemoved(log types.Log) (*LyrarMarketRemoved, error)

ParseMarketRemoved is a log parse operation binding the contract event 0x59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d77.

Solidity: event MarketRemoved(address indexed market)

func (*LyrarFilterer) ParseMarketUpdated added in v0.5.7

func (_Lyrar *LyrarFilterer) ParseMarketUpdated(log types.Log) (*LyrarMarketUpdated, error)

ParseMarketUpdated is a log parse operation binding the contract event 0xa090264792b8766dd953a6d1775028cdd591d04a748e045c19b98135970e9127.

Solidity: event MarketUpdated(address indexed optionMarket, (address,address,address,address,address,address,address,address,address,address,address) market)

func (*LyrarFilterer) ParseOwnerChanged added in v0.5.7

func (_Lyrar *LyrarFilterer) ParseOwnerChanged(log types.Log) (*LyrarOwnerChanged, error)

ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyrarFilterer) ParseOwnerNominated added in v0.5.7

func (_Lyrar *LyrarFilterer) ParseOwnerNominated(log types.Log) (*LyrarOwnerNominated, error)

ParseOwnerNominated is a log parse operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

func (*LyrarFilterer) WatchGlobalAddressUpdated added in v0.5.7

func (_Lyrar *LyrarFilterer) WatchGlobalAddressUpdated(opts *bind.WatchOpts, sink chan<- *LyrarGlobalAddressUpdated, name [][32]byte) (event.Subscription, error)

WatchGlobalAddressUpdated is a free log subscription operation binding the contract event 0xdf028fe8b079d8195054d23416d2537debdd0f58695e83cd840d822e6a4c2e80.

Solidity: event GlobalAddressUpdated(bytes32 indexed name, address addr)

func (*LyrarFilterer) WatchMarketRemoved added in v0.5.7

func (_Lyrar *LyrarFilterer) WatchMarketRemoved(opts *bind.WatchOpts, sink chan<- *LyrarMarketRemoved, market []common.Address) (event.Subscription, error)

WatchMarketRemoved is a free log subscription operation binding the contract event 0x59d7b1e52008dc342c9421dadfc773114b914a65682a4e4b53cf60a970df0d77.

Solidity: event MarketRemoved(address indexed market)

func (*LyrarFilterer) WatchMarketUpdated added in v0.5.7

func (_Lyrar *LyrarFilterer) WatchMarketUpdated(opts *bind.WatchOpts, sink chan<- *LyrarMarketUpdated, optionMarket []common.Address) (event.Subscription, error)

WatchMarketUpdated is a free log subscription operation binding the contract event 0xa090264792b8766dd953a6d1775028cdd591d04a748e045c19b98135970e9127.

Solidity: event MarketUpdated(address indexed optionMarket, (address,address,address,address,address,address,address,address,address,address,address) market)

func (*LyrarFilterer) WatchOwnerChanged added in v0.5.7

func (_Lyrar *LyrarFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *LyrarOwnerChanged) (event.Subscription, error)

WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c.

Solidity: event OwnerChanged(address oldOwner, address newOwner)

func (*LyrarFilterer) WatchOwnerNominated added in v0.5.7

func (_Lyrar *LyrarFilterer) WatchOwnerNominated(opts *bind.WatchOpts, sink chan<- *LyrarOwnerNominated) (event.Subscription, error)

WatchOwnerNominated is a free log subscription operation binding the contract event 0x906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22.

Solidity: event OwnerNominated(address newOwner)

type LyrarGlobalAddressUpdated added in v0.5.7

type LyrarGlobalAddressUpdated struct {
	Name [32]byte
	Addr common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

LyrarGlobalAddressUpdated represents a GlobalAddressUpdated event raised by the Lyrar contract.

type LyrarGlobalAddressUpdatedIterator added in v0.5.7

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

LyrarGlobalAddressUpdatedIterator is returned from FilterGlobalAddressUpdated and is used to iterate over the raw logs and unpacked data for GlobalAddressUpdated events raised by the Lyrar contract.

func (*LyrarGlobalAddressUpdatedIterator) Close added in v0.5.7

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

func (*LyrarGlobalAddressUpdatedIterator) Error added in v0.5.7

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrarGlobalAddressUpdatedIterator) Next added in v0.5.7

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 LyrarMarketRemoved added in v0.5.7

type LyrarMarketRemoved struct {
	Market common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

LyrarMarketRemoved represents a MarketRemoved event raised by the Lyrar contract.

type LyrarMarketRemovedIterator added in v0.5.7

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

LyrarMarketRemovedIterator is returned from FilterMarketRemoved and is used to iterate over the raw logs and unpacked data for MarketRemoved events raised by the Lyrar contract.

func (*LyrarMarketRemovedIterator) Close added in v0.5.7

func (it *LyrarMarketRemovedIterator) Close() error

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

func (*LyrarMarketRemovedIterator) Error added in v0.5.7

func (it *LyrarMarketRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrarMarketRemovedIterator) Next added in v0.5.7

func (it *LyrarMarketRemovedIterator) 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 LyrarMarketUpdated added in v0.5.7

type LyrarMarketUpdated struct {
	OptionMarket common.Address
	Market       LyraRegistryOptionMarketAddresses
	Raw          types.Log // Blockchain specific contextual infos
}

LyrarMarketUpdated represents a MarketUpdated event raised by the Lyrar contract.

type LyrarMarketUpdatedIterator added in v0.5.7

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

LyrarMarketUpdatedIterator is returned from FilterMarketUpdated and is used to iterate over the raw logs and unpacked data for MarketUpdated events raised by the Lyrar contract.

func (*LyrarMarketUpdatedIterator) Close added in v0.5.7

func (it *LyrarMarketUpdatedIterator) Close() error

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

func (*LyrarMarketUpdatedIterator) Error added in v0.5.7

func (it *LyrarMarketUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrarMarketUpdatedIterator) Next added in v0.5.7

func (it *LyrarMarketUpdatedIterator) 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 LyrarOwnerChanged added in v0.5.7

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

LyrarOwnerChanged represents a OwnerChanged event raised by the Lyrar contract.

type LyrarOwnerChangedIterator added in v0.5.7

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

LyrarOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the Lyrar contract.

func (*LyrarOwnerChangedIterator) Close added in v0.5.7

func (it *LyrarOwnerChangedIterator) Close() error

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

func (*LyrarOwnerChangedIterator) Error added in v0.5.7

func (it *LyrarOwnerChangedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrarOwnerChangedIterator) Next added in v0.5.7

func (it *LyrarOwnerChangedIterator) 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 LyrarOwnerNominated added in v0.5.7

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

LyrarOwnerNominated represents a OwnerNominated event raised by the Lyrar contract.

type LyrarOwnerNominatedIterator added in v0.5.7

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

LyrarOwnerNominatedIterator is returned from FilterOwnerNominated and is used to iterate over the raw logs and unpacked data for OwnerNominated events raised by the Lyrar contract.

func (*LyrarOwnerNominatedIterator) Close added in v0.5.7

func (it *LyrarOwnerNominatedIterator) Close() error

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

func (*LyrarOwnerNominatedIterator) Error added in v0.5.7

func (it *LyrarOwnerNominatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LyrarOwnerNominatedIterator) Next added in v0.5.7

func (it *LyrarOwnerNominatedIterator) 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 LyrarRaw added in v0.5.7

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

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

func (*LyrarRaw) Call added in v0.5.7

func (_Lyrar *LyrarRaw) 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 (*LyrarRaw) Transact added in v0.5.7

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

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

func (*LyrarRaw) Transfer added in v0.5.7

func (_Lyrar *LyrarRaw) 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 LyrarSession added in v0.5.7

type LyrarSession struct {
	Contract     *Lyrar            // 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
}

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

func (*LyrarSession) AcceptOwnership added in v0.5.7

func (_Lyrar *LyrarSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyrarSession) AddMarket added in v0.5.7

func (_Lyrar *LyrarSession) AddMarket(newMarketAddresses LyraRegistryOptionMarketAddresses) (*types.Transaction, error)

AddMarket is a paid mutator transaction binding the contract method 0x199bc905.

Solidity: function addMarket((address,address,address,address,address,address,address,address,address,address,address) newMarketAddresses) returns()

func (*LyrarSession) GetGlobalAddress added in v0.5.7

func (_Lyrar *LyrarSession) GetGlobalAddress(contractName [32]byte) (common.Address, error)

GetGlobalAddress is a free data retrieval call binding the contract method 0x7f2e0600.

Solidity: function getGlobalAddress(bytes32 contractName) view returns(address globalContract)

func (*LyrarSession) GetMarketAddresses added in v0.5.7

func (_Lyrar *LyrarSession) GetMarketAddresses(optionMarket common.Address) (LyraRegistryOptionMarketAddresses, error)

GetMarketAddresses is a free data retrieval call binding the contract method 0xc4158a51.

Solidity: function getMarketAddresses(address optionMarket) view returns((address,address,address,address,address,address,address,address,address,address,address))

func (*LyrarSession) GlobalAddresses added in v0.5.7

func (_Lyrar *LyrarSession) GlobalAddresses(arg0 [32]byte) (common.Address, error)

GlobalAddresses is a free data retrieval call binding the contract method 0x8acce68f.

Solidity: function globalAddresses(bytes32 ) view returns(address)

func (*LyrarSession) MarketAddresses added in v0.5.7

func (_Lyrar *LyrarSession) MarketAddresses(arg0 common.Address) (struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	PoolHedger         common.Address
	ShortCollateral    common.Address
	GwavOracle         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}, error)

MarketAddresses is a free data retrieval call binding the contract method 0xc71b7e53.

Solidity: function marketAddresses(address ) view returns(address liquidityPool, address liquidityToken, address greekCache, address optionMarket, address optionMarketPricer, address optionToken, address poolHedger, address shortCollateral, address gwavOracle, address quoteAsset, address baseAsset)

func (*LyrarSession) NominateNewOwner added in v0.5.7

func (_Lyrar *LyrarSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyrarSession) NominatedOwner added in v0.5.7

func (_Lyrar *LyrarSession) NominatedOwner() (common.Address, error)

NominatedOwner is a free data retrieval call binding the contract method 0x53a47bb7.

Solidity: function nominatedOwner() view returns(address)

func (*LyrarSession) OptionMarkets added in v0.5.7

func (_Lyrar *LyrarSession) OptionMarkets(arg0 *big.Int) (common.Address, error)

OptionMarkets is a free data retrieval call binding the contract method 0x1cb66845.

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

func (*LyrarSession) Owner added in v0.5.7

func (_Lyrar *LyrarSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*LyrarSession) RemoveMarket added in v0.5.7

func (_Lyrar *LyrarSession) RemoveMarket(market common.Address) (*types.Transaction, error)

RemoveMarket is a paid mutator transaction binding the contract method 0xdb913236.

Solidity: function removeMarket(address market) returns()

func (*LyrarSession) UpdateGlobalAddresses added in v0.5.7

func (_Lyrar *LyrarSession) UpdateGlobalAddresses(names [][32]byte, addresses []common.Address) (*types.Transaction, error)

UpdateGlobalAddresses is a paid mutator transaction binding the contract method 0x30a12dc4.

Solidity: function updateGlobalAddresses(bytes32[] names, address[] addresses) returns()

type LyrarTransactor added in v0.5.7

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

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

func NewLyrarTransactor added in v0.5.7

func NewLyrarTransactor(address common.Address, transactor bind.ContractTransactor) (*LyrarTransactor, error)

NewLyrarTransactor creates a new write-only instance of Lyrar, bound to a specific deployed contract.

func (*LyrarTransactor) AcceptOwnership added in v0.5.7

func (_Lyrar *LyrarTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyrarTransactor) AddMarket added in v0.5.7

func (_Lyrar *LyrarTransactor) AddMarket(opts *bind.TransactOpts, newMarketAddresses LyraRegistryOptionMarketAddresses) (*types.Transaction, error)

AddMarket is a paid mutator transaction binding the contract method 0x199bc905.

Solidity: function addMarket((address,address,address,address,address,address,address,address,address,address,address) newMarketAddresses) returns()

func (*LyrarTransactor) NominateNewOwner added in v0.5.7

func (_Lyrar *LyrarTransactor) NominateNewOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyrarTransactor) RemoveMarket added in v0.5.7

func (_Lyrar *LyrarTransactor) RemoveMarket(opts *bind.TransactOpts, market common.Address) (*types.Transaction, error)

RemoveMarket is a paid mutator transaction binding the contract method 0xdb913236.

Solidity: function removeMarket(address market) returns()

func (*LyrarTransactor) UpdateGlobalAddresses added in v0.5.7

func (_Lyrar *LyrarTransactor) UpdateGlobalAddresses(opts *bind.TransactOpts, names [][32]byte, addresses []common.Address) (*types.Transaction, error)

UpdateGlobalAddresses is a paid mutator transaction binding the contract method 0x30a12dc4.

Solidity: function updateGlobalAddresses(bytes32[] names, address[] addresses) returns()

type LyrarTransactorRaw added in v0.5.7

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

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

func (*LyrarTransactorRaw) Transact added in v0.5.7

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

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

func (*LyrarTransactorRaw) Transfer added in v0.5.7

func (_Lyrar *LyrarTransactorRaw) 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 LyrarTransactorSession added in v0.5.7

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

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

func (*LyrarTransactorSession) AcceptOwnership added in v0.5.7

func (_Lyrar *LyrarTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*LyrarTransactorSession) AddMarket added in v0.5.7

func (_Lyrar *LyrarTransactorSession) AddMarket(newMarketAddresses LyraRegistryOptionMarketAddresses) (*types.Transaction, error)

AddMarket is a paid mutator transaction binding the contract method 0x199bc905.

Solidity: function addMarket((address,address,address,address,address,address,address,address,address,address,address) newMarketAddresses) returns()

func (*LyrarTransactorSession) NominateNewOwner added in v0.5.7

func (_Lyrar *LyrarTransactorSession) NominateNewOwner(_owner common.Address) (*types.Transaction, error)

NominateNewOwner is a paid mutator transaction binding the contract method 0x1627540c.

Solidity: function nominateNewOwner(address _owner) returns()

func (*LyrarTransactorSession) RemoveMarket added in v0.5.7

func (_Lyrar *LyrarTransactorSession) RemoveMarket(market common.Address) (*types.Transaction, error)

RemoveMarket is a paid mutator transaction binding the contract method 0xdb913236.

Solidity: function removeMarket(address market) returns()

func (*LyrarTransactorSession) UpdateGlobalAddresses added in v0.5.7

func (_Lyrar *LyrarTransactorSession) UpdateGlobalAddresses(names [][32]byte, addresses []common.Address) (*types.Transaction, error)

UpdateGlobalAddresses is a paid mutator transaction binding the contract method 0x30a12dc4.

Solidity: function updateGlobalAddresses(bytes32[] names, address[] addresses) returns()

type OptionGreekCacheForceCloseParameters added in v0.5.7

type OptionGreekCacheForceCloseParameters struct {
	IvGWAVPeriod                *big.Int
	SkewGWAVPeriod              *big.Int
	ShortVolShock               *big.Int
	ShortPostCutoffVolShock     *big.Int
	LongVolShock                *big.Int
	LongPostCutoffVolShock      *big.Int
	LiquidateVolShock           *big.Int
	LiquidatePostCutoffVolShock *big.Int
	ShortSpotMin                *big.Int
	LiquidateSpotMin            *big.Int
}

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

type OptionGreekCacheGreekCacheParameters added in v0.5.7

type OptionGreekCacheGreekCacheParameters struct {
	MaxStrikesPerBoard             *big.Int
	AcceptableSpotPricePercentMove *big.Int
	StaleUpdateDuration            *big.Int
	VarianceIvGWAVPeriod           *big.Int
	VarianceSkewGWAVPeriod         *big.Int
	OptionValueIvGWAVPeriod        *big.Int
	OptionValueSkewGWAVPeriod      *big.Int
	GwavSkewFloor                  *big.Int
	GwavSkewCap                    *big.Int
	RateAndCarry                   *big.Int
}

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

type OptionGreekCacheMinCollateralParameters added in v0.5.7

type OptionGreekCacheMinCollateralParameters struct {
	MinStaticQuoteCollateral *big.Int
	MinStaticBaseCollateral  *big.Int
	ShockVolA                *big.Int
	ShockVolPointA           *big.Int
	ShockVolB                *big.Int
	ShockVolPointB           *big.Int
	CallSpotPriceShock       *big.Int
	PutSpotPriceShock        *big.Int
}

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

type OptionGreekCacheNetGreeks added in v0.5.7

type OptionGreekCacheNetGreeks struct {
	NetDelta       *big.Int
	NetStdVega     *big.Int
	NetOptionValue *big.Int
}

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

type OptionGreekCacheStrikeGreeks added in v0.5.7

type OptionGreekCacheStrikeGreeks struct {
	CallDelta *big.Int
	PutDelta  *big.Int
	StdVega   *big.Int
	CallPrice *big.Int
	PutPrice  *big.Int
}

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

type OptionMarketLiquidationEventData added in v0.5.7

type OptionMarketLiquidationEventData struct {
	RewardBeneficiary common.Address
	Caller            common.Address
	ReturnCollateral  *big.Int
	LpPremiums        *big.Int
	LpFee             *big.Int
	LiquidatorFee     *big.Int
	SmFee             *big.Int
	InsolventAmount   *big.Int
}

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

type OptionMarketOptionBoard added in v0.5.7

type OptionMarketOptionBoard struct {
	Id        *big.Int
	Expiry    *big.Int
	Iv        *big.Int
	Frozen    bool
	StrikeIds []*big.Int
}

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

type OptionMarketOptionMarketParam added in v0.5.7

type OptionMarketOptionMarketParam struct {
	MaxBoardExpiry          *big.Int
	SecurityModule          common.Address
	FeePortionReserved      *big.Int
	StaticBaseSettlementFee *big.Int
}

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

type OptionMarketOptionMarketParameters added in v0.5.7

type OptionMarketOptionMarketParameters struct {
	MaxBoardExpiry          *big.Int
	SecurityModule          common.Address
	FeePortionReserved      *big.Int
	StaticBaseSettlementFee *big.Int
}

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

type OptionMarketPricerPricingParameters added in v0.5.7

type OptionMarketPricerPricingParameters struct {
	OptionPriceFeeCoefficient *big.Int
	OptionPriceFee1xPoint     *big.Int
	OptionPriceFee2xPoint     *big.Int
	SpotPriceFeeCoefficient   *big.Int
	SpotPriceFee1xPoint       *big.Int
	SpotPriceFee2xPoint       *big.Int
	VegaFeeCoefficient        *big.Int
	StandardSize              *big.Int
	SkewAdjustmentFactor      *big.Int
}

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

type OptionMarketPricerTradeLimitParameters added in v0.5.7

type OptionMarketPricerTradeLimitParameters struct {
	MinDelta           *big.Int
	MinForceCloseDelta *big.Int
	TradingCutoff      *big.Int
	MinBaseIV          *big.Int
	MaxBaseIV          *big.Int
	MinSkew            *big.Int
	MaxSkew            *big.Int
	MinVol             *big.Int
	MaxVol             *big.Int
	AbsMinSkew         *big.Int
	AbsMaxSkew         *big.Int
	CapSkewsToAbs      bool
}

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

type OptionMarketPricerTradeResult added in v0.5.7

type OptionMarketPricerTradeResult struct {
	Amount         *big.Int
	Premium        *big.Int
	OptionPriceFee *big.Int
	SpotPriceFee   *big.Int
	VegaUtilFee    OptionMarketPricerVegaUtilFeeComponents
	VarianceFee    OptionMarketPricerVarianceFeeComponents
	TotalFee       *big.Int
	TotalCost      *big.Int
	VolTraded      *big.Int
	NewBaseIv      *big.Int
	NewSkew        *big.Int
}

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

type OptionMarketPricerVarianceFeeComponents added in v0.5.7

type OptionMarketPricerVarianceFeeComponents struct {
	VarianceFeeCoefficient *big.Int
	Vega                   *big.Int
	VegaCoefficient        *big.Int
	Skew                   *big.Int
	SkewCoefficient        *big.Int
	IvVariance             *big.Int
	IvVarianceCoefficient  *big.Int
	VarianceFee            *big.Int
}

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

type OptionMarketPricerVarianceFeeParameters added in v0.5.7

type OptionMarketPricerVarianceFeeParameters struct {
	DefaultVarianceFeeCoefficient    *big.Int
	ForceCloseVarianceFeeCoefficient *big.Int
	SkewAdjustmentCoefficient        *big.Int
	ReferenceSkew                    *big.Int
	MinimumStaticSkewAdjustment      *big.Int
	VegaCoefficient                  *big.Int
	MinimumStaticVega                *big.Int
	IvVarianceCoefficient            *big.Int
	MinimumStaticIvVariance          *big.Int
}

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

type OptionMarketPricerVegaUtilFeeComponents added in v0.5.7

type OptionMarketPricerVegaUtilFeeComponents struct {
	PreTradeAmmNetStdVega  *big.Int
	PostTradeAmmNetStdVega *big.Int
	VegaUtil               *big.Int
	VolTraded              *big.Int
	NAV                    *big.Int
	VegaUtilFee            *big.Int
}

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

type OptionMarketResult added in v0.5.7

type OptionMarketResult struct {
	PositionId *big.Int
	TotalCost  *big.Int
	TotalFee   *big.Int
}

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

type OptionMarketStrike added in v0.5.7

type OptionMarketStrike struct {
	Id             *big.Int
	StrikePrice    *big.Int
	Skew           *big.Int
	LongCall       *big.Int
	ShortCallBase  *big.Int
	ShortCallQuote *big.Int
	LongPut        *big.Int
	ShortPut       *big.Int
	BoardId        *big.Int
}

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

type OptionMarketTradeEventData added in v0.5.7

type OptionMarketTradeEventData struct {
	Expiry          *big.Int
	StrikePrice     *big.Int
	OptionType      uint8
	TradeDirection  uint8
	Amount          *big.Int
	SetCollateralTo *big.Int
	IsForceClose    bool
	SpotPrice       *big.Int
	ReservedFee     *big.Int
	TotalCost       *big.Int
}

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

type OptionMarketTradeInputParameters added in v0.5.7

type OptionMarketTradeInputParameters struct {
	StrikeId        *big.Int
	PositionId      *big.Int
	Iterations      *big.Int
	OptionType      uint8
	Amount          *big.Int
	SetCollateralTo *big.Int
	MinTotalCost    *big.Int
	MaxTotalCost    *big.Int
}

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

type OptionMarketViewerBoardView

type OptionMarketViewerBoardView struct {
	Market           common.Address
	BoardId          *big.Int
	Expiry           *big.Int
	BaseIv           *big.Int
	PriceAtExpiry    *big.Int
	IsPaused         bool
	ForceCloseGwavIV *big.Int
	NetGreeks        OptionGreekCacheNetGreeks
	Strikes          []OptionMarketViewerStrikeView
}

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

type OptionMarketViewerLiquidityBalanceAndAllowance added in v0.5.7

type OptionMarketViewerLiquidityBalanceAndAllowance struct {
	Token     common.Address
	Balance   *big.Int
	Allowance *big.Int
}

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

type OptionMarketViewerMarketOptionPositions added in v0.5.7

type OptionMarketViewerMarketOptionPositions struct {
	Market    common.Address
	Positions []OptionTokenOptionPosition
}

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

type OptionMarketViewerMarketParameters added in v0.5.7

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

type OptionMarketViewerMarketView added in v0.5.7

type OptionMarketViewerMarketView struct {
	IsPaused               bool
	TotalQueuedDeposits    *big.Int
	TotalQueuedWithdrawals *big.Int
	TokenPrice             *big.Int
	MarketAddresses        OptionMarketViewerOptionMarketAddresses
	MarketParameters       OptionMarketViewerMarketParameters
	Liquidity              LiquidityPoolLiquidity
	GlobalNetGreeks        OptionGreekCacheNetGreeks
	ExchangeParams         SynthetixAdapterExchangeParams
}

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

type OptionMarketViewerMarketViewWithBoards added in v0.5.7

type OptionMarketViewerMarketViewWithBoards struct {
	IsPaused               bool
	TotalQueuedDeposits    *big.Int
	TotalQueuedWithdrawals *big.Int
	TokenPrice             *big.Int
	MarketAddresses        OptionMarketViewerOptionMarketAddresses
	MarketParameters       OptionMarketViewerMarketParameters
	Liquidity              LiquidityPoolLiquidity
	GlobalNetGreeks        OptionGreekCacheNetGreeks
	LiveBoards             []OptionMarketViewerBoardView
	ExchangeParams         SynthetixAdapterExchangeParams
}

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

type OptionMarketViewerMarketsView added in v0.5.7

type OptionMarketViewerMarketsView struct {
	AddressResolver common.Address
	IsPaused        bool
	Markets         []OptionMarketViewerMarketView
}

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

type OptionMarketViewerOptionMarketAddresses added in v0.5.7

type OptionMarketViewerOptionMarketAddresses struct {
	LiquidityPool      common.Address
	LiquidityToken     common.Address
	GreekCache         common.Address
	OptionMarket       common.Address
	OptionMarketPricer common.Address
	OptionToken        common.Address
	ShortCollateral    common.Address
	PoolHedger         common.Address
	QuoteAsset         common.Address
	BaseAsset          common.Address
}

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

type OptionMarketViewerStrikeView added in v0.5.7

type OptionMarketViewerStrikeView struct {
	StrikeId                   *big.Int
	BoardId                    *big.Int
	StrikePrice                *big.Int
	Skew                       *big.Int
	ForceCloseSkew             *big.Int
	CachedGreeks               OptionGreekCacheStrikeGreeks
	BaseReturnedRatio          *big.Int
	LongCallOpenInterest       *big.Int
	LongPutOpenInterest        *big.Int
	ShortCallBaseOpenInterest  *big.Int
	ShortCallQuoteOpenInterest *big.Int
	ShortPutOpenInterest       *big.Int
}

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

type OptionTokenOptionPosition added in v0.5.7

type OptionTokenOptionPosition struct {
	PositionId *big.Int
	StrikeId   *big.Int
	OptionType uint8
	Amount     *big.Int
	Collateral *big.Int
	State      uint8
}

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

type OptionTokenPartialCollateralParameters added in v0.5.7

type OptionTokenPartialCollateralParameters struct {
	PenaltyRatio       *big.Int
	LiquidatorFeeRatio *big.Int
	SmFeeRatio         *big.Int
	MinLiquidationFee  *big.Int
}

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

type PoolHedgerPoolHedgerParameters added in v0.5.7

type PoolHedgerPoolHedgerParameters struct {
	InteractionDelay *big.Int
	HedgeCap         *big.Int
}

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

type Provider

type Provider struct{}

func (Provider) Name

func (Provider) Name() string

func (Provider) Options

func (Provider) Options() ([]rainbow.Option, error)

type SynthetixAdapterExchangeParams added in v0.5.7

type SynthetixAdapterExchangeParams struct {
	SpotPrice        *big.Int
	QuoteKey         [32]byte
	BaseKey          [32]byte
	QuoteBaseFeeRate *big.Int
	BaseQuoteFeeRate *big.Int
}

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

Jump to

Keyboard shortcuts

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