Vaulta

solitairelog

Contract

The data structures defined by this contract.

  • Struct property of recordmatch

    {
      "name": "Channel",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "name",
          "type": "string"
        },
        {
          "name": "bets",
          "type": "asset[]"
        },
        {
          "name": "fee",
          "type": "asset"
        },
        {
          "name": "prize",
          "type": "asset"
        },
        {
          "name": "play_reward",
          "type": "asset"
        },
        {
          "name": "win_reward",
          "type": "asset"
        },
        {
          "name": "play_time_in_sec",
          "type": "uint64"
        },
        {
          "name": "expiry_in_sec",
          "type": "uint64"
        }
      ]
    }
  • Struct property of recordmatch

    {
      "name": "Player",
      "base": "",
      "fields": [
        {
          "name": "name",
          "type": "name"
        },
        {
          "name": "bet",
          "type": "asset"
        },
        {
          "name": "score",
          "type": "uint64"
        },
        {
          "name": "record_cid",
          "type": "string"
        },
        {
          "name": "referrer",
          "type": "name"
        }
      ]
    }
  • Table row type of config

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "something",
          "type": "uint64"
        }
      ]
    }
  • Table row type of profile

    {
      "name": "profile",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "profile_image",
          "type": "checksum256"
        },
        {
          "name": "game_count",
          "type": "uint64"
        },
        {
          "name": "win_count",
          "type": "uint64"
        },
        {
          "name": "draw_count",
          "type": "uint64"
        },
        {
          "name": "lose_count",
          "type": "uint64"
        },
        {
          "name": "bet",
          "type": "asset"
        },
        {
          "name": "prize",
          "type": "asset"
        },
        {
          "name": "recent_game_record",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in recordmatch

    {
      "name": "recordmatch",
      "base": "",
      "fields": [
        {
          "name": "match_id",
          "type": "checksum256"
        },
        {
          "name": "join_id",
          "type": "checksum256"
        },
        {
          "name": "seed",
          "type": "string"
        },
        {
          "name": "channel",
          "type": "Channel"
        },
        {
          "name": "host",
          "type": "Player"
        },
        {
          "name": "guest",
          "type": "Player"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in removeconfig

    {
      "name": "removeconfig",
      "base": "",
      "fields": [
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in removestats

    {
      "name": "removestats",
      "base": "",
      "fields": [
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in rmprofile

    {
      "name": "rmprofile",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in setconfig

    {
      "name": "setconfig",
      "base": "",
      "fields": [
        {
          "name": "something",
          "type": "uint64"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in setprofile

    {
      "name": "setprofile",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "game_count",
          "type": "uint64"
        },
        {
          "name": "win_count",
          "type": "uint64"
        },
        {
          "name": "draw_count",
          "type": "uint64"
        },
        {
          "name": "lose_count",
          "type": "uint64"
        },
        {
          "name": "bet",
          "type": "asset"
        },
        {
          "name": "prize",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in setstats

    {
      "name": "setstats",
      "base": "",
      "fields": [
        {
          "name": "total_game_count",
          "type": "uint64"
        },
        {
          "name": "total_bet",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Table row type of stats

    {
      "name": "stats",
      "base": "",
      "fields": [
        {
          "name": "total_game_count",
          "type": "uint64"
        },
        {
          "name": "total_bet",
          "type": "asset"
        }
      ]
    }