Skip to content

Commit

Permalink
Merge pull request #41 from public-awesome/jhernandezb/update-types
Browse files Browse the repository at this point in the history
update types
  • Loading branch information
jhernandezb committed Aug 9, 2022
2 parents 137f1a0 + e9d12a8 commit e073242
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Bid } from "./shared-types";

export interface BidsByBidderSortedByExpirationResponse {
bids: Bid[]
[k: string]: unknown
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Bid } from "./shared-types";

export interface CollectionBidsByBidderSortedByExpirationResponse {
bids: Bid[]
[k: string]: unknown
}
7 changes: 7 additions & 0 deletions types/contracts/marketplace/execute_msg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions types/contracts/marketplace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
Expand Down
10 changes: 10 additions & 0 deletions types/contracts/marketplace/sudo_msg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e073242

Please sign in to comment.