Vaulta

guacamolenom

Contract

The data structures defined by this contract.

  • Table row type of enterprises

    {
      "name": "enterprise",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        },
        {
          "name": "location",
          "type": "uint16"
        },
        {
          "name": "coupon_name",
          "type": "asset"
        },
        {
          "name": "deposit",
          "type": "asset"
        },
        {
          "name": "total_stake",
          "type": "asset"
        },
        {
          "name": "total_unpaid",
          "type": "asset"
        },
        {
          "name": "last_claim_time",
          "type": "time_point_sec"
        },
        {
          "name": "is_approve",
          "type": "bool"
        }
      ]
    }
  • Table row type of stakerinfos

    {
      "name": "staker_info",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "int64"
        },
        {
          "name": "staker",
          "type": "name"
        },
        {
          "name": "enterprise",
          "type": "name"
        },
        {
          "name": "stake_num",
          "type": "asset"
        },
        {
          "name": "reward_etp",
          "type": "asset"
        },
        {
          "name": "coupon",
          "type": "asset"
        },
        {
          "name": "start_at",
          "type": "time_point_sec"
        },
        {
          "name": "end_at",
          "type": "time_point_sec"
        },
        {
          "name": "is_done",
          "type": "bool"
        }
      ]
    }
  • Table row type of etpoffers

    {
      "name": "etp_offer",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "is_active",
          "type": "bool"
        },
        {
          "name": "offer_head",
          "type": "string"
        },
        {
          "name": "offer_details",
          "type": "string"
        },
        {
          "name": "min_stake",
          "type": "asset"
        },
        {
          "name": "max_stake",
          "type": "asset"
        },
        {
          "name": "duration_sec",
          "type": "uint64"
        },
        {
          "name": "coupon_quantity",
          "type": "asset"
        }
      ]
    }
  • Action parameter in regetp

    {
      "name": "regetp",
      "base": "",
      "fields": [
        {
          "name": "enterprise",
          "type": "name"
        },
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "url",
          "type": "string"
        },
        {
          "name": "location",
          "type": "uint16"
        },
        {
          "name": "coupon",
          "type": "asset"
        }
      ]
    }
  • Action parameter in setoffer

    {
      "name": "setoffer",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "offer_head",
          "type": "string"
        },
        {
          "name": "offer_details",
          "type": "string"
        },
        {
          "name": "min_stake",
          "type": "asset"
        },
        {
          "name": "max_stake",
          "type": "asset"
        },
        {
          "name": "duration_sec",
          "type": "uint64"
        },
        {
          "name": "coupon_quantity",
          "type": "asset"
        },
        {
          "name": "is_active",
          "type": "bool"
        }
      ]
    }
  • Action parameter in claimrewards

    {
      "name": "claimrewards",
      "base": "",
      "fields": [
        {
          "name": "enterprise",
          "type": "name"
        }
      ]
    }
  • Action parameter in docoupon

    {
      "name": "docoupon",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "enterprise",
          "type": "name"
        }
      ]
    }
  • Action parameter in refund

    {
      "name": "refund",
      "base": "",
      "fields": [
        {
          "name": "staker",
          "type": "name"
        },
        {
          "name": "staker_id",
          "type": "uint64"
        }
      ]
    }