From e9d12a86c81fb0620c50d63aa49b9b7e9b6c96aa Mon Sep 17 00:00:00 2001 From: jhernandezb Date: Mon, 8 Aug 2022 22:54:13 -0600 Subject: [PATCH] update types --- .../bids_by_bidder_sorted_by_expiration_response.d.ts | 6 ++++++ ...n_bids_by_bidder_sorted_by_expiration_response.d.ts | 6 ++++++ types/contracts/marketplace/execute_msg.d.ts | 7 +++++++ types/contracts/marketplace/index.ts | 2 ++ types/contracts/marketplace/sudo_msg.d.ts | 10 ++++++++++ types/package.json | 2 +- 6 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 types/contracts/marketplace/bids_by_bidder_sorted_by_expiration_response.d.ts create mode 100644 types/contracts/marketplace/collection_bids_by_bidder_sorted_by_expiration_response.d.ts diff --git a/types/contracts/marketplace/bids_by_bidder_sorted_by_expiration_response.d.ts b/types/contracts/marketplace/bids_by_bidder_sorted_by_expiration_response.d.ts new file mode 100644 index 00000000..63919dca --- /dev/null +++ b/types/contracts/marketplace/bids_by_bidder_sorted_by_expiration_response.d.ts @@ -0,0 +1,6 @@ +import { Bid } from "./shared-types"; + +export interface BidsByBidderSortedByExpirationResponse { +bids: Bid[] +[k: string]: unknown +} diff --git a/types/contracts/marketplace/collection_bids_by_bidder_sorted_by_expiration_response.d.ts b/types/contracts/marketplace/collection_bids_by_bidder_sorted_by_expiration_response.d.ts new file mode 100644 index 00000000..bd8e5c05 --- /dev/null +++ b/types/contracts/marketplace/collection_bids_by_bidder_sorted_by_expiration_response.d.ts @@ -0,0 +1,6 @@ +import { Bid } from "./shared-types"; + +export interface CollectionBidsByBidderSortedByExpirationResponse { +bids: Bid[] +[k: string]: unknown +} diff --git a/types/contracts/marketplace/execute_msg.d.ts b/types/contracts/marketplace/execute_msg.d.ts index e0239285..2ba744b8 100644 --- a/types/contracts/marketplace/execute_msg.d.ts +++ b/types/contracts/marketplace/execute_msg.d.ts @@ -31,6 +31,7 @@ collection: string expires: Timestamp finder?: (string | null) finders_fee_bps?: (number | null) +sale_type: SaleType token_id: number [k: string]: unknown } @@ -75,6 +76,12 @@ token_id: number [k: string]: unknown } } | { +remove_stale_ask: { +collection: string +token_id: number +[k: string]: unknown +} +} | { remove_stale_bid: { bidder: string collection: string diff --git a/types/contracts/marketplace/index.ts b/types/contracts/marketplace/index.ts index 17a7f123..7e292a8f 100644 --- a/types/contracts/marketplace/index.ts +++ b/types/contracts/marketplace/index.ts @@ -17,6 +17,7 @@ export * from "./bid_response"; // dedup emptied this file // export * from "./bid"; export * from "./bids_by_bidder_response"; +export * from "./bids_by_bidder_sorted_by_expiration_response"; export * from "./bids_response"; export * from "./bids_sorted_by_price_response"; // dedup emptied this file @@ -25,6 +26,7 @@ export * from "./collection_bid_response"; // dedup emptied this file // export * from "./collection_bid"; export * from "./collection_bids_by_bidder_response"; +export * from "./collection_bids_by_bidder_sorted_by_expiration_response"; export * from "./collection_bids_sorted_by_price_response"; // dedup emptied this file // export * from "./collection_offset"; diff --git a/types/contracts/marketplace/sudo_msg.d.ts b/types/contracts/marketplace/sudo_msg.d.ts index f7fa0723..0fa0a7d0 100644 --- a/types/contracts/marketplace/sudo_msg.d.ts +++ b/types/contracts/marketplace/sudo_msg.d.ts @@ -13,6 +13,16 @@ trading_fee_bps?: (number | null) [k: string]: unknown } } | { +add_operator: { +operator: string +[k: string]: unknown +} +} | { +remove_operator: { +operator: string +[k: string]: unknown +} +} | { add_ask_hook: { hook: string [k: string]: unknown diff --git a/types/package.json b/types/package.json index e9a23869..789af3bb 100644 --- a/types/package.json +++ b/types/package.json @@ -1,6 +1,6 @@ { "name": "@stargazezone/marketplace-types", - "version": "0.3.0", + "version": "0.4.0", "description": "Types for Stargaze Marketplace", "main": "build/codegen.js", "scripts": {