Vaulta

eoscatsfeeds

Contract

The data structures defined by this contract.

  • Action parameter in calculate

    {
      "name": "calculate",
      "base": "",
      "fields": []
    }
  • Action parameter in create

    {
      "name": "create",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "epoch_time",
          "type": "uint32"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "min_feed",
          "type": "asset"
        }
      ]
    }
  • Table row type of markets

    {
      "name": "market",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "contract0",
          "type": "name"
        },
        {
          "name": "contract1",
          "type": "name"
        },
        {
          "name": "sym0",
          "type": "symbol"
        },
        {
          "name": "sym1",
          "type": "symbol"
        },
        {
          "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": "last_update",
          "type": "time_point_sec"
        }
      ]
    }
  • Table row type of miners

    {
      "name": "miner",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "feed",
          "type": "asset"
        }
      ]
    }
  • Table row type of pools

    {
      "name": "pool",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "total_feed",
          "type": "asset"
        },
        {
          "name": "epoch_time",
          "type": "uint32"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "min_feed",
          "type": "asset"
        }
      ]
    }
  • Table row type of power

    {
      "name": "power",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in update

    {
      "name": "update",
      "base": "",
      "fields": [
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        }
      ]
    }