@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.10

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.
Files changed (138) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +182 -182
  3. package/esm/cosmos/bundle.js +182 -182
  4. package/esm/ibc/bundle.js +106 -106
  5. package/esm/sparkdream/blog/v1/params.js +25 -1
  6. package/esm/sparkdream/blog/v1/post.js +16 -1
  7. package/esm/sparkdream/blog/v1/query.js +165 -0
  8. package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
  9. package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
  10. package/esm/sparkdream/blog/v1/tx.js +32 -2
  11. package/esm/sparkdream/bundle.js +343 -339
  12. package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
  13. package/esm/sparkdream/collect/v1/genesis.js +12 -11
  14. package/esm/sparkdream/collect/v1/params.js +37 -1
  15. package/esm/sparkdream/collect/v1/query.js +201 -186
  16. package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
  17. package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
  18. package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
  19. package/esm/sparkdream/collect/v1/tx.js +0 -258
  20. package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
  21. package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
  22. package/esm/sparkdream/collect/v1/types.js +50 -143
  23. package/esm/sparkdream/federation/v1/genesis.js +12 -11
  24. package/esm/sparkdream/federation/v1/query.js +37 -187
  25. package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
  26. package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
  27. package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
  28. package/esm/sparkdream/federation/v1/tx.js +0 -270
  29. package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
  30. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
  31. package/esm/sparkdream/federation/v1/types.js +13 -318
  32. package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
  33. package/esm/sparkdream/forum/v1/params.js +146 -2
  34. package/esm/sparkdream/futarchy/v1/market.js +13 -1
  35. package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
  36. package/esm/sparkdream/rep/v1/genesis.js +32 -17
  37. package/esm/sparkdream/rep/v1/member_report.js +98 -1
  38. package/esm/sparkdream/rep/v1/query.js +297 -306
  39. package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
  40. package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
  41. package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
  42. package/esm/sparkdream/rep/v1/tx.js +86 -58
  43. package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
  44. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
  45. package/esm/sparkdream/season/v1/enums.js +10 -0
  46. package/esm/tendermint/bundle.js +18 -18
  47. package/ibc/bundle.d.ts +90 -90
  48. package/ibc/bundle.js +106 -106
  49. package/package.json +1 -1
  50. package/sparkdream/blog/v1/params.d.ts +16 -0
  51. package/sparkdream/blog/v1/params.js +25 -1
  52. package/sparkdream/blog/v1/post.d.ts +8 -0
  53. package/sparkdream/blog/v1/post.js +16 -1
  54. package/sparkdream/blog/v1/query.d.ts +92 -0
  55. package/sparkdream/blog/v1/query.js +166 -1
  56. package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
  57. package/sparkdream/blog/v1/query.lcd.js +11 -0
  58. package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
  59. package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
  60. package/sparkdream/blog/v1/tx.d.ts +16 -0
  61. package/sparkdream/blog/v1/tx.js +32 -2
  62. package/sparkdream/bundle.d.ts +14376 -14514
  63. package/sparkdream/bundle.js +343 -339
  64. package/sparkdream/client.d.ts +6 -26
  65. package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
  66. package/sparkdream/collect/v1/curator_activity.js +161 -0
  67. package/sparkdream/collect/v1/genesis.d.ts +4 -3
  68. package/sparkdream/collect/v1/genesis.js +11 -10
  69. package/sparkdream/collect/v1/params.d.ts +32 -0
  70. package/sparkdream/collect/v1/params.js +37 -1
  71. package/sparkdream/collect/v1/query.d.ts +142 -133
  72. package/sparkdream/collect/v1/query.js +201 -186
  73. package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
  74. package/sparkdream/collect/v1/query.lcd.js +16 -16
  75. package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
  76. package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
  77. package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
  78. package/sparkdream/collect/v1/tx.amino.js +0 -10
  79. package/sparkdream/collect/v1/tx.d.ts +0 -162
  80. package/sparkdream/collect/v1/tx.js +2 -260
  81. package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
  82. package/sparkdream/collect/v1/tx.registry.js +1 -37
  83. package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
  84. package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
  85. package/sparkdream/collect/v1/types.d.ts +26 -56
  86. package/sparkdream/collect/v1/types.js +51 -144
  87. package/sparkdream/federation/v1/genesis.d.ts +4 -3
  88. package/sparkdream/federation/v1/genesis.js +11 -10
  89. package/sparkdream/federation/v1/query.d.ts +53 -136
  90. package/sparkdream/federation/v1/query.js +37 -187
  91. package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
  92. package/sparkdream/federation/v1/query.lcd.js +6 -16
  93. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  94. package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
  95. package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
  96. package/sparkdream/federation/v1/tx.amino.js +0 -10
  97. package/sparkdream/federation/v1/tx.d.ts +0 -164
  98. package/sparkdream/federation/v1/tx.js +1 -272
  99. package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
  100. package/sparkdream/federation/v1/tx.registry.js +1 -37
  101. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
  102. package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
  103. package/sparkdream/federation/v1/types.d.ts +10 -106
  104. package/sparkdream/federation/v1/types.js +14 -321
  105. package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
  106. package/sparkdream/federation/v1/verifier_activity.js +197 -0
  107. package/sparkdream/forum/v1/params.d.ts +112 -0
  108. package/sparkdream/forum/v1/params.js +146 -2
  109. package/sparkdream/futarchy/v1/market.d.ts +14 -0
  110. package/sparkdream/futarchy/v1/market.js +13 -1
  111. package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
  112. package/sparkdream/rep/v1/bonded_role.js +453 -0
  113. package/sparkdream/rep/v1/genesis.d.ts +11 -9
  114. package/sparkdream/rep/v1/genesis.js +32 -17
  115. package/sparkdream/rep/v1/member_report.d.ts +61 -0
  116. package/sparkdream/rep/v1/member_report.js +99 -2
  117. package/sparkdream/rep/v1/query.d.ts +259 -261
  118. package/sparkdream/rep/v1/query.js +299 -308
  119. package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
  120. package/sparkdream/rep/v1/query.lcd.js +23 -16
  121. package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
  122. package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
  123. package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
  124. package/sparkdream/rep/v1/tx.amino.js +9 -9
  125. package/sparkdream/rep/v1/tx.d.ts +121 -104
  126. package/sparkdream/rep/v1/tx.js +87 -59
  127. package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
  128. package/sparkdream/rep/v1/tx.registry.js +17 -17
  129. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
  130. package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
  131. package/sparkdream/rpc.query.d.ts +8 -8
  132. package/sparkdream/season/v1/enums.d.ts +5 -0
  133. package/sparkdream/season/v1/enums.js +10 -0
  134. package/tendermint/bundle.d.ts +844 -844
  135. package/tendermint/bundle.js +18 -18
  136. package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
  137. package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
  138. package/sparkdream/rep/v1/sentinel_activity.js +0 -219
