Vaulta

luckysloking

Contract

The data structures defined by this contract.

  • Table row type of bet

    {
      "name": "bet",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "received_amount",
          "type": "asset"
        },
        {
          "name": "bet_time",
          "type": "time_point_sec"
        },
        {
          "name": "resolved",
          "type": "bool"
        },
        {
          "name": "hash",
          "type": "checksum256"
        },
        {
          "name": "reel1",
          "type": "uint8"
        },
        {
          "name": "reel2",
          "type": "uint8"
        },
        {
          "name": "reel3",
          "type": "uint8"
        },
        {
          "name": "reel4",
          "type": "uint8"
        },
        {
          "name": "reel5",
          "type": "uint8"
        },
        {
          "name": "winnings",
          "type": "asset"
        },
        {
          "name": "jackpot",
          "type": "bool"
        },
        {
          "name": "dice",
          "type": "bool"
        }
      ]
    }
  • Action parameter in betreceipt

    {
      "name": "betreceipt",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "reel1",
          "type": "uint8"
        },
        {
          "name": "reel2",
          "type": "uint8"
        },
        {
          "name": "reel3",
          "type": "uint8"
        },
        {
          "name": "reel4",
          "type": "uint8"
        },
        {
          "name": "reel5",
          "type": "uint8"
        },
        {
          "name": "winnings",
          "type": "asset"
        },
        {
          "name": "jackpot",
          "type": "bool"
        }
      ]
    }
  • Action parameter in betresult

    {
      "name": "betresult",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "reel1",
          "type": "uint8"
        },
        {
          "name": "reel2",
          "type": "uint8"
        },
        {
          "name": "reel3",
          "type": "uint8"
        },
        {
          "name": "reel4",
          "type": "uint8"
        },
        {
          "name": "reel5",
          "type": "uint8"
        },
        {
          "name": "winnings",
          "type": "asset"
        },
        {
          "name": "jackpot",
          "type": "bool"
        }
      ]
    }
  • Table row type of data

    {
      "name": "data",
      "base": "",
      "fields": [
        {
          "name": "num1",
          "type": "uint64"
        },
        {
          "name": "num2",
          "type": "uint64"
        },
        {
          "name": "asset1",
          "type": "asset"
        },
        {
          "name": "asset2",
          "type": "asset"
        }
      ]
    }
  • Table row type of jackpot

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

    {
      "name": "makebet",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "hash",
          "type": "checksum256"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "amount",
          "type": "asset"
        },
        {
          "name": "received_amount",
          "type": "asset"
        },
        {
          "name": "dice",
          "type": "bool"
        }
      ]
    }
  • Action parameter in resolvebet

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

    {
      "name": "setdata",
      "base": "",
      "fields": [
        {
          "name": "num1",
          "type": "uint64"
        },
        {
          "name": "num2",
          "type": "uint64"
        },
        {
          "name": "asset1",
          "type": "asset"
        },
        {
          "name": "asset2",
          "type": "asset"
        }
      ]
    }
  • Action parameter in transfer

    {
      "name": "transfer",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }