WAX

market.tibs

合约

此合约定义的数据结构。

  • 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"
        }
      ]
    }
  • 的结构体属性 auction

    {
      "name": "bid",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "price",
          "type": "asset"
        }
      ]
    }
  • 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"
        }
      ]
    }
  • config 的表格行类型

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "offer_counter",
          "type": "uint64"
        },
        {
          "name": "auction_counter",
          "type": "uint64"
        }
      ]
    }
  • 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"
        }
      ]
    }
  • 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"
        }
      ]
    }
  • 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"
        }
      ]
    }
  • 的结构体属性 create_offer

    的结构体属性 offer

    {
      "name": "pair_name_asset",
      "base": "",
      "fields": [
        {
          "name": "first",
          "type": "name"
        },
        {
          "name": "second",
          "type": "asset"
        }
      ]
    }
  • removeauct中的操作参数

    {
      "name": "remove_auction",
      "base": "",
      "fields": [
        {
          "name": "author_account",
          "type": "name"
        },
        {
          "name": "collection_id",
          "type": "uint64"
        },
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • removeoffer中的操作参数

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