package/esm/ibc/bundle.js CHANGED
@@ -52,59 +52,59 @@ import * as _171 from "./lightclients/wasm/v1/genesis";
52
52
  import * as _172 from "./lightclients/wasm/v1/query";
53
53
  import * as _173 from "./lightclients/wasm/v1/tx";
54
54
  import * as _174 from "./lightclients/wasm/v1/wasm";
55
- import * as _426 from "./applications/interchain_accounts/controller/v1/tx.amino";
56
- import * as _427 from "./applications/interchain_accounts/host/v1/tx.amino";
57
- import * as _428 from "./applications/rate_limiting/v1/tx.amino";
58
- import * as _429 from "./applications/transfer/v1/tx.amino";
59
- import * as _430 from "./core/channel/v1/tx.amino";
60
- import * as _431 from "./core/channel/v2/tx.amino";
61
- import * as _432 from "./core/client/v1/tx.amino";
62
- import * as _433 from "./core/client/v2/tx.amino";
63
- import * as _434 from "./core/connection/v1/tx.amino";
64
- import * as _435 from "./lightclients/wasm/v1/tx.amino";
65
- import * as _436 from "./applications/interchain_accounts/controller/v1/tx.registry";
66
- import * as _437 from "./applications/interchain_accounts/host/v1/tx.registry";
67
- import * as _438 from "./applications/rate_limiting/v1/tx.registry";
68
- import * as _439 from "./applications/transfer/v1/tx.registry";
69
- import * as _440 from "./core/channel/v1/tx.registry";
70
- import * as _441 from "./core/channel/v2/tx.registry";
71
- import * as _442 from "./core/client/v1/tx.registry";
72
- import * as _443 from "./core/client/v2/tx.registry";
73
- import * as _444 from "./core/connection/v1/tx.registry";
74
- import * as _445 from "./lightclients/wasm/v1/tx.registry";
75
- import * as _446 from "./applications/interchain_accounts/controller/v1/query.lcd";
76
- import * as _447 from "./applications/interchain_accounts/host/v1/query.lcd";
77
- import * as _448 from "./applications/rate_limiting/v1/query.lcd";
78
- import * as _449 from "./applications/transfer/v1/query.lcd";
79
- import * as _450 from "./core/channel/v1/query.lcd";
80
- import * as _451 from "./core/channel/v2/query.lcd";
81
- import * as _452 from "./core/client/v1/query.lcd";
82
- import * as _453 from "./core/client/v2/query.lcd";
83
- import * as _454 from "./core/connection/v1/query.lcd";
84
- import * as _455 from "./lightclients/wasm/v1/query.lcd";
85
- import * as _456 from "./applications/interchain_accounts/controller/v1/query.rpc.Query";
86
- import * as _457 from "./applications/interchain_accounts/host/v1/query.rpc.Query";
87
- import * as _458 from "./applications/rate_limiting/v1/query.rpc.Query";
88
- import * as _459 from "./applications/transfer/v1/query.rpc.Query";
89
- import * as _460 from "./core/channel/v1/query.rpc.Query";
90
- import * as _461 from "./core/channel/v2/query.rpc.Query";
91
- import * as _462 from "./core/client/v1/query.rpc.Query";
92
- import * as _463 from "./core/client/v2/query.rpc.Query";
93
- import * as _464 from "./core/connection/v1/query.rpc.Query";
94
- import * as _465 from "./lightclients/wasm/v1/query.rpc.Query";
95
- import * as _466 from "./applications/interchain_accounts/controller/v1/tx.rpc.msg";
96
- import * as _467 from "./applications/interchain_accounts/host/v1/tx.rpc.msg";
97
- import * as _468 from "./applications/rate_limiting/v1/tx.rpc.msg";
98
- import * as _469 from "./applications/transfer/v1/tx.rpc.msg";
99
- import * as _470 from "./core/channel/v1/tx.rpc.msg";
100
- import * as _471 from "./core/channel/v2/tx.rpc.msg";
101
- import * as _472 from "./core/client/v1/tx.rpc.msg";
102
- import * as _473 from "./core/client/v2/tx.rpc.msg";
103
- import * as _474 from "./core/connection/v1/tx.rpc.msg";
104
- import * as _475 from "./lightclients/wasm/v1/tx.rpc.msg";
105
- import * as _554 from "./lcd";
106
- import * as _555 from "./rpc.query";
107
- import * as _556 from "./rpc.tx";
55
+ import * as _428 from "./applications/interchain_accounts/controller/v1/tx.amino";
56
+ import * as _429 from "./applications/interchain_accounts/host/v1/tx.amino";
57
+ import * as _430 from "./applications/rate_limiting/v1/tx.amino";
58
+ import * as _431 from "./applications/transfer/v1/tx.amino";
59
+ import * as _432 from "./core/channel/v1/tx.amino";
60
+ import * as _433 from "./core/channel/v2/tx.amino";
61
+ import * as _434 from "./core/client/v1/tx.amino";
62
+ import * as _435 from "./core/client/v2/tx.amino";
63
+ import * as _436 from "./core/connection/v1/tx.amino";
64
+ import * as _437 from "./lightclients/wasm/v1/tx.amino";
65
+ import * as _438 from "./applications/interchain_accounts/controller/v1/tx.registry";
66
+ import * as _439 from "./applications/interchain_accounts/host/v1/tx.registry";
67
+ import * as _440 from "./applications/rate_limiting/v1/tx.registry";
68
+ import * as _441 from "./applications/transfer/v1/tx.registry";
69
+ import * as _442 from "./core/channel/v1/tx.registry";
70
+ import * as _443 from "./core/channel/v2/tx.registry";
71
+ import * as _444 from "./core/client/v1/tx.registry";
72
+ import * as _445 from "./core/client/v2/tx.registry";
73
+ import * as _446 from "./core/connection/v1/tx.registry";
74
+ import * as _447 from "./lightclients/wasm/v1/tx.registry";
75
+ import * as _448 from "./applications/interchain_accounts/controller/v1/query.lcd";
76
+ import * as _449 from "./applications/interchain_accounts/host/v1/query.lcd";
77
+ import * as _450 from "./applications/rate_limiting/v1/query.lcd";
78
+ import * as _451 from "./applications/transfer/v1/query.lcd";
79
+ import * as _452 from "./core/channel/v1/query.lcd";
80
+ import * as _453 from "./core/channel/v2/query.lcd";
81
+ import * as _454 from "./core/client/v1/query.lcd";
82
+ import * as _455 from "./core/client/v2/query.lcd";
83
+ import * as _456 from "./core/connection/v1/query.lcd";
84
+ import * as _457 from "./lightclients/wasm/v1/query.lcd";
85
+ import * as _458 from "./applications/interchain_accounts/controller/v1/query.rpc.Query";
86
+ import * as _459 from "./applications/interchain_accounts/host/v1/query.rpc.Query";
87
+ import * as _460 from "./applications/rate_limiting/v1/query.rpc.Query";
88
+ import * as _461 from "./applications/transfer/v1/query.rpc.Query";
89
+ import * as _462 from "./core/channel/v1/query.rpc.Query";
90
+ import * as _463 from "./core/channel/v2/query.rpc.Query";
91
+ import * as _464 from "./core/client/v1/query.rpc.Query";
92
+ import * as _465 from "./core/client/v2/query.rpc.Query";
93
+ import * as _466 from "./core/connection/v1/query.rpc.Query";
94
+ import * as _467 from "./lightclients/wasm/v1/query.rpc.Query";
95
+ import * as _468 from "./applications/interchain_accounts/controller/v1/tx.rpc.msg";
96
+ import * as _469 from "./applications/interchain_accounts/host/v1/tx.rpc.msg";
97
+ import * as _470 from "./applications/rate_limiting/v1/tx.rpc.msg";
98
+ import * as _471 from "./applications/transfer/v1/tx.rpc.msg";
99
+ import * as _472 from "./core/channel/v1/tx.rpc.msg";
100
+ import * as _473 from "./core/channel/v2/tx.rpc.msg";
101
+ import * as _474 from "./core/client/v1/tx.rpc.msg";
102
+ import * as _475 from "./core/client/v2/tx.rpc.msg";
103
+ import * as _476 from "./core/connection/v1/tx.rpc.msg";
104
+ import * as _477 from "./lightclients/wasm/v1/tx.rpc.msg";
105
+ import * as _556 from "./lcd";
106
+ import * as _557 from "./rpc.query";
107
+ import * as _558 from "./rpc.tx";
108
108
  export var ibc;
