WAX

market.tibs

Contract

The data structures defined by this contract.

  • Table row type of auctions

    {
      "name": "auction",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "token_contract_account",
          "type": "name"
        },
        {
          "name": "initial_price",
          "type": "asset"
        },
        {
          "name": "expiration_time",
          "type": "uint32"
        },
        {
          "name": "highest_bid",
          "type": "bid"
        }
      ]
    }
  • Struct property of auction

    {
      "name": "bid",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "price",
          "type": "asset"
        }
      ]
    }
  • Action parameter in bidauct

    {
      "name": "bid_auction",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "auction_id",
          "type": "uint64"
        },
        {
          "name": "bidder",
          "type": "name"
        },
        {
          "name": "price",
          "type": "asset"
        }
      ]
    }
  • Table row type of config

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "offer_counter",
          "type": "uint64"
        },
        {
          "name": "auction_counter",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in createauct

    {
      "name": "create_auction",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "asset_id",
          "type": "uint64"
        },
        {
          "name": "token_contract_account",
          "type": "name"
        },
        {
          "name": "initial_price",
          "type": "asset"
        },
        {
          "name": "duration",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in createoffer

    {
      "name": "create_offer",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "price_options",
          "type": "pair_name_asset[]"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "opening_time",
          "type": "uint32"
        },
        {
          "name": "duration",
          "type": "uint32"
        },
        {
          "name": "auto_remove",
          "type": "bool"
        }
      ]
    }
  • Table row type of offers

    {
      "name": "offer",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "template_id",
          "type": "uint64"
        },
        {
          "name": "price_options",
          "type": "pair_name_asset[]"
        },
        {
          "name": "asset_ids",
          "type": "uint64[]"
        },
        {
          "name": "opening_time",
          "type": "uint32"
        },
        {
          "name": "expiration_time",
          "type": "uint32"
        },
        {
          "name": "auto_remove",
          "type": "bool"
        }
      ]
    }
  • Struct property of create_offer

    Struct property of offer

    {
      "name": "pair_name_asset",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "name"
        },
        {
          "name": "second",
          "type": "asset"
        }
      ]
    }
  • Action parameter in removeauct

    {
      "name": "remove_auction",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in removeoffer

    {
      "name": "remove_offer",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }