Vaulta

epscrashgame

Contract

The data structures defined by this contract.

  • Table row type of settings

    {
      "name": "setting",
      "base": "",
      "fields": [
        {
          "name": "active",
          "type": "uint8"
        },
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "total_amount_bet",
          "type": "uint64"
        },
        {
          "name": "total_amount_won",
          "type": "uint64"
        },
        {
          "name": "liabilities",
          "type": "uint64"
        }
      ]
    }
  • Table row type of coldstore

    {
      "name": "storage",
      "base": "",
      "fields": [
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }
  • Table row type of activebets

    {
      "name": "bet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "bettor",
          "type": "name"
        },
        {
          "name": "bet_amt",
          "type": "uint64"
        },
        {
          "name": "multiplierx100",
          "type": "uint64"
        },
        {
          "name": "roll_limit",
          "type": "uint64"
        },
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "bet_time",
          "type": "uint64"
        },
        {
          "name": "ref",
          "type": "name"
        }
      ]
    }
  • Table row type of randkeys

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

    {
      "name": "enable",
      "base": "",
      "fields": [
        {
          "name": "enabled",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in initcontract

    {
      "name": "initcontract",
      "base": "",
      "fields": [
        {
          "name": "randomness_key",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in newrandkey

    {
      "name": "newrandkey",
      "base": "",
      "fields": [
        {
          "name": "randomness_key",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in suspendbet

    {
      "name": "suspendbet",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in resolvebet

    {
      "name": "resolvebet",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "sig",
          "type": "signature"
        }
      ]
    }
  • Action parameter in epscrreceipt

    {
      "name": "epscrreceipt",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "bet_time",
          "type": "uint64"
        },
        {
          "name": "bettor",
          "type": "name"
        },
        {
          "name": "bet_amt",
          "type": "uint64"
        },
        {
          "name": "payout",
          "type": "uint64"
        },
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "signature",
          "type": "signature"
        },
        {
          "name": "multiplierx100",
          "type": "string"
        },
        {
          "name": "random_roll",
          "type": "uint64"
        },
        {
          "name": "bonus",
          "type": "uint64"
        },
        {
          "name": "ref",
          "type": "name"
        },
        {
          "name": "ref_amt",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in refundbet

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

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