Vaulta

bet24diceone

Contract

The data structures defined by this contract.

  • Struct property of receipt

    Table row type of bets

    {
      "name": "st_bet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "referrer",
          "type": "name"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "roll_under",
          "type": "uint8"
        },
        {
          "name": "seed_hash",
          "type": "checksum256"
        },
        {
          "name": "user_seed_hash",
          "type": "checksum160"
        },
        {
          "name": "created_at",
          "type": "uint64"
        }
      ]
    }
  • Table row type of hash

    {
      "name": "st_hash",
      "base": "",
      "fields": [
        {
          "name": "hash",
          "type": "checksum256"
        },
        {
          "name": "expiration",
          "type": "uint64"
        }
      ]
    }
  • Table row type of fundpool

    {
      "name": "st_fund_pool",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol_name"
        },
        {
          "name": "locked",
          "type": "asset"
        }
      ]
    }
  • Table row type of global

    {
      "name": "st_global",
      "base": "",
      "fields": [
        {
          "name": "current_id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of stats

    {
      "name": "st_stats",
      "base": "",
      "fields": [
        {
          "name": "bet_count",
          "type": "uint64"
        },
        {
          "name": "bet_amount",
          "type": "uint64"
        },
        {
          "name": "win_amount",
          "type": "uint64"
        }
      ]
    }
  • Table row type of globalvars

    {
      "name": "globalvar",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "val",
          "type": "uint64"
        }
      ]
    }
  • Table row type of players

    {
      "name": "st_players",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "count",
          "type": "uint64"
        },
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }
  • Table row type of games

    {
      "name": "st_games",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        }
      ]
    }
  • Action parameter in receipt

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

    {
      "name": "reveal",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "sig",
          "type": "signature"
        }
      ]
    }
  • Action parameter in removebet

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

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

    {
      "name": "delplayer",
      "base": "",
      "fields": []
    }
  • Action parameter in initcontract

    {
      "name": "initcontract",
      "base": "",
      "fields": []
    }