WAX

diceexample1

Contract

The data structures defined by this contract.

  • Table row type of config

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "name",
          "type": "uint64"
        },
        {
          "name": "value",
          "type": "int64"
        }
      ]
    }
  • Table row type of dierolls

    {
      "name": "dieroll",
      "base": "",
      "fields": [
        {
          "name": "roll_id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "timestamp",
          "type": "time_point_sec"
        }
      ]
    }
  • Action parameter in getconfig

    {
      "name": "getconfig",
      "base": "",
      "fields": [
        {
          "name": "config",
          "type": "name"
        }
      ]
    }
  • Action parameter in getstats

    {
      "name": "getstats",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        }
      ]
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        }
      ]
    }
  • Action parameter in logtime

    {
      "name": "logtime",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "resolve_time",
          "type": "uint32"
        }
      ]
    }
  • Table row type of playerstats1

    {
      "name": "playerstats",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "total_rolls",
          "type": "uint32"
        },
        {
          "name": "ones",
          "type": "uint32"
        },
        {
          "name": "twos",
          "type": "uint32"
        },
        {
          "name": "threes",
          "type": "uint32"
        },
        {
          "name": "fours",
          "type": "uint32"
        },
        {
          "name": "fives",
          "type": "uint32"
        },
        {
          "name": "sixes",
          "type": "uint32"
        },
        {
          "name": "last_roll",
          "type": "uint32"
        },
        {
          "name": "last_roll_time",
          "type": "time_point_sec"
        },
        {
          "name": "avg_time",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in receiverand

    {
      "name": "receiverand",
      "base": "",
      "fields": [
        {
          "name": "assoc_id",
          "type": "uint64"
        },
        {
          "name": "random_value",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in reset

    {
      "name": "reset",
      "base": "",
      "fields": []
    }
  • Action parameter in rolldie

    {
      "name": "rolldie",
      "base": "",
      "fields": [
        {
          "name": "player",
          "type": "name"
        }
      ]
    }
  • Table row type of rollhistory1

    {
      "name": "rollhistory",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "player",
          "type": "name"
        },
        {
          "name": "roll_id",
          "type": "uint64"
        },
        {
          "name": "result",
          "type": "uint32"
        },
        {
          "name": "timestamp",
          "type": "time_point_sec"
        },
        {
          "name": "resolve_time",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in setconfig

    {
      "name": "setconfig",
      "base": "",
      "fields": [
        {
          "name": "config",
          "type": "name"
        },
        {
          "name": "value",
          "type": "int64"
        }
      ]
    }