Vaulta

ffgametongbi

Contract

The data structures defined by this contract.

  • Table row type of room

    {
      "name": "st_room",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "available_earn_amt",
          "type": "asset"
        },
        {
          "name": "total_earn_amt",
          "type": "asset"
        },
        {
          "name": "total_bet",
          "type": "asset"
        },
        {
          "name": "player_count",
          "type": "uint64"
        },
        {
          "name": "reveal_trigger_count",
          "type": "uint64"
        },
        {
          "name": "asset_contract",
          "type": "name"
        },
        {
          "name": "base_bet_amt",
          "type": "asset"
        },
        {
          "name": "level",
          "type": "uint8"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "code",
          "type": "string"
        },
        {
          "name": "room_size",
          "type": "uint64"
        },
        {
          "name": "seed",
          "type": "string"
        },
        {
          "name": "last_game_time",
          "type": "uint64"
        },
        {
          "name": "startup_time",
          "type": "uint64"
        },
        {
          "name": "created_at",
          "type": "uint64"
        }
      ]
    }
  • Struct property of st_player

    {
      "name": "m_player",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "bet_amount",
          "type": "asset"
        },
        {
          "name": "bet_time",
          "type": "uint64"
        },
        {
          "name": "last_bet_time",
          "type": "uint64"
        },
        {
          "name": "unbet_count",
          "type": "uint64"
        },
        {
          "name": "referrer",
          "type": "name"
        }
      ]
    }
  • Table row type of players

    {
      "name": "st_player",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "players",
          "type": "m_player[]"
        }
      ]
    }
  • Struct property of st_scoreboard

    {
      "name": "m_sb_result",
      "base": "",
      "fields": [
        {
          "name": "index",
          "type": "uint64"
        },
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "bet_amount",
          "type": "asset"
        },
        {
          "name": "win_amount",
          "type": "asset"
        },
        {
          "name": "bet_time",
          "type": "uint64"
        },
        {
          "name": "card_type",
          "type": "uint8"
        },
        {
          "name": "cards",
          "type": "uint8[]"
        }
      ]
    }
  • Table row type of scoreboards

    {
      "name": "st_scoreboard",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "winner",
          "type": "name"
        },
        {
          "name": "result",
          "type": "m_sb_result[]"
        }
      ]
    }
  • Table row type of globals

    {
      "name": "st_global",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "defer_trx_id",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "uint64"
        },
        {
          "name": "create_room_cost",
          "type": "asset"
        }
      ]
    }
  • Table row type of tokenreg

    {
      "name": "st_token_reg",
      "base": "",
      "fields": [
        {
          "name": "token_name",
          "type": "name"
        },
        {
          "name": "low_min_bet",
          "type": "asset"
        },
        {
          "name": "mid_min_bet",
          "type": "asset"
        },
        {
          "name": "high_min_bet",
          "type": "asset"
        },
        {
          "name": "sort",
          "type": "uint64"
        }
      ]
    }
  • Table row type of roomflow

    {
      "name": "st_room_flow",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "update_time",
          "type": "uint64"
        }
      ]
    }
  • Table row type of pledge

    {
      "name": "st_pledge",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "lock_amount",
          "type": "asset"
        }
      ]
    }
  • Struct property of m_hand_card

    {
      "name": "color_card",
      "base": "",
      "fields": [
        {
          "name": "kind",
          "type": "uint8"
        },
        {
          "name": "value",
          "type": "uint8"
        },
        {
          "name": "point",
          "type": "uint8"
        }
      ]
    }
  • Struct property of st_cards

    {
      "name": "m_hand_card",
      "base": "",
      "fields": [
        {
          "name": "index",
          "type": "uint64"
        },
        {
          "name": "ori_cards",
          "type": "uint8[]"
        },
        {
          "name": "cards",
          "type": "color_card[]"
        },
        {
          "name": "card_type",
          "type": "uint8"
        }
      ]
    }
  • Table row type of cards

    {
      "name": "st_cards",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "winner_index",
          "type": "uint64"
        },
        {
          "name": "hand_cards",
          "type": "m_hand_card[]"
        }
      ]
    }
  • Action parameter in startbet

    {
      "name": "startbet",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in stopbet

    {
      "name": "stopbet",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "contract",
          "type": "name"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "room_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in closeroom

    {
      "name": "closeroom",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in bet

    {
      "name": "bet",
      "base": "",
      "fields": [
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in reveal

    {
      "name": "reveal",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "seed_hash",
          "type": "string"
        },
        {
          "name": "signature",
          "type": "string"
        },
        {
          "name": "signature_hash",
          "type": "string"
        }
      ]
    }
  • Action parameter in opencard

    {
      "name": "opencard",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "seed_hash",
          "type": "string"
        },
        {
          "name": "signature",
          "type": "string"
        },
        {
          "name": "signature_hash",
          "type": "string"
        }
      ]
    }
  • Action parameter in tokenreg

    {
      "name": "tokenreg",
      "base": "",
      "fields": [
        {
          "name": "operation",
          "type": "uint8"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "low_min_bet",
          "type": "asset"
        },
        {
          "name": "mid_min_bet",
          "type": "asset"
        },
        {
          "name": "high_min_bet",
          "type": "asset"
        },
        {
          "name": "sort",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in scoreboard

    {
      "name": "scoreboard",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "count",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setroom

    {
      "name": "setroom",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "reveal_trigger_count",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setting

    {
      "name": "setting",
      "base": "",
      "fields": [
        {
          "name": "type",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "uint64"
        },
        {
          "name": "create_room_cost",
          "type": "asset"
        }
      ]
    }
  • Action parameter in setstatus

    {
      "name": "setstatus",
      "base": "",
      "fields": [
        {
          "name": "room_id",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "uint64"
        }
      ]
    }