Skip to content

Commit

Permalink
Updated schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shanev committed Oct 11, 2022
1 parent 5fb1ab1 commit 4997cb5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contracts/marketplace/schema/query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,20 @@
}
},
"additionalProperties": false
},
{
"description": "Get the minter and collection",
"type": "object",
"required": [
"config"
],
"properties": {
"config": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
Expand Down
7 changes: 7 additions & 0 deletions ts/src/NameMarketplace.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export interface NameMarketplaceReadOnlyInterface {
}: {
height: number;
}) => Promise<RenewalQueueResponse>;
config: () => Promise<ConfigResponse>;
}
export class NameMarketplaceQueryClient implements NameMarketplaceReadOnlyInterface {
client: CosmWasmClient;
Expand All @@ -109,6 +110,7 @@ export class NameMarketplaceQueryClient implements NameMarketplaceReadOnlyInterf
this.saleHooks = this.saleHooks.bind(this);
this.params = this.params.bind(this);
this.renewalQueue = this.renewalQueue.bind(this);
this.config = this.config.bind(this);
}

ask = async ({
Expand Down Expand Up @@ -279,6 +281,11 @@ export class NameMarketplaceQueryClient implements NameMarketplaceReadOnlyInterf
}
});
};
config = async (): Promise<ConfigResponse> => {
return this.client.queryContractSmart(this.contractAddress, {
config: {}
});
};
}
export interface NameMarketplaceInterface extends NameMarketplaceReadOnlyInterface {
contractAddress: string;
Expand Down
2 changes: 2 additions & 0 deletions ts/src/NameMarketplace.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ export type QueryMsg = {
renewal_queue: {
height: number;
};
} | {
config: {};
};
export interface ReverseAsksSortedByPriceResponse {
asks: Ask[];
Expand Down

0 comments on commit 4997cb5

Please sign in to comment.