109
109
  (function (ibc) {
110
110
  let applications;
@@ -117,11 +117,11 @@ export var ibc;
117
117
  ..._122,
118
118
  ..._123,
119
119
  ..._124,
120
- ..._426,
121
- ..._436,
122
- ..._446,
123
- ..._456,
124
- ..._466
120
+ ..._428,
121
+ ..._438,
122
+ ..._448,
123
+ ..._458,
124
+ ..._468
125
125
  };
126
126
  })(controller = interchain_accounts.controller || (interchain_accounts.controller = {}));
127
127
  let genesis;
@@ -136,11 +136,11 @@ export var ibc;
136
136
  ..._126,
137
137
  ..._127,
138
138
  ..._128,
139
- ..._427,
140
- ..._437,
141
- ..._447,
142
- ..._457,
143
- ..._467
139
+ ..._429,
140
+ ..._439,
141
+ ..._449,
142
+ ..._459,
143
+ ..._469
144
144
  };
145
145
  })(host = interchain_accounts.host || (interchain_accounts.host = {}));
146
146
  interchain_accounts.v1 = {
@@ -162,11 +162,11 @@ export var ibc;
162
162
  ..._134,
163
163
  ..._135,
164
164
  ..._136,
165
- ..._428,
166
- ..._438,
167
- ..._448,
168
- ..._458,
169
- ..._468
165
+ ..._430,
166
+ ..._440,
167
+ ..._450,
168
+ ..._460,
169
+ ..._470
170
170
  };
