@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.9
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/bundle.js +368 -332
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +244 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2629 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +152 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +189 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +139 -0
- package/esm/sparkdream/federation/v1/tx.js +4199 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +501 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +173 -0
- package/esm/sparkdream/federation/v1/types.js +2571 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/genesis.js +209 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5260 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +286 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +333 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/rep/v1/sentinel_activity.js +214 -0
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2439 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +102 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +13210 -11120
- package/sparkdream/bundle.js +368 -332
- package/sparkdream/client.d.ts +202 -57
- package/sparkdream/client.js +4 -1
- package/sparkdream/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +78 -0
- package/sparkdream/federation/v1/genesis.js +247 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1541 -0
- package/sparkdream/federation/v1/query.js +2632 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +26 -0
- package/sparkdream/federation/v1/query.lcd.js +156 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +66 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +194 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +138 -0
- package/sparkdream/federation/v1/tx.amino.js +142 -0
- package/sparkdream/federation/v1/tx.d.ts +2311 -0
- package/sparkdream/federation/v1/tx.js +4203 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +337 -0
- package/sparkdream/federation/v1/tx.registry.js +505 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +64 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +178 -0
- package/sparkdream/federation/v1/types.d.ts +906 -0
- package/sparkdream/federation/v1/types.js +2588 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/genesis.d.ts +68 -0
- package/sparkdream/rep/v1/genesis.js +209 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/{forum → rep}/v1/member_report.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4197 -1129
- package/sparkdream/rep/v1/query.js +5263 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +286 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +137 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +332 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/rep/v1/sentinel_activity.d.ts +79 -0
- package/sparkdream/rep/v1/sentinel_activity.js +219 -0
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1467 -0
- package/sparkdream/rep/v1/tx.js +2440 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +62 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +101 -0
- package/sparkdream/rpc.query.d.ts +58 -34
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -28,60 +28,6 @@ export class LCDQueryClient {
|
|
|
28
28
|
const endpoint = `sparkdream/forum/v1/post`;
|
|
29
29
|
return await this.req.get(endpoint, options);
|
|
30
30
|
};
|
|
31
|
-
/* ListCategory Queries a list of Category items. */
|
|
32
|
-
getCategory = async (params) => {
|
|
33
|
-
const endpoint = `sparkdream/forum/v1/category/${params.categoryId}`;
|
|
34
|
-
return await this.req.get(endpoint);
|
|
35
|
-
};
|
|
36
|
-
/* ListCategory defines the ListCategory RPC. */
|
|
37
|
-
listCategory = async (params = {
|
|
38
|
-
pagination: undefined
|
|
39
|
-
}) => {
|
|
40
|
-
const options = {
|
|
41
|
-
params: {}
|
|
42
|
-
};
|
|
43
|
-
if (typeof params?.pagination !== "undefined") {
|
|
44
|
-
setPaginationParams(options, params.pagination);
|
|
45
|
-
}
|
|
46
|
-
const endpoint = `sparkdream/forum/v1/category`;
|
|
47
|
-
return await this.req.get(endpoint, options);
|
|
48
|
-
};
|
|
49
|
-
/* ListTag Queries a list of Tag items. */
|
|
50
|
-
getTag = async (params) => {
|
|
51
|
-
const endpoint = `sparkdream/forum/v1/tag/${params.name}`;
|
|
52
|
-
return await this.req.get(endpoint);
|
|
53
|
-
};
|
|
54
|
-
/* ListTag defines the ListTag RPC. */
|
|
55
|
-
listTag = async (params = {
|
|
56
|
-
pagination: undefined
|
|
57
|
-
}) => {
|
|
58
|
-
const options = {
|
|
59
|
-
params: {}
|
|
60
|
-
};
|
|
61
|
-
if (typeof params?.pagination !== "undefined") {
|
|
62
|
-
setPaginationParams(options, params.pagination);
|
|
63
|
-
}
|
|
64
|
-
const endpoint = `sparkdream/forum/v1/tag`;
|
|
65
|
-
return await this.req.get(endpoint, options);
|
|
66
|
-
};
|
|
67
|
-
/* ListReservedTag Queries a list of ReservedTag items. */
|
|
68
|
-
getReservedTag = async (params) => {
|
|
69
|
-
const endpoint = `sparkdream/forum/v1/reserved_tag/${params.name}`;
|
|
70
|
-
return await this.req.get(endpoint);
|
|
71
|
-
};
|
|
72
|
-
/* ListReservedTag defines the ListReservedTag RPC. */
|
|
73
|
-
listReservedTag = async (params = {
|
|
74
|
-
pagination: undefined
|
|
75
|
-
}) => {
|
|
76
|
-
const options = {
|
|
77
|
-
params: {}
|
|
78
|
-
};
|
|
79
|
-
if (typeof params?.pagination !== "undefined") {
|
|
80
|
-
setPaginationParams(options, params.pagination);
|
|
81
|
-
}
|
|
82
|
-
const endpoint = `sparkdream/forum/v1/reserved_tag`;
|
|
83
|
-
return await this.req.get(endpoint, options);
|
|
84
|
-
};
|
|
85
31
|
/* ListUserRateLimit Queries a list of UserRateLimit items. */
|
|
86
32
|
getUserRateLimit = async (params) => {
|
|
87
33
|
const endpoint = `sparkdream/forum/v1/user_rate_limit/${params.userAddress}`;
|
|
@@ -226,42 +172,6 @@ export class LCDQueryClient {
|
|
|
226
172
|
const endpoint = `sparkdream/forum/v1/bounty`;
|
|
227
173
|
return await this.req.get(endpoint, options);
|
|
228
174
|
};
|
|
229
|
-
/* ListTagBudget Queries a list of TagBudget items. */
|
|
230
|
-
getTagBudget = async (params) => {
|
|
231
|
-
const endpoint = `sparkdream/forum/v1/tag_budget/${params.id}`;
|
|
232
|
-
return await this.req.get(endpoint);
|
|
233
|
-
};
|
|
234
|
-
/* ListTagBudget defines the ListTagBudget RPC. */
|
|
235
|
-
listTagBudget = async (params = {
|
|
236
|
-
pagination: undefined
|
|
237
|
-
}) => {
|
|
238
|
-
const options = {
|
|
239
|
-
params: {}
|
|
240
|
-
};
|
|
241
|
-
if (typeof params?.pagination !== "undefined") {
|
|
242
|
-
setPaginationParams(options, params.pagination);
|
|
243
|
-
}
|
|
244
|
-
const endpoint = `sparkdream/forum/v1/tag_budget`;
|
|
245
|
-
return await this.req.get(endpoint, options);
|
|
246
|
-
};
|
|
247
|
-
/* ListTagBudgetAward Queries a list of TagBudgetAward items. */
|
|
248
|
-
getTagBudgetAward = async (params) => {
|
|
249
|
-
const endpoint = `sparkdream/forum/v1/tag_budget_award/${params.id}`;
|
|
250
|
-
return await this.req.get(endpoint);
|
|
251
|
-
};
|
|
252
|
-
/* ListTagBudgetAward defines the ListTagBudgetAward RPC. */
|
|
253
|
-
listTagBudgetAward = async (params = {
|
|
254
|
-
pagination: undefined
|
|
255
|
-
}) => {
|
|
256
|
-
const options = {
|
|
257
|
-
params: {}
|
|
258
|
-
};
|
|
259
|
-
if (typeof params?.pagination !== "undefined") {
|
|
260
|
-
setPaginationParams(options, params.pagination);
|
|
261
|
-
}
|
|
262
|
-
const endpoint = `sparkdream/forum/v1/tag_budget_award`;
|
|
263
|
-
return await this.req.get(endpoint, options);
|
|
264
|
-
};
|
|
265
175
|
/* ListThreadMetadata Queries a list of ThreadMetadata items. */
|
|
266
176
|
getThreadMetadata = async (params) => {
|
|
267
177
|
const endpoint = `sparkdream/forum/v1/thread_metadata/${params.threadId}`;
|
|
@@ -334,114 +244,6 @@ export class LCDQueryClient {
|
|
|
334
244
|
const endpoint = `sparkdream/forum/v1/archive_metadata`;
|
|
335
245
|
return await this.req.get(endpoint, options);
|
|
336
246
|
};
|
|
337
|
-
/* ListTagReport Queries a list of TagReport items. */
|
|
338
|
-
getTagReport = async (params) => {
|
|
339
|
-
const endpoint = `sparkdream/forum/v1/tag_report/${params.tagName}`;
|
|
340
|
-
return await this.req.get(endpoint);
|
|
341
|
-
};
|
|
342
|
-
/* ListTagReport defines the ListTagReport RPC. */
|
|
343
|
-
listTagReport = async (params = {
|
|
344
|
-
pagination: undefined
|
|
345
|
-
}) => {
|
|
346
|
-
const options = {
|
|
347
|
-
params: {}
|
|
348
|
-
};
|
|
349
|
-
if (typeof params?.pagination !== "undefined") {
|
|
350
|
-
setPaginationParams(options, params.pagination);
|
|
351
|
-
}
|
|
352
|
-
const endpoint = `sparkdream/forum/v1/tag_report`;
|
|
353
|
-
return await this.req.get(endpoint, options);
|
|
354
|
-
};
|
|
355
|
-
/* ListMemberSalvationStatus Queries a list of MemberSalvationStatus items. */
|
|
356
|
-
getMemberSalvationStatus = async (params) => {
|
|
357
|
-
const endpoint = `sparkdream/forum/v1/member_salvation_status/${params.address}`;
|
|
358
|
-
return await this.req.get(endpoint);
|
|
359
|
-
};
|
|
360
|
-
/* ListMemberSalvationStatus defines the ListMemberSalvationStatus RPC. */
|
|
361
|
-
listMemberSalvationStatus = async (params = {
|
|
362
|
-
pagination: undefined
|
|
363
|
-
}) => {
|
|
364
|
-
const options = {
|
|
365
|
-
params: {}
|
|
366
|
-
};
|
|
367
|
-
if (typeof params?.pagination !== "undefined") {
|
|
368
|
-
setPaginationParams(options, params.pagination);
|
|
369
|
-
}
|
|
370
|
-
const endpoint = `sparkdream/forum/v1/member_salvation_status`;
|
|
371
|
-
return await this.req.get(endpoint, options);
|
|
372
|
-
};
|
|
373
|
-
/* ListJuryParticipation Queries a list of JuryParticipation items. */
|
|
374
|
-
getJuryParticipation = async (params) => {
|
|
375
|
-
const endpoint = `sparkdream/forum/v1/jury_participation/${params.juror}`;
|
|
376
|
-
return await this.req.get(endpoint);
|
|
377
|
-
};
|
|
378
|
-
/* ListJuryParticipation defines the ListJuryParticipation RPC. */
|
|
379
|
-
listJuryParticipation = async (params = {
|
|
380
|
-
pagination: undefined
|
|
381
|
-
}) => {
|
|
382
|
-
const options = {
|
|
383
|
-
params: {}
|
|
384
|
-
};
|
|
385
|
-
if (typeof params?.pagination !== "undefined") {
|
|
386
|
-
setPaginationParams(options, params.pagination);
|
|
387
|
-
}
|
|
388
|
-
const endpoint = `sparkdream/forum/v1/jury_participation`;
|
|
389
|
-
return await this.req.get(endpoint, options);
|
|
390
|
-
};
|
|
391
|
-
/* ListMemberReport Queries a list of MemberReport items. */
|
|
392
|
-
getMemberReport = async (params) => {
|
|
393
|
-
const endpoint = `sparkdream/forum/v1/member_report/${params.member}`;
|
|
394
|
-
return await this.req.get(endpoint);
|
|
395
|
-
};
|
|
396
|
-
/* ListMemberReport defines the ListMemberReport RPC. */
|
|
397
|
-
listMemberReport = async (params = {
|
|
398
|
-
pagination: undefined
|
|
399
|
-
}) => {
|
|
400
|
-
const options = {
|
|
401
|
-
params: {}
|
|
402
|
-
};
|
|
403
|
-
if (typeof params?.pagination !== "undefined") {
|
|
404
|
-
setPaginationParams(options, params.pagination);
|
|
405
|
-
}
|
|
406
|
-
const endpoint = `sparkdream/forum/v1/member_report`;
|
|
407
|
-
return await this.req.get(endpoint, options);
|
|
408
|
-
};
|
|
409
|
-
/* ListMemberWarning Queries a list of MemberWarning items. */
|
|
410
|
-
getMemberWarning = async (params) => {
|
|
411
|
-
const endpoint = `sparkdream/forum/v1/member_warning/${params.id}`;
|
|
412
|
-
return await this.req.get(endpoint);
|
|
413
|
-
};
|
|
414
|
-
/* ListMemberWarning defines the ListMemberWarning RPC. */
|
|
415
|
-
listMemberWarning = async (params = {
|
|
416
|
-
pagination: undefined
|
|
417
|
-
}) => {
|
|
418
|
-
const options = {
|
|
419
|
-
params: {}
|
|
420
|
-
};
|
|
421
|
-
if (typeof params?.pagination !== "undefined") {
|
|
422
|
-
setPaginationParams(options, params.pagination);
|
|
423
|
-
}
|
|
424
|
-
const endpoint = `sparkdream/forum/v1/member_warning`;
|
|
425
|
-
return await this.req.get(endpoint, options);
|
|
426
|
-
};
|
|
427
|
-
/* ListGovActionAppeal Queries a list of GovActionAppeal items. */
|
|
428
|
-
getGovActionAppeal = async (params) => {
|
|
429
|
-
const endpoint = `sparkdream/forum/v1/gov_action_appeal/${params.id}`;
|
|
430
|
-
return await this.req.get(endpoint);
|
|
431
|
-
};
|
|
432
|
-
/* ListGovActionAppeal defines the ListGovActionAppeal RPC. */
|
|
433
|
-
listGovActionAppeal = async (params = {
|
|
434
|
-
pagination: undefined
|
|
435
|
-
}) => {
|
|
436
|
-
const options = {
|
|
437
|
-
params: {}
|
|
438
|
-
};
|
|
439
|
-
if (typeof params?.pagination !== "undefined") {
|
|
440
|
-
setPaginationParams(options, params.pagination);
|
|
441
|
-
}
|
|
442
|
-
const endpoint = `sparkdream/forum/v1/gov_action_appeal`;
|
|
443
|
-
return await this.req.get(endpoint, options);
|
|
444
|
-
};
|
|
445
247
|
/* Posts Queries a list of Posts items. */
|
|
446
248
|
posts = async (params) => {
|
|
447
249
|
const options = {
|
|
@@ -464,19 +266,6 @@ export class LCDQueryClient {
|
|
|
464
266
|
const endpoint = `sparkdream/forum/v1/thread/${params.rootId}`;
|
|
465
267
|
return await this.req.get(endpoint, options);
|
|
466
268
|
};
|
|
467
|
-
/* Categories Queries a list of Categories items. */
|
|
468
|
-
categories = async (params = {
|
|
469
|
-
pagination: undefined
|
|
470
|
-
}) => {
|
|
471
|
-
const options = {
|
|
472
|
-
params: {}
|
|
473
|
-
};
|
|
474
|
-
if (typeof params?.pagination !== "undefined") {
|
|
475
|
-
setPaginationParams(options, params.pagination);
|
|
476
|
-
}
|
|
477
|
-
const endpoint = `sparkdream/forum/v1/categories`;
|
|
478
|
-
return await this.req.get(endpoint, options);
|
|
479
|
-
};
|
|
480
269
|
/* UserPosts Queries a list of UserPosts items. */
|
|
481
270
|
userPosts = async (params) => {
|
|
482
271
|
const options = {
|
|
@@ -488,39 +277,11 @@ export class LCDQueryClient {
|
|
|
488
277
|
const endpoint = `sparkdream/forum/v1/user_posts/${params.author}`;
|
|
489
278
|
return await this.req.get(endpoint, options);
|
|
490
279
|
};
|
|
491
|
-
/* SentinelStatus Queries a list of SentinelStatus items. */
|
|
492
|
-
sentinelStatus = async (params) => {
|
|
493
|
-
const endpoint = `sparkdream/forum/v1/sentinel_status/${params.address}`;
|
|
494
|
-
return await this.req.get(endpoint);
|
|
495
|
-
};
|
|
496
|
-
/* SentinelBondCommitment Queries a list of SentinelBondCommitment items. */
|
|
497
|
-
sentinelBondCommitment = async (params) => {
|
|
498
|
-
const endpoint = `sparkdream/forum/v1/sentinel_bond_commitment/${params.address}`;
|
|
499
|
-
return await this.req.get(endpoint);
|
|
500
|
-
};
|
|
501
280
|
/* ArchiveCooldown Queries a list of ArchiveCooldown items. */
|
|
502
281
|
archiveCooldown = async (params) => {
|
|
503
282
|
const endpoint = `sparkdream/forum/v1/archive_cooldown/${params.rootId}`;
|
|
504
283
|
return await this.req.get(endpoint);
|
|
505
284
|
};
|
|
506
|
-
/* TagExists Queries a list of TagExists items. */
|
|
507
|
-
tagExists = async (params) => {
|
|
508
|
-
const endpoint = `sparkdream/forum/v1/tag_exists/${params.tagName}`;
|
|
509
|
-
return await this.req.get(endpoint);
|
|
510
|
-
};
|
|
511
|
-
/* TagReports Queries a list of TagReports items. */
|
|
512
|
-
tagReports = async (params = {
|
|
513
|
-
pagination: undefined
|
|
514
|
-
}) => {
|
|
515
|
-
const options = {
|
|
516
|
-
params: {}
|
|
517
|
-
};
|
|
518
|
-
if (typeof params?.pagination !== "undefined") {
|
|
519
|
-
setPaginationParams(options, params.pagination);
|
|
520
|
-
}
|
|
521
|
-
const endpoint = `sparkdream/forum/v1/tag_reports`;
|
|
522
|
-
return await this.req.get(endpoint, options);
|
|
523
|
-
};
|
|
524
285
|
/* ForumStatus Queries a list of ForumStatus items. */
|
|
525
286
|
forumStatus = async (_params = {}) => {
|
|
526
287
|
const endpoint = `sparkdream/forum/v1/forum_status`;
|
|
@@ -531,35 +292,6 @@ export class LCDQueryClient {
|
|
|
531
292
|
const endpoint = `sparkdream/forum/v1/appeal_cooldown/${params.postId}`;
|
|
532
293
|
return await this.req.get(endpoint);
|
|
533
294
|
};
|
|
534
|
-
/* MemberReports Queries a list of MemberReports items. */
|
|
535
|
-
memberReports = async (params = {
|
|
536
|
-
pagination: undefined
|
|
537
|
-
}) => {
|
|
538
|
-
const options = {
|
|
539
|
-
params: {}
|
|
540
|
-
};
|
|
541
|
-
if (typeof params?.pagination !== "undefined") {
|
|
542
|
-
setPaginationParams(options, params.pagination);
|
|
543
|
-
}
|
|
544
|
-
const endpoint = `sparkdream/forum/v1/member_reports`;
|
|
545
|
-
return await this.req.get(endpoint, options);
|
|
546
|
-
};
|
|
547
|
-
/* MemberWarnings Queries a list of MemberWarnings items. */
|
|
548
|
-
memberWarnings = async (params) => {
|
|
549
|
-
const options = {
|
|
550
|
-
params: {}
|
|
551
|
-
};
|
|
552
|
-
if (typeof params?.pagination !== "undefined") {
|
|
553
|
-
setPaginationParams(options, params.pagination);
|
|
554
|
-
}
|
|
555
|
-
const endpoint = `sparkdream/forum/v1/member_warnings/${params.member}`;
|
|
556
|
-
return await this.req.get(endpoint, options);
|
|
557
|
-
};
|
|
558
|
-
/* MemberStanding Queries a list of MemberStanding items. */
|
|
559
|
-
memberStanding = async (params) => {
|
|
560
|
-
const endpoint = `sparkdream/forum/v1/member_standing/${params.member}`;
|
|
561
|
-
return await this.req.get(endpoint);
|
|
562
|
-
};
|
|
563
295
|
/* PinnedPosts Queries a list of PinnedPosts items. */
|
|
564
296
|
pinnedPosts = async (params) => {
|
|
565
297
|
const options = {
|
|
@@ -667,35 +399,6 @@ export class LCDQueryClient {
|
|
|
667
399
|
const endpoint = `sparkdream/forum/v1/bounty_expiring_soon/${params.withinSeconds}`;
|
|
668
400
|
return await this.req.get(endpoint, options);
|
|
669
401
|
};
|
|
670
|
-
/* TagBudgetByTag Queries a list of TagBudgetByTag items. */
|
|
671
|
-
tagBudgetByTag = async (params) => {
|
|
672
|
-
const endpoint = `sparkdream/forum/v1/tag_budget_by_tag/${params.tag}`;
|
|
673
|
-
return await this.req.get(endpoint);
|
|
674
|
-
};
|
|
675
|
-
/* TagBudgets Queries a list of TagBudgets items. */
|
|
676
|
-
tagBudgets = async (params = {
|
|
677
|
-
pagination: undefined
|
|
678
|
-
}) => {
|
|
679
|
-
const options = {
|
|
680
|
-
params: {}
|
|
681
|
-
};
|
|
682
|
-
if (typeof params?.pagination !== "undefined") {
|
|
683
|
-
setPaginationParams(options, params.pagination);
|
|
684
|
-
}
|
|
685
|
-
const endpoint = `sparkdream/forum/v1/tag_budgets`;
|
|
686
|
-
return await this.req.get(endpoint, options);
|
|
687
|
-
};
|
|
688
|
-
/* TagBudgetAwards Queries a list of TagBudgetAwards items. */
|
|
689
|
-
tagBudgetAwards = async (params) => {
|
|
690
|
-
const options = {
|
|
691
|
-
params: {}
|
|
692
|
-
};
|
|
693
|
-
if (typeof params?.pagination !== "undefined") {
|
|
694
|
-
setPaginationParams(options, params.pagination);
|
|
695
|
-
}
|
|
696
|
-
const endpoint = `sparkdream/forum/v1/tag_budget_awards/${params.budgetId}`;
|
|
697
|
-
return await this.req.get(endpoint, options);
|
|
698
|
-
};
|
|
699
402
|
/* PostFlags Queries a list of PostFlags items. */
|
|
700
403
|
postFlags = async (params) => {
|
|
701
404
|
const endpoint = `sparkdream/forum/v1/post_flags/${params.postId}`;
|
|
@@ -714,17 +417,4 @@ export class LCDQueryClient {
|
|
|
714
417
|
const endpoint = `sparkdream/forum/v1/flag_review_queue`;
|
|
715
418
|
return await this.req.get(endpoint, options);
|
|
716
419
|
};
|
|
717
|
-
/* GovActionAppeals Queries a list of GovActionAppeals items. */
|
|
718
|
-
govActionAppeals = async (params = {
|
|
719
|
-
pagination: undefined
|
|
720
|
-
}) => {
|
|
721
|
-
const options = {
|
|
722
|
-
params: {}
|
|
723
|
-
};
|
|
724
|
-
if (typeof params?.pagination !== "undefined") {
|
|
725
|
-
setPaginationParams(options, params.pagination);
|
|
726
|
-
}
|
|
727
|
-
const endpoint = `sparkdream/forum/v1/gov_action_appeals`;
|
|
728
|
-
return await this.req.get(endpoint, options);
|
|
729
|
-
};
|
|
730
420
|
}
|