@sparkdreamnft/sparkdreamjs 0.0.42 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +134 -2
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +186 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +354 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +6 -1
- package/esm/sparkdream/service/v1/tx.js +169 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +66 -1
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20540 -17854
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +160 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +128 -0
- package/sparkdream/federation/v1/types.js +135 -3
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +128 -28
- package/sparkdream/rep/v1/params.js +186 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +245 -1
- package/sparkdream/rep/v1/tx.js +355 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/rpc.query.d.ts +32 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +97 -0
- package/sparkdream/service/v1/tx.js +170 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/shield/v1/params.d.ts +16 -0
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +2 -2
- package/sparkdream/shield/v1/types.d.ts +45 -2
- package/sparkdream/shield/v1/types.js +69 -2
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LCDClient } from "@cosmology/lcd";
|
|
2
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryClassRequest, QueryClassResponse, QueryClassesRequest, QueryClassesResponse, QueryClassesByOwnerRequest, QueryClassesByOwnerResponse, QueryTokenRequest, QueryTokenResponse, QueryTokensRequest, QueryTokensResponse, QueryTokensByOwnerRequest, QueryTokensByOwnerResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse, QueryListingRequest, QueryListingResponse, QueryListingsRequest, QueryListingsResponse, QueryListingsBySellerRequest, QueryListingsBySellerResponse, QueryInboxRequest, QueryInboxResponse, QueryOutboxRequest, QueryOutboxResponse, QueryReceivePolicyRequest, QueryReceivePolicyResponse, QueryPendingClassOwnerRequest, QueryPendingClassOwnerResponse, QueryHideRecordRequest, QueryHideRecordResponse, QueryHideRecordsByTargetRequest, QueryHideRecordsByTargetResponse, QueryPublicMintQuoteRequest, QueryPublicMintQuoteResponse } from "./query";
|
|
3
|
+
export declare class LCDQueryClient {
|
|
4
|
+
req: LCDClient;
|
|
5
|
+
constructor({ requestClient }: {
|
|
6
|
+
requestClient: LCDClient;
|
|
7
|
+
});
|
|
8
|
+
params: (_params?: QueryParamsRequest) => Promise<QueryParamsResponse>;
|
|
9
|
+
class: (params: QueryClassRequest) => Promise<QueryClassResponse>;
|
|
10
|
+
classes: (params?: QueryClassesRequest) => Promise<QueryClassesResponse>;
|
|
11
|
+
classesByOwner: (params: QueryClassesByOwnerRequest) => Promise<QueryClassesByOwnerResponse>;
|
|
12
|
+
token: (params: QueryTokenRequest) => Promise<QueryTokenResponse>;
|
|
13
|
+
tokens: (params: QueryTokensRequest) => Promise<QueryTokensResponse>;
|
|
14
|
+
tokensByOwner: (params: QueryTokensByOwnerRequest) => Promise<QueryTokensByOwnerResponse>;
|
|
15
|
+
owner: (params: QueryOwnerRequest) => Promise<QueryOwnerResponse>;
|
|
16
|
+
supply: (params: QuerySupplyRequest) => Promise<QuerySupplyResponse>;
|
|
17
|
+
listing: (params: QueryListingRequest) => Promise<QueryListingResponse>;
|
|
18
|
+
listings: (params: QueryListingsRequest) => Promise<QueryListingsResponse>;
|
|
19
|
+
listingsBySeller: (params: QueryListingsBySellerRequest) => Promise<QueryListingsBySellerResponse>;
|
|
20
|
+
inbox: (params: QueryInboxRequest) => Promise<QueryInboxResponse>;
|
|
21
|
+
outbox: (params: QueryOutboxRequest) => Promise<QueryOutboxResponse>;
|
|
22
|
+
receivePolicy: (params: QueryReceivePolicyRequest) => Promise<QueryReceivePolicyResponse>;
|
|
23
|
+
pendingClassOwner: (params: QueryPendingClassOwnerRequest) => Promise<QueryPendingClassOwnerResponse>;
|
|
24
|
+
hideRecord: (params: QueryHideRecordRequest) => Promise<QueryHideRecordResponse>;
|
|
25
|
+
hideRecordsByTarget: (params: QueryHideRecordsByTargetRequest) => Promise<QueryHideRecordsByTargetResponse>;
|
|
26
|
+
publicMintQuote: (params: QueryPublicMintQuoteRequest) => Promise<QueryPublicMintQuoteResponse>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LCDQueryClient = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
class LCDQueryClient {
|
|
7
|
+
req;
|
|
8
|
+
constructor({ requestClient }) {
|
|
9
|
+
this.req = requestClient;
|
|
10
|
+
}
|
|
11
|
+
/* Parameters queries the parameters of the module. */
|
|
12
|
+
params = async (_params = {}) => {
|
|
13
|
+
const endpoint = `sparkdream/artifact/v1/params`;
|
|
14
|
+
return await this.req.get(endpoint);
|
|
15
|
+
};
|
|
16
|
+
/* Class returns one class. */
|
|
17
|
+
class = async (params) => {
|
|
18
|
+
const endpoint = `sparkdream/artifact/v1/class/${params.classId}`;
|
|
19
|
+
return await this.req.get(endpoint);
|
|
20
|
+
};
|
|
21
|
+
/* Classes lists all classes. */
|
|
22
|
+
classes = async (params = {
|
|
23
|
+
pagination: undefined
|
|
24
|
+
}) => {
|
|
25
|
+
const options = {
|
|
26
|
+
params: {}
|
|
27
|
+
};
|
|
28
|
+
if (typeof params?.pagination !== "undefined") {
|
|
29
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
30
|
+
}
|
|
31
|
+
const endpoint = `sparkdream/artifact/v1/classes`;
|
|
32
|
+
return await this.req.get(endpoint, options);
|
|
33
|
+
};
|
|
34
|
+
/* ClassesByOwner lists the classes an address owns. */
|
|
35
|
+
classesByOwner = async (params) => {
|
|
36
|
+
const options = {
|
|
37
|
+
params: {}
|
|
38
|
+
};
|
|
39
|
+
if (typeof params?.pagination !== "undefined") {
|
|
40
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
41
|
+
}
|
|
42
|
+
const endpoint = `sparkdream/artifact/v1/classes_by_owner/${params.owner}`;
|
|
43
|
+
return await this.req.get(endpoint, options);
|
|
44
|
+
};
|
|
45
|
+
/* Token returns one token. */
|
|
46
|
+
token = async (params) => {
|
|
47
|
+
const endpoint = `sparkdream/artifact/v1/token/${params.classId}/${params.tokenId}`;
|
|
48
|
+
return await this.req.get(endpoint);
|
|
49
|
+
};
|
|
50
|
+
/* Tokens lists the tokens of a class. */
|
|
51
|
+
tokens = async (params) => {
|
|
52
|
+
const options = {
|
|
53
|
+
params: {}
|
|
54
|
+
};
|
|
55
|
+
if (typeof params?.pagination !== "undefined") {
|
|
56
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
57
|
+
}
|
|
58
|
+
const endpoint = `sparkdream/artifact/v1/tokens/${params.classId}`;
|
|
59
|
+
return await this.req.get(endpoint, options);
|
|
60
|
+
};
|
|
61
|
+
/* TokensByOwner lists the tokens an address owns. */
|
|
62
|
+
tokensByOwner = async (params) => {
|
|
63
|
+
const options = {
|
|
64
|
+
params: {}
|
|
65
|
+
};
|
|
66
|
+
if (typeof params?.classId !== "undefined") {
|
|
67
|
+
options.params.class_id = params.classId;
|
|
68
|
+
}
|
|
69
|
+
if (typeof params?.pagination !== "undefined") {
|
|
70
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
71
|
+
}
|
|
72
|
+
const endpoint = `sparkdream/artifact/v1/tokens_by_owner/${params.owner}`;
|
|
73
|
+
return await this.req.get(endpoint, options);
|
|
74
|
+
};
|
|
75
|
+
/* Owner returns a token's owner. */
|
|
76
|
+
owner = async (params) => {
|
|
77
|
+
const endpoint = `sparkdream/artifact/v1/owner/${params.classId}/${params.tokenId}`;
|
|
78
|
+
return await this.req.get(endpoint);
|
|
79
|
+
};
|
|
80
|
+
/* Supply returns a class's supply counters. */
|
|
81
|
+
supply = async (params) => {
|
|
82
|
+
const endpoint = `sparkdream/artifact/v1/supply/${params.classId}`;
|
|
83
|
+
return await this.req.get(endpoint);
|
|
84
|
+
};
|
|
85
|
+
/* Listing returns a token's active listing. */
|
|
86
|
+
listing = async (params) => {
|
|
87
|
+
const endpoint = `sparkdream/artifact/v1/listing/${params.classId}/${params.tokenId}`;
|
|
88
|
+
return await this.req.get(endpoint);
|
|
89
|
+
};
|
|
90
|
+
/* Listings lists active listings, optionally for one class. */
|
|
91
|
+
listings = async (params) => {
|
|
92
|
+
const options = {
|
|
93
|
+
params: {}
|
|
94
|
+
};
|
|
95
|
+
if (typeof params?.classId !== "undefined") {
|
|
96
|
+
options.params.class_id = params.classId;
|
|
97
|
+
}
|
|
98
|
+
if (typeof params?.pagination !== "undefined") {
|
|
99
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
100
|
+
}
|
|
101
|
+
const endpoint = `sparkdream/artifact/v1/listings`;
|
|
102
|
+
return await this.req.get(endpoint, options);
|
|
103
|
+
};
|
|
104
|
+
/* ListingsBySeller lists a seller's active listings. */
|
|
105
|
+
listingsBySeller = async (params) => {
|
|
106
|
+
const options = {
|
|
107
|
+
params: {}
|
|
108
|
+
};
|
|
109
|
+
if (typeof params?.pagination !== "undefined") {
|
|
110
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
111
|
+
}
|
|
112
|
+
const endpoint = `sparkdream/artifact/v1/listings_by_seller/${params.seller}`;
|
|
113
|
+
return await this.req.get(endpoint, options);
|
|
114
|
+
};
|
|
115
|
+
/* Inbox lists an address's open incoming items. */
|
|
116
|
+
inbox = async (params) => {
|
|
117
|
+
const options = {
|
|
118
|
+
params: {}
|
|
119
|
+
};
|
|
120
|
+
if (typeof params?.pagination !== "undefined") {
|
|
121
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
122
|
+
}
|
|
123
|
+
const endpoint = `sparkdream/artifact/v1/inbox/${params.address}`;
|
|
124
|
+
return await this.req.get(endpoint, options);
|
|
125
|
+
};
|
|
126
|
+
/* Outbox lists an address's open outgoing items. */
|
|
127
|
+
outbox = async (params) => {
|
|
128
|
+
const options = {
|
|
129
|
+
params: {}
|
|
130
|
+
};
|
|
131
|
+
if (typeof params?.pagination !== "undefined") {
|
|
132
|
+
(0, helpers_1.setPaginationParams)(options, params.pagination);
|
|
133
|
+
}
|
|
134
|
+
const endpoint = `sparkdream/artifact/v1/outbox/${params.address}`;
|
|
135
|
+
return await this.req.get(endpoint, options);
|
|
136
|
+
};
|
|
137
|
+
/* ReceivePolicy returns an address's effective receive policy. */
|
|
138
|
+
receivePolicy = async (params) => {
|
|
139
|
+
const endpoint = `sparkdream/artifact/v1/receive_policy/${params.address}`;
|
|
140
|
+
return await this.req.get(endpoint);
|
|
141
|
+
};
|
|
142
|
+
/* PendingClassOwner returns a class's open handover proposal. */
|
|
143
|
+
pendingClassOwner = async (params) => {
|
|
144
|
+
const endpoint = `sparkdream/artifact/v1/pending_class_owner/${params.classId}`;
|
|
145
|
+
return await this.req.get(endpoint);
|
|
146
|
+
};
|
|
147
|
+
/* HideRecord returns one hide record. */
|
|
148
|
+
hideRecord = async (params) => {
|
|
149
|
+
const endpoint = `sparkdream/artifact/v1/hide_record/${params.hideId}`;
|
|
150
|
+
return await this.req.get(endpoint);
|
|
151
|
+
};
|
|
152
|
+
/* HideRecordsByTarget lists every hide record for a class (token_id 0) or token. */
|
|
153
|
+
hideRecordsByTarget = async (params) => {
|
|
154
|
+
const endpoint = `sparkdream/artifact/v1/hide_records_by_target/${params.classId}/${params.tokenId}`;
|
|
155
|
+
return await this.req.get(endpoint);
|
|
156
|
+
};
|
|
157
|
+
/* PublicMintQuote prices a public mint. */
|
|
158
|
+
publicMintQuote = async (params) => {
|
|
159
|
+
const endpoint = `sparkdream/artifact/v1/public_mint_quote/${params.classId}/${params.buyer}/${params.quantity}`;
|
|
160
|
+
return await this.req.get(endpoint);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
exports.LCDQueryClient = LCDQueryClient;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { TxRpc } from "../../../types";
|
|
2
|
+
import { QueryClient } from "@cosmjs/stargate";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryClassRequest, QueryClassResponse, QueryClassesRequest, QueryClassesResponse, QueryClassesByOwnerRequest, QueryClassesByOwnerResponse, QueryTokenRequest, QueryTokenResponse, QueryTokensRequest, QueryTokensResponse, QueryTokensByOwnerRequest, QueryTokensByOwnerResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse, QueryListingRequest, QueryListingResponse, QueryListingsRequest, QueryListingsResponse, QueryListingsBySellerRequest, QueryListingsBySellerResponse, QueryInboxRequest, QueryInboxResponse, QueryOutboxRequest, QueryOutboxResponse, QueryReceivePolicyRequest, QueryReceivePolicyResponse, QueryPendingClassOwnerRequest, QueryPendingClassOwnerResponse, QueryHideRecordRequest, QueryHideRecordResponse, QueryHideRecordsByTargetRequest, QueryHideRecordsByTargetResponse, QueryPublicMintQuoteRequest, QueryPublicMintQuoteResponse } from "./query";
|
|
4
|
+
/** Query defines the gRPC querier service. */
|
|
5
|
+
export interface Query {
|
|
6
|
+
/** Parameters queries the parameters of the module. */
|
|
7
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
8
|
+
/** Class returns one class. */
|
|
9
|
+
class(request: QueryClassRequest): Promise<QueryClassResponse>;
|
|
10
|
+
/** Classes lists all classes. */
|
|
11
|
+
classes(request?: QueryClassesRequest): Promise<QueryClassesResponse>;
|
|
12
|
+
/** ClassesByOwner lists the classes an address owns. */
|
|
13
|
+
classesByOwner(request: QueryClassesByOwnerRequest): Promise<QueryClassesByOwnerResponse>;
|
|
14
|
+
/** Token returns one token. */
|
|
15
|
+
token(request: QueryTokenRequest): Promise<QueryTokenResponse>;
|
|
16
|
+
/** Tokens lists the tokens of a class. */
|
|
17
|
+
tokens(request: QueryTokensRequest): Promise<QueryTokensResponse>;
|
|
18
|
+
/** TokensByOwner lists the tokens an address owns. */
|
|
19
|
+
tokensByOwner(request: QueryTokensByOwnerRequest): Promise<QueryTokensByOwnerResponse>;
|
|
20
|
+
/** Owner returns a token's owner. */
|
|
21
|
+
owner(request: QueryOwnerRequest): Promise<QueryOwnerResponse>;
|
|
22
|
+
/** Supply returns a class's supply counters. */
|
|
23
|
+
supply(request: QuerySupplyRequest): Promise<QuerySupplyResponse>;
|
|
24
|
+
/** Listing returns a token's active listing. */
|
|
25
|
+
listing(request: QueryListingRequest): Promise<QueryListingResponse>;
|
|
26
|
+
/** Listings lists active listings, optionally for one class. */
|
|
27
|
+
listings(request: QueryListingsRequest): Promise<QueryListingsResponse>;
|
|
28
|
+
/** ListingsBySeller lists a seller's active listings. */
|
|
29
|
+
listingsBySeller(request: QueryListingsBySellerRequest): Promise<QueryListingsBySellerResponse>;
|
|
30
|
+
/** Inbox lists an address's open incoming items. */
|
|
31
|
+
inbox(request: QueryInboxRequest): Promise<QueryInboxResponse>;
|
|
32
|
+
/** Outbox lists an address's open outgoing items. */
|
|
33
|
+
outbox(request: QueryOutboxRequest): Promise<QueryOutboxResponse>;
|
|
34
|
+
/** ReceivePolicy returns an address's effective receive policy. */
|
|
35
|
+
receivePolicy(request: QueryReceivePolicyRequest): Promise<QueryReceivePolicyResponse>;
|
|
36
|
+
/** PendingClassOwner returns a class's open handover proposal. */
|
|
37
|
+
pendingClassOwner(request: QueryPendingClassOwnerRequest): Promise<QueryPendingClassOwnerResponse>;
|
|
38
|
+
/** HideRecord returns one hide record. */
|
|
39
|
+
hideRecord(request: QueryHideRecordRequest): Promise<QueryHideRecordResponse>;
|
|
40
|
+
/** HideRecordsByTarget lists every hide record for a class (token_id 0) or token. */
|
|
41
|
+
hideRecordsByTarget(request: QueryHideRecordsByTargetRequest): Promise<QueryHideRecordsByTargetResponse>;
|
|
42
|
+
/** PublicMintQuote prices a public mint. */
|
|
43
|
+
publicMintQuote(request: QueryPublicMintQuoteRequest): Promise<QueryPublicMintQuoteResponse>;
|
|
44
|
+
}
|
|
45
|
+
export declare class QueryClientImpl implements Query {
|
|
46
|
+
private readonly rpc;
|
|
47
|
+
constructor(rpc: TxRpc);
|
|
48
|
+
params: (request?: QueryParamsRequest) => Promise<QueryParamsResponse>;
|
|
49
|
+
class: (request: QueryClassRequest) => Promise<QueryClassResponse>;
|
|
50
|
+
classes: (request?: QueryClassesRequest) => Promise<QueryClassesResponse>;
|
|
51
|
+
classesByOwner: (request: QueryClassesByOwnerRequest) => Promise<QueryClassesByOwnerResponse>;
|
|
52
|
+
token: (request: QueryTokenRequest) => Promise<QueryTokenResponse>;
|
|
53
|
+
tokens: (request: QueryTokensRequest) => Promise<QueryTokensResponse>;
|
|
54
|
+
tokensByOwner: (request: QueryTokensByOwnerRequest) => Promise<QueryTokensByOwnerResponse>;
|
|
55
|
+
owner: (request: QueryOwnerRequest) => Promise<QueryOwnerResponse>;
|
|
56
|
+
supply: (request: QuerySupplyRequest) => Promise<QuerySupplyResponse>;
|
|
57
|
+
listing: (request: QueryListingRequest) => Promise<QueryListingResponse>;
|
|
58
|
+
listings: (request: QueryListingsRequest) => Promise<QueryListingsResponse>;
|
|
59
|
+
listingsBySeller: (request: QueryListingsBySellerRequest) => Promise<QueryListingsBySellerResponse>;
|
|
60
|
+
inbox: (request: QueryInboxRequest) => Promise<QueryInboxResponse>;
|
|
61
|
+
outbox: (request: QueryOutboxRequest) => Promise<QueryOutboxResponse>;
|
|
62
|
+
receivePolicy: (request: QueryReceivePolicyRequest) => Promise<QueryReceivePolicyResponse>;
|
|
63
|
+
pendingClassOwner: (request: QueryPendingClassOwnerRequest) => Promise<QueryPendingClassOwnerResponse>;
|
|
64
|
+
hideRecord: (request: QueryHideRecordRequest) => Promise<QueryHideRecordResponse>;
|
|
65
|
+
hideRecordsByTarget: (request: QueryHideRecordsByTargetRequest) => Promise<QueryHideRecordsByTargetResponse>;
|
|
66
|
+
publicMintQuote: (request: QueryPublicMintQuoteRequest) => Promise<QueryPublicMintQuoteResponse>;
|
|
67
|
+
}
|
|
68
|
+
export declare const createRpcQueryExtension: (base: QueryClient) => {
|
|
69
|
+
params(request?: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
70
|
+
class(request: QueryClassRequest): Promise<QueryClassResponse>;
|
|
71
|
+
classes(request?: QueryClassesRequest): Promise<QueryClassesResponse>;
|
|
72
|
+
classesByOwner(request: QueryClassesByOwnerRequest): Promise<QueryClassesByOwnerResponse>;
|
|
73
|
+
token(request: QueryTokenRequest): Promise<QueryTokenResponse>;
|
|
74
|
+
tokens(request: QueryTokensRequest): Promise<QueryTokensResponse>;
|
|
75
|
+
tokensByOwner(request: QueryTokensByOwnerRequest): Promise<QueryTokensByOwnerResponse>;
|
|
76
|
+
owner(request: QueryOwnerRequest): Promise<QueryOwnerResponse>;
|
|
77
|
+
supply(request: QuerySupplyRequest): Promise<QuerySupplyResponse>;
|
|
78
|
+
listing(request: QueryListingRequest): Promise<QueryListingResponse>;
|
|
79
|
+
listings(request: QueryListingsRequest): Promise<QueryListingsResponse>;
|
|
80
|
+
listingsBySeller(request: QueryListingsBySellerRequest): Promise<QueryListingsBySellerResponse>;
|
|
81
|
+
inbox(request: QueryInboxRequest): Promise<QueryInboxResponse>;
|
|
82
|
+
outbox(request: QueryOutboxRequest): Promise<QueryOutboxResponse>;
|
|
83
|
+
receivePolicy(request: QueryReceivePolicyRequest): Promise<QueryReceivePolicyResponse>;
|
|
84
|
+
pendingClassOwner(request: QueryPendingClassOwnerRequest): Promise<QueryPendingClassOwnerResponse>;
|
|
85
|
+
hideRecord(request: QueryHideRecordRequest): Promise<QueryHideRecordResponse>;
|
|
86
|
+
hideRecordsByTarget(request: QueryHideRecordsByTargetRequest): Promise<QueryHideRecordsByTargetResponse>;
|
|
87
|
+
publicMintQuote(request: QueryPublicMintQuoteRequest): Promise<QueryPublicMintQuoteResponse>;
|
|
88
|
+
};
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createRpcQueryExtension = exports.QueryClientImpl = void 0;
|
|
4
|
+
const binary_1 = require("../../../binary");
|
|
5
|
+
const stargate_1 = require("@cosmjs/stargate");
|
|
6
|
+
const query_1 = require("./query");
|
|
7
|
+
class QueryClientImpl {
|
|
8
|
+
rpc;
|
|
9
|
+
constructor(rpc) {
|
|
10
|
+
this.rpc = rpc;
|
|
11
|
+
}
|
|
12
|
+
/* Parameters queries the parameters of the module. */
|
|
13
|
+
params = async (request = {}) => {
|
|
14
|
+
const data = query_1.QueryParamsRequest.encode(request).finish();
|
|
15
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Params", data);
|
|
16
|
+
return promise.then(data => query_1.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
17
|
+
};
|
|
18
|
+
/* Class returns one class. */
|
|
19
|
+
class = async (request) => {
|
|
20
|
+
const data = query_1.QueryClassRequest.encode(request).finish();
|
|
21
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Class", data);
|
|
22
|
+
return promise.then(data => query_1.QueryClassResponse.decode(new binary_1.BinaryReader(data)));
|
|
23
|
+
};
|
|
24
|
+
/* Classes lists all classes. */
|
|
25
|
+
classes = async (request = {
|
|
26
|
+
pagination: undefined
|
|
27
|
+
}) => {
|
|
28
|
+
const data = query_1.QueryClassesRequest.encode(request).finish();
|
|
29
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Classes", data);
|
|
30
|
+
return promise.then(data => query_1.QueryClassesResponse.decode(new binary_1.BinaryReader(data)));
|
|
31
|
+
};
|
|
32
|
+
/* ClassesByOwner lists the classes an address owns. */
|
|
33
|
+
classesByOwner = async (request) => {
|
|
34
|
+
const data = query_1.QueryClassesByOwnerRequest.encode(request).finish();
|
|
35
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "ClassesByOwner", data);
|
|
36
|
+
return promise.then(data => query_1.QueryClassesByOwnerResponse.decode(new binary_1.BinaryReader(data)));
|
|
37
|
+
};
|
|
38
|
+
/* Token returns one token. */
|
|
39
|
+
token = async (request) => {
|
|
40
|
+
const data = query_1.QueryTokenRequest.encode(request).finish();
|
|
41
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Token", data);
|
|
42
|
+
return promise.then(data => query_1.QueryTokenResponse.decode(new binary_1.BinaryReader(data)));
|
|
43
|
+
};
|
|
44
|
+
/* Tokens lists the tokens of a class. */
|
|
45
|
+
tokens = async (request) => {
|
|
46
|
+
const data = query_1.QueryTokensRequest.encode(request).finish();
|
|
47
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Tokens", data);
|
|
48
|
+
return promise.then(data => query_1.QueryTokensResponse.decode(new binary_1.BinaryReader(data)));
|
|
49
|
+
};
|
|
50
|
+
/* TokensByOwner lists the tokens an address owns. */
|
|
51
|
+
tokensByOwner = async (request) => {
|
|
52
|
+
const data = query_1.QueryTokensByOwnerRequest.encode(request).finish();
|
|
53
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "TokensByOwner", data);
|
|
54
|
+
return promise.then(data => query_1.QueryTokensByOwnerResponse.decode(new binary_1.BinaryReader(data)));
|
|
55
|
+
};
|
|
56
|
+
/* Owner returns a token's owner. */
|
|
57
|
+
owner = async (request) => {
|
|
58
|
+
const data = query_1.QueryOwnerRequest.encode(request).finish();
|
|
59
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Owner", data);
|
|
60
|
+
return promise.then(data => query_1.QueryOwnerResponse.decode(new binary_1.BinaryReader(data)));
|
|
61
|
+
};
|
|
62
|
+
/* Supply returns a class's supply counters. */
|
|
63
|
+
supply = async (request) => {
|
|
64
|
+
const data = query_1.QuerySupplyRequest.encode(request).finish();
|
|
65
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Supply", data);
|
|
66
|
+
return promise.then(data => query_1.QuerySupplyResponse.decode(new binary_1.BinaryReader(data)));
|
|
67
|
+
};
|
|
68
|
+
/* Listing returns a token's active listing. */
|
|
69
|
+
listing = async (request) => {
|
|
70
|
+
const data = query_1.QueryListingRequest.encode(request).finish();
|
|
71
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Listing", data);
|
|
72
|
+
return promise.then(data => query_1.QueryListingResponse.decode(new binary_1.BinaryReader(data)));
|
|
73
|
+
};
|
|
74
|
+
/* Listings lists active listings, optionally for one class. */
|
|
75
|
+
listings = async (request) => {
|
|
76
|
+
const data = query_1.QueryListingsRequest.encode(request).finish();
|
|
77
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Listings", data);
|
|
78
|
+
return promise.then(data => query_1.QueryListingsResponse.decode(new binary_1.BinaryReader(data)));
|
|
79
|
+
};
|
|
80
|
+
/* ListingsBySeller lists a seller's active listings. */
|
|
81
|
+
listingsBySeller = async (request) => {
|
|
82
|
+
const data = query_1.QueryListingsBySellerRequest.encode(request).finish();
|
|
83
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "ListingsBySeller", data);
|
|
84
|
+
return promise.then(data => query_1.QueryListingsBySellerResponse.decode(new binary_1.BinaryReader(data)));
|
|
85
|
+
};
|
|
86
|
+
/* Inbox lists an address's open incoming items. */
|
|
87
|
+
inbox = async (request) => {
|
|
88
|
+
const data = query_1.QueryInboxRequest.encode(request).finish();
|
|
89
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Inbox", data);
|
|
90
|
+
return promise.then(data => query_1.QueryInboxResponse.decode(new binary_1.BinaryReader(data)));
|
|
91
|
+
};
|
|
92
|
+
/* Outbox lists an address's open outgoing items. */
|
|
93
|
+
outbox = async (request) => {
|
|
94
|
+
const data = query_1.QueryOutboxRequest.encode(request).finish();
|
|
95
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "Outbox", data);
|
|
96
|
+
return promise.then(data => query_1.QueryOutboxResponse.decode(new binary_1.BinaryReader(data)));
|
|
97
|
+
};
|
|
98
|
+
/* ReceivePolicy returns an address's effective receive policy. */
|
|
99
|
+
receivePolicy = async (request) => {
|
|
100
|
+
const data = query_1.QueryReceivePolicyRequest.encode(request).finish();
|
|
101
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "ReceivePolicy", data);
|
|
102
|
+
return promise.then(data => query_1.QueryReceivePolicyResponse.decode(new binary_1.BinaryReader(data)));
|
|
103
|
+
};
|
|
104
|
+
/* PendingClassOwner returns a class's open handover proposal. */
|
|
105
|
+
pendingClassOwner = async (request) => {
|
|
106
|
+
const data = query_1.QueryPendingClassOwnerRequest.encode(request).finish();
|
|
107
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "PendingClassOwner", data);
|
|
108
|
+
return promise.then(data => query_1.QueryPendingClassOwnerResponse.decode(new binary_1.BinaryReader(data)));
|
|
109
|
+
};
|
|
110
|
+
/* HideRecord returns one hide record. */
|
|
111
|
+
hideRecord = async (request) => {
|
|
112
|
+
const data = query_1.QueryHideRecordRequest.encode(request).finish();
|
|
113
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "HideRecord", data);
|
|
114
|
+
return promise.then(data => query_1.QueryHideRecordResponse.decode(new binary_1.BinaryReader(data)));
|
|
115
|
+
};
|
|
116
|
+
/* HideRecordsByTarget lists every hide record for a class (token_id 0) or token. */
|
|
117
|
+
hideRecordsByTarget = async (request) => {
|
|
118
|
+
const data = query_1.QueryHideRecordsByTargetRequest.encode(request).finish();
|
|
119
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "HideRecordsByTarget", data);
|
|
120
|
+
return promise.then(data => query_1.QueryHideRecordsByTargetResponse.decode(new binary_1.BinaryReader(data)));
|
|
121
|
+
};
|
|
122
|
+
/* PublicMintQuote prices a public mint. */
|
|
123
|
+
publicMintQuote = async (request) => {
|
|
124
|
+
const data = query_1.QueryPublicMintQuoteRequest.encode(request).finish();
|
|
125
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "PublicMintQuote", data);
|
|
126
|
+
return promise.then(data => query_1.QueryPublicMintQuoteResponse.decode(new binary_1.BinaryReader(data)));
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
130
|
+
const createRpcQueryExtension = (base) => {
|
|
131
|
+
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|
|
132
|
+
const queryService = new QueryClientImpl(rpc);
|
|
133
|
+
return {
|
|
134
|
+
params(request) {
|
|
135
|
+
return queryService.params(request);
|
|
136
|
+
},
|
|
137
|
+
class(request) {
|
|
138
|
+
return queryService.class(request);
|
|
139
|
+
},
|
|
140
|
+
classes(request) {
|
|
141
|
+
return queryService.classes(request);
|
|
142
|
+
},
|
|
143
|
+
classesByOwner(request) {
|
|
144
|
+
return queryService.classesByOwner(request);
|
|
145
|
+
},
|
|
146
|
+
token(request) {
|
|
147
|
+
return queryService.token(request);
|
|
148
|
+
},
|
|
149
|
+
tokens(request) {
|
|
150
|
+
return queryService.tokens(request);
|
|
151
|
+
},
|
|
152
|
+
tokensByOwner(request) {
|
|
153
|
+
return queryService.tokensByOwner(request);
|
|
154
|
+
},
|
|
155
|
+
owner(request) {
|
|
156
|
+
return queryService.owner(request);
|
|
157
|
+
},
|
|
158
|
+
supply(request) {
|
|
159
|
+
return queryService.supply(request);
|
|
160
|
+
},
|
|
161
|
+
listing(request) {
|
|
162
|
+
return queryService.listing(request);
|
|
163
|
+
},
|
|
164
|
+
listings(request) {
|
|
165
|
+
return queryService.listings(request);
|
|
166
|
+
},
|
|
167
|
+
listingsBySeller(request) {
|
|
168
|
+
return queryService.listingsBySeller(request);
|
|
169
|
+
},
|
|
170
|
+
inbox(request) {
|
|
171
|
+
return queryService.inbox(request);
|
|
172
|
+
},
|
|
173
|
+
outbox(request) {
|
|
174
|
+
return queryService.outbox(request);
|
|
175
|
+
},
|
|
176
|
+
receivePolicy(request) {
|
|
177
|
+
return queryService.receivePolicy(request);
|
|
178
|
+
},
|
|
179
|
+
pendingClassOwner(request) {
|
|
180
|
+
return queryService.pendingClassOwner(request);
|
|
181
|
+
},
|
|
182
|
+
hideRecord(request) {
|
|
183
|
+
return queryService.hideRecord(request);
|
|
184
|
+
},
|
|
185
|
+
hideRecordsByTarget(request) {
|
|
186
|
+
return queryService.hideRecordsByTarget(request);
|
|
187
|
+
},
|
|
188
|
+
publicMintQuote(request) {
|
|
189
|
+
return queryService.publicMintQuote(request);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
exports.createRpcQueryExtension = createRpcQueryExtension;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { MsgUpdateParams, MsgCreateClass, MsgUpdateClass, MsgFreezeClassMetadata, MsgSetMintPolicy, MsgSetMinters, MsgSetMaxSupply, MsgCloseMinting, MsgProposeClassOwner, MsgAcceptClassOwner, MsgCancelClassOwner, MsgDeleteClass, MsgMint, MsgPublicMint, MsgTransfer, MsgAcceptIncoming, MsgRejectIncoming, MsgCancelOutgoing, MsgSetReceivePolicy, MsgBurn, MsgRevoke, MsgUpdateToken, MsgFreezeTokenMetadata, MsgList, MsgUpdateListing, MsgDelist, MsgBuy, MsgHideContent, MsgUnhideContent, MsgAppealHide, MsgUpdateOperationalParams } from "./tx";
|
|
2
|
+
export declare const AminoConverter: {
|
|
3
|
+
"/sparkdream.artifact.v1.MsgUpdateParams": {
|
|
4
|
+
aminoType: string;
|
|
5
|
+
toAmino: (message: MsgUpdateParams) => import("./tx").MsgUpdateParamsAmino;
|
|
6
|
+
fromAmino: (object: import("./tx").MsgUpdateParamsAmino) => MsgUpdateParams;
|
|
7
|
+
};
|
|
8
|
+
"/sparkdream.artifact.v1.MsgCreateClass": {
|
|
9
|
+
aminoType: string;
|
|
10
|
+
toAmino: (message: MsgCreateClass) => import("./tx").MsgCreateClassAmino;
|
|
11
|
+
fromAmino: (object: import("./tx").MsgCreateClassAmino) => MsgCreateClass;
|
|
12
|
+
};
|
|
13
|
+
"/sparkdream.artifact.v1.MsgUpdateClass": {
|
|
14
|
+
aminoType: string;
|
|
15
|
+
toAmino: (message: MsgUpdateClass) => import("./tx").MsgUpdateClassAmino;
|
|
16
|
+
fromAmino: (object: import("./tx").MsgUpdateClassAmino) => MsgUpdateClass;
|
|
17
|
+
};
|
|
18
|
+
"/sparkdream.artifact.v1.MsgFreezeClassMetadata": {
|
|
19
|
+
aminoType: string;
|
|
20
|
+
toAmino: (message: MsgFreezeClassMetadata) => import("./tx").MsgFreezeClassMetadataAmino;
|
|
21
|
+
fromAmino: (object: import("./tx").MsgFreezeClassMetadataAmino) => MsgFreezeClassMetadata;
|
|
22
|
+
};
|
|
23
|
+
"/sparkdream.artifact.v1.MsgSetMintPolicy": {
|
|
24
|
+
aminoType: string;
|
|
25
|
+
toAmino: (message: MsgSetMintPolicy) => import("./tx").MsgSetMintPolicyAmino;
|
|
26
|
+
fromAmino: (object: import("./tx").MsgSetMintPolicyAmino) => MsgSetMintPolicy;
|
|
27
|
+
};
|
|
28
|
+
"/sparkdream.artifact.v1.MsgSetMinters": {
|
|
29
|
+
aminoType: string;
|
|
30
|
+
toAmino: (message: MsgSetMinters) => import("./tx").MsgSetMintersAmino;
|
|
31
|
+
fromAmino: (object: import("./tx").MsgSetMintersAmino) => MsgSetMinters;
|
|
32
|
+
};
|
|
33
|
+
"/sparkdream.artifact.v1.MsgSetMaxSupply": {
|
|
34
|
+
aminoType: string;
|
|
35
|
+
toAmino: (message: MsgSetMaxSupply) => import("./tx").MsgSetMaxSupplyAmino;
|
|
36
|
+
fromAmino: (object: import("./tx").MsgSetMaxSupplyAmino) => MsgSetMaxSupply;
|
|
37
|
+
};
|
|
38
|
+
"/sparkdream.artifact.v1.MsgCloseMinting": {
|
|
39
|
+
aminoType: string;
|
|
40
|
+
toAmino: (message: MsgCloseMinting) => import("./tx").MsgCloseMintingAmino;
|
|
41
|
+
fromAmino: (object: import("./tx").MsgCloseMintingAmino) => MsgCloseMinting;
|
|
42
|
+
};
|
|
43
|
+
"/sparkdream.artifact.v1.MsgProposeClassOwner": {
|
|
44
|
+
aminoType: string;
|
|
45
|
+
toAmino: (message: MsgProposeClassOwner) => import("./tx").MsgProposeClassOwnerAmino;
|
|
46
|
+
fromAmino: (object: import("./tx").MsgProposeClassOwnerAmino) => MsgProposeClassOwner;
|
|
47
|
+
};
|
|
48
|
+
"/sparkdream.artifact.v1.MsgAcceptClassOwner": {
|
|
49
|
+
aminoType: string;
|
|
50
|
+
toAmino: (message: MsgAcceptClassOwner) => import("./tx").MsgAcceptClassOwnerAmino;
|
|
51
|
+
fromAmino: (object: import("./tx").MsgAcceptClassOwnerAmino) => MsgAcceptClassOwner;
|
|
52
|
+
};
|
|
53
|
+
"/sparkdream.artifact.v1.MsgCancelClassOwner": {
|
|
54
|
+
aminoType: string;
|
|
55
|
+
toAmino: (message: MsgCancelClassOwner) => import("./tx").MsgCancelClassOwnerAmino;
|
|
56
|
+
fromAmino: (object: import("./tx").MsgCancelClassOwnerAmino) => MsgCancelClassOwner;
|
|
57
|
+
};
|
|
58
|
+
"/sparkdream.artifact.v1.MsgDeleteClass": {
|
|
59
|
+
aminoType: string;
|
|
60
|
+
toAmino: (message: MsgDeleteClass) => import("./tx").MsgDeleteClassAmino;
|
|
61
|
+
fromAmino: (object: import("./tx").MsgDeleteClassAmino) => MsgDeleteClass;
|
|
62
|
+
};
|
|
63
|
+
"/sparkdream.artifact.v1.MsgMint": {
|
|
64
|
+
aminoType: string;
|
|
65
|
+
toAmino: (message: MsgMint) => import("./tx").MsgMintAmino;
|
|
66
|
+
fromAmino: (object: import("./tx").MsgMintAmino) => MsgMint;
|
|
67
|
+
};
|
|
68
|
+
"/sparkdream.artifact.v1.MsgPublicMint": {
|
|
69
|
+
aminoType: string;
|
|
70
|
+
toAmino: (message: MsgPublicMint) => import("./tx").MsgPublicMintAmino;
|
|
71
|
+
fromAmino: (object: import("./tx").MsgPublicMintAmino) => MsgPublicMint;
|
|
72
|
+
};
|
|
73
|
+
"/sparkdream.artifact.v1.MsgTransfer": {
|
|
74
|
+
aminoType: string;
|
|
75
|
+
toAmino: (message: MsgTransfer) => import("./tx").MsgTransferAmino;
|
|
76
|
+
fromAmino: (object: import("./tx").MsgTransferAmino) => MsgTransfer;
|
|
77
|
+
};
|
|
78
|
+
"/sparkdream.artifact.v1.MsgAcceptIncoming": {
|
|
79
|
+
aminoType: string;
|
|
80
|
+
toAmino: (message: MsgAcceptIncoming) => import("./tx").MsgAcceptIncomingAmino;
|
|
81
|
+
fromAmino: (object: import("./tx").MsgAcceptIncomingAmino) => MsgAcceptIncoming;
|
|
82
|
+
};
|
|
83
|
+
"/sparkdream.artifact.v1.MsgRejectIncoming": {
|
|
84
|
+
aminoType: string;
|
|
85
|
+
toAmino: (message: MsgRejectIncoming) => import("./tx").MsgRejectIncomingAmino;
|
|
86
|
+
fromAmino: (object: import("./tx").MsgRejectIncomingAmino) => MsgRejectIncoming;
|
|
87
|
+
};
|
|
88
|
+
"/sparkdream.artifact.v1.MsgCancelOutgoing": {
|
|
89
|
+
aminoType: string;
|
|
90
|
+
toAmino: (message: MsgCancelOutgoing) => import("./tx").MsgCancelOutgoingAmino;
|
|
91
|
+
fromAmino: (object: import("./tx").MsgCancelOutgoingAmino) => MsgCancelOutgoing;
|
|
92
|
+
};
|
|
93
|
+
"/sparkdream.artifact.v1.MsgSetReceivePolicy": {
|
|
94
|
+
aminoType: string;
|
|
95
|
+
toAmino: (message: MsgSetReceivePolicy) => import("./tx").MsgSetReceivePolicyAmino;
|
|
96
|
+
fromAmino: (object: import("./tx").MsgSetReceivePolicyAmino) => MsgSetReceivePolicy;
|
|
97
|
+
};
|
|
98
|
+
"/sparkdream.artifact.v1.MsgBurn": {
|
|
99
|
+
aminoType: string;
|
|
100
|
+
toAmino: (message: MsgBurn) => import("./tx").MsgBurnAmino;
|
|
101
|
+
fromAmino: (object: import("./tx").MsgBurnAmino) => MsgBurn;
|
|
102
|
+
};
|
|
103
|
+
"/sparkdream.artifact.v1.MsgRevoke": {
|
|
104
|
+
aminoType: string;
|
|
105
|
+
toAmino: (message: MsgRevoke) => import("./tx").MsgRevokeAmino;
|
|
106
|
+
fromAmino: (object: import("./tx").MsgRevokeAmino) => MsgRevoke;
|
|
107
|
+
};
|
|
108
|
+
"/sparkdream.artifact.v1.MsgUpdateToken": {
|
|
109
|
+
aminoType: string;
|
|
110
|
+
toAmino: (message: MsgUpdateToken) => import("./tx").MsgUpdateTokenAmino;
|
|
111
|
+
fromAmino: (object: import("./tx").MsgUpdateTokenAmino) => MsgUpdateToken;
|
|
112
|
+
};
|
|
113
|
+
"/sparkdream.artifact.v1.MsgFreezeTokenMetadata": {
|
|
114
|
+
aminoType: string;
|
|
115
|
+
toAmino: (message: MsgFreezeTokenMetadata) => import("./tx").MsgFreezeTokenMetadataAmino;
|
|
116
|
+
fromAmino: (object: import("./tx").MsgFreezeTokenMetadataAmino) => MsgFreezeTokenMetadata;
|
|
117
|
+
};
|
|
118
|
+
"/sparkdream.artifact.v1.MsgList": {
|
|
119
|
+
aminoType: string;
|
|
120
|
+
toAmino: (message: MsgList) => import("./tx").MsgListAmino;
|
|
121
|
+
fromAmino: (object: import("./tx").MsgListAmino) => MsgList;
|
|
122
|
+
};
|
|
123
|
+
"/sparkdream.artifact.v1.MsgUpdateListing": {
|
|
124
|
+
aminoType: string;
|
|
125
|
+
toAmino: (message: MsgUpdateListing) => import("./tx").MsgUpdateListingAmino;
|
|
126
|
+
fromAmino: (object: import("./tx").MsgUpdateListingAmino) => MsgUpdateListing;
|
|
127
|
+
};
|
|
128
|
+
"/sparkdream.artifact.v1.MsgDelist": {
|
|
129
|
+
aminoType: string;
|
|
130
|
+
toAmino: (message: MsgDelist) => import("./tx").MsgDelistAmino;
|
|
131
|
+
fromAmino: (object: import("./tx").MsgDelistAmino) => MsgDelist;
|
|
132
|
+
};
|
|
133
|
+
"/sparkdream.artifact.v1.MsgBuy": {
|
|
134
|
+
aminoType: string;
|
|
135
|
+
toAmino: (message: MsgBuy) => import("./tx").MsgBuyAmino;
|
|
136
|
+
fromAmino: (object: import("./tx").MsgBuyAmino) => MsgBuy;
|
|
137
|
+
};
|
|
138
|
+
"/sparkdream.artifact.v1.MsgHideContent": {
|
|
139
|
+
aminoType: string;
|
|
140
|
+
toAmino: (message: MsgHideContent) => import("./tx").MsgHideContentAmino;
|
|
141
|
+
fromAmino: (object: import("./tx").MsgHideContentAmino) => MsgHideContent;
|
|
142
|
+
};
|
|
143
|
+
"/sparkdream.artifact.v1.MsgUnhideContent": {
|
|
144
|
+
aminoType: string;
|
|
145
|
+
toAmino: (message: MsgUnhideContent) => import("./tx").MsgUnhideContentAmino;
|
|
146
|
+
fromAmino: (object: import("./tx").MsgUnhideContentAmino) => MsgUnhideContent;
|
|
147
|
+
};
|
|
148
|
+
"/sparkdream.artifact.v1.MsgAppealHide": {
|
|
149
|
+
aminoType: string;
|
|
150
|
+
toAmino: (message: MsgAppealHide) => import("./tx").MsgAppealHideAmino;
|
|
151
|
+
fromAmino: (object: import("./tx").MsgAppealHideAmino) => MsgAppealHide;
|
|
152
|
+
};
|
|
153
|
+
"/sparkdream.artifact.v1.MsgUpdateOperationalParams": {
|
|
154
|
+
aminoType: string;
|
|
155
|
+
toAmino: (message: MsgUpdateOperationalParams) => import("./tx").MsgUpdateOperationalParamsAmino;
|
|
156
|
+
fromAmino: (object: import("./tx").MsgUpdateOperationalParamsAmino) => MsgUpdateOperationalParams;
|
|
157
|
+
};
|
|
158
|
+
};
|