Vaulta

dadeosoption

Contract

{
  "version": "eosio::abi/1.1",
  "types": [],
  "structs": [
    {
      "name": "account",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    },
    {
      "name": "calcvolrate",
      "base": "",
      "fields": []
    },
    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "mindeposit",
          "type": "asset"
        },
        {
          "name": "settlementcon",
          "type": "name"
        },
        {
          "name": "feebufferpct",
          "type": "float32"
        },
        {
          "name": "impliedvolrate",
          "type": "float32"
        },
        {
          "name": "optioncollateralizationratio",
          "type": "int64"
        },
        {
          "name": "profitpctreward",
          "type": "float32"
        },
        {
          "name": "rewardtokensym",
          "type": "symbol"
        },
        {
          "name": "rewardtokencon",
          "type": "name"
        },
        {
          "name": "rewardamt",
          "type": "asset"
        },
        {
          "name": "rewardcollected",
          "type": "asset"
        },
        {
          "name": "enablerwd",
          "type": "bool"
        },
        {
          "name": "minoption",
          "type": "asset"
        }
      ]
    },
    {
      "name": "create",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "strike",
          "type": "float64"
        },
        {
          "name": "period",
          "type": "int64"
        },
        {
          "name": "optiontype",
          "type": "uint64"
        },
        {
          "name": "feein",
          "type": "symbol"
        }
      ]
    },
    {
      "name": "currency_stats",
      "base": "",
      "fields": [
        {
          "name": "supply",
          "type": "asset"
        },
        {
          "name": "max_supply",
          "type": "asset"
        },
        {
          "name": "issuer",
          "type": "name"
        }
      ]
    },
    {
      "name": "defireceipt",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "isreceipt",
          "type": "bool"
        },
        {
          "name": "isrewarded",
          "type": "bool"
        },
        {
          "name": "authorizer",
          "type": "name"
        }
      ]
    },
    {
      "name": "deposits",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "tokencontract",
          "type": "name"
        }
      ]
    },
    {
      "name": "discountpct",
      "base": "",
      "fields": [
        {
          "name": "discount",
          "type": "int64"
        }
      ]
    },
    {
      "name": "exercise",
      "base": "",
      "fields": [
        {
          "name": "optionid",
          "type": "uint64"
        },
        {
          "name": "profitsym",
          "type": "symbol"
        }
      ]
    },
    {
      "name": "feeinfo",
      "base": "",
      "fields": [
        {
          "name": "totalfee",
          "type": "asset"
        },
        {
          "name": "settlementfee",
          "type": "asset"
        },
        {
          "name": "strikefee",
          "type": "asset"
        }
      ]
    },
    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "mindeposit",
          "type": "asset"
        },
        {
          "name": "settlementcon",
          "type": "name"
        },
        {
          "name": "feebufferpct",
          "type": "float32"
        },
        {
          "name": "impliedvolrate",
          "type": "float32"
        },
        {
          "name": "collatratio",
          "type": "int64"
        },
        {
          "name": "profitpctreward",
          "type": "float32"
        },
        {
          "name": "rewardtokensym",
          "type": "symbol"
        },
        {
          "name": "rewardtokencon",
          "type": "name"
        },
        {
          "name": "rewardamt",
          "type": "asset"
        },
        {
          "name": "enablerwd",
          "type": "bool"
        },
        {
          "name": "minoption",
          "type": "asset"
        }
      ]
    },
    {
      "name": "initdefipair",
      "base": "",
      "fields": [
        {
          "name": "tokensym",
          "type": "symbol"
        },
        {
          "name": "tokencontract",
          "type": "name"
        },
        {
          "name": "pairid",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "initeosdet",
      "base": "",
      "fields": [
        {
          "name": "price",
          "type": "float64[]"
        },
        {
          "name": "pricechange",
          "type": "float64"
        },
        {
          "name": "updatedat",
          "type": "time_point_sec[]"
        }
      ]
    },
    {
      "name": "inittime",
      "base": "",
      "fields": [
        {
          "name": "daycount",
          "type": "int64"
        },
        {
          "name": "starttime",
          "type": "time_point_sec"
        },
        {
          "name": "settlementhr",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "options",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "string"
        },
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "strike",
          "type": "float64"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "lockedamount",
          "type": "asset"
        },
        {
          "name": "premium",
          "type": "asset"
        },
        {
          "name": "prempaidsym",
          "type": "asset"
        },
        {
          "name": "expiration",
          "type": "time_point_sec"
        },
        {
          "name": "optiontype",
          "type": "int64"
        },
        {
          "name": "feedepositedin",
          "type": "symbol"
        }
      ]
    },
    {
      "name": "pair",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token0",
          "type": "token"
        },
        {
          "name": "token1",
          "type": "token"
        },
        {
          "name": "reserve0",
          "type": "asset"
        },
        {
          "name": "reserve1",
          "type": "asset"
        },
        {
          "name": "liquidity_token",
          "type": "uint64"
        },
        {
          "name": "price0_last",
          "type": "float64"
        },
        {
          "name": "price1_last",
          "type": "float64"
        },
        {
          "name": "price0_cumulative_last",
          "type": "uint64"
        },
        {
          "name": "price1_cumulative_last",
          "type": "uint64"
        },
        {
          "name": "block_time_last",
          "type": "time_point_sec"
        }
      ]
    },
    {
      "name": "pairdet",
      "base": "",
      "fields": [
        {
          "name": "tokensym",
          "type": "symbol"
        },
        {
          "name": "tokencontract",
          "type": "name"
        },
        {
          "name": "pairid",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "poolrcpt",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "strike",
          "type": "float64"
        },
        {
          "name": "feedetails",
          "type": "feeinfo"
        },
        {
          "name": "period",
          "type": "int64"
        },
        {
          "name": "starttime",
          "type": "time_point_sec"
        },
        {
          "name": "optiontype",
          "type": "int64"
        },
        {
          "name": "feedepositedin",
          "type": "symbol"
        },
        {
          "name": "prempaidsym",
          "type": "asset"
        }
      ]
    },
    {
      "name": "priceinfo",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "price",
          "type": "float64"
        },
        {
          "name": "percntchange",
          "type": "float64"
        },
        {
          "name": "updatedat",
          "type": "time_point_sec"
        }
      ]
    },
    {
      "name": "setdiscnt",
      "base": "",
      "fields": [
        {
          "name": "discount",
          "type": "int64"
        }
      ]
    },
    {
      "name": "timesetting",
      "base": "",
      "fields": [
        {
          "name": "daycount",
          "type": "int64"
        },
        {
          "name": "starttime",
          "type": "time_point_sec"
        },
        {
          "name": "settlementhr",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "token",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "symbol",
          "type": "symbol"
        }
      ]
    },
    {
      "name": "unlock",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  ],
  "actions": [
    {
      "name": "calcvolrate",
      "type": "calcvolrate",
      "ricardian_contract": ""
    },
    {
      "name": "create",
      "type": "create",
      "ricardian_contract": ""
    },
    {
      "name": "defireceipt",
      "type": "defireceipt",
      "ricardian_contract": ""
    },
    {
      "name": "exercise",
      "type": "exercise",
      "ricardian_contract": ""
    },
    {
      "name": "init",
      "type": "init",
      "ricardian_contract": ""
    },
    {
      "name": "initdefipair",
      "type": "initdefipair",
      "ricardian_contract": ""
    },
    {
      "name": "initeosdet",
      "type": "initeosdet",
      "ricardian_contract": ""
    },
    {
      "name": "inittime",
      "type": "inittime",
      "ricardian_contract": ""
    },
    {
      "name": "setdiscnt",
      "type": "setdiscnt",
      "ricardian_contract": ""
    },
    {
      "name": "unlock",
      "type": "unlock",
      "ricardian_contract": ""
    }
  ],
  "tables": [
    {
      "name": "accounts",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "account"
    },
    {
      "name": "config3",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "config"
    },
    {
      "name": "deposits",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "deposits"
    },
    {
      "name": "discountpct",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "discountpct"
    },
    {
      "name": "options1",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "options"
    },
    {
      "name": "pairdet",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "pairdet"
    },
    {
      "name": "pairs",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "pair"
    },
    {
      "name": "poolrcpt1",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "poolrcpt"
    },
    {
      "name": "priceinfo2",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "priceinfo"
    },
    {
      "name": "stat",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "currency_stats"
    },
    {
      "name": "timesetting1",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "timesetting"
    }
  ],
  "ricardian_clauses": [],
  "error_messages": [],
  "abi_extensions": [],
  "variants": [],
  "action_results": []
}