171
171
  })(rate_limiting = applications.rate_limiting || (applications.rate_limiting = {}));
172
172
  let transfer;
@@ -180,11 +180,11 @@ export var ibc;
180
180
  ..._142,
181
181
  ..._143,
182
182
  ..._144,
183
- ..._429,
184
- ..._439,
185
- ..._449,
186
- ..._459,
187
- ..._469
183
+ ..._431,
184
+ ..._441,
185
+ ..._451,
186
+ ..._461,
187
+ ..._471
188
188
  };
189
189
  })(transfer = applications.transfer || (applications.transfer = {}));
190
190
  })(applications = ibc.applications || (ibc.applications = {}));
@@ -197,22 +197,22 @@ export var ibc;
197
197
  ..._146,
198
198
  ..._147,
199
199
  ..._148,
200
- ..._430,
201
- ..._440,
202
- ..._450,
203
- ..._460,
204
- ..._470
200
+ ..._432,
201
+ ..._442,
202
+ ..._452,
203
+ ..._462,
204
+ ..._472
205
205
  };
206
206
  channel.v2 = {
207
207
  ..._149,
208
208
  ..._150,
209
209
  ..._151,
210
210
  ..._152,
211
- ..._431,
212
- ..._441,
213
- ..._451,
214
- ..._461,
215
- ..._471
211
+ ..._433,
212
+ ..._443,
213
+ ..._453,
214
+ ..._463,
215
+ ..._473
216
216
  };
217
217
  })(channel = core.channel || (core.channel = {}));
