Vaulta

epsroulettes

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": "sub_id",
          "type": "uint64"
        },
        {
          "name": "bettor",
          "type": "name"
        },
        {
          "name": "bet_amt",
          "type": "uint64"
        },
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "bet_time",
          "type": "uint64"
        },
        {
          "name": "ref",
          "type": "name"
        },
        {
          "name": "bet_count",
          "type": "uint64"
        },
        {
          "name": "timeout",
          "type": "uint64"
        }
      ]
    }
  • Table row type of resolvedbets

    {
      "name": "resolvedbet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "bettor",
          "type": "name"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "bet_seed",
          "type": "checksum256"
        }
      ]
    }
  • 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 resolvebet

    {
      "name": "resolvebet",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "selected",
          "type": "string"
        },
        {
          "name": "payoutString",
          "type": "string"
        },
        {
          "name": "bet_amt",
          "type": "uint64"
        },
        {
          "name": "bet_sign",
          "type": "signature"
        },
        {
          "name": "transaction_sign",
          "type": "signature"
        }
      ]
    }
  • Action parameter in epsrtreceipt

    {
      "name": "epsrtreceipt",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "game_id",
          "type": "uint64"
        },
        {
          "name": "sub_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": "random_roll",
          "type": "uint64"
        },
        {
          "name": "ref",
          "type": "name"
        },
        {
          "name": "ref_amt",
          "type": "uint64"
        },
        {
          "name": "bets",
          "type": "string"
        },
        {
          "name": "wins",
          "type": "string"
        }
      ]
    }
  • Action parameter in refundbet

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

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