OptionsMarket.sol

[
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "uint16",
        "name": "underlyingAssetIndex",
        "type": "uint16"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "underlyingAsset",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "optionsToken",
        "type": "address"
      }
    ],
    "name": "AddUnderlyingAsset",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "contract IOptionsAuthority",
        "name": "authority",
        "type": "address"
      }
    ],
    "name": "AuthorityUpdated",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "bytes32",
        "name": "id",
        "type": "bytes32"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "underlyingAsset",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "uint40",
        "name": "expiry",
        "type": "uint40"
      },
      {
        "indexed": false,
        "internalType": "uint48",
        "name": "strikePrice",
        "type": "uint48"
      },
      {
        "indexed": false,
        "internalType": "bool",
        "name": "isActive",
        "type": "bool"
      }
    ],
    "name": "OptionStatusChanged",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "underlyingAsset",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "bool",
        "name": "isUnderlyingAssetActive",
        "type": "bool"
      }
    ],
    "name": "SetIsUnderlyingAsset",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "mainStableAsset",
        "type": "address"
      }
    ],
    "name": "SetMainStableAsset",
    "type": "event"
  },
  {
    "anonymous": false,
    "inputs": [
      {
        "indexed": true,
        "internalType": "address",
        "name": "underlyingAsset",
        "type": "address"
      },
      {
        "indexed": false,
        "internalType": "address",
        "name": "optionsToken",
        "type": "address"
      }
    ],
    "name": "UpdateOptionsToken",
    "type": "event"
  },
  {
    "inputs": [
      {
        "internalType": "contract IOptionsAuthority",
        "name": "_authority",
        "type": "address"
      }
    ],
    "name": "__AuthorityUtil_init__",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "activeOptionsCount",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_underlyingAsset",
        "type": "address"
      },
      {
        "internalType": "uint40",
        "name": "_expiry",
        "type": "uint40"
      },
      {
        "internalType": "uint48[]",
        "name": "_strikePrices",
        "type": "uint48[]"
      }
    ],
    "name": "addOptions",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_underlyingAsset",
        "type": "address"
      },
      {
        "internalType": "address",
        "name": "_optionsToken",
        "type": "address"
      }
    ],
    "name": "addUnderlyingAsset",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "authority",
    "outputs": [
      {
        "internalType": "contract IOptionsAuthority",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "getMainStableAsset",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "_id",
        "type": "bytes32"
      }
    ],
    "name": "getOptionDetail",
    "outputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      },
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "internalType": "uint40",
        "name": "",
        "type": "uint40"
      },
      {
        "internalType": "uint48",
        "name": "",
        "type": "uint48"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "_underlyingAssetIndex",
        "type": "uint16"
      },
      {
        "internalType": "uint40",
        "name": "_expiry",
        "type": "uint40"
      },
      {
        "internalType": "uint48",
        "name": "_strikePrice",
        "type": "uint48"
      }
    ],
    "name": "getOptionId",
    "outputs": [
      {
        "internalType": "bytes32",
        "name": "",
        "type": "bytes32"
      }
    ],
    "stateMutability": "pure",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "_underlyingAssetIndex",
        "type": "uint16"
      },
      {
        "internalType": "uint40",
        "name": "_expiry",
        "type": "uint40"
      },
      {
        "internalType": "uint8",
        "name": "_length",
        "type": "uint8"
      },
      {
        "internalType": "bool[4]",
        "name": "_isBuys",
        "type": "bool[4]"
      },
      {
        "internalType": "bytes32[4]",
        "name": "_optionIds",
        "type": "bytes32[4]"
      },
      {
        "internalType": "bool[4]",
        "name": "_isCall",
        "type": "bool[4]"
      },
      {
        "internalType": "uint8",
        "name": "_sourceVaultIndex",
        "type": "uint8"
      }
    ],
    "name": "getOptionTokenId",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32[]",
        "name": "_ids",
        "type": "bytes32[]"
      }
    ],
    "name": "getOptionsBatch",
    "outputs": [
      {
        "components": [
          {
            "internalType": "uint16",
            "name": "underlyingAssetIndex",
            "type": "uint16"
          },
          {
            "internalType": "address",
            "name": "underlyingAsset",
            "type": "address"
          },
          {
            "internalType": "uint40",
            "name": "expiry",
            "type": "uint40"
          },
          {
            "internalType": "uint48",
            "name": "strikePrice",
            "type": "uint48"
          },
          {
            "internalType": "bool",
            "name": "isActive",
            "type": "bool"
          }
        ],
        "internalType": "struct IOptionsMarket.Option[]",
        "name": "",
        "type": "tuple[]"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "_underlyingAssetIndex",
        "type": "uint16"
      }
    ],
    "name": "getOptionsTokenByIndex",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "_underlyingAssetIndex",
        "type": "uint16"
      }
    ],
    "name": "getUnderlyingAssetByIndex",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      },
      {
        "internalType": "uint8",
        "name": "",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      }
    ],
    "name": "indexToUnderlyingAsset",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "contract IOptionsAuthority",
        "name": "_authority",
        "type": "address"
      }
    ],
    "name": "initialize",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "_id",
        "type": "bytes32"
      }
    ],
    "name": "isOptionAvailable",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "isUnderlyingAssetActive",
    "outputs": [
      {
        "internalType": "bool",
        "name": "",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "mainStableAsset",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "nextUnderlyingAssetIndex",
    "outputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32",
        "name": "",
        "type": "bytes32"
      }
    ],
    "name": "options",
    "outputs": [
      {
        "internalType": "uint16",
        "name": "underlyingAssetIndex",
        "type": "uint16"
      },
      {
        "internalType": "address",
        "name": "underlyingAsset",
        "type": "address"
      },
      {
        "internalType": "uint40",
        "name": "expiry",
        "type": "uint40"
      },
      {
        "internalType": "uint48",
        "name": "strikePrice",
        "type": "uint48"
      },
      {
        "internalType": "bool",
        "name": "isActive",
        "type": "bool"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "optionsTokenToUnderlyingAsset",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "owner",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "registeredOptionsCount",
    "outputs": [
      {
        "internalType": "uint256",
        "name": "",
        "type": "uint256"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "bytes32[]",
        "name": "_ids",
        "type": "bytes32[]"
      }
    ],
    "name": "removeOptions",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [],
    "name": "renounceOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "contract IOptionsAuthority",
        "name": "_newAuthority",
        "type": "address"
      }
    ],
    "name": "setAuthority",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint16",
        "name": "_underlyingAssetIndex",
        "type": "uint16"
      },
      {
        "internalType": "bool",
        "name": "_isUnderlyingAssetActive",
        "type": "bool"
      }
    ],
    "name": "setIsUnderlyingAsset",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "_mainStableAsset",
        "type": "address"
      }
    ],
    "name": "setMainStableAsset",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "outputs": [],
    "stateMutability": "nonpayable",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "underlyingAssetToIndex",
    "outputs": [
      {
        "internalType": "uint16",
        "name": "",
        "type": "uint16"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "name": "underlyingAssetToOptionsToken",
    "outputs": [
      {
        "internalType": "address",
        "name": "",
        "type": "address"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  },
  {
    "inputs": [
      {
        "internalType": "uint8",
        "name": "_length",
        "type": "uint8"
      },
      {
        "internalType": "bytes32[4]",
        "name": "_optionIds",
        "type": "bytes32[4]"
      }
    ],
    "name": "validateOptionIds",
    "outputs": [
      {
        "internalType": "uint16",
        "name": "underlyingAssetIndex",
        "type": "uint16"
      },
      {
        "internalType": "uint40",
        "name": "expiry",
        "type": "uint40"
      },
      {
        "internalType": "uint8",
        "name": "availableLength",
        "type": "uint8"
      }
    ],
    "stateMutability": "view",
    "type": "function"
  }
]

Last updated