218
218
  let client;
@@ -222,11 +222,11 @@ export var ibc;
222
222
  ..._154,
223
223
  ..._155,
224
224
  ..._156,
225
- ..._432,
226
- ..._442,
227
- ..._452,
228
- ..._462,
229
- ..._472
225
+ ..._434,
226
+ ..._444,
227
+ ..._454,
228
+ ..._464,
229
+ ..._474
230
230
  };
231
231
  client.v2 = {
232
232
  ..._157,
@@ -234,11 +234,11 @@ export var ibc;
234
234
  ..._159,
235
235
  ..._160,
236
236
  ..._161,
237
- ..._433,
238
- ..._443,
239
- ..._453,
240
- ..._463,
241
- ..._473
237
+ ..._435,
238
+ ..._445,
239
+ ..._455,
240
+ ..._465,
241
+ ..._475
242
242
  };
243
243
  })(client = core.client || (core.client = {}));
244
244
  let commitment;
@@ -257,11 +257,11 @@ export var ibc;
257
257
  ..._165,
258
258
  ..._166,
259
259
  ..._167,
260
- ..._434,
261
- ..._444,
262
- ..._454,
263
- ..._464,
264
- ..._474
260
+ ..._436,
261
+ ..._446,
262
+ ..._456,
263
+ ..._466,
264
+ ..._476
265
265
  };
266
266
  })(connection = core.connection || (core.connection = {}));
267
267
  })(core = ibc.core || (ibc.core = {}));
@@ -289,17 +289,17 @@ export var ibc;
289
289
  ..._172,
290
290
  ..._173,
291
291
  ..._174,
292
- ..._435,
293
- ..._445,
294
- ..._455,
295
- ..._465,
296
- ..._475
292
+ ..._437,
293
+ ..._447,
294
+ ..._457,
295
+ ..._467,
296
+ ..._477
297
297
  };
298
298
  })(wasm = lightclients.wasm || (lightclients.wasm = {}));
299
299
  })(lightclients = ibc.lightclients || (ibc.lightclients = {}));
300
300
  ibc.ClientFactory = {
301
- ..._554,
302
- ..._555,
303
- ..._556
301
+ ..._556,
302
+ ..._557,
303
+ ..._558
304
304
  };
305
305
  })(ibc || (ibc = {}));
@@ -22,7 +22,9 @@ function createBaseParams() {
22
22
  maxCostPerByte: Coin.fromPartial({}),
23
23
  maxReactionFee: Coin.fromPartial({}),
24
24
  convictionRenewalThreshold: "",
25
- convictionRenewalPeriod: BigInt(0)
25
+ convictionRenewalPeriod: BigInt(0),
26
+ maxTagsPerPost: 0,
27
+ maxTagLength: 0
26
28
  };
27
29
  }
