@sparkdreamnft/sparkdreamjs 0.0.47 → 0.0.49
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/amino-schema.d.ts +86 -0
- package/amino-schema.js +1 -1
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/amino-schema.js +1 -1
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/v1/query.js +125 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +7 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/artifact/v1/tx.js +13 -1
- package/esm/sparkdream/artifact/v1/types.js +25 -1
- package/esm/sparkdream/blog/v1/genesis.js +97 -1
- package/esm/sparkdream/bundle.js +447 -439
- package/esm/sparkdream/collect/v1/genesis.js +308 -3
- package/esm/sparkdream/collect/v1/tx.js +170 -0
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/collect/v1/types.js +51 -3
- package/esm/sparkdream/commons/v1/genesis.js +756 -27
- package/esm/sparkdream/commons/v1/group.js +130 -2
- package/esm/sparkdream/commons/v1/poll.js +281 -0
- package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
- package/esm/sparkdream/commons/v1/query.js +759 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
- package/esm/sparkdream/commons/v1/tx.js +730 -4
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
- package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
- package/esm/sparkdream/federation/v1/genesis.js +212 -2
- package/esm/sparkdream/federation/v1/tx.js +196 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +20 -2
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/v1/types.js +194 -2
- package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/genesis.js +428 -1
- package/esm/sparkdream/forum/v1/params.js +182 -254
- package/esm/sparkdream/forum/v1/query.js +112 -7
- package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
- package/esm/sparkdream/futarchy/v1/market.js +37 -1
- package/esm/sparkdream/futarchy/v1/tx.js +13 -1
- package/esm/sparkdream/name/v1/dispute.js +13 -1
- package/esm/sparkdream/rep/v1/genesis.js +272 -2
- package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
- package/esm/sparkdream/rep/v1/invitation.js +25 -1
- package/esm/sparkdream/rep/v1/member_report.js +335 -1
- package/esm/sparkdream/rep/v1/migration.js +27 -2
- package/esm/sparkdream/rep/v1/params.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +304 -1
- package/esm/sparkdream/rep/v1/query.lcd.js +19 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +22 -1
- package/esm/sparkdream/rep/v1/stake.js +10 -0
- package/esm/sparkdream/rep/v1/tx.js +372 -14
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
- package/esm/sparkdream/reveal/v1/types.js +9 -21
- package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/esm/sparkdream/season/v1/genesis.js +125 -1
- package/esm/sparkdream/season/v1/guild_invite.js +13 -1
- package/esm/sparkdream/season/v1/guild_membership.js +13 -1
- package/esm/sparkdream/season/v1/member_profile.js +13 -1
- package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/esm/sparkdream/season/v1/nomination.js +37 -1
- package/esm/sparkdream/season/v1/query.js +26 -35
- package/esm/sparkdream/season/v1/query.lcd.js +1 -1
- package/esm/sparkdream/season/v1/quest.js +13 -1
- package/esm/sparkdream/season/v1/season.js +13 -1
- package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
- package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/esm/sparkdream/service/v1/genesis.js +126 -1
- package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/esm/sparkdream/session/v1/genesis.js +303 -1
- package/esm/sparkdream/session/v1/params.js +24 -0
- package/esm/sparkdream/shield/v1/genesis.js +56 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +202 -1
- package/esm/sparkdream/vault/v1/genesis.js +25 -1
- package/esm/sparkdream/vault/v1/query.js +15 -2
- package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
- package/esm/sparkdream/vault/v1/tx.js +301 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
- 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/v1/query.d.ts +86 -0
- package/sparkdream/artifact/v1/query.js +126 -1
- package/sparkdream/artifact/v1/query.lcd.d.ts +2 -1
- package/sparkdream/artifact/v1/query.lcd.js +7 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/artifact/v1/query.rpc.Query.js +11 -0
- package/sparkdream/artifact/v1/tx.d.ts +14 -0
- package/sparkdream/artifact/v1/tx.js +13 -1
- package/sparkdream/artifact/v1/types.d.ts +14 -0
- package/sparkdream/artifact/v1/types.js +25 -1
- package/sparkdream/blog/v1/genesis.d.ts +60 -0
- package/sparkdream/blog/v1/genesis.js +98 -2
- package/sparkdream/bundle.d.ts +17133 -16131
- package/sparkdream/bundle.js +447 -439
- package/sparkdream/collect/v1/genesis.d.ts +186 -0
- package/sparkdream/collect/v1/genesis.js +309 -4
- package/sparkdream/collect/v1/tx.d.ts +100 -0
- package/sparkdream/collect/v1/tx.js +171 -1
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/collect/v1/types.d.ts +52 -0
- package/sparkdream/collect/v1/types.js +51 -3
- package/sparkdream/commons/v1/genesis.d.ts +443 -22
- package/sparkdream/commons/v1/genesis.js +756 -27
- package/sparkdream/commons/v1/group.d.ts +75 -0
- package/sparkdream/commons/v1/group.js +133 -3
- package/sparkdream/commons/v1/poll.d.ts +135 -0
- package/sparkdream/commons/v1/poll.js +286 -0
- package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
- package/sparkdream/commons/v1/poll_vote.js +110 -0
- package/sparkdream/commons/v1/query.d.ts +465 -0
- package/sparkdream/commons/v1/query.js +760 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
- package/sparkdream/commons/v1/query.lcd.js +46 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
- package/sparkdream/commons/v1/tx.d.ts +475 -1
- package/sparkdream/commons/v1/tx.js +731 -4
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +13 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
- package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
- package/sparkdream/commons/v1/voter_tree.js +211 -0
- package/sparkdream/federation/v1/genesis.d.ts +136 -1
- package/sparkdream/federation/v1/genesis.js +212 -2
- package/sparkdream/federation/v1/tx.d.ts +138 -0
- package/sparkdream/federation/v1/tx.js +198 -1
- package/sparkdream/federation/v1/tx.registry.d.ts +13 -1
- package/sparkdream/federation/v1/tx.registry.js +19 -1
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/federation/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/v1/types.d.ts +166 -0
- package/sparkdream/federation/v1/types.js +197 -3
- package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
- package/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/sparkdream/forum/v1/genesis.d.ts +256 -0
- package/sparkdream/forum/v1/genesis.js +429 -2
- package/sparkdream/forum/v1/params.d.ts +0 -30
- package/sparkdream/forum/v1/params.js +182 -254
- package/sparkdream/forum/v1/query.d.ts +70 -0
- package/sparkdream/forum/v1/query.js +112 -7
- package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
- package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
- package/sparkdream/futarchy/v1/market.d.ts +32 -0
- package/sparkdream/futarchy/v1/market.js +37 -1
- package/sparkdream/futarchy/v1/tx.d.ts +10 -0
- package/sparkdream/futarchy/v1/tx.js +13 -1
- package/sparkdream/name/v1/dispute.d.ts +14 -0
- package/sparkdream/name/v1/dispute.js +13 -1
- package/sparkdream/rep/v1/genesis.d.ts +151 -1
- package/sparkdream/rep/v1/genesis.js +272 -2
- package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
- package/sparkdream/rep/v1/initiative_review.js +13 -1
- package/sparkdream/rep/v1/invitation.d.ts +32 -0
- package/sparkdream/rep/v1/invitation.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +215 -0
- package/sparkdream/rep/v1/member_report.js +336 -2
- package/sparkdream/rep/v1/migration.d.ts +34 -1
- package/sparkdream/rep/v1/migration.js +27 -2
- package/sparkdream/rep/v1/params.d.ts +18 -0
- package/sparkdream/rep/v1/params.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +187 -1
- package/sparkdream/rep/v1/query.js +304 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +19 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +16 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +21 -0
- package/sparkdream/rep/v1/stake.d.ts +5 -0
- package/sparkdream/rep/v1/stake.js +10 -0
- package/sparkdream/rep/v1/tx.d.ts +340 -39
- package/sparkdream/rep/v1/tx.js +375 -17
- 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 +12 -2
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
- package/sparkdream/reveal/v1/types.d.ts +0 -8
- package/sparkdream/reveal/v1/types.js +9 -21
- package/sparkdream/rpc.query.d.ts +8 -0
- package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
- package/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
- package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/sparkdream/season/v1/genesis.d.ts +75 -0
- package/sparkdream/season/v1/genesis.js +126 -2
- package/sparkdream/season/v1/guild_invite.d.ts +10 -0
- package/sparkdream/season/v1/guild_invite.js +13 -1
- package/sparkdream/season/v1/guild_membership.d.ts +12 -0
- package/sparkdream/season/v1/guild_membership.js +13 -1
- package/sparkdream/season/v1/member_profile.d.ts +12 -0
- package/sparkdream/season/v1/member_profile.js +13 -1
- package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
- package/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
- package/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/sparkdream/season/v1/nomination.d.ts +32 -0
- package/sparkdream/season/v1/nomination.js +37 -1
- package/sparkdream/season/v1/query.d.ts +10 -6
- package/sparkdream/season/v1/query.js +26 -35
- package/sparkdream/season/v1/query.lcd.js +1 -1
- package/sparkdream/season/v1/quest.d.ts +12 -0
- package/sparkdream/season/v1/quest.js +13 -1
- package/sparkdream/season/v1/season.d.ts +12 -0
- package/sparkdream/season/v1/season.js +13 -1
- package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
- package/sparkdream/season/v1/season_stats_counters.js +124 -0
- package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
- package/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/sparkdream/service/v1/genesis.d.ts +71 -0
- package/sparkdream/service/v1/genesis.js +127 -2
- package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
- package/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/sparkdream/session/v1/genesis.d.ts +190 -0
- package/sparkdream/session/v1/genesis.js +304 -2
- package/sparkdream/session/v1/params.d.ts +18 -0
- package/sparkdream/session/v1/params.js +24 -0
- package/sparkdream/shield/v1/genesis.d.ts +37 -1
- package/sparkdream/shield/v1/genesis.js +55 -1
- package/sparkdream/shield/v1/params.d.ts +26 -2
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/types.d.ts +122 -0
- package/sparkdream/shield/v1/types.js +203 -2
- package/sparkdream/vault/v1/genesis.d.ts +14 -0
- package/sparkdream/vault/v1/genesis.js +25 -1
- package/sparkdream/vault/v1/query.d.ts +16 -3
- package/sparkdream/vault/v1/query.js +15 -2
- package/sparkdream/vault/v1/query.lcd.js +3 -0
- package/sparkdream/vault/v1/tx.d.ts +219 -0
- package/sparkdream/vault/v1/tx.js +302 -1
- package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
- package/sparkdream/vault/v1/tx.registry.js +37 -1
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
- package/sparkdream/vault/v1/vault_signer.js +15 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -256,6 +256,14 @@ class QueryClientImpl {
|
|
|
256
256
|
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "RentalOffers", data);
|
|
257
257
|
return promise.then(data => query_1.QueryRentalOffersResponse.decode(new binary_1.BinaryReader(data)));
|
|
258
258
|
};
|
|
259
|
+
/* NextClassId returns the id the next created class will get. Clients that
|
|
260
|
+
bind the id into data before creating (blind-mint commitments) pass it as
|
|
261
|
+
MsgCreateClass.expected_class_id. */
|
|
262
|
+
nextClassId = async (request = {}) => {
|
|
263
|
+
const data = query_1.QueryNextClassIdRequest.encode(request).finish();
|
|
264
|
+
const promise = this.rpc.request("sparkdream.artifact.v1.Query", "NextClassId", data);
|
|
265
|
+
return promise.then(data => query_1.QueryNextClassIdResponse.decode(new binary_1.BinaryReader(data)));
|
|
266
|
+
};
|
|
259
267
|
}
|
|
260
268
|
exports.QueryClientImpl = QueryClientImpl;
|
|
261
269
|
const createRpcQueryExtension = (base) => {
|
|
@@ -381,6 +389,9 @@ const createRpcQueryExtension = (base) => {
|
|
|
381
389
|
},
|
|
382
390
|
rentalOffers(request) {
|
|
383
391
|
return queryService.rentalOffers(request);
|
|
392
|
+
},
|
|
393
|
+
nextClassId(request) {
|
|
394
|
+
return queryService.nextClassId(request);
|
|
384
395
|
}
|
|
385
396
|
};
|
|
386
397
|
};
|
|
@@ -122,6 +122,13 @@ export interface MsgCreateClass {
|
|
|
122
122
|
* Harberger tokens; fixed at creation (tax_bps_per_year 0 = none).
|
|
123
123
|
*/
|
|
124
124
|
harberger: HarbergerPolicy;
|
|
125
|
+
/**
|
|
126
|
+
* Optional: the id the client expects the class to get (NextClassId). When
|
|
127
|
+
* set, the tx fails unless the class gets exactly this id. A blind-mint
|
|
128
|
+
* commitment binds the class id into every leaf, so a class created under
|
|
129
|
+
* another id could never reveal; failing is the safe outcome. 0 = any id.
|
|
130
|
+
*/
|
|
131
|
+
expectedClassId: bigint;
|
|
125
132
|
}
|
|
126
133
|
export interface MsgCreateClassProtoMsg {
|
|
127
134
|
typeUrl: "/sparkdream.artifact.v1.MsgCreateClass";
|
|
@@ -179,6 +186,13 @@ export interface MsgCreateClassAmino {
|
|
|
179
186
|
* Harberger tokens; fixed at creation (tax_bps_per_year 0 = none).
|
|
180
187
|
*/
|
|
181
188
|
harberger: HarbergerPolicyAmino;
|
|
189
|
+
/**
|
|
190
|
+
* Optional: the id the client expects the class to get (NextClassId). When
|
|
191
|
+
* set, the tx fails unless the class gets exactly this id. A blind-mint
|
|
192
|
+
* commitment binds the class id into every leaf, so a class created under
|
|
193
|
+
* another id could never reveal; failing is the safe outcome. 0 = any id.
|
|
194
|
+
*/
|
|
195
|
+
expected_class_id?: string;
|
|
182
196
|
}
|
|
183
197
|
export interface MsgCreateClassAminoMsg {
|
|
184
198
|
type: "sparkdream/x/artifact/MsgCreateClass";
|
|
@@ -174,7 +174,8 @@ function createBaseMsgCreateClass() {
|
|
|
174
174
|
reveal: types_1.RevealPolicy.fromPartial({}),
|
|
175
175
|
renderer: types_1.Renderer.fromPartial({}),
|
|
176
176
|
tokenModel: 0,
|
|
177
|
-
harberger: types_1.HarbergerPolicy.fromPartial({})
|
|
177
|
+
harberger: types_1.HarbergerPolicy.fromPartial({}),
|
|
178
|
+
expectedClassId: BigInt(0)
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
181
|
/**
|
|
@@ -247,6 +248,9 @@ exports.MsgCreateClass = {
|
|
|
247
248
|
if (message.harberger !== undefined) {
|
|
248
249
|
types_1.HarbergerPolicy.encode(message.harberger, writer.uint32(162).fork()).ldelim();
|
|
249
250
|
}
|
|
251
|
+
if (message.expectedClassId !== BigInt(0)) {
|
|
252
|
+
writer.uint32(168).uint64(message.expectedClassId);
|
|
253
|
+
}
|
|
250
254
|
return writer;
|
|
251
255
|
},
|
|
252
256
|
decode(input, length) {
|
|
@@ -316,6 +320,9 @@ exports.MsgCreateClass = {
|
|
|
316
320
|
case 20:
|
|
317
321
|
message.harberger = types_1.HarbergerPolicy.decode(reader, reader.uint32());
|
|
318
322
|
break;
|
|
323
|
+
case 21:
|
|
324
|
+
message.expectedClassId = reader.uint64();
|
|
325
|
+
break;
|
|
319
326
|
default:
|
|
320
327
|
reader.skipType(tag & 7);
|
|
321
328
|
break;
|
|
@@ -345,6 +352,7 @@ exports.MsgCreateClass = {
|
|
|
345
352
|
message.renderer = object.renderer !== undefined && object.renderer !== null ? types_1.Renderer.fromPartial(object.renderer) : undefined;
|
|
346
353
|
message.tokenModel = object.tokenModel ?? 0;
|
|
347
354
|
message.harberger = object.harberger !== undefined && object.harberger !== null ? types_1.HarbergerPolicy.fromPartial(object.harberger) : undefined;
|
|
355
|
+
message.expectedClassId = object.expectedClassId !== undefined && object.expectedClassId !== null ? BigInt(object.expectedClassId.toString()) : BigInt(0);
|
|
348
356
|
return message;
|
|
349
357
|
},
|
|
350
358
|
fromAmino(object) {
|
|
@@ -405,6 +413,9 @@ exports.MsgCreateClass = {
|
|
|
405
413
|
if (object.harberger !== undefined && object.harberger !== null) {
|
|
406
414
|
message.harberger = types_1.HarbergerPolicy.fromAmino(object.harberger);
|
|
407
415
|
}
|
|
416
|
+
if (object.expected_class_id !== undefined && object.expected_class_id !== null) {
|
|
417
|
+
message.expectedClassId = BigInt(object.expected_class_id);
|
|
418
|
+
}
|
|
408
419
|
return message;
|
|
409
420
|
},
|
|
410
421
|
toAmino(message) {
|
|
@@ -439,6 +450,7 @@ exports.MsgCreateClass = {
|
|
|
439
450
|
obj.renderer = message.renderer ? types_1.Renderer.toAmino(message.renderer) : types_1.Renderer.toAmino(types_1.Renderer.fromPartial({}));
|
|
440
451
|
obj.token_model = message.tokenModel === 0 ? undefined : message.tokenModel;
|
|
441
452
|
obj.harberger = message.harberger ? types_1.HarbergerPolicy.toAmino(message.harberger) : types_1.HarbergerPolicy.toAmino(types_1.HarbergerPolicy.fromPartial({}));
|
|
453
|
+
obj.expected_class_id = message.expectedClassId !== BigInt(0) ? message.expectedClassId?.toString() : undefined;
|
|
442
454
|
return obj;
|
|
443
455
|
},
|
|
444
456
|
fromAminoMsg(object) {
|
|
@@ -2219,6 +2219,13 @@ export interface Auction {
|
|
|
2219
2219
|
highBidder: string;
|
|
2220
2220
|
highBid: string;
|
|
2221
2221
|
bids: number;
|
|
2222
|
+
/**
|
|
2223
|
+
* The high bid's optional pins (MsgBid expected_metadata_hash /
|
|
2224
|
+
* expected_contents_hash). Settlement re-checks them and refunds the bid
|
|
2225
|
+
* instead of selling when the token no longer matches.
|
|
2226
|
+
*/
|
|
2227
|
+
highBidMetadataHash: string;
|
|
2228
|
+
highBidContentsHash: string;
|
|
2222
2229
|
}
|
|
2223
2230
|
export interface AuctionProtoMsg {
|
|
2224
2231
|
typeUrl: "/sparkdream.artifact.v1.Auction";
|
|
@@ -2253,6 +2260,13 @@ export interface AuctionAmino {
|
|
|
2253
2260
|
high_bidder?: string;
|
|
2254
2261
|
high_bid?: string;
|
|
2255
2262
|
bids?: number;
|
|
2263
|
+
/**
|
|
2264
|
+
* The high bid's optional pins (MsgBid expected_metadata_hash /
|
|
2265
|
+
* expected_contents_hash). Settlement re-checks them and refunds the bid
|
|
2266
|
+
* instead of selling when the token no longer matches.
|
|
2267
|
+
*/
|
|
2268
|
+
high_bid_metadata_hash?: string;
|
|
2269
|
+
high_bid_contents_hash?: string;
|
|
2256
2270
|
}
|
|
2257
2271
|
export interface AuctionAminoMsg {
|
|
2258
2272
|
type: "/sparkdream.artifact.v1.Auction";
|
|
@@ -5640,7 +5640,9 @@ function createBaseAuction() {
|
|
|
5640
5640
|
endsAt: BigInt(0),
|
|
5641
5641
|
highBidder: "",
|
|
5642
5642
|
highBid: "",
|
|
5643
|
-
bids: 0
|
|
5643
|
+
bids: 0,
|
|
5644
|
+
highBidMetadataHash: "",
|
|
5645
|
+
highBidContentsHash: ""
|
|
5644
5646
|
};
|
|
5645
5647
|
}
|
|
5646
5648
|
/**
|
|
@@ -5687,6 +5689,12 @@ exports.Auction = {
|
|
|
5687
5689
|
if (message.bids !== 0) {
|
|
5688
5690
|
writer.uint32(88).uint32(message.bids);
|
|
5689
5691
|
}
|
|
5692
|
+
if (message.highBidMetadataHash !== "") {
|
|
5693
|
+
writer.uint32(98).string(message.highBidMetadataHash);
|
|
5694
|
+
}
|
|
5695
|
+
if (message.highBidContentsHash !== "") {
|
|
5696
|
+
writer.uint32(106).string(message.highBidContentsHash);
|
|
5697
|
+
}
|
|
5690
5698
|
return writer;
|
|
5691
5699
|
},
|
|
5692
5700
|
decode(input, length) {
|
|
@@ -5729,6 +5737,12 @@ exports.Auction = {
|
|
|
5729
5737
|
case 11:
|
|
5730
5738
|
message.bids = reader.uint32();
|
|
5731
5739
|
break;
|
|
5740
|
+
case 12:
|
|
5741
|
+
message.highBidMetadataHash = reader.string();
|
|
5742
|
+
break;
|
|
5743
|
+
case 13:
|
|
5744
|
+
message.highBidContentsHash = reader.string();
|
|
5745
|
+
break;
|
|
5732
5746
|
default:
|
|
5733
5747
|
reader.skipType(tag & 7);
|
|
5734
5748
|
break;
|
|
@@ -5749,6 +5763,8 @@ exports.Auction = {
|
|
|
5749
5763
|
message.highBidder = object.highBidder ?? "";
|
|
5750
5764
|
message.highBid = object.highBid ?? "";
|
|
5751
5765
|
message.bids = object.bids ?? 0;
|
|
5766
|
+
message.highBidMetadataHash = object.highBidMetadataHash ?? "";
|
|
5767
|
+
message.highBidContentsHash = object.highBidContentsHash ?? "";
|
|
5752
5768
|
return message;
|
|
5753
5769
|
},
|
|
5754
5770
|
fromAmino(object) {
|
|
@@ -5786,6 +5802,12 @@ exports.Auction = {
|
|
|
5786
5802
|
if (object.bids !== undefined && object.bids !== null) {
|
|
5787
5803
|
message.bids = object.bids;
|
|
5788
5804
|
}
|
|
5805
|
+
if (object.high_bid_metadata_hash !== undefined && object.high_bid_metadata_hash !== null) {
|
|
5806
|
+
message.highBidMetadataHash = object.high_bid_metadata_hash;
|
|
5807
|
+
}
|
|
5808
|
+
if (object.high_bid_contents_hash !== undefined && object.high_bid_contents_hash !== null) {
|
|
5809
|
+
message.highBidContentsHash = object.high_bid_contents_hash;
|
|
5810
|
+
}
|
|
5789
5811
|
return message;
|
|
5790
5812
|
},
|
|
5791
5813
|
toAmino(message) {
|
|
@@ -5801,6 +5823,8 @@ exports.Auction = {
|
|
|
5801
5823
|
obj.high_bidder = message.highBidder === "" ? undefined : message.highBidder;
|
|
5802
5824
|
obj.high_bid = message.highBid === "" ? undefined : message.highBid;
|
|
5803
5825
|
obj.bids = message.bids === 0 ? undefined : message.bids;
|
|
5826
|
+
obj.high_bid_metadata_hash = message.highBidMetadataHash === "" ? undefined : message.highBidMetadataHash;
|
|
5827
|
+
obj.high_bid_contents_hash = message.highBidContentsHash === "" ? undefined : message.highBidContentsHash;
|
|
5804
5828
|
return obj;
|
|
5805
5829
|
},
|
|
5806
5830
|
fromAminoMsg(object) {
|
|
@@ -38,6 +38,13 @@ export interface GenesisState {
|
|
|
38
38
|
* reaction_counts is the list of all aggregate reaction counts.
|
|
39
39
|
*/
|
|
40
40
|
reactionCounts: GenesisReactionCounts[];
|
|
41
|
+
/**
|
|
42
|
+
* Authors queued for eager promotion of their ephemeral content (admitted
|
|
43
|
+
* as members after posting). The queue is driven by an x/rep hook, so it
|
|
44
|
+
* cannot be rebuilt from the posts; without it an import would drop every
|
|
45
|
+
* pending promotion.
|
|
46
|
+
*/
|
|
47
|
+
promotionQueue: PromotionQueueEntry[];
|
|
41
48
|
}
|
|
42
49
|
export interface GenesisStateProtoMsg {
|
|
43
50
|
typeUrl: "/sparkdream.blog.v1.GenesisState";
|
|
@@ -78,11 +85,46 @@ export interface GenesisStateAmino {
|
|
|
78
85
|
* reaction_counts is the list of all aggregate reaction counts.
|
|
79
86
|
*/
|
|
80
87
|
reaction_counts?: GenesisReactionCountsAmino[];
|
|
88
|
+
/**
|
|
89
|
+
* Authors queued for eager promotion of their ephemeral content (admitted
|
|
90
|
+
* as members after posting). The queue is driven by an x/rep hook, so it
|
|
91
|
+
* cannot be rebuilt from the posts; without it an import would drop every
|
|
92
|
+
* pending promotion.
|
|
93
|
+
*/
|
|
94
|
+
promotion_queue?: PromotionQueueEntryAmino[];
|
|
81
95
|
}
|
|
82
96
|
export interface GenesisStateAminoMsg {
|
|
83
97
|
type: "/sparkdream.blog.v1.GenesisState";
|
|
84
98
|
value: GenesisStateAmino;
|
|
85
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* PromotionQueueEntry is one queued author and the height it was enqueued.
|
|
102
|
+
* @name PromotionQueueEntry
|
|
103
|
+
* @package sparkdream.blog.v1
|
|
104
|
+
* @see proto type: sparkdream.blog.v1.PromotionQueueEntry
|
|
105
|
+
*/
|
|
106
|
+
export interface PromotionQueueEntry {
|
|
107
|
+
creator: string;
|
|
108
|
+
enqueuedAt: bigint;
|
|
109
|
+
}
|
|
110
|
+
export interface PromotionQueueEntryProtoMsg {
|
|
111
|
+
typeUrl: "/sparkdream.blog.v1.PromotionQueueEntry";
|
|
112
|
+
value: Uint8Array;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* PromotionQueueEntry is one queued author and the height it was enqueued.
|
|
116
|
+
* @name PromotionQueueEntryAmino
|
|
117
|
+
* @package sparkdream.blog.v1
|
|
118
|
+
* @see proto type: sparkdream.blog.v1.PromotionQueueEntry
|
|
119
|
+
*/
|
|
120
|
+
export interface PromotionQueueEntryAmino {
|
|
121
|
+
creator?: string;
|
|
122
|
+
enqueued_at?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface PromotionQueueEntryAminoMsg {
|
|
125
|
+
type: "/sparkdream.blog.v1.PromotionQueueEntry";
|
|
126
|
+
value: PromotionQueueEntryAmino;
|
|
127
|
+
}
|
|
86
128
|
/**
|
|
87
129
|
* GenesisState defines the blog module's genesis state.
|
|
88
130
|
* @name GenesisState
|
|
@@ -101,3 +143,21 @@ export declare const GenesisState: {
|
|
|
101
143
|
toProto(message: GenesisState): Uint8Array;
|
|
102
144
|
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
103
145
|
};
|
|
146
|
+
/**
|
|
147
|
+
* PromotionQueueEntry is one queued author and the height it was enqueued.
|
|
148
|
+
* @name PromotionQueueEntry
|
|
149
|
+
* @package sparkdream.blog.v1
|
|
150
|
+
* @see proto type: sparkdream.blog.v1.PromotionQueueEntry
|
|
151
|
+
*/
|
|
152
|
+
export declare const PromotionQueueEntry: {
|
|
153
|
+
typeUrl: string;
|
|
154
|
+
encode(message: PromotionQueueEntry, writer?: BinaryWriter): BinaryWriter;
|
|
155
|
+
decode(input: BinaryReader | Uint8Array, length?: number): PromotionQueueEntry;
|
|
156
|
+
fromPartial(object: DeepPartial<PromotionQueueEntry>): PromotionQueueEntry;
|
|
157
|
+
fromAmino(object: PromotionQueueEntryAmino): PromotionQueueEntry;
|
|
158
|
+
toAmino(message: PromotionQueueEntry): PromotionQueueEntryAmino;
|
|
159
|
+
fromAminoMsg(object: PromotionQueueEntryAminoMsg): PromotionQueueEntry;
|
|
160
|
+
fromProtoMsg(message: PromotionQueueEntryProtoMsg): PromotionQueueEntry;
|
|
161
|
+
toProto(message: PromotionQueueEntry): Uint8Array;
|
|
162
|
+
toProtoMsg(message: PromotionQueueEntry): PromotionQueueEntryProtoMsg;
|
|
163
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenesisState = void 0;
|
|
3
|
+
exports.PromotionQueueEntry = exports.GenesisState = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const post_1 = require("./post");
|
|
@@ -14,7 +14,8 @@ function createBaseGenesisState() {
|
|
|
14
14
|
replies: [],
|
|
15
15
|
replyCount: BigInt(0),
|
|
16
16
|
reactions: [],
|
|
17
|
-
reactionCounts: []
|
|
17
|
+
reactionCounts: [],
|
|
18
|
+
promotionQueue: []
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
@@ -47,6 +48,9 @@ exports.GenesisState = {
|
|
|
47
48
|
for (const v of message.reactionCounts) {
|
|
48
49
|
types_1.GenesisReactionCounts.encode(v, writer.uint32(58).fork()).ldelim();
|
|
49
50
|
}
|
|
51
|
+
for (const v of message.promotionQueue) {
|
|
52
|
+
exports.PromotionQueueEntry.encode(v, writer.uint32(66).fork()).ldelim();
|
|
53
|
+
}
|
|
50
54
|
return writer;
|
|
51
55
|
},
|
|
52
56
|
decode(input, length) {
|
|
@@ -77,6 +81,9 @@ exports.GenesisState = {
|
|
|
77
81
|
case 7:
|
|
78
82
|
message.reactionCounts.push(types_1.GenesisReactionCounts.decode(reader, reader.uint32()));
|
|
79
83
|
break;
|
|
84
|
+
case 8:
|
|
85
|
+
message.promotionQueue.push(exports.PromotionQueueEntry.decode(reader, reader.uint32()));
|
|
86
|
+
break;
|
|
80
87
|
default:
|
|
81
88
|
reader.skipType(tag & 7);
|
|
82
89
|
break;
|
|
@@ -93,6 +100,7 @@ exports.GenesisState = {
|
|
|
93
100
|
message.replyCount = object.replyCount !== undefined && object.replyCount !== null ? BigInt(object.replyCount.toString()) : BigInt(0);
|
|
94
101
|
message.reactions = object.reactions?.map(e => types_1.Reaction.fromPartial(e)) || [];
|
|
95
102
|
message.reactionCounts = object.reactionCounts?.map(e => types_1.GenesisReactionCounts.fromPartial(e)) || [];
|
|
103
|
+
message.promotionQueue = object.promotionQueue?.map(e => exports.PromotionQueueEntry.fromPartial(e)) || [];
|
|
96
104
|
return message;
|
|
97
105
|
},
|
|
98
106
|
fromAmino(object) {
|
|
@@ -110,6 +118,7 @@ exports.GenesisState = {
|
|
|
110
118
|
}
|
|
111
119
|
message.reactions = object.reactions?.map(e => types_1.Reaction.fromAmino(e)) || [];
|
|
112
120
|
message.reactionCounts = object.reaction_counts?.map(e => types_1.GenesisReactionCounts.fromAmino(e)) || [];
|
|
121
|
+
message.promotionQueue = object.promotion_queue?.map(e => exports.PromotionQueueEntry.fromAmino(e)) || [];
|
|
113
122
|
return message;
|
|
114
123
|
},
|
|
115
124
|
toAmino(message) {
|
|
@@ -141,6 +150,12 @@ exports.GenesisState = {
|
|
|
141
150
|
else {
|
|
142
151
|
obj.reaction_counts = message.reactionCounts;
|
|
143
152
|
}
|
|
153
|
+
if (message.promotionQueue) {
|
|
154
|
+
obj.promotion_queue = message.promotionQueue.map(e => e ? exports.PromotionQueueEntry.toAmino(e) : undefined);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
obj.promotion_queue = message.promotionQueue;
|
|
158
|
+
}
|
|
144
159
|
return obj;
|
|
145
160
|
},
|
|
146
161
|
fromAminoMsg(object) {
|
|
@@ -159,3 +174,84 @@ exports.GenesisState = {
|
|
|
159
174
|
};
|
|
160
175
|
}
|
|
161
176
|
};
|
|
177
|
+
function createBasePromotionQueueEntry() {
|
|
178
|
+
return {
|
|
179
|
+
creator: "",
|
|
180
|
+
enqueuedAt: BigInt(0)
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* PromotionQueueEntry is one queued author and the height it was enqueued.
|
|
185
|
+
* @name PromotionQueueEntry
|
|
186
|
+
* @package sparkdream.blog.v1
|
|
187
|
+
* @see proto type: sparkdream.blog.v1.PromotionQueueEntry
|
|
188
|
+
*/
|
|
189
|
+
exports.PromotionQueueEntry = {
|
|
190
|
+
typeUrl: "/sparkdream.blog.v1.PromotionQueueEntry",
|
|
191
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
192
|
+
if (message.creator !== "") {
|
|
193
|
+
writer.uint32(10).string(message.creator);
|
|
194
|
+
}
|
|
195
|
+
if (message.enqueuedAt !== BigInt(0)) {
|
|
196
|
+
writer.uint32(16).int64(message.enqueuedAt);
|
|
197
|
+
}
|
|
198
|
+
return writer;
|
|
199
|
+
},
|
|
200
|
+
decode(input, length) {
|
|
201
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
+
const message = createBasePromotionQueueEntry();
|
|
204
|
+
while (reader.pos < end) {
|
|
205
|
+
const tag = reader.uint32();
|
|
206
|
+
switch (tag >>> 3) {
|
|
207
|
+
case 1:
|
|
208
|
+
message.creator = reader.string();
|
|
209
|
+
break;
|
|
210
|
+
case 2:
|
|
211
|
+
message.enqueuedAt = reader.int64();
|
|
212
|
+
break;
|
|
213
|
+
default:
|
|
214
|
+
reader.skipType(tag & 7);
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
fromPartial(object) {
|
|
221
|
+
const message = createBasePromotionQueueEntry();
|
|
222
|
+
message.creator = object.creator ?? "";
|
|
223
|
+
message.enqueuedAt = object.enqueuedAt !== undefined && object.enqueuedAt !== null ? BigInt(object.enqueuedAt.toString()) : BigInt(0);
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
fromAmino(object) {
|
|
227
|
+
const message = createBasePromotionQueueEntry();
|
|
228
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
229
|
+
message.creator = object.creator;
|
|
230
|
+
}
|
|
231
|
+
if (object.enqueued_at !== undefined && object.enqueued_at !== null) {
|
|
232
|
+
message.enqueuedAt = BigInt(object.enqueued_at);
|
|
233
|
+
}
|
|
234
|
+
return message;
|
|
235
|
+
},
|
|
236
|
+
toAmino(message) {
|
|
237
|
+
const obj = {};
|
|
238
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
239
|
+
obj.enqueued_at = message.enqueuedAt !== BigInt(0) ? message.enqueuedAt?.toString() : undefined;
|
|
240
|
+
return obj;
|
|
241
|
+
},
|
|
242
|
+
fromAminoMsg(object) {
|
|
243
|
+
return exports.PromotionQueueEntry.fromAmino(object.value);
|
|
244
|
+
},
|
|
245
|
+
fromProtoMsg(message) {
|
|
246
|
+
return exports.PromotionQueueEntry.decode(message.value);
|
|
247
|
+
},
|
|
248
|
+
toProto(message) {
|
|
249
|
+
return exports.PromotionQueueEntry.encode(message).finish();
|
|
250
|
+
},
|
|
251
|
+
toProtoMsg(message) {
|
|
252
|
+
return {
|
|
253
|
+
typeUrl: "/sparkdream.blog.v1.PromotionQueueEntry",
|
|
254
|
+
value: exports.PromotionQueueEntry.encode(message).finish()
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
};
|