@sparkdreamnft/sparkdreamjs 0.0.5 → 0.0.6
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 +162 -162
- package/cosmos/bundle.js +184 -184
- package/esm/cosmos/bundle.js +184 -184
- package/esm/ibc/bundle.js +96 -96
- package/esm/sparkdream/blog/module/{module.js → v1/module.js} +3 -3
- package/esm/sparkdream/blog/{genesis.js → v1/genesis.js} +3 -3
- package/esm/sparkdream/blog/{params.js → v1/params.js} +3 -3
- package/esm/sparkdream/blog/{post.js → v1/post.js} +3 -3
- package/esm/sparkdream/blog/{query.js → v1/query.js} +14 -14
- package/esm/sparkdream/blog/{query.lcd.js → v1/query.lcd.js} +6 -6
- package/esm/sparkdream/blog/{query.rpc.Query.js → v1/query.rpc.Query.js} +6 -6
- package/esm/sparkdream/blog/{tx.amino.js → v1/tx.amino.js} +7 -7
- package/esm/sparkdream/blog/{tx.js → v1/tx.js} +17 -17
- package/esm/sparkdream/blog/{tx.registry.js → v1/tx.registry.js} +13 -13
- package/esm/sparkdream/blog/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
- package/esm/sparkdream/bundle.js +68 -48
- package/esm/sparkdream/client.js +7 -7
- package/esm/sparkdream/lcd.js +10 -6
- package/esm/sparkdream/rpc.query.js +6 -2
- package/esm/sparkdream/rpc.tx.js +6 -2
- package/esm/sparkdream/sparkdream/module/{module.js → v1/module.js} +3 -3
- package/esm/sparkdream/sparkdream/{genesis.js → v1/genesis.js} +3 -3
- package/esm/sparkdream/sparkdream/{params.js → v1/params.js} +3 -3
- package/esm/sparkdream/sparkdream/{query.js → v1/query.js} +5 -5
- package/esm/sparkdream/sparkdream/{query.lcd.js → v1/query.lcd.js} +1 -1
- package/esm/sparkdream/sparkdream/{query.rpc.Query.js → v1/query.rpc.Query.js} +2 -2
- package/esm/sparkdream/sparkdream/{tx.amino.js → v1/tx.amino.js} +1 -1
- package/esm/sparkdream/sparkdream/{tx.js → v1/tx.js} +5 -5
- package/esm/sparkdream/sparkdream/{tx.registry.js → v1/tx.registry.js} +4 -4
- package/esm/sparkdream/sparkdream/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +2 -2
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/bundle.d.ts +81 -81
- package/ibc/bundle.js +96 -96
- package/package.json +1 -1
- package/sparkdream/{sparkdream/module → blog/module/v1}/module.d.ts +12 -6
- package/sparkdream/blog/module/{module.js → v1/module.js} +3 -3
- package/sparkdream/blog/{genesis.d.ts → v1/genesis.d.ts} +4 -4
- package/sparkdream/blog/{genesis.js → v1/genesis.js} +3 -3
- package/sparkdream/blog/{params.d.ts → v1/params.d.ts} +3 -3
- package/sparkdream/blog/{params.js → v1/params.js} +3 -3
- package/sparkdream/blog/{post.d.ts → v1/post.d.ts} +6 -4
- package/sparkdream/blog/{post.js → v1/post.js} +3 -3
- package/sparkdream/blog/{query.d.ts → v1/query.d.ts} +23 -15
- package/sparkdream/blog/{query.js → v1/query.js} +14 -14
- package/sparkdream/blog/{query.lcd.js → v1/query.lcd.js} +6 -6
- package/sparkdream/blog/{query.rpc.Query.d.ts → v1/query.rpc.Query.d.ts} +3 -3
- package/sparkdream/blog/{query.rpc.Query.js → v1/query.rpc.Query.js} +6 -6
- package/sparkdream/blog/{tx.amino.d.ts → v1/tx.amino.d.ts} +4 -4
- package/sparkdream/blog/{tx.amino.js → v1/tx.amino.js} +7 -7
- package/sparkdream/blog/{tx.d.ts → v1/tx.d.ts} +29 -17
- package/sparkdream/blog/{tx.js → v1/tx.js} +17 -17
- package/sparkdream/blog/{tx.registry.d.ts → v1/tx.registry.d.ts} +1 -1
- package/sparkdream/blog/{tx.registry.js → v1/tx.registry.js} +13 -13
- package/sparkdream/blog/{tx.rpc.msg.d.ts → v1/tx.rpc.msg.d.ts} +4 -1
- package/sparkdream/blog/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +8 -8
- package/sparkdream/bundle.d.ts +460 -410
- package/sparkdream/bundle.js +68 -48
- package/sparkdream/client.d.ts +15 -15
- package/sparkdream/client.js +7 -7
- package/sparkdream/lcd.d.ts +6 -2
- package/sparkdream/lcd.js +10 -6
- package/sparkdream/rpc.query.d.ts +8 -4
- package/sparkdream/rpc.query.js +6 -2
- package/sparkdream/rpc.tx.d.ts +6 -2
- package/sparkdream/rpc.tx.js +6 -2
- package/sparkdream/{blog/module → sparkdream/module/v1}/module.d.ts +12 -6
- package/sparkdream/sparkdream/module/{module.js → v1/module.js} +3 -3
- package/sparkdream/sparkdream/{genesis.d.ts → v1/genesis.d.ts} +4 -4
- package/sparkdream/sparkdream/{genesis.js → v1/genesis.js} +3 -3
- package/sparkdream/sparkdream/{params.d.ts → v1/params.d.ts} +3 -3
- package/sparkdream/sparkdream/{params.js → v1/params.js} +3 -3
- package/sparkdream/sparkdream/{query.d.ts → v1/query.d.ts} +6 -6
- package/sparkdream/sparkdream/{query.js → v1/query.js} +5 -5
- package/sparkdream/sparkdream/{query.lcd.js → v1/query.lcd.js} +1 -1
- package/sparkdream/sparkdream/{query.rpc.Query.d.ts → v1/query.rpc.Query.d.ts} +1 -1
- package/sparkdream/sparkdream/{query.rpc.Query.js → v1/query.rpc.Query.js} +2 -2
- package/sparkdream/sparkdream/{tx.amino.d.ts → v1/tx.amino.d.ts} +1 -1
- package/sparkdream/sparkdream/{tx.amino.js → v1/tx.amino.js} +1 -1
- package/sparkdream/sparkdream/{tx.d.ts → v1/tx.d.ts} +5 -5
- package/sparkdream/sparkdream/{tx.js → v1/tx.js} +5 -5
- package/sparkdream/sparkdream/{tx.registry.d.ts → v1/tx.registry.d.ts} +1 -1
- package/sparkdream/sparkdream/{tx.registry.js → v1/tx.registry.js} +4 -4
- package/sparkdream/sparkdream/{tx.rpc.msg.d.ts → v1/tx.rpc.msg.d.ts} +1 -1
- package/sparkdream/sparkdream/{tx.rpc.msg.js → v1/tx.rpc.msg.js} +2 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
- /package/sparkdream/blog/{query.lcd.d.ts → v1/query.lcd.d.ts} +0 -0
- /package/sparkdream/sparkdream/{query.lcd.d.ts → v1/query.lcd.d.ts} +0 -0
package/esm/ibc/bundle.js
CHANGED
|
@@ -48,54 +48,54 @@ import * as _169 from "./lightclients/wasm/v1/genesis";
|
|
|
48
48
|
import * as _170 from "./lightclients/wasm/v1/query";
|
|
49
49
|
import * as _171 from "./lightclients/wasm/v1/tx";
|
|
50
50
|
import * as _172 from "./lightclients/wasm/v1/wasm";
|
|
51
|
-
import * as
|
|
52
|
-
import * as
|
|
53
|
-
import * as
|
|
54
|
-
import * as
|
|
55
|
-
import * as
|
|
56
|
-
import * as
|
|
57
|
-
import * as
|
|
58
|
-
import * as
|
|
59
|
-
import * as
|
|
60
|
-
import * as
|
|
61
|
-
import * as
|
|
62
|
-
import * as
|
|
63
|
-
import * as
|
|
64
|
-
import * as
|
|
65
|
-
import * as
|
|
66
|
-
import * as
|
|
67
|
-
import * as
|
|
68
|
-
import * as
|
|
69
|
-
import * as
|
|
70
|
-
import * as
|
|
71
|
-
import * as
|
|
72
|
-
import * as
|
|
73
|
-
import * as
|
|
74
|
-
import * as
|
|
75
|
-
import * as
|
|
76
|
-
import * as
|
|
77
|
-
import * as
|
|
78
|
-
import * as
|
|
79
|
-
import * as
|
|
80
|
-
import * as
|
|
81
|
-
import * as
|
|
82
|
-
import * as
|
|
83
|
-
import * as
|
|
84
|
-
import * as
|
|
85
|
-
import * as
|
|
86
|
-
import * as
|
|
87
|
-
import * as
|
|
88
|
-
import * as
|
|
89
|
-
import * as
|
|
90
|
-
import * as
|
|
91
|
-
import * as
|
|
92
|
-
import * as
|
|
93
|
-
import * as
|
|
94
|
-
import * as
|
|
95
|
-
import * as
|
|
96
|
-
import * as
|
|
97
|
-
import * as
|
|
98
|
-
import * as
|
|
51
|
+
import * as _283 from "./applications/interchain_accounts/controller/v1/tx.amino";
|
|
52
|
+
import * as _284 from "./applications/interchain_accounts/host/v1/tx.amino";
|
|
53
|
+
import * as _285 from "./applications/transfer/v1/tx.amino";
|
|
54
|
+
import * as _286 from "./core/channel/v1/tx.amino";
|
|
55
|
+
import * as _287 from "./core/channel/v2/tx.amino";
|
|
56
|
+
import * as _288 from "./core/client/v1/tx.amino";
|
|
57
|
+
import * as _289 from "./core/client/v2/tx.amino";
|
|
58
|
+
import * as _290 from "./core/connection/v1/tx.amino";
|
|
59
|
+
import * as _291 from "./lightclients/wasm/v1/tx.amino";
|
|
60
|
+
import * as _292 from "./applications/interchain_accounts/controller/v1/tx.registry";
|
|
61
|
+
import * as _293 from "./applications/interchain_accounts/host/v1/tx.registry";
|
|
62
|
+
import * as _294 from "./applications/transfer/v1/tx.registry";
|
|
63
|
+
import * as _295 from "./core/channel/v1/tx.registry";
|
|
64
|
+
import * as _296 from "./core/channel/v2/tx.registry";
|
|
65
|
+
import * as _297 from "./core/client/v1/tx.registry";
|
|
66
|
+
import * as _298 from "./core/client/v2/tx.registry";
|
|
67
|
+
import * as _299 from "./core/connection/v1/tx.registry";
|
|
68
|
+
import * as _300 from "./lightclients/wasm/v1/tx.registry";
|
|
69
|
+
import * as _301 from "./applications/interchain_accounts/controller/v1/query.lcd";
|
|
70
|
+
import * as _302 from "./applications/interchain_accounts/host/v1/query.lcd";
|
|
71
|
+
import * as _303 from "./applications/transfer/v1/query.lcd";
|
|
72
|
+
import * as _304 from "./core/channel/v1/query.lcd";
|
|
73
|
+
import * as _305 from "./core/channel/v2/query.lcd";
|
|
74
|
+
import * as _306 from "./core/client/v1/query.lcd";
|
|
75
|
+
import * as _307 from "./core/client/v2/query.lcd";
|
|
76
|
+
import * as _308 from "./core/connection/v1/query.lcd";
|
|
77
|
+
import * as _309 from "./lightclients/wasm/v1/query.lcd";
|
|
78
|
+
import * as _310 from "./applications/interchain_accounts/controller/v1/query.rpc.Query";
|
|
79
|
+
import * as _311 from "./applications/interchain_accounts/host/v1/query.rpc.Query";
|
|
80
|
+
import * as _312 from "./applications/transfer/v1/query.rpc.Query";
|
|
81
|
+
import * as _313 from "./core/channel/v1/query.rpc.Query";
|
|
82
|
+
import * as _314 from "./core/channel/v2/query.rpc.Query";
|
|
83
|
+
import * as _315 from "./core/client/v1/query.rpc.Query";
|
|
84
|
+
import * as _316 from "./core/client/v2/query.rpc.Query";
|
|
85
|
+
import * as _317 from "./core/connection/v1/query.rpc.Query";
|
|
86
|
+
import * as _318 from "./lightclients/wasm/v1/query.rpc.Query";
|
|
87
|
+
import * as _319 from "./applications/interchain_accounts/controller/v1/tx.rpc.msg";
|
|
88
|
+
import * as _320 from "./applications/interchain_accounts/host/v1/tx.rpc.msg";
|
|
89
|
+
import * as _321 from "./applications/transfer/v1/tx.rpc.msg";
|
|
90
|
+
import * as _322 from "./core/channel/v1/tx.rpc.msg";
|
|
91
|
+
import * as _323 from "./core/channel/v2/tx.rpc.msg";
|
|
92
|
+
import * as _324 from "./core/client/v1/tx.rpc.msg";
|
|
93
|
+
import * as _325 from "./core/client/v2/tx.rpc.msg";
|
|
94
|
+
import * as _326 from "./core/connection/v1/tx.rpc.msg";
|
|
95
|
+
import * as _327 from "./lightclients/wasm/v1/tx.rpc.msg";
|
|
96
|
+
import * as _341 from "./lcd";
|
|
97
|
+
import * as _342 from "./rpc.query";
|
|
98
|
+
import * as _343 from "./rpc.tx";
|
|
99
99
|
export var ibc;
|
|
100
100
|
(function (ibc) {
|
|
101
101
|
let applications;
|
|
@@ -108,11 +108,11 @@ export var ibc;
|
|
|
108
108
|
..._124,
|
|
109
109
|
..._125,
|
|
110
110
|
..._126,
|
|
111
|
-
...
|
|
112
|
-
...
|
|
113
|
-
...
|
|
114
|
-
...
|
|
115
|
-
...
|
|
111
|
+
..._283,
|
|
112
|
+
..._292,
|
|
113
|
+
..._301,
|
|
114
|
+
..._310,
|
|
115
|
+
..._319
|
|
116
116
|
};
|
|
117
117
|
})(controller = interchain_accounts.controller || (interchain_accounts.controller = {}));
|
|
118
118
|
let genesis;
|
|
@@ -127,11 +127,11 @@ export var ibc;
|
|
|
127
127
|
..._128,
|
|
128
128
|
..._129,
|
|
129
129
|
..._130,
|
|
130
|
-
...
|
|
131
|
-
...
|
|
132
|
-
...
|
|
133
|
-
...
|
|
134
|
-
...
|
|
130
|
+
..._284,
|
|
131
|
+
..._293,
|
|
132
|
+
..._302,
|
|
133
|
+
..._311,
|
|
134
|
+
..._320
|
|
135
135
|
};
|
|
136
136
|
})(host = interchain_accounts.host || (interchain_accounts.host = {}));
|
|
137
137
|
interchain_accounts.v1 = {
|
|
@@ -157,11 +157,11 @@ export var ibc;
|
|
|
157
157
|
..._140,
|
|
158
158
|
..._141,
|
|
159
159
|
..._142,
|
|
160
|
-
...
|
|
161
|
-
...
|
|
162
|
-
...
|
|
163
|
-
...
|
|
164
|
-
...
|
|
160
|
+
..._285,
|
|
161
|
+
..._294,
|
|
162
|
+
..._303,
|
|
163
|
+
..._312,
|
|
164
|
+
..._321
|
|
165
165
|
};
|
|
166
166
|
})(transfer = applications.transfer || (applications.transfer = {}));
|
|
167
167
|
})(applications = ibc.applications || (ibc.applications = {}));
|
|
@@ -174,22 +174,22 @@ export var ibc;
|
|
|
174
174
|
..._144,
|
|
175
175
|
..._145,
|
|
176
176
|
..._146,
|
|
177
|
-
...
|
|
178
|
-
...
|
|
179
|
-
...
|
|
180
|
-
...
|
|
181
|
-
...
|
|
177
|
+
..._286,
|
|
178
|
+
..._295,
|
|
179
|
+
..._304,
|
|
180
|
+
..._313,
|
|
181
|
+
..._322
|
|
182
182
|
};
|
|
183
183
|
channel.v2 = {
|
|
184
184
|
..._147,
|
|
185
185
|
..._148,
|
|
186
186
|
..._149,
|
|
187
187
|
..._150,
|
|
188
|
-
...
|
|
189
|
-
...
|
|
190
|
-
...
|
|
191
|
-
...
|
|
192
|
-
...
|
|
188
|
+
..._287,
|
|
189
|
+
..._296,
|
|
190
|
+
..._305,
|
|
191
|
+
..._314,
|
|
192
|
+
..._323
|
|
193
193
|
};
|
|
194
194
|
})(channel = core.channel || (core.channel = {}));
|
|
195
195
|
let client;
|
|
@@ -199,11 +199,11 @@ export var ibc;
|
|
|
199
199
|
..._152,
|
|
200
200
|
..._153,
|
|
201
201
|
..._154,
|
|
202
|
-
...
|
|
203
|
-
...
|
|
204
|
-
...
|
|
205
|
-
...
|
|
206
|
-
...
|
|
202
|
+
..._288,
|
|
203
|
+
..._297,
|
|
204
|
+
..._306,
|
|
205
|
+
..._315,
|
|
206
|
+
..._324
|
|
207
207
|
};
|
|
208
208
|
client.v2 = {
|
|
209
209
|
..._155,
|
|
@@ -211,11 +211,11 @@ export var ibc;
|
|
|
211
211
|
..._157,
|
|
212
212
|
..._158,
|
|
213
213
|
..._159,
|
|
214
|
-
...
|
|
215
|
-
...
|
|
216
|
-
...
|
|
217
|
-
...
|
|
218
|
-
...
|
|
214
|
+
..._289,
|
|
215
|
+
..._298,
|
|
216
|
+
..._307,
|
|
217
|
+
..._316,
|
|
218
|
+
..._325
|
|
219
219
|
};
|
|
220
220
|
})(client = core.client || (core.client = {}));
|
|
221
221
|
let commitment;
|
|
@@ -234,11 +234,11 @@ export var ibc;
|
|
|
234
234
|
..._163,
|
|
235
235
|
..._164,
|
|
236
236
|
..._165,
|
|
237
|
-
...
|
|
238
|
-
...
|
|
239
|
-
...
|
|
240
|
-
...
|
|
241
|
-
...
|
|
237
|
+
..._290,
|
|
238
|
+
..._299,
|
|
239
|
+
..._308,
|
|
240
|
+
..._317,
|
|
241
|
+
..._326
|
|
242
242
|
};
|
|
243
243
|
})(connection = core.connection || (core.connection = {}));
|
|
244
244
|
})(core = ibc.core || (ibc.core = {}));
|
|
@@ -266,17 +266,17 @@ export var ibc;
|
|
|
266
266
|
..._170,
|
|
267
267
|
..._171,
|
|
268
268
|
..._172,
|
|
269
|
-
...
|
|
270
|
-
...
|
|
271
|
-
...
|
|
272
|
-
...
|
|
273
|
-
...
|
|
269
|
+
..._291,
|
|
270
|
+
..._300,
|
|
271
|
+
..._309,
|
|
272
|
+
..._318,
|
|
273
|
+
..._327
|
|
274
274
|
};
|
|
275
275
|
})(wasm = lightclients.wasm || (lightclients.wasm = {}));
|
|
276
276
|
})(lightclients = ibc.lightclients || (ibc.lightclients = {}));
|
|
277
277
|
ibc.ClientFactory = {
|
|
278
|
-
...
|
|
279
|
-
...
|
|
280
|
-
...
|
|
278
|
+
..._341,
|
|
279
|
+
..._342,
|
|
280
|
+
..._343
|
|
281
281
|
};
|
|
282
282
|
})(ibc || (ibc = {}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { BinaryReader, BinaryWriter } from "
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
3
|
function createBaseModule() {
|
|
4
4
|
return {
|
|
5
5
|
authority: ""
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
export const Module = {
|
|
9
|
-
typeUrl: "/sparkdream.blog.module.Module",
|
|
9
|
+
typeUrl: "/sparkdream.blog.module.v1.Module",
|
|
10
10
|
encode(message, writer = BinaryWriter.create()) {
|
|
11
11
|
if (message.authority !== "") {
|
|
12
12
|
writer.uint32(10).string(message.authority);
|
|
@@ -58,7 +58,7 @@ export const Module = {
|
|
|
58
58
|
},
|
|
59
59
|
toProtoMsg(message) {
|
|
60
60
|
return {
|
|
61
|
-
typeUrl: "/sparkdream.blog.module.Module",
|
|
61
|
+
typeUrl: "/sparkdream.blog.module.v1.Module",
|
|
62
62
|
value: Module.encode(message).finish()
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { BinaryReader, BinaryWriter } from "
|
|
3
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
function createBaseGenesisState() {
|
|
5
5
|
return {
|
|
6
6
|
params: Params.fromPartial({})
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export const GenesisState = {
|
|
10
|
-
typeUrl: "/sparkdream.blog.GenesisState",
|
|
10
|
+
typeUrl: "/sparkdream.blog.v1.GenesisState",
|
|
11
11
|
encode(message, writer = BinaryWriter.create()) {
|
|
12
12
|
if (message.params !== undefined) {
|
|
13
13
|
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
@@ -59,7 +59,7 @@ export const GenesisState = {
|
|
|
59
59
|
},
|
|
60
60
|
toProtoMsg(message) {
|
|
61
61
|
return {
|
|
62
|
-
typeUrl: "/sparkdream.blog.GenesisState",
|
|
62
|
+
typeUrl: "/sparkdream.blog.v1.GenesisState",
|
|
63
63
|
value: GenesisState.encode(message).finish()
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { BinaryReader, BinaryWriter } from "
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
function createBaseParams() {
|
|
4
4
|
return {};
|
|
5
5
|
}
|
|
6
6
|
export const Params = {
|
|
7
|
-
typeUrl: "/sparkdream.blog.Params",
|
|
7
|
+
typeUrl: "/sparkdream.blog.v1.Params",
|
|
8
8
|
aminoType: "sparkdream/x/blog/Params",
|
|
9
9
|
encode(_, writer = BinaryWriter.create()) {
|
|
10
10
|
return writer;
|
|
@@ -52,7 +52,7 @@ export const Params = {
|
|
|
52
52
|
},
|
|
53
53
|
toProtoMsg(message) {
|
|
54
54
|
return {
|
|
55
|
-
typeUrl: "/sparkdream.blog.Params",
|
|
55
|
+
typeUrl: "/sparkdream.blog.v1.Params",
|
|
56
56
|
value: Params.encode(message).finish()
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { BinaryReader, BinaryWriter } from "
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
3
|
function createBasePost() {
|
|
4
4
|
return {
|
|
5
5
|
title: "",
|
|
@@ -9,7 +9,7 @@ function createBasePost() {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export const Post = {
|
|
12
|
-
typeUrl: "/sparkdream.blog.Post",
|
|
12
|
+
typeUrl: "/sparkdream.blog.v1.Post",
|
|
13
13
|
encode(message, writer = BinaryWriter.create()) {
|
|
14
14
|
if (message.title !== "") {
|
|
15
15
|
writer.uint32(10).string(message.title);
|
|
@@ -94,7 +94,7 @@ export const Post = {
|
|
|
94
94
|
},
|
|
95
95
|
toProtoMsg(message) {
|
|
96
96
|
return {
|
|
97
|
-
typeUrl: "/sparkdream.blog.Post",
|
|
97
|
+
typeUrl: "/sparkdream.blog.v1.Post",
|
|
98
98
|
value: Post.encode(message).finish()
|
|
99
99
|
};
|
|
100
100
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { PageRequest, PageResponse } from "
|
|
2
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
3
3
|
import { Params } from "./params";
|
|
4
4
|
import { Post } from "./post";
|
|
5
|
-
import { BinaryReader, BinaryWriter } from "
|
|
5
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
6
6
|
function createBaseQueryParamsRequest() {
|
|
7
7
|
return {};
|
|
8
8
|
}
|
|
9
9
|
export const QueryParamsRequest = {
|
|
10
|
-
typeUrl: "/sparkdream.blog.QueryParamsRequest",
|
|
10
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsRequest",
|
|
11
11
|
encode(_, writer = BinaryWriter.create()) {
|
|
12
12
|
return writer;
|
|
13
13
|
},
|
|
@@ -48,7 +48,7 @@ export const QueryParamsRequest = {
|
|
|
48
48
|
},
|
|
49
49
|
toProtoMsg(message) {
|
|
50
50
|
return {
|
|
51
|
-
typeUrl: "/sparkdream.blog.QueryParamsRequest",
|
|
51
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsRequest",
|
|
52
52
|
value: QueryParamsRequest.encode(message).finish()
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -59,7 +59,7 @@ function createBaseQueryParamsResponse() {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
export const QueryParamsResponse = {
|
|
62
|
-
typeUrl: "/sparkdream.blog.QueryParamsResponse",
|
|
62
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsResponse",
|
|
63
63
|
encode(message, writer = BinaryWriter.create()) {
|
|
64
64
|
if (message.params !== undefined) {
|
|
65
65
|
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
@@ -111,7 +111,7 @@ export const QueryParamsResponse = {
|
|
|
111
111
|
},
|
|
112
112
|
toProtoMsg(message) {
|
|
113
113
|
return {
|
|
114
|
-
typeUrl: "/sparkdream.blog.QueryParamsResponse",
|
|
114
|
+
typeUrl: "/sparkdream.blog.v1.QueryParamsResponse",
|
|
115
115
|
value: QueryParamsResponse.encode(message).finish()
|
|
116
116
|
};
|
|
117
117
|
}
|
|
@@ -122,7 +122,7 @@ function createBaseQueryShowPostRequest() {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
export const QueryShowPostRequest = {
|
|
125
|
-
typeUrl: "/sparkdream.blog.QueryShowPostRequest",
|
|
125
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostRequest",
|
|
126
126
|
encode(message, writer = BinaryWriter.create()) {
|
|
127
127
|
if (message.id !== BigInt(0)) {
|
|
128
128
|
writer.uint32(8).uint64(message.id);
|
|
@@ -174,7 +174,7 @@ export const QueryShowPostRequest = {
|
|
|
174
174
|
},
|
|
175
175
|
toProtoMsg(message) {
|
|
176
176
|
return {
|
|
177
|
-
typeUrl: "/sparkdream.blog.QueryShowPostRequest",
|
|
177
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostRequest",
|
|
178
178
|
value: QueryShowPostRequest.encode(message).finish()
|
|
179
179
|
};
|
|
180
180
|
}
|
|
@@ -185,7 +185,7 @@ function createBaseQueryShowPostResponse() {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
export const QueryShowPostResponse = {
|
|
188
|
-
typeUrl: "/sparkdream.blog.QueryShowPostResponse",
|
|
188
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostResponse",
|
|
189
189
|
encode(message, writer = BinaryWriter.create()) {
|
|
190
190
|
if (message.post !== undefined) {
|
|
191
191
|
Post.encode(message.post, writer.uint32(10).fork()).ldelim();
|
|
@@ -237,7 +237,7 @@ export const QueryShowPostResponse = {
|
|
|
237
237
|
},
|
|
238
238
|
toProtoMsg(message) {
|
|
239
239
|
return {
|
|
240
|
-
typeUrl: "/sparkdream.blog.QueryShowPostResponse",
|
|
240
|
+
typeUrl: "/sparkdream.blog.v1.QueryShowPostResponse",
|
|
241
241
|
value: QueryShowPostResponse.encode(message).finish()
|
|
242
242
|
};
|
|
243
243
|
}
|
|
@@ -248,7 +248,7 @@ function createBaseQueryListPostRequest() {
|
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
export const QueryListPostRequest = {
|
|
251
|
-
typeUrl: "/sparkdream.blog.QueryListPostRequest",
|
|
251
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostRequest",
|
|
252
252
|
encode(message, writer = BinaryWriter.create()) {
|
|
253
253
|
if (message.pagination !== undefined) {
|
|
254
254
|
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
@@ -300,7 +300,7 @@ export const QueryListPostRequest = {
|
|
|
300
300
|
},
|
|
301
301
|
toProtoMsg(message) {
|
|
302
302
|
return {
|
|
303
|
-
typeUrl: "/sparkdream.blog.QueryListPostRequest",
|
|
303
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostRequest",
|
|
304
304
|
value: QueryListPostRequest.encode(message).finish()
|
|
305
305
|
};
|
|
306
306
|
}
|
|
@@ -312,7 +312,7 @@ function createBaseQueryListPostResponse() {
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
export const QueryListPostResponse = {
|
|
315
|
-
typeUrl: "/sparkdream.blog.QueryListPostResponse",
|
|
315
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostResponse",
|
|
316
316
|
encode(message, writer = BinaryWriter.create()) {
|
|
317
317
|
for (const v of message.post) {
|
|
318
318
|
Post.encode(v, writer.uint32(10).fork()).ldelim();
|
|
@@ -378,7 +378,7 @@ export const QueryListPostResponse = {
|
|
|
378
378
|
},
|
|
379
379
|
toProtoMsg(message) {
|
|
380
380
|
return {
|
|
381
|
-
typeUrl: "/sparkdream.blog.QueryListPostResponse",
|
|
381
|
+
typeUrl: "/sparkdream.blog.v1.QueryListPostResponse",
|
|
382
382
|
value: QueryListPostResponse.encode(message).finish()
|
|
383
383
|
};
|
|
384
384
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { setPaginationParams } from "
|
|
2
|
+
import { setPaginationParams } from "../../../helpers";
|
|
3
3
|
export class LCDQueryClient {
|
|
4
4
|
req;
|
|
5
5
|
constructor({ requestClient }) {
|
|
@@ -7,15 +7,15 @@ export class LCDQueryClient {
|
|
|
7
7
|
}
|
|
8
8
|
/* Parameters queries the parameters of the module. */
|
|
9
9
|
params = async (_params = {}) => {
|
|
10
|
-
const endpoint = `sparkdream/blog/params`;
|
|
10
|
+
const endpoint = `sparkdream/blog/v1/params`;
|
|
11
11
|
return await this.req.get(endpoint);
|
|
12
12
|
};
|
|
13
|
-
/* Queries a list of ShowPost items. */
|
|
13
|
+
/* ShowPost Queries a list of ShowPost items. */
|
|
14
14
|
showPost = async (params) => {
|
|
15
|
-
const endpoint = `sparkdream/blog/show_post/${params.id}`;
|
|
15
|
+
const endpoint = `sparkdream/blog/v1/show_post/${params.id}`;
|
|
16
16
|
return await this.req.get(endpoint);
|
|
17
17
|
};
|
|
18
|
-
/* Queries a list of ListPost items. */
|
|
18
|
+
/* ListPost Queries a list of ListPost items. */
|
|
19
19
|
listPost = async (params = {
|
|
20
20
|
pagination: undefined
|
|
21
21
|
}) => {
|
|
@@ -25,7 +25,7 @@ export class LCDQueryClient {
|
|
|
25
25
|
if (typeof params?.pagination !== "undefined") {
|
|
26
26
|
setPaginationParams(options, params.pagination);
|
|
27
27
|
}
|
|
28
|
-
const endpoint = `sparkdream/blog/list_post`;
|
|
28
|
+
const endpoint = `sparkdream/blog/v1/list_post`;
|
|
29
29
|
return await this.req.get(endpoint, options);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BinaryReader } from "
|
|
1
|
+
import { BinaryReader } from "../../../binary";
|
|
2
2
|
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
3
|
import { QueryParamsRequest, QueryParamsResponse, QueryShowPostRequest, QueryShowPostResponse, QueryListPostRequest, QueryListPostResponse } from "./query";
|
|
4
4
|
export class QueryClientImpl {
|
|
@@ -9,21 +9,21 @@ export class QueryClientImpl {
|
|
|
9
9
|
/* Parameters queries the parameters of the module. */
|
|
10
10
|
params = async (request = {}) => {
|
|
11
11
|
const data = QueryParamsRequest.encode(request).finish();
|
|
12
|
-
const promise = this.rpc.request("sparkdream.blog.Query", "Params", data);
|
|
12
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Query", "Params", data);
|
|
13
13
|
return promise.then(data => QueryParamsResponse.decode(new BinaryReader(data)));
|
|
14
14
|
};
|
|
15
|
-
/* Queries a list of ShowPost items. */
|
|
15
|
+
/* ShowPost Queries a list of ShowPost items. */
|
|
16
16
|
showPost = async (request) => {
|
|
17
17
|
const data = QueryShowPostRequest.encode(request).finish();
|
|
18
|
-
const promise = this.rpc.request("sparkdream.blog.Query", "ShowPost", data);
|
|
18
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Query", "ShowPost", data);
|
|
19
19
|
return promise.then(data => QueryShowPostResponse.decode(new BinaryReader(data)));
|
|
20
20
|
};
|
|
21
|
-
/* Queries a list of ListPost items. */
|
|
21
|
+
/* ListPost Queries a list of ListPost items. */
|
|
22
22
|
listPost = async (request = {
|
|
23
23
|
pagination: undefined
|
|
24
24
|
}) => {
|
|
25
25
|
const data = QueryListPostRequest.encode(request).finish();
|
|
26
|
-
const promise = this.rpc.request("sparkdream.blog.Query", "ListPost", data);
|
|
26
|
+
const promise = this.rpc.request("sparkdream.blog.v1.Query", "ListPost", data);
|
|
27
27
|
return promise.then(data => QueryListPostResponse.decode(new BinaryReader(data)));
|
|
28
28
|
};
|
|
29
29
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { MsgUpdateParams, MsgCreatePost, MsgUpdatePost, MsgDeletePost } from "./tx";
|
|
3
3
|
export const AminoConverter = {
|
|
4
|
-
"/sparkdream.blog.MsgUpdateParams": {
|
|
4
|
+
"/sparkdream.blog.v1.MsgUpdateParams": {
|
|
5
5
|
aminoType: "sparkdream/x/blog/MsgUpdateParams",
|
|
6
6
|
toAmino: MsgUpdateParams.toAmino,
|
|
7
7
|
fromAmino: MsgUpdateParams.fromAmino
|
|
8
8
|
},
|
|
9
|
-
"/sparkdream.blog.MsgCreatePost": {
|
|
10
|
-
aminoType: "/sparkdream.blog.MsgCreatePost",
|
|
9
|
+
"/sparkdream.blog.v1.MsgCreatePost": {
|
|
10
|
+
aminoType: "/sparkdream.blog.v1.MsgCreatePost",
|
|
11
11
|
toAmino: MsgCreatePost.toAmino,
|
|
12
12
|
fromAmino: MsgCreatePost.fromAmino
|
|
13
13
|
},
|
|
14
|
-
"/sparkdream.blog.MsgUpdatePost": {
|
|
15
|
-
aminoType: "/sparkdream.blog.MsgUpdatePost",
|
|
14
|
+
"/sparkdream.blog.v1.MsgUpdatePost": {
|
|
15
|
+
aminoType: "/sparkdream.blog.v1.MsgUpdatePost",
|
|
16
16
|
toAmino: MsgUpdatePost.toAmino,
|
|
17
17
|
fromAmino: MsgUpdatePost.fromAmino
|
|
18
18
|
},
|
|
19
|
-
"/sparkdream.blog.MsgDeletePost": {
|
|
20
|
-
aminoType: "/sparkdream.blog.MsgDeletePost",
|
|
19
|
+
"/sparkdream.blog.v1.MsgDeletePost": {
|
|
20
|
+
aminoType: "/sparkdream.blog.v1.MsgDeletePost",
|
|
21
21
|
toAmino: MsgDeletePost.toAmino,
|
|
22
22
|
fromAmino: MsgDeletePost.fromAmino
|
|
23
23
|
}
|