28
30
  /**
@@ -92,6 +94,12 @@ export const Params = {
92
94
  if (message.convictionRenewalPeriod !== BigInt(0)) {
93
95
  writer.uint32(192).int64(message.convictionRenewalPeriod);
94
96
  }
97
+ if (message.maxTagsPerPost !== 0) {
98
+ writer.uint32(200).uint32(message.maxTagsPerPost);
99
+ }
100
+ if (message.maxTagLength !== 0) {
101
+ writer.uint32(208).uint32(message.maxTagLength);
102
+ }
95
103
  return writer;
96
104
  },
97
105
  decode(input, length) {
@@ -158,6 +166,12 @@ export const Params = {
158
166
  case 24:
159
167
  message.convictionRenewalPeriod = reader.int64();
160
168
  break;
169
+ case 25:
170
+ message.maxTagsPerPost = reader.uint32();
171
+ break;
172
+ case 26:
173
+ message.maxTagLength = reader.uint32();
174
+ break;
161
175
  default:
162
176
  reader.skipType(tag & 7);
163
177
  break;
@@ -186,6 +200,8 @@ export const Params = {
186
200
  message.maxReactionFee = object.maxReactionFee !== undefined && object.maxReactionFee !== null ? Coin.fromPartial(object.maxReactionFee) : undefined;
187
201
  message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
188
202
  message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
203
+ message.maxTagsPerPost = object.maxTagsPerPost ?? 0;
204
+ message.maxTagLength = object.maxTagLength ?? 0;
189
205
  return message;
190
206
  },
191
207
  fromAmino(object) {
@@ -247,6 +263,12 @@ export const Params = {
247
263
  if (object.conviction_renewal_period !== undefined && object.conviction_renewal_period !== null) {
248
264
  message.convictionRenewalPeriod = BigInt(object.conviction_renewal_period);
249
265
  }
266
+ if (object.max_tags_per_post !== undefined && object.max_tags_per_post !== null) {
267
+ message.maxTagsPerPost = object.max_tags_per_post;
268
+ }
269
+ if (object.max_tag_length !== undefined && object.max_tag_length !== null) {
270
+ message.maxTagLength = object.max_tag_length;
271
+ }
250
272
  return message;
251
273
  },
252
274
  toAmino(message) {
@@ -270,6 +292,8 @@ export const Params = {
270
292
  obj.max_reaction_fee = message.maxReactionFee ? Coin.toAmino(message.maxReactionFee) : undefined;
271
293
  obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
272
294
  obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
295
+ obj.max_tags_per_post = message.maxTagsPerPost === 0 ? undefined : message.maxTagsPerPost;
296
+ obj.max_tag_length = message.maxTagLength === 0 ? undefined : message.maxTagLength;
273
297
  return obj;
274
298
  },
275
299
  fromAminoMsg(object) {
@@ -21,7 +21,8 @@ function createBasePost() {
21
21
  edited: false,
22
22
  editedAt: BigInt(0),
23
23
  initiativeId: BigInt(0),
24
- convictionSustained: false
24
+ convictionSustained: false,
25
+ tags: []
25
26
  };
26
27
  }
27
28
  /**
@@ -96,6 +97,9 @@ export const Post = {
96
97
  if (message.convictionSustained === true) {
97
98
  writer.uint32(168).bool(message.convictionSustained);
98
99
  }
100
+ for (const v of message.tags) {
101
+ writer.uint32(178).string(v);
102
+ }
99
103
  return writer;
100
104
  },
101
105
  decode(input, length) {
@@ -168,6 +172,9 @@ export const Post = {
168
172
  case 21:
169
173
  message.convictionSustained = reader.bool();
170
174
  break;
175
+ case 22:
176
+ message.tags.push(reader.string());
177
+ break;
171
178
  default:
172
179
  reader.skipType(tag & 7);
173
180
  break;
@@ -198,6 +205,7 @@ export const Post = {
198
205
  message.editedAt = object.editedAt !== undefined && object.editedAt !== null ? BigInt(object.editedAt.toString()) : BigInt(0);
199
206
  message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
200
207
  message.convictionSustained = object.convictionSustained ?? false;
208
+ message.tags = object.tags?.map(e => e) || [];
201
209
  return message;
202
210
  },
203
211
  fromAmino(object) {
@@ -265,6 +273,7 @@ export const Post = {
265
273
  if (object.conviction_sustained !== undefined && object.conviction_sustained !== null) {
266
274
  message.convictionSustained = object.conviction_sustained;
267
275
  }
276
+ message.tags = object.tags?.map(e => e) || [];
268
277
  return message;
269
278
  },
270
279
  toAmino(message) {
@@ -290,6 +299,12 @@ export const Post = {
290
299
  obj.edited_at = message.editedAt !== BigInt(0) ? message.editedAt?.toString() : undefined;
291
300
  obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
292
301
  obj.conviction_sustained = message.convictionSustained === false ? undefined : message.convictionSustained;
302
+ if (message.tags) {
303
+ obj.tags = message.tags.map(e => e);
304
+ }
305
+ else {
306
+ obj.tags = message.tags;
307
+ }
293
308
  return obj;
294
309
  },
295
310
  fromAminoMsg(object) {
@@ -1782,3 +1782,168 @@ export const QueryListExpiringContentResponse = {
1782
1782
  };
1783
1783
  }
1784
1784
  };
1785
+ function createBaseQueryListPostsByTagRequest() {
1786
+ return {
1787
+ tag: "",
1788
+ pagination: undefined
1789
+ };
1790
+ }
1791
+ /**
1792
+ * QueryListPostsByTagRequest defines the QueryListPostsByTagRequest message.
1793
+ * @name QueryListPostsByTagRequest
1794
+ * @package sparkdream.blog.v1
1795
+ * @see proto type: sparkdream.blog.v1.QueryListPostsByTagRequest
1796
+ */
1797
+ export const QueryListPostsByTagRequest = {
1798
+ typeUrl: "/sparkdream.blog.v1.QueryListPostsByTagRequest",
1799
+ encode(message, writer = BinaryWriter.create()) {
1800
+ if (message.tag !== "") {
1801
+ writer.uint32(10).string(message.tag);
1802
+ }
1803
+ if (message.pagination !== undefined) {
1804
+ PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
1805
+ }
1806
+ return writer;
1807
+ },
1808
+ decode(input, length) {
1809
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1810
+ let end = length === undefined ? reader.len : reader.pos + length;
1811
+ const message = createBaseQueryListPostsByTagRequest();
1812
+ while (reader.pos < end) {
1813
+ const tag = reader.uint32();
1814
+ switch (tag >>> 3) {
1815
+ case 1:
1816
+ message.tag = reader.string();
1817
+ break;
1818
+ case 2:
1819
+ message.pagination = PageRequest.decode(reader, reader.uint32());
1820
+ break;
1821
+ default:
1822
+ reader.skipType(tag & 7);
1823
+ break;
1824
+ }
1825
+ }
1826
+ return message;
1827
+ },
1828
+ fromPartial(object) {
1829
+ const message = createBaseQueryListPostsByTagRequest();
1830
+ message.tag = object.tag ?? "";
1831
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
1832
+ return message;
1833
+ },
1834
+ fromAmino(object) {
1835
+ const message = createBaseQueryListPostsByTagRequest();
1836
+ if (object.tag !== undefined && object.tag !== null) {
1837
+ message.tag = object.tag;
1838
+ }
1839
+ if (object.pagination !== undefined && object.pagination !== null) {
1840
+ message.pagination = PageRequest.fromAmino(object.pagination);
1841
+ }
1842
+ return message;
1843
+ },
1844
+ toAmino(message) {
1845
+ const obj = {};
1846
+ obj.tag = message.tag === "" ? undefined : message.tag;
1847
+ obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined;
1848
+ return obj;
1849
+ },
1850
+ fromAminoMsg(object) {
1851
+ return QueryListPostsByTagRequest.fromAmino(object.value);
1852
+ },
1853
+ fromProtoMsg(message) {
1854
+ return QueryListPostsByTagRequest.decode(message.value);
1855
+ },
1856
+ toProto(message) {
1857
+ return QueryListPostsByTagRequest.encode(message).finish();
1858
+ },
1859
+ toProtoMsg(message) {
1860
+ return {
1861
+ typeUrl: "/sparkdream.blog.v1.QueryListPostsByTagRequest",
1862
+ value: QueryListPostsByTagRequest.encode(message).finish()
1863
+ };
1864
+ }
1865
+ };
1866
+ function createBaseQueryListPostsByTagResponse() {
1867
+ return {
1868
+ posts: [],
1869
+ pagination: undefined
1870
+ };
1871
+ }
1872
+ /**
1873
+ * QueryListPostsByTagResponse defines the QueryListPostsByTagResponse message.
1874
+ * @name QueryListPostsByTagResponse
1875
+ * @package sparkdream.blog.v1
1876
+ * @see proto type: sparkdream.blog.v1.QueryListPostsByTagResponse
1877
+ */
1878
+ export const QueryListPostsByTagResponse = {
1879
+ typeUrl: "/sparkdream.blog.v1.QueryListPostsByTagResponse",
1880
+ encode(message, writer = BinaryWriter.create()) {
1881
+ for (const v of message.posts) {
1882
+ Post.encode(v, writer.uint32(10).fork()).ldelim();
1883
+ }
1884
+ if (message.pagination !== undefined) {
1885
+ PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
1886
+ }
1887
+ return writer;
1888
+ },
1889
+ decode(input, length) {
1890
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1891
+ let end = length === undefined ? reader.len : reader.pos + length;
1892
+ const message = createBaseQueryListPostsByTagResponse();
1893
+ while (reader.pos < end) {
1894
+ const tag = reader.uint32();
1895
+ switch (tag >>> 3) {
1896
+ case 1:
1897
+ message.posts.push(Post.decode(reader, reader.uint32()));
1898
+ break;
1899
+ case 2:
1900
+ message.pagination = PageResponse.decode(reader, reader.uint32());
1901
+ break;
1902
+ default:
1903
+ reader.skipType(tag & 7);
1904
+ break;
1905
+ }
1906
+ }
1907
+ return message;
1908
+ },
1909
+ fromPartial(object) {
1910
+ const message = createBaseQueryListPostsByTagResponse();
1911
+ message.posts = object.posts?.map(e => Post.fromPartial(e)) || [];
1912
+ message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
1913
+ return message;
1914
+ },
1915
+ fromAmino(object) {
1916
+ const message = createBaseQueryListPostsByTagResponse();
1917
+ message.posts = object.posts?.map(e => Post.fromAmino(e)) || [];
1918
+ if (object.pagination !== undefined && object.pagination !== null) {
1919
+ message.pagination = PageResponse.fromAmino(object.pagination);
1920
+ }
1921
+ return message;
1922
+ },
1923
+ toAmino(message) {
1924
+ const obj = {};
1925
+ if (message.posts) {
1926
+ obj.posts = message.posts.map(e => e ? Post.toAmino(e) : undefined);
1927
+ }
1928
+ else {
1929
+ obj.posts = message.posts;
1930
+ }
1931
+ obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined;
1932
+ return obj;
1933
+ },
1934
+ fromAminoMsg(object) {
1935
+ return QueryListPostsByTagResponse.fromAmino(object.value);
1936
+ },
1937
+ fromProtoMsg(message) {
1938
+ return QueryListPostsByTagResponse.decode(message.value);
1939
+ },
1940
+ toProto(message) {
1941
+ return QueryListPostsByTagResponse.encode(message).finish();
1942
+ },
1943
+ toProtoMsg(message) {
1944
+ return {
1945
+ typeUrl: "/sparkdream.blog.v1.QueryListPostsByTagResponse",
1946
+ value: QueryListPostsByTagResponse.encode(message).finish()
1947
+ };
1948
+ }
1949
+ };
@@ -131,4 +131,15 @@ export class LCDQueryClient {
131
131
  const endpoint = `sparkdream/blog/v1/list_expiring_content`;
132
132
  return await this.req.get(endpoint, options);
133
133
  };
