WAX

monkeymarket

Contract

The data structures defined by this contract.

  • Table row type of config

    {
      "name": "_config_entity",
      "base": "",
      "fields": [
        {
          "name": "maintenance",
          "type": "bool"
        },
        {
          "name": "params",
          "type": "cfg_params"
        }
      ]
    }
  • Table row type of store

    {
      "name": "_store_entity",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "token_contract",
          "type": "name"
        },
        {
          "name": "buy_price",
          "type": "asset"
        },
        {
          "name": "burn_token",
          "type": "bool"
        }
      ]
    }
  • Table row type of users

    {
      "name": "_users_entity",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "last_buy",
          "type": "time_point_sec"
        }
      ]
    }
  • Struct property of _config_entity

    Struct property of setparams

    {
      "name": "cfg_params",
      "base": "",
      "fields": [
        {
          "name": "timeout_seconds",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in destruct

    {
      "name": "destruct",
      "base": "",
      "fields": []
    }
  • Action parameter in init

    {
      "name": "init",
      "base": "",
      "fields": []
    }
  • Action parameter in maintenance

    {
      "name": "maintenance",
      "base": "",
      "fields": [
        {
          "name": "maintenance",
          "type": "bool"
        }
      ]
    }
  • Action parameter in rmstore

    {
      "name": "rmstore",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setparams

    {
      "name": "setparams",
      "base": "",
      "fields": [
        {
          "name": "params",
          "type": "cfg_params"
        }
      ]
    }
  • Action parameter in setstore

    {
      "name": "setstore",
      "base": "",
      "fields": [
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "token_contract",
          "type": "name"
        },
        {
          "name": "buy_price",
          "type": "asset"
        },
        {
          "name": "burn_token",
          "type": "bool"
        }
      ]
    }