Vaulta

trustbetgame

Contract

The data structures defined by this contract.

  • Action parameter in clearbet

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

    {
      "name": "clearprofit",
      "base": "",
      "fields": [
        {
          "name": "hourth",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in result

    {
      "name": "result",
      "base": "",
      "fields": [
        {
          "name": "res",
          "type": "st_result"
        }
      ]
    }
  • Action parameter in reveal

    {
      "name": "reveal",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "sig",
          "type": "string"
        },
        {
          "name": "seed",
          "type": "string"
        }
      ]
    }
  • Action parameter in setpubkey

    {
      "name": "setpubkey",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "public_key"
        }
      ]
    }
  • Table row type of bets

    {
      "name": "st_bet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "txtime",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "uid",
          "type": "string"
        },
        {
          "name": "opt",
          "type": "string"
        }
      ]
    }
  • Struct property of st_result

    {
      "name": "st_dice",
      "base": "",
      "fields": [
        {
          "name": "dice1",
          "type": "int32"
        },
        {
          "name": "dice2",
          "type": "int32"
        },
        {
          "name": "dice3",
          "type": "int32"
        }
      ]
    }
  • Table row type of gbets

    {
      "name": "st_gbets",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of global

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

    {
      "name": "st_player",
      "base": "",
      "fields": [
        {
          "name": "eos_bet",
          "type": "asset"
        },
        {
          "name": "times",
          "type": "uint32"
        }
      ]
    }
  • Table row type of profits

    {
      "name": "st_profit",
      "base": "",
      "fields": [
        {
          "name": "hourth",
          "type": "uint64"
        },
        {
          "name": "eos",
          "type": "asset"
        },
        {
          "name": "eos_init",
          "type": "asset"
        },
        {
          "name": "tbt",
          "type": "asset"
        },
        {
          "name": "tbt_init",
          "type": "asset"
        },
        {
          "name": "status",
          "type": "uint8"
        }
      ]
    }
  • Table row type of pubkey

    {
      "name": "st_pubkey",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "public_key"
        }
      ]
    }
  • Struct property of result

    {
      "name": "st_result",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "payin",
          "type": "asset"
        },
        {
          "name": "payout",
          "type": "asset"
        },
        {
          "name": "txtime",
          "type": "uint64"
        },
        {
          "name": "dice",
          "type": "st_dice"
        },
        {
          "name": "payed",
          "type": "bool"
        },
        {
          "name": "uid",
          "type": "string"
        },
        {
          "name": "detail",
          "type": "string"
        }
      ]
    }
  • Action parameter in trxprofit

    {
      "name": "trxprofit",
      "base": "",
      "fields": [
        {
          "name": "hourth",
          "type": "uint64"
        }
      ]
    }