Vaulta

boxbeijingpk

Contract

The data structures defined by this contract.

  • Table row type of global

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

    {
      "name": "pubkey",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "key",
          "type": "public_key"
        }
      ]
    }
  • Table row type of odds

    {
      "name": "odds",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "_odds",
          "type": "float64"
        }
      ]
    }
  • Table row type of dealer

    {
      "name": "dealer",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "status",
          "type": "uint64"
        },
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "percent",
          "type": "float64"
        }
      ]
    }
  • Table row type of game

    {
      "name": "game",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "type",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "uint64"
        },
        {
          "name": "end_time",
          "type": "time_point_sec"
        },
        {
          "name": "result",
          "type": "uint32[]"
        },
        {
          "name": "bet_amt",
          "type": "asset"
        }
      ]
    }
  • Table row type of bet

    {
      "name": "bet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "player_id",
          "type": "uint64"
        },
        {
          "name": "player_name",
          "type": "string"
        },
        {
          "name": "referrer1_id",
          "type": "uint64"
        },
        {
          "name": "referrer2_id",
          "type": "uint64"
        },
        {
          "name": "referrer3_id",
          "type": "uint64"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "note_amount",
          "type": "uint64"
        },
        {
          "name": "num",
          "type": "string"
        },
        {
          "name": "type1",
          "type": "uint32"
        },
        {
          "name": "type2",
          "type": "uint32"
        },
        {
          "name": "rebate",
          "type": "float64"
        }
      ]
    }
  • Action parameter in offerbet

    {
      "name": "offerbet",
      "base": "",
      "fields": []
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in uninit

    {
      "name": "uninit",
      "base": "",
      "fields": []
    }
  • Action parameter in setkey

    {
      "name": "setkey",
      "base": "",
      "fields": [
        {
          "name": "key",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in setting

    {
      "name": "setting",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "value",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "amount",
          "type": "asset"
        }
      ]
    }
  • Action parameter in lottery

    {
      "name": "lottery",
      "base": "",
      "fields": [
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "result",
          "type": "uint64"
        },
        {
          "name": "sig",
          "type": "signature"
        },
        {
          "name": "seed",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in liquidation

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

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

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

    {
      "name": "setodds",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "odds",
          "type": "float64"
        }
      ]
    }