@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/blog/v1/params.js +25 -1
- package/esm/sparkdream/blog/v1/post.js +16 -1
- package/esm/sparkdream/blog/v1/query.js +165 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
- package/esm/sparkdream/blog/v1/tx.js +32 -2
- package/esm/sparkdream/bundle.js +343 -339
- package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
- package/esm/sparkdream/collect/v1/genesis.js +12 -11
- package/esm/sparkdream/collect/v1/params.js +37 -1
- package/esm/sparkdream/collect/v1/query.js +201 -186
- package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
- package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
- package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
- package/esm/sparkdream/collect/v1/tx.js +0 -258
- package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
- package/esm/sparkdream/collect/v1/types.js +50 -143
- package/esm/sparkdream/federation/v1/genesis.js +12 -11
- package/esm/sparkdream/federation/v1/query.js +37 -187
- package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
- package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
- package/esm/sparkdream/federation/v1/tx.js +0 -270
- package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
- package/esm/sparkdream/federation/v1/types.js +13 -318
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/name/v1/owner_info.js +13 -1
- package/esm/sparkdream/name/v1/query.js +141 -0
- package/esm/sparkdream/name/v1/query.lcd.js +7 -0
- package/esm/sparkdream/name/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/name/v1/tx.amino.js +6 -1
- package/esm/sparkdream/name/v1/tx.js +147 -0
- package/esm/sparkdream/name/v1/tx.registry.js +20 -2
- package/esm/sparkdream/name/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +32 -17
- package/esm/sparkdream/rep/v1/member_report.js +98 -1
- package/esm/sparkdream/rep/v1/query.js +297 -306
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
- package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
- package/esm/sparkdream/rep/v1/tx.js +86 -58
- package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +16 -0
- package/sparkdream/blog/v1/params.js +25 -1
- package/sparkdream/blog/v1/post.d.ts +8 -0
- package/sparkdream/blog/v1/post.js +16 -1
- package/sparkdream/blog/v1/query.d.ts +92 -0
- package/sparkdream/blog/v1/query.js +166 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
- package/sparkdream/blog/v1/query.lcd.js +11 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
- package/sparkdream/blog/v1/tx.d.ts +16 -0
- package/sparkdream/blog/v1/tx.js +32 -2
- package/sparkdream/bundle.d.ts +14445 -14514
- package/sparkdream/bundle.js +343 -339
- package/sparkdream/client.d.ts +11 -26
- package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
- package/sparkdream/collect/v1/curator_activity.js +161 -0
- package/sparkdream/collect/v1/genesis.d.ts +4 -3
- package/sparkdream/collect/v1/genesis.js +11 -10
- package/sparkdream/collect/v1/params.d.ts +32 -0
- package/sparkdream/collect/v1/params.js +37 -1
- package/sparkdream/collect/v1/query.d.ts +142 -133
- package/sparkdream/collect/v1/query.js +201 -186
- package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
- package/sparkdream/collect/v1/query.lcd.js +16 -16
- package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
- package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
- package/sparkdream/collect/v1/tx.amino.js +0 -10
- package/sparkdream/collect/v1/tx.d.ts +0 -162
- package/sparkdream/collect/v1/tx.js +2 -260
- package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
- package/sparkdream/collect/v1/tx.registry.js +1 -37
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
- package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
- package/sparkdream/collect/v1/types.d.ts +26 -56
- package/sparkdream/collect/v1/types.js +51 -144
- package/sparkdream/federation/v1/genesis.d.ts +4 -3
- package/sparkdream/federation/v1/genesis.js +11 -10
- package/sparkdream/federation/v1/query.d.ts +53 -136
- package/sparkdream/federation/v1/query.js +37 -187
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
- package/sparkdream/federation/v1/query.lcd.js +6 -16
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
- package/sparkdream/federation/v1/tx.amino.js +0 -10
- package/sparkdream/federation/v1/tx.d.ts +0 -164
- package/sparkdream/federation/v1/tx.js +1 -272
- package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
- package/sparkdream/federation/v1/tx.registry.js +1 -37
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
- package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
- package/sparkdream/federation/v1/types.d.ts +10 -106
- package/sparkdream/federation/v1/types.js +14 -321
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/name/v1/owner_info.d.ts +12 -0
- package/sparkdream/name/v1/owner_info.js +13 -1
- package/sparkdream/name/v1/query.d.ts +95 -0
- package/sparkdream/name/v1/query.js +142 -1
- package/sparkdream/name/v1/query.lcd.d.ts +2 -1
- package/sparkdream/name/v1/query.lcd.js +7 -0
- package/sparkdream/name/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/name/v1/query.rpc.Query.js +11 -0
- package/sparkdream/name/v1/tx.amino.d.ts +6 -1
- package/sparkdream/name/v1/tx.amino.js +5 -0
- package/sparkdream/name/v1/tx.d.ts +105 -0
- package/sparkdream/name/v1/tx.js +148 -1
- package/sparkdream/name/v1/tx.registry.d.ts +13 -1
- package/sparkdream/name/v1/tx.registry.js +19 -1
- package/sparkdream/name/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/name/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +11 -9
- package/sparkdream/rep/v1/genesis.js +32 -17
- package/sparkdream/rep/v1/member_report.d.ts +61 -0
- package/sparkdream/rep/v1/member_report.js +99 -2
- package/sparkdream/rep/v1/query.d.ts +259 -261
- package/sparkdream/rep/v1/query.js +299 -308
- package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
- package/sparkdream/rep/v1/query.lcd.js +23 -16
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
- package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
- package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
- package/sparkdream/rep/v1/tx.amino.js +9 -9
- package/sparkdream/rep/v1/tx.d.ts +121 -104
- package/sparkdream/rep/v1/tx.js +87 -59
- package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
- package/sparkdream/rep/v1/tx.registry.js +17 -17
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
- package/sparkdream/rpc.query.d.ts +9 -8
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
- package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
- package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
- package/sparkdream/rep/v1/sentinel_activity.js +0 -219
|
@@ -35,7 +35,13 @@ function createBaseParams() {
|
|
|
35
35
|
costPerByteExempt: false,
|
|
36
36
|
ephemeralTtl: BigInt(0),
|
|
37
37
|
convictionRenewalThreshold: "",
|
|
38
|
-
convictionRenewalPeriod: BigInt(0)
|
|
38
|
+
convictionRenewalPeriod: BigInt(0),
|
|
39
|
+
minSentinelBond: "",
|
|
40
|
+
minSentinelRepTier: BigInt(0),
|
|
41
|
+
minSentinelTrustLevel: "",
|
|
42
|
+
minSentinelAgeBlocks: BigInt(0),
|
|
43
|
+
sentinelDemotionCooldown: BigInt(0),
|
|
44
|
+
sentinelDemotionThreshold: ""
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
/**
|
|
@@ -144,6 +150,24 @@ export const Params = {
|
|
|
144
150
|
if (message.convictionRenewalPeriod !== BigInt(0)) {
|
|
145
151
|
writer.uint32(304).int64(message.convictionRenewalPeriod);
|
|
146
152
|
}
|
|
153
|
+
if (message.minSentinelBond !== "") {
|
|
154
|
+
writer.uint32(322).string(message.minSentinelBond);
|
|
155
|
+
}
|
|
156
|
+
if (message.minSentinelRepTier !== BigInt(0)) {
|
|
157
|
+
writer.uint32(328).uint64(message.minSentinelRepTier);
|
|
158
|
+
}
|
|
159
|
+
if (message.minSentinelTrustLevel !== "") {
|
|
160
|
+
writer.uint32(338).string(message.minSentinelTrustLevel);
|
|
161
|
+
}
|
|
162
|
+
if (message.minSentinelAgeBlocks !== BigInt(0)) {
|
|
163
|
+
writer.uint32(344).int64(message.minSentinelAgeBlocks);
|
|
164
|
+
}
|
|
165
|
+
if (message.sentinelDemotionCooldown !== BigInt(0)) {
|
|
166
|
+
writer.uint32(352).int64(message.sentinelDemotionCooldown);
|
|
167
|
+
}
|
|
168
|
+
if (message.sentinelDemotionThreshold !== "") {
|
|
169
|
+
writer.uint32(362).string(message.sentinelDemotionThreshold);
|
|
170
|
+
}
|
|
147
171
|
return writer;
|
|
148
172
|
},
|
|
149
173
|
decode(input, length) {
|
|
@@ -249,6 +273,24 @@ export const Params = {
|
|
|
249
273
|
case 38:
|
|
250
274
|
message.convictionRenewalPeriod = reader.int64();
|
|
251
275
|
break;
|
|
276
|
+
case 40:
|
|
277
|
+
message.minSentinelBond = reader.string();
|
|
278
|
+
break;
|
|
279
|
+
case 41:
|
|
280
|
+
message.minSentinelRepTier = reader.uint64();
|
|
281
|
+
break;
|
|
282
|
+
case 42:
|
|
283
|
+
message.minSentinelTrustLevel = reader.string();
|
|
284
|
+
break;
|
|
285
|
+
case 43:
|
|
286
|
+
message.minSentinelAgeBlocks = reader.int64();
|
|
287
|
+
break;
|
|
288
|
+
case 44:
|
|
289
|
+
message.sentinelDemotionCooldown = reader.int64();
|
|
290
|
+
break;
|
|
291
|
+
case 45:
|
|
292
|
+
message.sentinelDemotionThreshold = reader.string();
|
|
293
|
+
break;
|
|
252
294
|
default:
|
|
253
295
|
reader.skipType(tag & 7);
|
|
254
296
|
break;
|
|
@@ -290,6 +332,12 @@ export const Params = {
|
|
|
290
332
|
message.ephemeralTtl = object.ephemeralTtl !== undefined && object.ephemeralTtl !== null ? BigInt(object.ephemeralTtl.toString()) : BigInt(0);
|
|
291
333
|
message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
|
|
292
334
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
335
|
+
message.minSentinelBond = object.minSentinelBond ?? "";
|
|
336
|
+
message.minSentinelRepTier = object.minSentinelRepTier !== undefined && object.minSentinelRepTier !== null ? BigInt(object.minSentinelRepTier.toString()) : BigInt(0);
|
|
337
|
+
message.minSentinelTrustLevel = object.minSentinelTrustLevel ?? "";
|
|
338
|
+
message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
|
|
339
|
+
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
340
|
+
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
293
341
|
return message;
|
|
294
342
|
},
|
|
295
343
|
fromAmino(object) {
|
|
@@ -390,6 +438,24 @@ export const Params = {
|
|
|
390
438
|
if (object.conviction_renewal_period !== undefined && object.conviction_renewal_period !== null) {
|
|
391
439
|
message.convictionRenewalPeriod = BigInt(object.conviction_renewal_period);
|
|
392
440
|
}
|
|
441
|
+
if (object.min_sentinel_bond !== undefined && object.min_sentinel_bond !== null) {
|
|
442
|
+
message.minSentinelBond = object.min_sentinel_bond;
|
|
443
|
+
}
|
|
444
|
+
if (object.min_sentinel_rep_tier !== undefined && object.min_sentinel_rep_tier !== null) {
|
|
445
|
+
message.minSentinelRepTier = BigInt(object.min_sentinel_rep_tier);
|
|
446
|
+
}
|
|
447
|
+
if (object.min_sentinel_trust_level !== undefined && object.min_sentinel_trust_level !== null) {
|
|
448
|
+
message.minSentinelTrustLevel = object.min_sentinel_trust_level;
|
|
449
|
+
}
|
|
450
|
+
if (object.min_sentinel_age_blocks !== undefined && object.min_sentinel_age_blocks !== null) {
|
|
451
|
+
message.minSentinelAgeBlocks = BigInt(object.min_sentinel_age_blocks);
|
|
452
|
+
}
|
|
453
|
+
if (object.sentinel_demotion_cooldown !== undefined && object.sentinel_demotion_cooldown !== null) {
|
|
454
|
+
message.sentinelDemotionCooldown = BigInt(object.sentinel_demotion_cooldown);
|
|
455
|
+
}
|
|
456
|
+
if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
|
|
457
|
+
message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
|
|
458
|
+
}
|
|
393
459
|
return message;
|
|
394
460
|
},
|
|
395
461
|
toAmino(message) {
|
|
@@ -426,6 +492,12 @@ export const Params = {
|
|
|
426
492
|
obj.ephemeral_ttl = message.ephemeralTtl !== BigInt(0) ? message.ephemeralTtl?.toString() : undefined;
|
|
427
493
|
obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
|
|
428
494
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
495
|
+
obj.min_sentinel_bond = message.minSentinelBond === "" ? undefined : message.minSentinelBond;
|
|
496
|
+
obj.min_sentinel_rep_tier = message.minSentinelRepTier !== BigInt(0) ? message.minSentinelRepTier?.toString() : undefined;
|
|
497
|
+
obj.min_sentinel_trust_level = message.minSentinelTrustLevel === "" ? undefined : message.minSentinelTrustLevel;
|
|
498
|
+
obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
|
|
499
|
+
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
500
|
+
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
429
501
|
return obj;
|
|
430
502
|
},
|
|
431
503
|
fromAminoMsg(object) {
|
|
@@ -480,7 +552,13 @@ function createBaseForumOperationalParams() {
|
|
|
480
552
|
moveAppealCooldown: BigInt(0),
|
|
481
553
|
ephemeralTtl: BigInt(0),
|
|
482
554
|
convictionRenewalThreshold: "",
|
|
483
|
-
convictionRenewalPeriod: BigInt(0)
|
|
555
|
+
convictionRenewalPeriod: BigInt(0),
|
|
556
|
+
minSentinelBond: "",
|
|
557
|
+
minSentinelRepTier: BigInt(0),
|
|
558
|
+
minSentinelTrustLevel: "",
|
|
559
|
+
minSentinelAgeBlocks: BigInt(0),
|
|
560
|
+
sentinelDemotionCooldown: BigInt(0),
|
|
561
|
+
sentinelDemotionThreshold: ""
|
|
484
562
|
};
|
|
485
563
|
}
|
|
486
564
|
/**
|
|
@@ -583,6 +661,24 @@ export const ForumOperationalParams = {
|
|
|
583
661
|
if (message.convictionRenewalPeriod !== BigInt(0)) {
|
|
584
662
|
writer.uint32(256).int64(message.convictionRenewalPeriod);
|
|
585
663
|
}
|
|
664
|
+
if (message.minSentinelBond !== "") {
|
|
665
|
+
writer.uint32(322).string(message.minSentinelBond);
|
|
666
|
+
}
|
|
667
|
+
if (message.minSentinelRepTier !== BigInt(0)) {
|
|
668
|
+
writer.uint32(328).uint64(message.minSentinelRepTier);
|
|
669
|
+
}
|
|
670
|
+
if (message.minSentinelTrustLevel !== "") {
|
|
671
|
+
writer.uint32(338).string(message.minSentinelTrustLevel);
|
|
672
|
+
}
|
|
673
|
+
if (message.minSentinelAgeBlocks !== BigInt(0)) {
|
|
674
|
+
writer.uint32(344).int64(message.minSentinelAgeBlocks);
|
|
675
|
+
}
|
|
676
|
+
if (message.sentinelDemotionCooldown !== BigInt(0)) {
|
|
677
|
+
writer.uint32(352).int64(message.sentinelDemotionCooldown);
|
|
678
|
+
}
|
|
679
|
+
if (message.sentinelDemotionThreshold !== "") {
|
|
680
|
+
writer.uint32(362).string(message.sentinelDemotionThreshold);
|
|
681
|
+
}
|
|
586
682
|
return writer;
|
|
587
683
|
},
|
|
588
684
|
decode(input, length) {
|
|
@@ -679,6 +775,24 @@ export const ForumOperationalParams = {
|
|
|
679
775
|
case 32:
|
|
680
776
|
message.convictionRenewalPeriod = reader.int64();
|
|
681
777
|
break;
|
|
778
|
+
case 40:
|
|
779
|
+
message.minSentinelBond = reader.string();
|
|
780
|
+
break;
|
|
781
|
+
case 41:
|
|
782
|
+
message.minSentinelRepTier = reader.uint64();
|
|
783
|
+
break;
|
|
784
|
+
case 42:
|
|
785
|
+
message.minSentinelTrustLevel = reader.string();
|
|
786
|
+
break;
|
|
787
|
+
case 43:
|
|
788
|
+
message.minSentinelAgeBlocks = reader.int64();
|
|
789
|
+
break;
|
|
790
|
+
case 44:
|
|
791
|
+
message.sentinelDemotionCooldown = reader.int64();
|
|
792
|
+
break;
|
|
793
|
+
case 45:
|
|
794
|
+
message.sentinelDemotionThreshold = reader.string();
|
|
795
|
+
break;
|
|
682
796
|
default:
|
|
683
797
|
reader.skipType(tag & 7);
|
|
684
798
|
break;
|
|
@@ -717,6 +831,12 @@ export const ForumOperationalParams = {
|
|
|
717
831
|
message.ephemeralTtl = object.ephemeralTtl !== undefined && object.ephemeralTtl !== null ? BigInt(object.ephemeralTtl.toString()) : BigInt(0);
|
|
718
832
|
message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
|
|
719
833
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
834
|
+
message.minSentinelBond = object.minSentinelBond ?? "";
|
|
835
|
+
message.minSentinelRepTier = object.minSentinelRepTier !== undefined && object.minSentinelRepTier !== null ? BigInt(object.minSentinelRepTier.toString()) : BigInt(0);
|
|
836
|
+
message.minSentinelTrustLevel = object.minSentinelTrustLevel ?? "";
|
|
837
|
+
message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
|
|
838
|
+
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
839
|
+
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
720
840
|
return message;
|
|
721
841
|
},
|
|
722
842
|
fromAmino(object) {
|
|
@@ -808,6 +928,24 @@ export const ForumOperationalParams = {
|
|
|
808
928
|
if (object.conviction_renewal_period !== undefined && object.conviction_renewal_period !== null) {
|
|
809
929
|
message.convictionRenewalPeriod = BigInt(object.conviction_renewal_period);
|
|
810
930
|
}
|
|
931
|
+
if (object.min_sentinel_bond !== undefined && object.min_sentinel_bond !== null) {
|
|
932
|
+
message.minSentinelBond = object.min_sentinel_bond;
|
|
933
|
+
}
|
|
934
|
+
if (object.min_sentinel_rep_tier !== undefined && object.min_sentinel_rep_tier !== null) {
|
|
935
|
+
message.minSentinelRepTier = BigInt(object.min_sentinel_rep_tier);
|
|
936
|
+
}
|
|
937
|
+
if (object.min_sentinel_trust_level !== undefined && object.min_sentinel_trust_level !== null) {
|
|
938
|
+
message.minSentinelTrustLevel = object.min_sentinel_trust_level;
|
|
939
|
+
}
|
|
940
|
+
if (object.min_sentinel_age_blocks !== undefined && object.min_sentinel_age_blocks !== null) {
|
|
941
|
+
message.minSentinelAgeBlocks = BigInt(object.min_sentinel_age_blocks);
|
|
942
|
+
}
|
|
943
|
+
if (object.sentinel_demotion_cooldown !== undefined && object.sentinel_demotion_cooldown !== null) {
|
|
944
|
+
message.sentinelDemotionCooldown = BigInt(object.sentinel_demotion_cooldown);
|
|
945
|
+
}
|
|
946
|
+
if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
|
|
947
|
+
message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
|
|
948
|
+
}
|
|
811
949
|
return message;
|
|
812
950
|
},
|
|
813
951
|
toAmino(message) {
|
|
@@ -841,6 +979,12 @@ export const ForumOperationalParams = {
|
|
|
841
979
|
obj.ephemeral_ttl = message.ephemeralTtl !== BigInt(0) ? message.ephemeralTtl?.toString() : undefined;
|
|
842
980
|
obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
|
|
843
981
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
982
|
+
obj.min_sentinel_bond = message.minSentinelBond === "" ? undefined : message.minSentinelBond;
|
|
983
|
+
obj.min_sentinel_rep_tier = message.minSentinelRepTier !== BigInt(0) ? message.minSentinelRepTier?.toString() : undefined;
|
|
984
|
+
obj.min_sentinel_trust_level = message.minSentinelTrustLevel === "" ? undefined : message.minSentinelTrustLevel;
|
|
985
|
+
obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
|
|
986
|
+
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
987
|
+
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
844
988
|
return obj;
|
|
845
989
|
},
|
|
846
990
|
fromAminoMsg(object) {
|
|
@@ -17,7 +17,8 @@ function createBaseMarket() {
|
|
|
17
17
|
poolYes: "",
|
|
18
18
|
poolNo: "",
|
|
19
19
|
initialLiquidity: "",
|
|
20
|
-
liquidityWithdrawn: ""
|
|
20
|
+
liquidityWithdrawn: "",
|
|
21
|
+
settlementPriceYes: ""
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
@@ -74,6 +75,9 @@ export const Market = {
|
|
|
74
75
|
if (message.liquidityWithdrawn !== "") {
|
|
75
76
|
writer.uint32(122).string(message.liquidityWithdrawn);
|
|
76
77
|
}
|
|
78
|
+
if (message.settlementPriceYes !== "") {
|
|
79
|
+
writer.uint32(130).string(Decimal.fromUserInput(message.settlementPriceYes, 18).atomics);
|
|
80
|
+
}
|
|
77
81
|
return writer;
|
|
78
82
|
},
|
|
79
83
|
decode(input, length) {
|
|
@@ -128,6 +132,9 @@ export const Market = {
|
|
|
128
132
|
case 15:
|
|
129
133
|
message.liquidityWithdrawn = reader.string();
|
|
130
134
|
break;
|
|
135
|
+
case 16:
|
|
136
|
+
message.settlementPriceYes = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
137
|
+
break;
|
|
131
138
|
default:
|
|
132
139
|
reader.skipType(tag & 7);
|
|
133
140
|
break;
|
|
@@ -152,6 +159,7 @@ export const Market = {
|
|
|
152
159
|
message.poolNo = object.poolNo ?? "";
|
|
153
160
|
message.initialLiquidity = object.initialLiquidity ?? "";
|
|
154
161
|
message.liquidityWithdrawn = object.liquidityWithdrawn ?? "";
|
|
162
|
+
message.settlementPriceYes = object.settlementPriceYes ?? "";
|
|
155
163
|
return message;
|
|
156
164
|
},
|
|
157
165
|
fromAmino(object) {
|
|
@@ -201,6 +209,9 @@ export const Market = {
|
|
|
201
209
|
if (object.liquidity_withdrawn !== undefined && object.liquidity_withdrawn !== null) {
|
|
202
210
|
message.liquidityWithdrawn = object.liquidity_withdrawn;
|
|
203
211
|
}
|
|
212
|
+
if (object.settlement_price_yes !== undefined && object.settlement_price_yes !== null) {
|
|
213
|
+
message.settlementPriceYes = object.settlement_price_yes;
|
|
214
|
+
}
|
|
204
215
|
return message;
|
|
205
216
|
},
|
|
206
217
|
toAmino(message) {
|
|
@@ -220,6 +231,7 @@ export const Market = {
|
|
|
220
231
|
obj.pool_no = message.poolNo === "" ? undefined : message.poolNo;
|
|
221
232
|
obj.initial_liquidity = message.initialLiquidity === "" ? undefined : message.initialLiquidity;
|
|
222
233
|
obj.liquidity_withdrawn = message.liquidityWithdrawn === "" ? undefined : message.liquidityWithdrawn;
|
|
234
|
+
obj.settlement_price_yes = message.settlementPriceYes === "" ? undefined : message.settlementPriceYes;
|
|
223
235
|
return obj;
|
|
224
236
|
},
|
|
225
237
|
fromAminoMsg(object) {
|
|
@@ -4,7 +4,8 @@ function createBaseOwnerInfo() {
|
|
|
4
4
|
return {
|
|
5
5
|
address: "",
|
|
6
6
|
primaryName: "",
|
|
7
|
-
lastActiveTime: BigInt(0)
|
|
7
|
+
lastActiveTime: BigInt(0),
|
|
8
|
+
displayName: ""
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
@@ -25,6 +26,9 @@ export const OwnerInfo = {
|
|
|
25
26
|
if (message.lastActiveTime !== BigInt(0)) {
|
|
26
27
|
writer.uint32(24).int64(message.lastActiveTime);
|
|
27
28
|
}
|
|
29
|
+
if (message.displayName !== "") {
|
|
30
|
+
writer.uint32(34).string(message.displayName);
|
|
31
|
+
}
|
|
28
32
|
return writer;
|
|
29
33
|
},
|
|
30
34
|
decode(input, length) {
|
|
@@ -43,6 +47,9 @@ export const OwnerInfo = {
|
|
|
43
47
|
case 3:
|
|
44
48
|
message.lastActiveTime = reader.int64();
|
|
45
49
|
break;
|
|
50
|
+
case 4:
|
|
51
|
+
message.displayName = reader.string();
|
|
52
|
+
break;
|
|
46
53
|
default:
|
|
47
54
|
reader.skipType(tag & 7);
|
|
48
55
|
break;
|
|
@@ -55,6 +62,7 @@ export const OwnerInfo = {
|
|
|
55
62
|
message.address = object.address ?? "";
|
|
56
63
|
message.primaryName = object.primaryName ?? "";
|
|
57
64
|
message.lastActiveTime = object.lastActiveTime !== undefined && object.lastActiveTime !== null ? BigInt(object.lastActiveTime.toString()) : BigInt(0);
|
|
65
|
+
message.displayName = object.displayName ?? "";
|
|
58
66
|
return message;
|
|
59
67
|
},
|
|
60
68
|
fromAmino(object) {
|
|
@@ -68,6 +76,9 @@ export const OwnerInfo = {
|
|
|
68
76
|
if (object.last_active_time !== undefined && object.last_active_time !== null) {
|
|
69
77
|
message.lastActiveTime = BigInt(object.last_active_time);
|
|
70
78
|
}
|
|
79
|
+
if (object.display_name !== undefined && object.display_name !== null) {
|
|
80
|
+
message.displayName = object.display_name;
|
|
81
|
+
}
|
|
71
82
|
return message;
|
|
72
83
|
},
|
|
73
84
|
toAmino(message) {
|
|
@@ -75,6 +86,7 @@ export const OwnerInfo = {
|
|
|
75
86
|
obj.address = message.address === "" ? undefined : message.address;
|
|
76
87
|
obj.primary_name = message.primaryName === "" ? undefined : message.primaryName;
|
|
77
88
|
obj.last_active_time = message.lastActiveTime !== BigInt(0) ? message.lastActiveTime?.toString() : undefined;
|
|
89
|
+
obj.display_name = message.displayName === "" ? undefined : message.displayName;
|
|
78
90
|
return obj;
|
|
79
91
|
},
|
|
80
92
|
fromAminoMsg(object) {
|
|
@@ -3,6 +3,7 @@ import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pa
|
|
|
3
3
|
import { Params } from "./params";
|
|
4
4
|
import { NameRecord } from "./name_record";
|
|
5
5
|
import { Dispute } from "./dispute";
|
|
6
|
+
import { OwnerInfo } from "./owner_info";
|
|
6
7
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
8
|
function createBaseQueryParamsRequest() {
|
|
8
9
|
return {};
|
|
@@ -861,3 +862,143 @@ export const QueryAllDisputeResponse = {
|
|
|
861
862
|
};
|
|
862
863
|
}
|
|
863
864
|
};
|
|
865
|
+
function createBaseQueryGetOwnerInfoRequest() {
|
|
866
|
+
return {
|
|
867
|
+
address: ""
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* QueryGetOwnerInfoRequest defines the request type for the GetOwnerInfo RPC.
|
|
872
|
+
* @name QueryGetOwnerInfoRequest
|
|
873
|
+
* @package sparkdream.name.v1
|
|
874
|
+
* @see proto type: sparkdream.name.v1.QueryGetOwnerInfoRequest
|
|
875
|
+
*/
|
|
876
|
+
export const QueryGetOwnerInfoRequest = {
|
|
877
|
+
typeUrl: "/sparkdream.name.v1.QueryGetOwnerInfoRequest",
|
|
878
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
879
|
+
if (message.address !== "") {
|
|
880
|
+
writer.uint32(10).string(message.address);
|
|
881
|
+
}
|
|
882
|
+
return writer;
|
|
883
|
+
},
|
|
884
|
+
decode(input, length) {
|
|
885
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
886
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
887
|
+
const message = createBaseQueryGetOwnerInfoRequest();
|
|
888
|
+
while (reader.pos < end) {
|
|
889
|
+
const tag = reader.uint32();
|
|
890
|
+
switch (tag >>> 3) {
|
|
891
|
+
case 1:
|
|
892
|
+
message.address = reader.string();
|
|
893
|
+
break;
|
|
894
|
+
default:
|
|
895
|
+
reader.skipType(tag & 7);
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
return message;
|
|
900
|
+
},
|
|
901
|
+
fromPartial(object) {
|
|
902
|
+
const message = createBaseQueryGetOwnerInfoRequest();
|
|
903
|
+
message.address = object.address ?? "";
|
|
904
|
+
return message;
|
|
905
|
+
},
|
|
906
|
+
fromAmino(object) {
|
|
907
|
+
const message = createBaseQueryGetOwnerInfoRequest();
|
|
908
|
+
if (object.address !== undefined && object.address !== null) {
|
|
909
|
+
message.address = object.address;
|
|
910
|
+
}
|
|
911
|
+
return message;
|
|
912
|
+
},
|
|
913
|
+
toAmino(message) {
|
|
914
|
+
const obj = {};
|
|
915
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
916
|
+
return obj;
|
|
917
|
+
},
|
|
918
|
+
fromAminoMsg(object) {
|
|
919
|
+
return QueryGetOwnerInfoRequest.fromAmino(object.value);
|
|
920
|
+
},
|
|
921
|
+
fromProtoMsg(message) {
|
|
922
|
+
return QueryGetOwnerInfoRequest.decode(message.value);
|
|
923
|
+
},
|
|
924
|
+
toProto(message) {
|
|
925
|
+
return QueryGetOwnerInfoRequest.encode(message).finish();
|
|
926
|
+
},
|
|
927
|
+
toProtoMsg(message) {
|
|
928
|
+
return {
|
|
929
|
+
typeUrl: "/sparkdream.name.v1.QueryGetOwnerInfoRequest",
|
|
930
|
+
value: QueryGetOwnerInfoRequest.encode(message).finish()
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
};
|
|
934
|
+
function createBaseQueryGetOwnerInfoResponse() {
|
|
935
|
+
return {
|
|
936
|
+
ownerInfo: OwnerInfo.fromPartial({})
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* QueryGetOwnerInfoResponse defines the response type for the GetOwnerInfo RPC.
|
|
941
|
+
* owner_info is always populated; for addresses with no record it is returned
|
|
942
|
+
* with the address echoed and all other fields empty/zero.
|
|
943
|
+
* @name QueryGetOwnerInfoResponse
|
|
944
|
+
* @package sparkdream.name.v1
|
|
945
|
+
* @see proto type: sparkdream.name.v1.QueryGetOwnerInfoResponse
|
|
946
|
+
*/
|
|
947
|
+
export const QueryGetOwnerInfoResponse = {
|
|
948
|
+
typeUrl: "/sparkdream.name.v1.QueryGetOwnerInfoResponse",
|
|
949
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
950
|
+
if (message.ownerInfo !== undefined) {
|
|
951
|
+
OwnerInfo.encode(message.ownerInfo, writer.uint32(10).fork()).ldelim();
|
|
952
|
+
}
|
|
953
|
+
return writer;
|
|
954
|
+
},
|
|
955
|
+
decode(input, length) {
|
|
956
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
957
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
958
|
+
const message = createBaseQueryGetOwnerInfoResponse();
|
|
959
|
+
while (reader.pos < end) {
|
|
960
|
+
const tag = reader.uint32();
|
|
961
|
+
switch (tag >>> 3) {
|
|
962
|
+
case 1:
|
|
963
|
+
message.ownerInfo = OwnerInfo.decode(reader, reader.uint32());
|
|
964
|
+
break;
|
|
965
|
+
default:
|
|
966
|
+
reader.skipType(tag & 7);
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
return message;
|
|
971
|
+
},
|
|
972
|
+
fromPartial(object) {
|
|
973
|
+
const message = createBaseQueryGetOwnerInfoResponse();
|
|
974
|
+
message.ownerInfo = object.ownerInfo !== undefined && object.ownerInfo !== null ? OwnerInfo.fromPartial(object.ownerInfo) : undefined;
|
|
975
|
+
return message;
|
|
976
|
+
},
|
|
977
|
+
fromAmino(object) {
|
|
978
|
+
const message = createBaseQueryGetOwnerInfoResponse();
|
|
979
|
+
if (object.owner_info !== undefined && object.owner_info !== null) {
|
|
980
|
+
message.ownerInfo = OwnerInfo.fromAmino(object.owner_info);
|
|
981
|
+
}
|
|
982
|
+
return message;
|
|
983
|
+
},
|
|
984
|
+
toAmino(message) {
|
|
985
|
+
const obj = {};
|
|
986
|
+
obj.owner_info = message.ownerInfo ? OwnerInfo.toAmino(message.ownerInfo) : undefined;
|
|
987
|
+
return obj;
|
|
988
|
+
},
|
|
989
|
+
fromAminoMsg(object) {
|
|
990
|
+
return QueryGetOwnerInfoResponse.fromAmino(object.value);
|
|
991
|
+
},
|
|
992
|
+
fromProtoMsg(message) {
|
|
993
|
+
return QueryGetOwnerInfoResponse.decode(message.value);
|
|
994
|
+
},
|
|
995
|
+
toProto(message) {
|
|
996
|
+
return QueryGetOwnerInfoResponse.encode(message).finish();
|
|
997
|
+
},
|
|
998
|
+
toProtoMsg(message) {
|
|
999
|
+
return {
|
|
1000
|
+
typeUrl: "/sparkdream.name.v1.QueryGetOwnerInfoResponse",
|
|
1001
|
+
value: QueryGetOwnerInfoResponse.encode(message).finish()
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
@@ -49,4 +49,11 @@ export class LCDQueryClient {
|
|
|
49
49
|
const endpoint = `sparkdream/name/v1/dispute`;
|
|
50
50
|
return await this.req.get(endpoint, options);
|
|
51
51
|
};
|
|
52
|
+
/* GetOwnerInfo returns the OwnerInfo (primary_name, display_name,
|
|
53
|
+
last_active_time) for an address. Works for any address, including
|
|
54
|
+
ones that never registered a handle. */
|
|
55
|
+
getOwnerInfo = async (params) => {
|
|
56
|
+
const endpoint = `sparkdream/name/v1/owner_info/${params.address}`;
|
|
57
|
+
return await this.req.get(endpoint);
|
|
58
|
+
};
|
|
52
59
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
2
|
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
3
|
-
import { QueryParamsRequest, QueryParamsResponse, QueryResolveRequest, QueryResolveResponse, QueryReverseResolveRequest, QueryReverseResolveResponse, QueryNamesRequest, QueryNamesResponse, QueryGetDisputeRequest, QueryGetDisputeResponse, QueryAllDisputeRequest, QueryAllDisputeResponse } from "./query";
|
|
3
|
+
import { QueryParamsRequest, QueryParamsResponse, QueryResolveRequest, QueryResolveResponse, QueryReverseResolveRequest, QueryReverseResolveResponse, QueryNamesRequest, QueryNamesResponse, QueryGetDisputeRequest, QueryGetDisputeResponse, QueryAllDisputeRequest, QueryAllDisputeResponse, QueryGetOwnerInfoRequest, QueryGetOwnerInfoResponse } from "./query";
|
|
4
4
|
export class QueryClientImpl {
|
|
5
5
|
rpc;
|
|
6
6
|
constructor(rpc) {
|
|
@@ -44,6 +44,14 @@ export class QueryClientImpl {
|
|
|
44
44
|
const promise = this.rpc.request("sparkdream.name.v1.Query", "ListDispute", data);
|
|
45
45
|
return promise.then(data => QueryAllDisputeResponse.decode(new BinaryReader(data)));
|
|
46
46
|
};
|
|
47
|
+
/* GetOwnerInfo returns the OwnerInfo (primary_name, display_name,
|
|
48
|
+
last_active_time) for an address. Works for any address, including
|
|
49
|
+
ones that never registered a handle. */
|
|
50
|
+
getOwnerInfo = async (request) => {
|
|
51
|
+
const data = QueryGetOwnerInfoRequest.encode(request).finish();
|
|
52
|
+
const promise = this.rpc.request("sparkdream.name.v1.Query", "GetOwnerInfo", data);
|
|
53
|
+
return promise.then(data => QueryGetOwnerInfoResponse.decode(new BinaryReader(data)));
|
|
54
|
+
};
|
|
47
55
|
}
|
|
48
56
|
export const createRpcQueryExtension = (base) => {
|
|
49
57
|
const rpc = createProtobufRpcClient(base);
|
|
@@ -66,6 +74,9 @@ export const createRpcQueryExtension = (base) => {
|
|
|
66
74
|
},
|
|
67
75
|
listDispute(request) {
|
|
68
76
|
return queryService.listDispute(request);
|
|
77
|
+
},
|
|
78
|
+
getOwnerInfo(request) {
|
|
79
|
+
return queryService.getOwnerInfo(request);
|
|
69
80
|
}
|
|
70
81
|
};
|
|
71
82
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgRegisterName, MsgSetPrimary, MsgFileDispute, MsgContestDispute, MsgResolveDispute, MsgUpdateName } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgRegisterName, MsgSetPrimary, MsgFileDispute, MsgContestDispute, MsgResolveDispute, MsgUpdateName, MsgSetDisplayName } from "./tx";
|
|
3
3
|
export const AminoConverter = {
|
|
4
4
|
"/sparkdream.name.v1.MsgUpdateParams": {
|
|
5
5
|
aminoType: "sparkdream/x/name/MsgUpdateParams",
|
|
@@ -40,5 +40,10 @@ export const AminoConverter = {
|
|
|
40
40
|
aminoType: "/sparkdream.name.v1.MsgUpdateName",
|
|
41
41
|
toAmino: MsgUpdateName.toAmino,
|
|
42
42
|
fromAmino: MsgUpdateName.fromAmino
|
|
43
|
+
},
|
|
44
|
+
"/sparkdream.name.v1.MsgSetDisplayName": {
|
|
45
|
+
aminoType: "sparkdream/x/name/MsgSetDisplayName",
|
|
46
|
+
toAmino: MsgSetDisplayName.toAmino,
|
|
47
|
+
fromAmino: MsgSetDisplayName.fromAmino
|
|
43
48
|
}
|
|
44
49
|
};
|