Vaulta

offside2fast

Contract

The data structures defined by this contract.

  • Table row type of bet

    {
      "name": "bet",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "round_id",
          "type": "uint64"
        },
        {
          "name": "bettor",
          "type": "name"
        },
        {
          "name": "match_result_options",
          "type": "uint64[]"
        },
        {
          "name": "goal_size_options",
          "type": "uint64[]"
        },
        {
          "name": "total_goal_options",
          "type": "uint64[]"
        },
        {
          "name": "bet_asset",
          "type": "asset"
        },
        {
          "name": "bet_time",
          "type": "uint64"
        },
        {
          "name": "payout_asset",
          "type": "asset"
        }
      ]
    }
  • Action parameter in betreceipt

    {
      "name": "betreceipt",
      "base": "",
      "fields": [
        {
          "name": "bet_id",
          "type": "uint64"
        },
        {
          "name": "bettor",
          "type": "name"
        },
        {
          "name": "match_result_options",
          "type": "uint64[]"
        },
        {
          "name": "goal_size_options",
          "type": "uint64[]"
        },
        {
          "name": "total_goal_options",
          "type": "uint64[]"
        },
        {
          "name": "bet_asset",
          "type": "asset"
        },
        {
          "name": "bet_time",
          "type": "uint64"
        },
        {
          "name": "payout_asset",
          "type": "asset"
        },
        {
          "name": "round_id",
          "type": "uint64"
        },
        {
          "name": "home_score",
          "type": "uint8"
        },
        {
          "name": "away_score",
          "type": "uint8"
        }
      ]
    }
  • Struct property of exchange_state

    {
      "name": "connector",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        },
        {
          "name": "weight",
          "type": "float64"
        }
      ]
    }
  • Table row type of rammarket

    {
      "name": "exchange_state",
      "base": "",
      "fields": [
        {
          "name": "supply",
          "type": "asset"
        },
        {
          "name": "base",
          "type": "connector"
        },
        {
          "name": "quote",
          "type": "connector"
        }
      ]
    }
  • Table row type of globalvar

    {
      "name": "globalvar",
      "base": "",
      "fields": [
        {
          "name": "row_id",
          "type": "uint64"
        },
        {
          "name": "current_round_id",
          "type": "uint64"
        },
        {
          "name": "new_bet_id",
          "type": "uint64"
        },
        {
          "name": "pub_key",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in initcontract

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

    {
      "name": "newpubkey",
      "base": "",
      "fields": [
        {
          "name": "pubkey",
          "type": "public_key"
        }
      ]
    }
  • Action parameter in play

    {
      "name": "play",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in resolveround

    {
      "name": "resolveround",
      "base": "",
      "fields": [
        {
          "name": "round_id",
          "type": "uint64"
        },
        {
          "name": "sign",
          "type": "signature"
        },
        {
          "name": "seed_hash",
          "type": "checksum256"
        },
        {
          "name": "sign_hash",
          "type": "checksum256"
        }
      ]
    }
  • Table row type of round

    {
      "name": "round",
      "base": "",
      "fields": [
        {
          "name": "round_id",
          "type": "uint64"
        },
        {
          "name": "match_time",
          "type": "uint64"
        },
        {
          "name": "total_bet_asset",
          "type": "asset"
        },
        {
          "name": "match_result_bets",
          "type": "uint64[]"
        },
        {
          "name": "goal_size_bets",
          "type": "uint64[]"
        },
        {
          "name": "total_goal_bets",
          "type": "uint64[]"
        },
        {
          "name": "ram_price",
          "type": "uint128"
        },
        {
          "name": "home_score",
          "type": "uint8"
        },
        {
          "name": "away_score",
          "type": "uint8"
        },
        {
          "name": "home_goals",
          "type": "uint64[]"
        },
        {
          "name": "away_goals",
          "type": "uint64[]"
        },
        {
          "name": "total_payout_asset",
          "type": "asset"
        },
        {
          "name": "seed_hash",
          "type": "checksum256"
        },
        {
          "name": "sign",
          "type": "signature"
        },
        {
          "name": "sign_hash",
          "type": "checksum256"
        },
        {
          "name": "resolved",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in roundreceipt

    {
      "name": "roundreceipt",
      "base": "",
      "fields": [
        {
          "name": "round_id",
          "type": "uint64"
        },
        {
          "name": "match_time",
          "type": "uint64"
        },
        {
          "name": "total_bet_asset",
          "type": "asset"
        },
        {
          "name": "ram_price",
          "type": "uint128"
        },
        {
          "name": "home_score",
          "type": "uint8"
        },
        {
          "name": "away_score",
          "type": "uint8"
        },
        {
          "name": "home_goals",
          "type": "uint64[]"
        },
        {
          "name": "away_goals",
          "type": "uint64[]"
        },
        {
          "name": "total_payout_asset",
          "type": "asset"
        },
        {
          "name": "seed_hash",
          "type": "checksum256"
        },
        {
          "name": "sign",
          "type": "signature"
        },
        {
          "name": "sign_hash",
          "type": "checksum256"
        }
      ]
    }