Vaulta

steamiodice1

Contract

The data structures defined by this contract.

  • Table row type of bets

    {
      "name": "bet_item",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "referral",
          "type": "name"
        },
        {
          "name": "bet_amt",
          "type": "asset"
        },
        {
          "name": "roll_under",
          "type": "uint64"
        },
        {
          "name": "user_seed",
          "type": "string"
        },
        {
          "name": "bet_time",
          "type": "time_point"
        }
      ]
    }
  • Action parameter in drawing

    {
      "name": "drawing",
      "base": "",
      "fields": [
        {
          "name": "round_id",
          "type": "uint64"
        },
        {
          "name": "max_count",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in endround

    {
      "name": "endround",
      "base": "",
      "fields": []
    }
  • Table row type of globals

    {
      "name": "global",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "val",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": []
    }
  • Action parameter in newround

    {
      "name": "newround",
      "base": "",
      "fields": [
        {
          "name": "start_time",
          "type": "uint64"
        },
        {
          "name": "end_time",
          "type": "uint64"
        }
      ]
    }
  • Struct property of team_item

    {
      "name": "pair_name_uint64",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "name"
        },
        {
          "name": "value",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in payvoter

    {
      "name": "payvoter",
      "base": "",
      "fields": [
        {
          "name": "round_id",
          "type": "uint64"
        },
        {
          "name": "captain",
          "type": "name"
        },
        {
          "name": "voter",
          "type": "name"
        },
        {
          "name": "reward",
          "type": "asset"
        },
        {
          "name": "nonus",
          "type": "uint64"
        }
      ]
    }
  • Table row type of players

    {
      "name": "player_item",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "play_times",
          "type": "uint64"
        },
        {
          "name": "in",
          "type": "asset"
        },
        {
          "name": "out",
          "type": "asset"
        },
        {
          "name": "last_bet_time",
          "type": "uint64"
        },
        {
          "name": "activity_in",
          "type": "asset"
        },
        {
          "name": "activity_out",
          "type": "asset"
        }
      ]
    }
  • Action parameter in receipt

    {
      "name": "receipt",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "bet_amt",
          "type": "asset"
        },
        {
          "name": "payout",
          "type": "asset"
        },
        {
          "name": "seed",
          "type": "string"
        },
        {
          "name": "user_seed",
          "type": "string"
        },
        {
          "name": "roll_under",
          "type": "uint64"
        },
        {
          "name": "random_roll",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in refundbet

    {
      "name": "refundbet",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in resetranking

    {
      "name": "resetranking",
      "base": "",
      "fields": [
        {
          "name": "max_count",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in resolve

    {
      "name": "resolve",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Table row type of rounds

    {
      "name": "round_item",
      "base": "",
      "fields": [
        {
          "name": "round",
          "type": "uint64"
        },
        {
          "name": "reward",
          "type": "asset"
        },
        {
          "name": "votes",
          "type": "uint64"
        },
        {
          "name": "start_time",
          "type": "uint64"
        },
        {
          "name": "end_time",
          "type": "uint64"
        },
        {
          "name": "ended",
          "type": "bool"
        },
        {
          "name": "to_team_voters",
          "type": "asset[]"
        }
      ]
    }
  • Table row type of roundfee

    {
      "name": "roundfee_item",
      "base": "",
      "fields": [
        {
          "name": "round",
          "type": "uint64"
        },
        {
          "name": "to_captain",
          "type": "st_fee[]"
        },
        {
          "name": "to_team_member",
          "type": "st_fee[]"
        }
      ]
    }
  • Action parameter in setglobal

    {
      "name": "setglobal",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "val",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setreward

    {
      "name": "setreward",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "asset"
        }
      ]
    }
  • Action parameter in settime

    {
      "name": "settime",
      "base": "",
      "fields": [
        {
          "name": "start",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in settoken

    {
      "name": "settoken",
      "base": "",
      "fields": [
        {
          "name": "risk",
          "type": "asset"
        },
        {
          "name": "token_account",
          "type": "name"
        },
        {
          "name": "min",
          "type": "asset"
        },
        {
          "name": "max",
          "type": "asset"
        },
        {
          "name": "max_bet_percent",
          "type": "uint64"
        }
      ]
    }
  • Struct property of roundfee_item

    {
      "name": "st_fee",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "reward",
          "type": "asset"
        },
        {
          "name": "nonus",
          "type": "uint64"
        }
      ]
    }
  • Table row type of teams

    {
      "name": "team_item",
      "base": "",
      "fields": [
        {
          "name": "captain",
          "type": "name"
        },
        {
          "name": "num_of_votes",
          "type": "uint64"
        },
        {
          "name": "voters",
          "type": "pair_name_uint64[]"
        }
      ]
    }
  • Table row type of tradetokens

    {
      "name": "tradetoken",
      "base": "",
      "fields": [
        {
          "name": "risk_line",
          "type": "asset"
        },
        {
          "name": "token_account",
          "type": "name"
        },
        {
          "name": "min",
          "type": "asset"
        },
        {
          "name": "max",
          "type": "asset"
        },
        {
          "name": "in",
          "type": "asset"
        },
        {
          "name": "out",
          "type": "asset"
        },
        {
          "name": "locked",
          "type": "asset"
        },
        {
          "name": "max_bet_percent",
          "type": "uint64"
        },
        {
          "name": "play_times",
          "type": "uint64"
        }
      ]
    }