Vaulta

fairbet.game

Contract

The data structures defined by this contract.

  • Action parameter in bet

    {
      "name": "bet",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "bet",
          "type": "st_bet"
        },
        {
          "name": "affiliates",
          "type": "st_affiliate[]"
        },
        {
          "name": "proof",
          "type": "signature"
        }
      ]
    }
  • Action parameter in clear

    {
      "name": "clear",
      "base": "",
      "fields": [
        {
          "name": "game_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in endgame

    {
      "name": "endgame",
      "base": "",
      "fields": [
        {
          "name": "house_seed",
          "type": "string"
        }
      ]
    }
  • Struct property of r_game

    Struct property of st_game

    {
      "name": "game_rules",
      "base": "",
      "fields": [
        {
          "name": "ttl",
          "type": "uint8"
        },
        {
          "name": "cap",
          "type": "asset"
        },
        {
          "name": "step",
          "type": "asset"
        }
      ]
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "locked",
          "type": "asset"
        },
        {
          "name": "witness",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in logbet

    {
      "name": "logbet",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "bet",
          "type": "st_bet"
        },
        {
          "name": "players_seed",
          "type": "checksum256"
        },
        {
          "name": "current_win",
          "type": "uint8"
        },
        {
          "name": "affiliates",
          "type": "st_affiliate[]"
        }
      ]
    }
  • Action parameter in logendgame

    {
      "name": "logendgame",
      "base": "",
      "fields": [
        {
          "name": "house_seed_hash",
          "type": "checksum256"
        },
        {
          "name": "compound_hash",
          "type": "checksum256"
        },
        {
          "name": "win",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in logstartgame

    {
      "name": "logstartgame",
      "base": "",
      "fields": [
        {
          "name": "game",
          "type": "st_game"
        },
        {
          "name": "timestamp",
          "type": "int64"
        }
      ]
    }
  • Action parameter in migrate

    {
      "name": "migrate",
      "base": "",
      "fields": [
        {
          "name": "version",
          "type": "uint64"
        }
      ]
    }
  • Table row type of bets

    {
      "name": "r_bet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "timestamp",
          "type": "time_point"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "number",
          "type": "uint8"
        },
        {
          "name": "coefficient",
          "type": "uint8"
        },
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "paid",
          "type": "bool"
        },
        {
          "name": "affiliates",
          "type": "st_affiliate[]"
        }
      ]
    }
  • Table row type of games

    {
      "name": "r_game",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "timestamp",
          "type": "time_point"
        },
        {
          "name": "house_seed_hash",
          "type": "checksum256"
        },
        {
          "name": "players_seed",
          "type": "checksum256"
        },
        {
          "name": "rules",
          "type": "game_rules"
        },
        {
          "name": "bank",
          "type": "asset"
        }
      ]
    }
  • Struct property of bet

    Struct property of logbet

    Struct property of r_bet

    {
      "name": "st_affiliate",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "license",
          "type": "uint64"
        }
      ]
    }
  • Struct property of bet

    Struct property of logbet

    {
      "name": "st_bet",
      "base": "",
      "fields": [
        {
          "name": "game",
          "type": "checksum256"
        },
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "numbers",
          "type": "uint8[]"
        }
      ]
    }
  • Struct property of logstartgame

    Struct property of startgame

    {
      "name": "st_game",
      "base": "",
      "fields": [
        {
          "name": "house_seed_hash",
          "type": "checksum256"
        },
        {
          "name": "rules",
          "type": "game_rules"
        }
      ]
    }
  • Action parameter in startgame

    {
      "name": "startgame",
      "base": "",
      "fields": [
        {
          "name": "game",
          "type": "st_game"
        }
      ]
    }
  • Table row type of state

    {
      "name": "state",
      "base": "",
      "fields": [
        {
          "name": "version",
          "type": "uint64"
        },
        {
          "name": "locked",
          "type": "asset"
        },
        {
          "name": "witness",
          "type": "public_key"
        }
      ]
    }