Vaulta

goldchipdice

Contract

The data structures defined by this contract.

  • Table row type of bets.all.v1

    Table row type of bets.high.v1

    Table row type of bets.rare.v1

    {
      "name": "Bet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "roll_type",
          "type": "uint8"
        },
        {
          "name": "roll_border",
          "type": "uint64"
        },
        {
          "name": "roll_value",
          "type": "uint64"
        },
        {
          "name": "bet",
          "type": "asset"
        },
        {
          "name": "payout",
          "type": "asset"
        },
        {
          "name": "seed",
          "type": "string"
        },
        {
          "name": "time",
          "type": "time_point_sec"
        }
      ]
    }
  • Table row type of config.v1

    {
      "name": "Config",
      "base": "",
      "fields": [
        {
          "name": "ante_contract",
          "type": "name"
        },
        {
          "name": "referrals_contract",
          "type": "name"
        },
        {
          "name": "servers",
          "type": "name[]"
        },
        {
          "name": "enabled_betting",
          "type": "bool"
        },
        {
          "name": "enabled_minting",
          "type": "bool"
        },
        {
          "name": "enabled_payout",
          "type": "bool"
        },
        {
          "name": "rare_bet_bound",
          "type": "uint16"
        },
        {
          "name": "jackpot_percent",
          "type": "float64"
        },
        {
          "name": "jackpot_balance",
          "type": "asset"
        },
        {
          "name": "dividends_period_current",
          "type": "time_point"
        },
        {
          "name": "dividends_period",
          "type": "uint64"
        },
        {
          "name": "dividends_percent",
          "type": "float64"
        },
        {
          "name": "min_value",
          "type": "uint16"
        },
        {
          "name": "max_value",
          "type": "uint16"
        },
        {
          "name": "max_bet_percent",
          "type": "float64"
        },
        {
          "name": "max_bet_num",
          "type": "uint16"
        },
        {
          "name": "platform_fee",
          "type": "float64"
        },
        {
          "name": "lottery_contract",
          "type": "name"
        },
        {
          "name": "lottery_period",
          "type": "uint64"
        },
        {
          "name": "lottery_period_current",
          "type": "time_point"
        },
        {
          "name": "lottery_percent",
          "type": "float64"
        },
        {
          "name": "bets_id",
          "type": "TableId"
        },
        {
          "name": "high_bets_id",
          "type": "TableId"
        },
        {
          "name": "rare_bets_id",
          "type": "TableId"
        },
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "day_leader_board",
          "type": "LeaderBoardConfig"
        },
        {
          "name": "month_leader_board",
          "type": "LeaderBoardConfig"
        },
        {
          "name": "base_deferred_id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of tokens.v1

    {
      "name": "Currency",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "lottery_balance",
          "type": "asset"
        },
        {
          "name": "balance_protect",
          "type": "asset"
        },
        {
          "name": "min_bet",
          "type": "asset"
        },
        {
          "name": "high_bet_bound",
          "type": "asset"
        },
        {
          "name": "day",
          "type": "CurrencyStat"
        },
        {
          "name": "month",
          "type": "CurrencyStat"
        },
        {
          "name": "total",
          "type": "CurrencyStat"
        }
      ]
    }
  • Struct property of Currency

    {
      "name": "CurrencyStat",
      "base": "",
      "fields": [
        {
          "name": "update_time",
          "type": "time_point"
        },
        {
          "name": "period",
          "type": "uint64"
        },
        {
          "name": "bet",
          "type": "asset"
        },
        {
          "name": "payout",
          "type": "asset"
        }
      ]
    }
  • Table row type of jackpots.v1

    {
      "name": "Jackpot",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "time",
          "type": "time_point"
        },
        {
          "name": "amount",
          "type": "asset"
        }
      ]
    }
  • Struct property of Config

    {
      "name": "LeaderBoardConfig",
      "base": "",
      "fields": [
        {
          "name": "size",
          "type": "uint8"
        },
        {
          "name": "bonus_percent",
          "type": "float64"
        },
        {
          "name": "distribution_id",
          "type": "uint128"
        },
        {
          "name": "distribution_start",
          "type": "time_point"
        },
        {
          "name": "period_start",
          "type": "time_point"
        },
        {
          "name": "period_length",
          "type": "uint32"
        }
      ]
    }
  • Table row type of players.v1

    {
      "name": "Player",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "last_bet_time",
          "type": "time_point"
        },
        {
          "name": "last_bet",
          "type": "asset"
        },
        {
          "name": "last_payout",
          "type": "asset"
        },
        {
          "name": "jackpot_sequence",
          "type": "int32"
        },
        {
          "name": "jackpot_sequence_values",
          "type": "string"
        },
        {
          "name": "statistics",
          "type": "PlayerBetsStatistics[]"
        }
      ]
    }
  • Struct property of Player

    {
      "name": "PlayerBetsStatistics",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "total",
          "type": "PlayerBetsStatisticsItem"
        },
        {
          "name": "day",
          "type": "PlayerBetsStatisticsItem"
        },
        {
          "name": "week",
          "type": "PlayerBetsStatisticsItem"
        },
        {
          "name": "month",
          "type": "PlayerBetsStatisticsItem"
        }
      ]
    }
  • Struct property of PlayerBetsStatistics

    Struct property of Top

    {
      "name": "PlayerBetsStatisticsItem",
      "base": "",
      "fields": [
        {
          "name": "total_bet_amount",
          "type": "uint64"
        },
        {
          "name": "total_payout",
          "type": "uint64"
        },
        {
          "name": "bets",
          "type": "uint64"
        },
        {
          "name": "wons",
          "type": "uint64"
        }
      ]
    }
  • Table row type of randoms.v1

    {
      "name": "Random",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "inviter",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "roll_type",
          "type": "uint8"
        },
        {
          "name": "roll_border",
          "type": "uint16"
        },
        {
          "name": "time",
          "type": "time_point"
        }
      ]
    }
  • Struct property of Config

    {
      "name": "TableId",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "uint64"
        },
        {
          "name": "last",
          "type": "uint64"
        },
        {
          "name": "max",
          "type": "uint64"
        }
      ]
    }
  • Table row type of top.day.v1

    Table row type of top.month.v1

    {
      "name": "Top",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "stats",
          "type": "PlayerBetsStatisticsItem"
        }
      ]
    }
  • Action parameter in currency.add

    {
      "name": "addCurrency",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "owner",
          "type": "name"
        }
      ]
    }
  • Action parameter in approve

    {
      "name": "approve",
      "base": "",
      "fields": [
        {
          "name": "caller",
          "type": "name"
        },
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "seed",
          "type": "string"
        }
      ]
    }
  • Action parameter in distribute

    {
      "name": "distributeLeadersBonuses",
      "base": "",
      "fields": [
        {
          "name": "type",
          "type": "uint8"
        },
        {
          "name": "leaders",
          "type": "name[]"
        },
        {
          "name": "bonus",
          "type": "asset"
        }
      ]
    }
  • Action parameter in bet

    {
      "name": "makeBet",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "inviter",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "roll_type",
          "type": "uint8"
        },
        {
          "name": "roll_border",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in notify

    {
      "name": "notify",
      "base": "",
      "fields": [
        {
          "name": "",
          "type": "string"
        }
      ]
    }
  • Action parameter in referral.pay

    {
      "name": "payToReferral",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        }
      ]
    }
  • Action parameter in ante.set

    {
      "name": "setAnteTokenAccount",
      "base": "",
      "fields": [
        {
          "name": "name",
          "type": "name"
        }
      ]
    }
  • Action parameter in balance.set

    {
      "name": "setBalance",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    }
  • Action parameter in protect.set

    {
      "name": "setBalanceProtect",
      "base": "",
      "fields": [
        {
          "name": "protect",
          "type": "asset"
        }
      ]
    }
  • Action parameter in bets.setl

    {
      "name": "setBetsHistoryLength",
      "base": "",
      "fields": [
        {
          "name": "size",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in betting.set

    {
      "name": "setBettingEnabled",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }
  • Action parameter in dlp.set

    {
      "name": "setDayLeaderPercent",
      "base": "",
      "fields": [
        {
          "name": "percent",
          "type": "float64"
        }
      ]
    }
  • Action parameter in dividend.set

    {
      "name": "setDividendsPercent",
      "base": "",
      "fields": [
        {
          "name": "percent",
          "type": "float64"
        },
        {
          "name": "period",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in params.set

    {
      "name": "setGameParams",
      "base": "",
      "fields": [
        {
          "name": "min",
          "type": "uint16"
        },
        {
          "name": "max",
          "type": "uint16"
        },
        {
          "name": "max_bet_num",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in high.bet.set

    {
      "name": "setHighBetBound",
      "base": "",
      "fields": [
        {
          "name": "value",
          "type": "asset"
        }
      ]
    }
  • Action parameter in high.setl

    {
      "name": "setHighBetsHistoryLength",
      "base": "",
      "fields": [
        {
          "name": "size",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in jackpot.set

    {
      "name": "setJackpotPercent",
      "base": "",
      "fields": [
        {
          "name": "percent",
          "type": "float64"
        }
      ]
    }
  • Action parameter in l.contr.set

    {
      "name": "setLotteryContract",
      "base": "",
      "fields": [
        {
          "name": "name",
          "type": "name"
        }
      ]
    }
  • Action parameter in l.perc.set

    {
      "name": "setLotteryPercent",
      "base": "",
      "fields": [
        {
          "name": "percent",
          "type": "float64"
        }
      ]
    }
  • Action parameter in l.period.set

    {
      "name": "setLotteryPeriod",
      "base": "",
      "fields": [
        {
          "name": "period",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in mbp.set

    {
      "name": "setMaxBetPercent",
      "base": "",
      "fields": [
        {
          "name": "max_bet_percent",
          "type": "float64"
        }
      ]
    }
  • Action parameter in min.bet.set

    {
      "name": "setMinBet",
      "base": "",
      "fields": [
        {
          "name": "value",
          "type": "asset"
        }
      ]
    }
  • Action parameter in minting.set

    {
      "name": "setMintingEnabled",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }
  • Action parameter in mlp.set

    {
      "name": "setMonthLeaderPercent",
      "base": "",
      "fields": [
        {
          "name": "percent",
          "type": "float64"
        }
      ]
    }
  • Action parameter in payout.set

    {
      "name": "setPayoutEnabled",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "bool"
        }
      ]
    }
  • Action parameter in fee.set

    {
      "name": "setPlatformFee",
      "base": "",
      "fields": [
        {
          "name": "platform_fee",
          "type": "float64"
        }
      ]
    }
  • Action parameter in rare.bet.set

    {
      "name": "setRareBetBound",
      "base": "",
      "fields": [
        {
          "name": "rare_bet_bound",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in rare.setl

    {
      "name": "setRareBetsHistoryLength",
      "base": "",
      "fields": [
        {
          "name": "size",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in referral.set

    {
      "name": "setReferrals",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        }
      ]
    }
  • Action parameter in server.set

    {
      "name": "setServerAccount",
      "base": "",
      "fields": [
        {
          "name": "name",
          "type": "name"
        }
      ]
    }