134
+ /* ListPostsByTag returns paginated posts that carry a given tag. */
135
+ listPostsByTag = async (params) => {
136
+ const options = {
137
+ params: {}
138
+ };
139
+ if (typeof params?.pagination !== "undefined") {
140
+ setPaginationParams(options, params.pagination);
141
+ }
142
+ const endpoint = `sparkdream/blog/v1/list_posts_by_tag/${params.tag}`;
143
+ return await this.req.get(endpoint, options);
144
+ };
134
145
  }
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader } from "../../../binary";
2
2
  import { createProtobufRpcClient } from "@cosmjs/stargate";
3
- import { QueryParamsRequest, QueryParamsResponse, QueryShowPostRequest, QueryShowPostResponse, QueryListPostRequest, QueryListPostResponse, QueryShowReplyRequest, QueryShowReplyResponse, QueryListRepliesRequest, QueryListRepliesResponse, QueryListPostsByCreatorRequest, QueryListPostsByCreatorResponse, QueryReactionCountsRequest, QueryReactionCountsResponse, QueryUserReactionRequest, QueryUserReactionResponse, QueryListReactionsRequest, QueryListReactionsResponse, QueryListReactionsByCreatorRequest, QueryListReactionsByCreatorResponse, QueryListExpiringContentRequest, QueryListExpiringContentResponse } from "./query";
3
+ import { QueryParamsRequest, QueryParamsResponse, QueryShowPostRequest, QueryShowPostResponse, QueryListPostRequest, QueryListPostResponse, QueryShowReplyRequest, QueryShowReplyResponse, QueryListRepliesRequest, QueryListRepliesResponse, QueryListPostsByCreatorRequest, QueryListPostsByCreatorResponse, QueryReactionCountsRequest, QueryReactionCountsResponse, QueryUserReactionRequest, QueryUserReactionResponse, QueryListReactionsRequest, QueryListReactionsResponse, QueryListReactionsByCreatorRequest, QueryListReactionsByCreatorResponse, QueryListExpiringContentRequest, QueryListExpiringContentResponse, QueryListPostsByTagRequest, QueryListPostsByTagResponse } from "./query";
4
4
  export class QueryClientImpl {
5
5
  rpc;
6
6
  constructor(rpc) {
@@ -74,6 +74,12 @@ export class QueryClientImpl {
74
74
  const promise = this.rpc.request("sparkdream.blog.v1.Query", "ListExpiringContent", data);
75
75
  return promise.then(data => QueryListExpiringContentResponse.decode(new BinaryReader(data)));
76
76
  };
77
+ /* ListPostsByTag returns paginated posts that carry a given tag. */
78
+ listPostsByTag = async (request) => {
79
+ const data = QueryListPostsByTagRequest.encode(request).finish();
80
+ const promise = this.rpc.request("sparkdream.blog.v1.Query", "ListPostsByTag", data);
81
+ return promise.then(data => QueryListPostsByTagResponse.decode(new BinaryReader(data)));
82
+ };
77
83
  }
78
84
  export const createRpcQueryExtension = (base) => {
79
85
  const rpc = createProtobufRpcClient(base);
@@ -111,6 +117,9 @@ export const createRpcQueryExtension = (base) => {
111
117
  },
112
118
  listExpiringContent(request) {
113
119
  return queryService.listExpiringContent(request);
120
+ },
121
+ listPostsByTag(request) {
122
+ return queryService.listPostsByTag(request);
114
123
  }
115
124
  };
116
125
  };