Vaulta

lucky.joker

Contract

The data structures defined by this contract.

  • Action parameter in harvest

    {
      "name": "harvest",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in lock

    {
      "name": "lock",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Table row type of markets

    {
      "name": "market",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "contract0",
          "type": "name"
        },
        {
          "name": "contract1",
          "type": "name"
        },
        {
          "name": "sym0",
          "type": "symbol"
        },
        {
          "name": "sym1",
          "type": "symbol"
        },
        {
          "name": "reserve0",
          "type": "asset"
        },
        {
          "name": "reserve1",
          "type": "asset"
        },
        {
          "name": "liquidity_token",
          "type": "uint64"
        },
        {
          "name": "price0_last",
          "type": "float64"
        },
        {
          "name": "price1_last",
          "type": "float64"
        },
        {
          "name": "price0_cumulative_last",
          "type": "uint64"
        },
        {
          "name": "price1_cumulative_last",
          "type": "uint64"
        },
        {
          "name": "last_update",
          "type": "time_point_sec"
        }
      ]
    }
  • Table row type of orders

    {
      "name": "order",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "created",
          "type": "uint32"
        },
        {
          "name": "open_time",
          "type": "uint32"
        },
        {
          "name": "rate_open_time",
          "type": "uint32"
        },
        {
          "name": "joker_price",
          "type": "float64"
        },
        {
          "name": "rate_1000",
          "type": "int64"
        },
        {
          "name": "seed",
          "type": "checksum256"
        },
        {
          "name": "deposit_joker",
          "type": "asset"
        },
        {
          "name": "deposit_usd",
          "type": "asset"
        },
        {
          "name": "profit",
          "type": "asset"
        },
        {
          "name": "ripe_profit",
          "type": "asset"
        }
      ]
    }
  • Table row type of stats

    {
      "name": "stats",
      "base": "",
      "fields": [
        {
          "name": "seed",
          "type": "checksum256"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }