Vaulta

coralpool1v2

Contract

The data structures defined by this contract.

  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in create

    {
      "name": "create",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "reward",
          "type": "asset"
        },
        {
          "name": "epoch_time",
          "type": "uint32"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "min_staked",
          "type": "asset"
        },
        {
          "name": "box_enable",
          "type": "uint8"
        },
        {
          "name": "box_code",
          "type": "symbol_code"
        }
      ]
    }
  • Action parameter in harvest

    {
      "name": "harvest",
      "base": "",
      "fields": [
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "round_no",
          "type": "uint64"
        },
        {
          "name": "limit",
          "type": "uint32"
        }
      ]
    }
  • Table row type of miners

    {
      "name": "miner",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "staked",
          "type": "asset"
        },
        {
          "name": "claimed_crl",
          "type": "asset"
        },
        {
          "name": "unclaimed_crl",
          "type": "asset"
        },
        {
          "name": "claimed_box",
          "type": "asset"
        },
        {
          "name": "unclaimed_box",
          "type": "asset"
        }
      ]
    }
  • Table row type of pools

    {
      "name": "pool",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "total_staked",
          "type": "asset"
        },
        {
          "name": "total_reward",
          "type": "asset"
        },
        {
          "name": "released_reward",
          "type": "asset"
        },
        {
          "name": "epoch_time",
          "type": "uint32"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "min_staked",
          "type": "asset"
        },
        {
          "name": "last_harvest_time",
          "type": "uint32"
        },
        {
          "name": "box_enable",
          "type": "uint8"
        },
        {
          "name": "box_code",
          "type": "symbol_code"
        },
        {
          "name": "box_reward",
          "type": "asset"
        }
      ]
    }
  • Table row type of rounds

    {
      "name": "round",
      "base": "",
      "fields": [
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "no",
          "type": "uint64"
        },
        {
          "name": "offset",
          "type": "name"
        },
        {
          "name": "crl_amount",
          "type": "uint64"
        },
        {
          "name": "box_amount",
          "type": "uint64"
        },
        {
          "name": "completed",
          "type": "bool"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        }
      ]
    }