Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shanev committed Oct 14, 2022
1 parent a4e2c56 commit abf1d88
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 266 deletions.
21 changes: 0 additions & 21 deletions contracts/marketplace/examples/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,5 @@ fn main() {
);
export_schema_with_title(&schema_for!(HooksResponse), &out_dir, "BidHooksResponse");

export_schema_with_title(
&schema_for!(BidsResponse),
&out_dir,
"CollectionBidsByBidderResponse",
);
export_schema_with_title(
&schema_for!(BidsResponse),
&out_dir,
"CollectionBidsSortedByPriceResponse",
);
export_schema_with_title(
&schema_for!(BidsResponse),
&out_dir,
"CollectionBidsByBidderSortedByExpirationResponse",
);
export_schema_with_title(
&schema_for!(BidsResponse),
&out_dir,
"ReverseCollectionBidsSortedByPriceResponse",
);

export_schema_with_title(&schema_for!(SaleHookMsg), &out_dir, "SaleHooksResponse");
}

This file was deleted.

This file was deleted.

This file was deleted.

30 changes: 15 additions & 15 deletions contracts/marketplace/schema/query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "QueryMsg",
"oneOf": [
{
"description": "Get the current ask for specific name Return type: `CurrentAskResponse`",
"description": "Get the current ask for specific name",
"type": "object",
"required": [
"ask"
Expand All @@ -25,7 +25,7 @@
"additionalProperties": false
},
{
"description": "Get all asks for a collection Return type: `AsksResponse`",
"description": "Get all asks for a collection",
"type": "object",
"required": [
"asks"
Expand Down Expand Up @@ -57,7 +57,7 @@
"additionalProperties": false
},
{
"description": "Get all asks in reverse Return type: `AsksResponse`",
"description": "Get all asks in reverse",
"type": "object",
"required": [
"reverse_asks"
Expand Down Expand Up @@ -89,7 +89,7 @@
"additionalProperties": false
},
{
"description": "Count of all asks Return type: `AskCountResponse`",
"description": "Count of all asks",
"type": "object",
"required": [
"ask_count"
Expand All @@ -103,7 +103,7 @@
"additionalProperties": false
},
{
"description": "Get all asks by seller Return type: `AsksResponse`",
"description": "Get all asks by seller",
"type": "object",
"required": [
"asks_by_seller"
Expand Down Expand Up @@ -139,7 +139,7 @@
"additionalProperties": false
},
{
"description": "Get data for a specific bid Return type: `BidResponse`",
"description": "Get data for a specific bid",
"type": "object",
"required": [
"bid"
Expand All @@ -165,7 +165,7 @@
"additionalProperties": false
},
{
"description": "Get all bids by a bidder Return type: `BidsResponse`",
"description": "Get all bids by a bidder",
"type": "object",
"required": [
"bids_by_bidder"
Expand Down Expand Up @@ -201,7 +201,7 @@
"additionalProperties": false
},
{
"description": "Get all bids for a specific NFT Return type: `BidsResponse`",
"description": "Get all bids for a specific NFT",
"type": "object",
"required": [
"bids"
Expand Down Expand Up @@ -237,7 +237,7 @@
"additionalProperties": false
},
{
"description": "Get all bids for a collection, sorted by price Return type: `BidsResponse`",
"description": "Get all bids for a collection, sorted by price",
"type": "object",
"required": [
"bids_sorted_by_price"
Expand Down Expand Up @@ -271,7 +271,7 @@
"additionalProperties": false
},
{
"description": "Get all bids for a collection, sorted by price in reverse Return type: `BidsResponse`",
"description": "Get all bids for a collection, sorted by price in reverse",
"type": "object",
"required": [
"reverse_bids_sorted_by_price"
Expand Down Expand Up @@ -305,7 +305,7 @@
"additionalProperties": false
},
{
"description": "Show all registered ask hooks Return type: `HooksResponse`",
"description": "Show all registered ask hooks",
"type": "object",
"required": [
"ask_hooks"
Expand All @@ -319,7 +319,7 @@
"additionalProperties": false
},
{
"description": "Show all registered bid hooks Return type: `HooksResponse`",
"description": "Show all registered bid hooks",
"type": "object",
"required": [
"bid_hooks"
Expand All @@ -333,7 +333,7 @@
"additionalProperties": false
},
{
"description": "Show all registered sale hooks Return type: `HooksResponse`",
"description": "Show all registered sale hooks",
"type": "object",
"required": [
"sale_hooks"
Expand All @@ -347,7 +347,7 @@
"additionalProperties": false
},
{
"description": "Get the config for the contract Return type: `ParamsResponse`",
"description": "Get the config for the contract",
"type": "object",
"required": [
"params"
Expand All @@ -361,7 +361,7 @@
"additionalProperties": false
},
{
"description": "Get the renewal queue for a specific height",
"description": "Get the renewal queue for a specific time",
"type": "object",
"required": [
"renewal_queue"
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion ts/src/NameMarketplace.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate";
import { Coin, StdFee } from "@cosmjs/amino";
import { AskCountResponse, Uint128, Addr, AskCreatedHooksResponse, Ask, AskHooksResponse, AskOffset, AskResponse, AsksBySellerResponse, AsksResponse, AsksSortedByPriceResponse, BidHooksResponse, BidOffset, BidResponse, Bid, BidsByBidderResponse, BidsByBidderSortedByExpirationResponse, BidsResponse, BidsSortedByPriceResponse, CollectionBidsByBidderResponse, CollectionBidsByBidderSortedByExpirationResponse, CollectionBidsSortedByPriceResponse, ExecuteMsg, Timestamp, Uint64, InstantiateMsg, MarketplaceContract, Decimal, ParamsResponse, SudoParams, QueryMsg, ReverseAsksSortedByPriceResponse, ReverseBidsSortedByPriceResponse, ReverseCollectionBidsSortedByPriceResponse, SaleHooksResponse, SudoMsg } from "./NameMarketplace.types";
import { AskCountResponse, Uint128, Addr, AskCreatedHooksResponse, Ask, AskHooksResponse, AskOffset, AskResponse, AsksBySellerResponse, AsksResponse, AsksSortedByPriceResponse, BidHooksResponse, BidOffset, BidResponse, Bid, BidsByBidderResponse, BidsByBidderSortedByExpirationResponse, BidsResponse, BidsSortedByPriceResponse, ExecuteMsg, Timestamp, Uint64, InstantiateMsg, MarketplaceContract, Decimal, ParamsResponse, SudoParams, QueryMsg, ReverseAsksSortedByPriceResponse, ReverseBidsSortedByPriceResponse, SaleHooksResponse, SudoMsg } from "./NameMarketplace.types";
export interface NameMarketplaceReadOnlyInterface {
contractAddress: string;
ask: ({
Expand Down
2 changes: 1 addition & 1 deletion ts/src/NameMarketplace.message-composer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Coin } from "@cosmjs/amino";
import { MsgExecuteContractEncodeObject } from "cosmwasm";
import { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
import { toUtf8 } from "@cosmjs/encoding";
import { AskCountResponse, Uint128, Addr, AskCreatedHooksResponse, Ask, AskHooksResponse, AskOffset, AskResponse, AsksBySellerResponse, AsksResponse, AsksSortedByPriceResponse, BidHooksResponse, BidOffset, BidResponse, Bid, BidsByBidderResponse, BidsByBidderSortedByExpirationResponse, BidsResponse, BidsSortedByPriceResponse, CollectionBidsByBidderResponse, CollectionBidsByBidderSortedByExpirationResponse, CollectionBidsSortedByPriceResponse, ExecuteMsg, Timestamp, Uint64, InstantiateMsg, MarketplaceContract, Decimal, ParamsResponse, SudoParams, QueryMsg, ReverseAsksSortedByPriceResponse, ReverseBidsSortedByPriceResponse, ReverseCollectionBidsSortedByPriceResponse, SaleHooksResponse, SudoMsg } from "./NameMarketplace.types";
import { AskCountResponse, Uint128, Addr, AskCreatedHooksResponse, Ask, AskHooksResponse, AskOffset, AskResponse, AsksBySellerResponse, AsksResponse, AsksSortedByPriceResponse, BidHooksResponse, BidOffset, BidResponse, Bid, BidsByBidderResponse, BidsByBidderSortedByExpirationResponse, BidsResponse, BidsSortedByPriceResponse, ExecuteMsg, Timestamp, Uint64, InstantiateMsg, MarketplaceContract, Decimal, ParamsResponse, SudoParams, QueryMsg, ReverseAsksSortedByPriceResponse, ReverseBidsSortedByPriceResponse, SaleHooksResponse, SudoMsg } from "./NameMarketplace.types";
export interface NameMarketplaceMessage {
contractAddress: string;
sender: string;
Expand Down
Loading

0 comments on commit abf1d88

Please sign in to comment.