@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +76 -76
- 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 +367 -327
- package/esm/sparkdream/client.js +4 -1
- 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/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +245 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2479 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +142 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +181 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +129 -0
- package/esm/sparkdream/federation/v1/tx.js +3929 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +465 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +163 -0
- package/esm/sparkdream/federation/v1/types.js +2266 -0
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +224 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +102 -5
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5251 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +293 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +334 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2467 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +104 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +76 -76
- 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 +14529 -12577
- package/sparkdream/bundle.js +367 -327
- package/sparkdream/client.d.ts +192 -67
- package/sparkdream/client.js +4 -1
- 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/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +79 -0
- package/sparkdream/federation/v1/genesis.js +248 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1458 -0
- package/sparkdream/federation/v1/query.js +2482 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +25 -0
- package/sparkdream/federation/v1/query.lcd.js +146 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +69 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +186 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +128 -0
- package/sparkdream/federation/v1/tx.amino.js +132 -0
- package/sparkdream/federation/v1/tx.d.ts +2147 -0
- package/sparkdream/federation/v1/tx.js +3932 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +313 -0
- package/sparkdream/federation/v1/tx.registry.js +469 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +65 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +168 -0
- package/sparkdream/federation/v1/types.d.ts +810 -0
- package/sparkdream/federation/v1/types.js +2281 -0
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +70 -0
- package/sparkdream/rep/v1/genesis.js +224 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +128 -0
- package/sparkdream/{forum → rep}/v1/member_report.js +103 -6
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4222 -1156
- package/sparkdream/rep/v1/query.js +5254 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +293 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +140 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +333 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1484 -0
- package/sparkdream/rep/v1/tx.js +2468 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +64 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +103 -0
- package/sparkdream/rpc.query.d.ts +60 -36
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_report.d.ts +0 -67
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -61,13 +61,15 @@ function createBaseParams() {
|
|
|
61
61
|
nominationWindowEpochs: BigInt(0),
|
|
62
62
|
maxNominationsPerMember: BigInt(0),
|
|
63
63
|
retroRewardMaxRecipients: BigInt(0),
|
|
64
|
-
retroRewardBudgetPerSeason: "",
|
|
65
64
|
retroRewardMinConviction: "",
|
|
66
65
|
nominationConvictionHalfLifeEpochs: BigInt(0),
|
|
67
66
|
nominationRationaleMaxLength: 0,
|
|
68
67
|
nominationMinTrustLevel: 0,
|
|
69
68
|
nominationStakeMinTrustLevel: 0,
|
|
70
|
-
nominationMinStake: ""
|
|
69
|
+
nominationMinStake: "",
|
|
70
|
+
retroRewardBudgetRatio: "",
|
|
71
|
+
retroRewardBudgetMin: "",
|
|
72
|
+
retroRewardBudgetMax: ""
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
/**
|
|
@@ -256,26 +258,32 @@ export const Params = {
|
|
|
256
258
|
if (message.retroRewardMaxRecipients !== BigInt(0)) {
|
|
257
259
|
writer.uint32(464).uint64(message.retroRewardMaxRecipients);
|
|
258
260
|
}
|
|
259
|
-
if (message.retroRewardBudgetPerSeason !== "") {
|
|
260
|
-
writer.uint32(474).string(Decimal.fromUserInput(message.retroRewardBudgetPerSeason, 18).atomics);
|
|
261
|
-
}
|
|
262
261
|
if (message.retroRewardMinConviction !== "") {
|
|
263
|
-
writer.uint32(
|
|
262
|
+
writer.uint32(474).string(Decimal.fromUserInput(message.retroRewardMinConviction, 18).atomics);
|
|
264
263
|
}
|
|
265
264
|
if (message.nominationConvictionHalfLifeEpochs !== BigInt(0)) {
|
|
266
|
-
writer.uint32(
|
|
265
|
+
writer.uint32(480).uint64(message.nominationConvictionHalfLifeEpochs);
|
|
267
266
|
}
|
|
268
267
|
if (message.nominationRationaleMaxLength !== 0) {
|
|
269
|
-
writer.uint32(
|
|
268
|
+
writer.uint32(488).uint32(message.nominationRationaleMaxLength);
|
|
270
269
|
}
|
|
271
270
|
if (message.nominationMinTrustLevel !== 0) {
|
|
272
|
-
writer.uint32(
|
|
271
|
+
writer.uint32(496).uint32(message.nominationMinTrustLevel);
|
|
273
272
|
}
|
|
274
273
|
if (message.nominationStakeMinTrustLevel !== 0) {
|
|
275
|
-
writer.uint32(
|
|
274
|
+
writer.uint32(504).uint32(message.nominationStakeMinTrustLevel);
|
|
276
275
|
}
|
|
277
276
|
if (message.nominationMinStake !== "") {
|
|
278
|
-
writer.uint32(
|
|
277
|
+
writer.uint32(514).string(Decimal.fromUserInput(message.nominationMinStake, 18).atomics);
|
|
278
|
+
}
|
|
279
|
+
if (message.retroRewardBudgetRatio !== "") {
|
|
280
|
+
writer.uint32(522).string(Decimal.fromUserInput(message.retroRewardBudgetRatio, 18).atomics);
|
|
281
|
+
}
|
|
282
|
+
if (message.retroRewardBudgetMin !== "") {
|
|
283
|
+
writer.uint32(530).string(message.retroRewardBudgetMin);
|
|
284
|
+
}
|
|
285
|
+
if (message.retroRewardBudgetMax !== "") {
|
|
286
|
+
writer.uint32(538).string(message.retroRewardBudgetMax);
|
|
279
287
|
}
|
|
280
288
|
return writer;
|
|
281
289
|
},
|
|
@@ -469,25 +477,31 @@ export const Params = {
|
|
|
469
477
|
message.retroRewardMaxRecipients = reader.uint64();
|
|
470
478
|
break;
|
|
471
479
|
case 59:
|
|
472
|
-
message.
|
|
480
|
+
message.retroRewardMinConviction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
473
481
|
break;
|
|
474
482
|
case 60:
|
|
475
|
-
message.
|
|
483
|
+
message.nominationConvictionHalfLifeEpochs = reader.uint64();
|
|
476
484
|
break;
|
|
477
485
|
case 61:
|
|
478
|
-
message.
|
|
486
|
+
message.nominationRationaleMaxLength = reader.uint32();
|
|
479
487
|
break;
|
|
480
488
|
case 62:
|
|
481
|
-
message.
|
|
489
|
+
message.nominationMinTrustLevel = reader.uint32();
|
|
482
490
|
break;
|
|
483
491
|
case 63:
|
|
484
|
-
message.
|
|
492
|
+
message.nominationStakeMinTrustLevel = reader.uint32();
|
|
485
493
|
break;
|
|
486
494
|
case 64:
|
|
487
|
-
message.
|
|
495
|
+
message.nominationMinStake = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
488
496
|
break;
|
|
489
497
|
case 65:
|
|
490
|
-
message.
|
|
498
|
+
message.retroRewardBudgetRatio = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
499
|
+
break;
|
|
500
|
+
case 66:
|
|
501
|
+
message.retroRewardBudgetMin = reader.string();
|
|
502
|
+
break;
|
|
503
|
+
case 67:
|
|
504
|
+
message.retroRewardBudgetMax = reader.string();
|
|
491
505
|
break;
|
|
492
506
|
default:
|
|
493
507
|
reader.skipType(tag & 7);
|
|
@@ -556,13 +570,15 @@ export const Params = {
|
|
|
556
570
|
message.nominationWindowEpochs = object.nominationWindowEpochs !== undefined && object.nominationWindowEpochs !== null ? BigInt(object.nominationWindowEpochs.toString()) : BigInt(0);
|
|
557
571
|
message.maxNominationsPerMember = object.maxNominationsPerMember !== undefined && object.maxNominationsPerMember !== null ? BigInt(object.maxNominationsPerMember.toString()) : BigInt(0);
|
|
558
572
|
message.retroRewardMaxRecipients = object.retroRewardMaxRecipients !== undefined && object.retroRewardMaxRecipients !== null ? BigInt(object.retroRewardMaxRecipients.toString()) : BigInt(0);
|
|
559
|
-
message.retroRewardBudgetPerSeason = object.retroRewardBudgetPerSeason ?? "";
|
|
560
573
|
message.retroRewardMinConviction = object.retroRewardMinConviction ?? "";
|
|
561
574
|
message.nominationConvictionHalfLifeEpochs = object.nominationConvictionHalfLifeEpochs !== undefined && object.nominationConvictionHalfLifeEpochs !== null ? BigInt(object.nominationConvictionHalfLifeEpochs.toString()) : BigInt(0);
|
|
562
575
|
message.nominationRationaleMaxLength = object.nominationRationaleMaxLength ?? 0;
|
|
563
576
|
message.nominationMinTrustLevel = object.nominationMinTrustLevel ?? 0;
|
|
564
577
|
message.nominationStakeMinTrustLevel = object.nominationStakeMinTrustLevel ?? 0;
|
|
565
578
|
message.nominationMinStake = object.nominationMinStake ?? "";
|
|
579
|
+
message.retroRewardBudgetRatio = object.retroRewardBudgetRatio ?? "";
|
|
580
|
+
message.retroRewardBudgetMin = object.retroRewardBudgetMin ?? "";
|
|
581
|
+
message.retroRewardBudgetMax = object.retroRewardBudgetMax ?? "";
|
|
566
582
|
return message;
|
|
567
583
|
},
|
|
568
584
|
fromAmino(object) {
|
|
@@ -739,9 +755,6 @@ export const Params = {
|
|
|
739
755
|
if (object.retro_reward_max_recipients !== undefined && object.retro_reward_max_recipients !== null) {
|
|
740
756
|
message.retroRewardMaxRecipients = BigInt(object.retro_reward_max_recipients);
|
|
741
757
|
}
|
|
742
|
-
if (object.retro_reward_budget_per_season !== undefined && object.retro_reward_budget_per_season !== null) {
|
|
743
|
-
message.retroRewardBudgetPerSeason = object.retro_reward_budget_per_season;
|
|
744
|
-
}
|
|
745
758
|
if (object.retro_reward_min_conviction !== undefined && object.retro_reward_min_conviction !== null) {
|
|
746
759
|
message.retroRewardMinConviction = object.retro_reward_min_conviction;
|
|
747
760
|
}
|
|
@@ -760,6 +773,15 @@ export const Params = {
|
|
|
760
773
|
if (object.nomination_min_stake !== undefined && object.nomination_min_stake !== null) {
|
|
761
774
|
message.nominationMinStake = object.nomination_min_stake;
|
|
762
775
|
}
|
|
776
|
+
if (object.retro_reward_budget_ratio !== undefined && object.retro_reward_budget_ratio !== null) {
|
|
777
|
+
message.retroRewardBudgetRatio = object.retro_reward_budget_ratio;
|
|
778
|
+
}
|
|
779
|
+
if (object.retro_reward_budget_min !== undefined && object.retro_reward_budget_min !== null) {
|
|
780
|
+
message.retroRewardBudgetMin = object.retro_reward_budget_min;
|
|
781
|
+
}
|
|
782
|
+
if (object.retro_reward_budget_max !== undefined && object.retro_reward_budget_max !== null) {
|
|
783
|
+
message.retroRewardBudgetMax = object.retro_reward_budget_max;
|
|
784
|
+
}
|
|
763
785
|
return message;
|
|
764
786
|
},
|
|
765
787
|
toAmino(message) {
|
|
@@ -827,13 +849,15 @@ export const Params = {
|
|
|
827
849
|
obj.nomination_window_epochs = message.nominationWindowEpochs !== BigInt(0) ? message.nominationWindowEpochs?.toString() : undefined;
|
|
828
850
|
obj.max_nominations_per_member = message.maxNominationsPerMember !== BigInt(0) ? message.maxNominationsPerMember?.toString() : undefined;
|
|
829
851
|
obj.retro_reward_max_recipients = message.retroRewardMaxRecipients !== BigInt(0) ? message.retroRewardMaxRecipients?.toString() : undefined;
|
|
830
|
-
obj.retro_reward_budget_per_season = message.retroRewardBudgetPerSeason === "" ? undefined : message.retroRewardBudgetPerSeason;
|
|
831
852
|
obj.retro_reward_min_conviction = message.retroRewardMinConviction === "" ? undefined : message.retroRewardMinConviction;
|
|
832
853
|
obj.nomination_conviction_half_life_epochs = message.nominationConvictionHalfLifeEpochs !== BigInt(0) ? message.nominationConvictionHalfLifeEpochs?.toString() : undefined;
|
|
833
854
|
obj.nomination_rationale_max_length = message.nominationRationaleMaxLength === 0 ? undefined : message.nominationRationaleMaxLength;
|
|
834
855
|
obj.nomination_min_trust_level = message.nominationMinTrustLevel === 0 ? undefined : message.nominationMinTrustLevel;
|
|
835
856
|
obj.nomination_stake_min_trust_level = message.nominationStakeMinTrustLevel === 0 ? undefined : message.nominationStakeMinTrustLevel;
|
|
836
857
|
obj.nomination_min_stake = message.nominationMinStake === "" ? undefined : message.nominationMinStake;
|
|
858
|
+
obj.retro_reward_budget_ratio = message.retroRewardBudgetRatio === "" ? undefined : message.retroRewardBudgetRatio;
|
|
859
|
+
obj.retro_reward_budget_min = message.retroRewardBudgetMin === "" ? undefined : message.retroRewardBudgetMin;
|
|
860
|
+
obj.retro_reward_budget_max = message.retroRewardBudgetMax === "" ? undefined : message.retroRewardBudgetMax;
|
|
837
861
|
return obj;
|
|
838
862
|
},
|
|
839
863
|
fromAminoMsg(object) {
|
|
@@ -909,13 +933,15 @@ function createBaseSeasonOperationalParams() {
|
|
|
909
933
|
nominationWindowEpochs: BigInt(0),
|
|
910
934
|
maxNominationsPerMember: BigInt(0),
|
|
911
935
|
retroRewardMaxRecipients: BigInt(0),
|
|
912
|
-
retroRewardBudgetPerSeason: "",
|
|
913
936
|
retroRewardMinConviction: "",
|
|
914
937
|
nominationConvictionHalfLifeEpochs: BigInt(0),
|
|
915
938
|
nominationRationaleMaxLength: 0,
|
|
916
939
|
nominationMinTrustLevel: 0,
|
|
917
940
|
nominationStakeMinTrustLevel: 0,
|
|
918
|
-
nominationMinStake: ""
|
|
941
|
+
nominationMinStake: "",
|
|
942
|
+
retroRewardBudgetRatio: "",
|
|
943
|
+
retroRewardBudgetMin: "",
|
|
944
|
+
retroRewardBudgetMax: ""
|
|
919
945
|
};
|
|
920
946
|
}
|
|
921
947
|
/**
|
|
@@ -1076,26 +1102,32 @@ export const SeasonOperationalParams = {
|
|
|
1076
1102
|
if (message.retroRewardMaxRecipients !== BigInt(0)) {
|
|
1077
1103
|
writer.uint32(392).uint64(message.retroRewardMaxRecipients);
|
|
1078
1104
|
}
|
|
1079
|
-
if (message.retroRewardBudgetPerSeason !== "") {
|
|
1080
|
-
writer.uint32(402).string(Decimal.fromUserInput(message.retroRewardBudgetPerSeason, 18).atomics);
|
|
1081
|
-
}
|
|
1082
1105
|
if (message.retroRewardMinConviction !== "") {
|
|
1083
|
-
writer.uint32(
|
|
1106
|
+
writer.uint32(402).string(Decimal.fromUserInput(message.retroRewardMinConviction, 18).atomics);
|
|
1084
1107
|
}
|
|
1085
1108
|
if (message.nominationConvictionHalfLifeEpochs !== BigInt(0)) {
|
|
1086
|
-
writer.uint32(
|
|
1109
|
+
writer.uint32(408).uint64(message.nominationConvictionHalfLifeEpochs);
|
|
1087
1110
|
}
|
|
1088
1111
|
if (message.nominationRationaleMaxLength !== 0) {
|
|
1089
|
-
writer.uint32(
|
|
1112
|
+
writer.uint32(416).uint32(message.nominationRationaleMaxLength);
|
|
1090
1113
|
}
|
|
1091
1114
|
if (message.nominationMinTrustLevel !== 0) {
|
|
1092
|
-
writer.uint32(
|
|
1115
|
+
writer.uint32(424).uint32(message.nominationMinTrustLevel);
|
|
1093
1116
|
}
|
|
1094
1117
|
if (message.nominationStakeMinTrustLevel !== 0) {
|
|
1095
|
-
writer.uint32(
|
|
1118
|
+
writer.uint32(432).uint32(message.nominationStakeMinTrustLevel);
|
|
1096
1119
|
}
|
|
1097
1120
|
if (message.nominationMinStake !== "") {
|
|
1098
|
-
writer.uint32(
|
|
1121
|
+
writer.uint32(442).string(Decimal.fromUserInput(message.nominationMinStake, 18).atomics);
|
|
1122
|
+
}
|
|
1123
|
+
if (message.retroRewardBudgetRatio !== "") {
|
|
1124
|
+
writer.uint32(450).string(Decimal.fromUserInput(message.retroRewardBudgetRatio, 18).atomics);
|
|
1125
|
+
}
|
|
1126
|
+
if (message.retroRewardBudgetMin !== "") {
|
|
1127
|
+
writer.uint32(458).string(message.retroRewardBudgetMin);
|
|
1128
|
+
}
|
|
1129
|
+
if (message.retroRewardBudgetMax !== "") {
|
|
1130
|
+
writer.uint32(466).string(message.retroRewardBudgetMax);
|
|
1099
1131
|
}
|
|
1100
1132
|
return writer;
|
|
1101
1133
|
},
|
|
@@ -1254,25 +1286,31 @@ export const SeasonOperationalParams = {
|
|
|
1254
1286
|
message.retroRewardMaxRecipients = reader.uint64();
|
|
1255
1287
|
break;
|
|
1256
1288
|
case 50:
|
|
1257
|
-
message.
|
|
1289
|
+
message.retroRewardMinConviction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1258
1290
|
break;
|
|
1259
1291
|
case 51:
|
|
1260
|
-
message.
|
|
1292
|
+
message.nominationConvictionHalfLifeEpochs = reader.uint64();
|
|
1261
1293
|
break;
|
|
1262
1294
|
case 52:
|
|
1263
|
-
message.
|
|
1295
|
+
message.nominationRationaleMaxLength = reader.uint32();
|
|
1264
1296
|
break;
|
|
1265
1297
|
case 53:
|
|
1266
|
-
message.
|
|
1298
|
+
message.nominationMinTrustLevel = reader.uint32();
|
|
1267
1299
|
break;
|
|
1268
1300
|
case 54:
|
|
1269
|
-
message.
|
|
1301
|
+
message.nominationStakeMinTrustLevel = reader.uint32();
|
|
1270
1302
|
break;
|
|
1271
1303
|
case 55:
|
|
1272
|
-
message.
|
|
1304
|
+
message.nominationMinStake = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1273
1305
|
break;
|
|
1274
1306
|
case 56:
|
|
1275
|
-
message.
|
|
1307
|
+
message.retroRewardBudgetRatio = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
1308
|
+
break;
|
|
1309
|
+
case 57:
|
|
1310
|
+
message.retroRewardBudgetMin = reader.string();
|
|
1311
|
+
break;
|
|
1312
|
+
case 58:
|
|
1313
|
+
message.retroRewardBudgetMax = reader.string();
|
|
1276
1314
|
break;
|
|
1277
1315
|
default:
|
|
1278
1316
|
reader.skipType(tag & 7);
|
|
@@ -1332,13 +1370,15 @@ export const SeasonOperationalParams = {
|
|
|
1332
1370
|
message.nominationWindowEpochs = object.nominationWindowEpochs !== undefined && object.nominationWindowEpochs !== null ? BigInt(object.nominationWindowEpochs.toString()) : BigInt(0);
|
|
1333
1371
|
message.maxNominationsPerMember = object.maxNominationsPerMember !== undefined && object.maxNominationsPerMember !== null ? BigInt(object.maxNominationsPerMember.toString()) : BigInt(0);
|
|
1334
1372
|
message.retroRewardMaxRecipients = object.retroRewardMaxRecipients !== undefined && object.retroRewardMaxRecipients !== null ? BigInt(object.retroRewardMaxRecipients.toString()) : BigInt(0);
|
|
1335
|
-
message.retroRewardBudgetPerSeason = object.retroRewardBudgetPerSeason ?? "";
|
|
1336
1373
|
message.retroRewardMinConviction = object.retroRewardMinConviction ?? "";
|
|
1337
1374
|
message.nominationConvictionHalfLifeEpochs = object.nominationConvictionHalfLifeEpochs !== undefined && object.nominationConvictionHalfLifeEpochs !== null ? BigInt(object.nominationConvictionHalfLifeEpochs.toString()) : BigInt(0);
|
|
1338
1375
|
message.nominationRationaleMaxLength = object.nominationRationaleMaxLength ?? 0;
|
|
1339
1376
|
message.nominationMinTrustLevel = object.nominationMinTrustLevel ?? 0;
|
|
1340
1377
|
message.nominationStakeMinTrustLevel = object.nominationStakeMinTrustLevel ?? 0;
|
|
1341
1378
|
message.nominationMinStake = object.nominationMinStake ?? "";
|
|
1379
|
+
message.retroRewardBudgetRatio = object.retroRewardBudgetRatio ?? "";
|
|
1380
|
+
message.retroRewardBudgetMin = object.retroRewardBudgetMin ?? "";
|
|
1381
|
+
message.retroRewardBudgetMax = object.retroRewardBudgetMax ?? "";
|
|
1342
1382
|
return message;
|
|
1343
1383
|
},
|
|
1344
1384
|
fromAmino(object) {
|
|
@@ -1490,9 +1530,6 @@ export const SeasonOperationalParams = {
|
|
|
1490
1530
|
if (object.retro_reward_max_recipients !== undefined && object.retro_reward_max_recipients !== null) {
|
|
1491
1531
|
message.retroRewardMaxRecipients = BigInt(object.retro_reward_max_recipients);
|
|
1492
1532
|
}
|
|
1493
|
-
if (object.retro_reward_budget_per_season !== undefined && object.retro_reward_budget_per_season !== null) {
|
|
1494
|
-
message.retroRewardBudgetPerSeason = object.retro_reward_budget_per_season;
|
|
1495
|
-
}
|
|
1496
1533
|
if (object.retro_reward_min_conviction !== undefined && object.retro_reward_min_conviction !== null) {
|
|
1497
1534
|
message.retroRewardMinConviction = object.retro_reward_min_conviction;
|
|
1498
1535
|
}
|
|
@@ -1511,6 +1548,15 @@ export const SeasonOperationalParams = {
|
|
|
1511
1548
|
if (object.nomination_min_stake !== undefined && object.nomination_min_stake !== null) {
|
|
1512
1549
|
message.nominationMinStake = object.nomination_min_stake;
|
|
1513
1550
|
}
|
|
1551
|
+
if (object.retro_reward_budget_ratio !== undefined && object.retro_reward_budget_ratio !== null) {
|
|
1552
|
+
message.retroRewardBudgetRatio = object.retro_reward_budget_ratio;
|
|
1553
|
+
}
|
|
1554
|
+
if (object.retro_reward_budget_min !== undefined && object.retro_reward_budget_min !== null) {
|
|
1555
|
+
message.retroRewardBudgetMin = object.retro_reward_budget_min;
|
|
1556
|
+
}
|
|
1557
|
+
if (object.retro_reward_budget_max !== undefined && object.retro_reward_budget_max !== null) {
|
|
1558
|
+
message.retroRewardBudgetMax = object.retro_reward_budget_max;
|
|
1559
|
+
}
|
|
1514
1560
|
return message;
|
|
1515
1561
|
},
|
|
1516
1562
|
toAmino(message) {
|
|
@@ -1564,13 +1610,15 @@ export const SeasonOperationalParams = {
|
|
|
1564
1610
|
obj.nomination_window_epochs = message.nominationWindowEpochs !== BigInt(0) ? message.nominationWindowEpochs?.toString() : undefined;
|
|
1565
1611
|
obj.max_nominations_per_member = message.maxNominationsPerMember !== BigInt(0) ? message.maxNominationsPerMember?.toString() : undefined;
|
|
1566
1612
|
obj.retro_reward_max_recipients = message.retroRewardMaxRecipients !== BigInt(0) ? message.retroRewardMaxRecipients?.toString() : undefined;
|
|
1567
|
-
obj.retro_reward_budget_per_season = message.retroRewardBudgetPerSeason === "" ? undefined : message.retroRewardBudgetPerSeason;
|
|
1568
1613
|
obj.retro_reward_min_conviction = message.retroRewardMinConviction === "" ? undefined : message.retroRewardMinConviction;
|
|
1569
1614
|
obj.nomination_conviction_half_life_epochs = message.nominationConvictionHalfLifeEpochs !== BigInt(0) ? message.nominationConvictionHalfLifeEpochs?.toString() : undefined;
|
|
1570
1615
|
obj.nomination_rationale_max_length = message.nominationRationaleMaxLength === 0 ? undefined : message.nominationRationaleMaxLength;
|
|
1571
1616
|
obj.nomination_min_trust_level = message.nominationMinTrustLevel === 0 ? undefined : message.nominationMinTrustLevel;
|
|
1572
1617
|
obj.nomination_stake_min_trust_level = message.nominationStakeMinTrustLevel === 0 ? undefined : message.nominationStakeMinTrustLevel;
|
|
1573
1618
|
obj.nomination_min_stake = message.nominationMinStake === "" ? undefined : message.nominationMinStake;
|
|
1619
|
+
obj.retro_reward_budget_ratio = message.retroRewardBudgetRatio === "" ? undefined : message.retroRewardBudgetRatio;
|
|
1620
|
+
obj.retro_reward_budget_min = message.retroRewardBudgetMin === "" ? undefined : message.retroRewardBudgetMin;
|
|
1621
|
+
obj.retro_reward_budget_max = message.retroRewardBudgetMax === "" ? undefined : message.retroRewardBudgetMax;
|
|
1574
1622
|
return obj;
|
|
1575
1623
|
},
|
|
1576
1624
|
fromAminoMsg(object) {
|
|
@@ -1113,7 +1113,8 @@ function createBaseTLEValidatorPublicShare() {
|
|
|
1113
1113
|
return {
|
|
1114
1114
|
validatorAddress: "",
|
|
1115
1115
|
publicShare: new Uint8Array(),
|
|
1116
|
-
shareIndex: 0
|
|
1116
|
+
shareIndex: 0,
|
|
1117
|
+
publicShareG2: new Uint8Array()
|
|
1117
1118
|
};
|
|
1118
1119
|
}
|
|
1119
1120
|
/**
|
|
@@ -1134,6 +1135,9 @@ export const TLEValidatorPublicShare = {
|
|
|
1134
1135
|
if (message.shareIndex !== 0) {
|
|
1135
1136
|
writer.uint32(24).uint32(message.shareIndex);
|
|
1136
1137
|
}
|
|
1138
|
+
if (message.publicShareG2.length !== 0) {
|
|
1139
|
+
writer.uint32(34).bytes(message.publicShareG2);
|
|
1140
|
+
}
|
|
1137
1141
|
return writer;
|
|
1138
1142
|
},
|
|
1139
1143
|
decode(input, length) {
|
|
@@ -1152,6 +1156,9 @@ export const TLEValidatorPublicShare = {
|
|
|
1152
1156
|
case 3:
|
|
1153
1157
|
message.shareIndex = reader.uint32();
|
|
1154
1158
|
break;
|
|
1159
|
+
case 4:
|
|
1160
|
+
message.publicShareG2 = reader.bytes();
|
|
1161
|
+
break;
|
|
1155
1162
|
default:
|
|
1156
1163
|
reader.skipType(tag & 7);
|
|
1157
1164
|
break;
|
|
@@ -1164,6 +1171,7 @@ export const TLEValidatorPublicShare = {
|
|
|
1164
1171
|
message.validatorAddress = object.validatorAddress ?? "";
|
|
1165
1172
|
message.publicShare = object.publicShare ?? new Uint8Array();
|
|
1166
1173
|
message.shareIndex = object.shareIndex ?? 0;
|
|
1174
|
+
message.publicShareG2 = object.publicShareG2 ?? new Uint8Array();
|
|
1167
1175
|
return message;
|
|
1168
1176
|
},
|
|
1169
1177
|
fromAmino(object) {
|
|
@@ -1177,6 +1185,9 @@ export const TLEValidatorPublicShare = {
|
|
|
1177
1185
|
if (object.share_index !== undefined && object.share_index !== null) {
|
|
1178
1186
|
message.shareIndex = object.share_index;
|
|
1179
1187
|
}
|
|
1188
|
+
if (object.public_share_g2 !== undefined && object.public_share_g2 !== null) {
|
|
1189
|
+
message.publicShareG2 = bytesFromBase64(object.public_share_g2);
|
|
1190
|
+
}
|
|
1180
1191
|
return message;
|
|
1181
1192
|
},
|
|
1182
1193
|
toAmino(message) {
|
|
@@ -1184,6 +1195,7 @@ export const TLEValidatorPublicShare = {
|
|
|
1184
1195
|
obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress;
|
|
1185
1196
|
obj.public_share = message.publicShare ? base64FromBytes(message.publicShare) : undefined;
|
|
1186
1197
|
obj.share_index = message.shareIndex === 0 ? undefined : message.shareIndex;
|
|
1198
|
+
obj.public_share_g2 = message.publicShareG2 ? base64FromBytes(message.publicShareG2) : undefined;
|
|
1187
1199
|
return obj;
|
|
1188
1200
|
},
|
|
1189
1201
|
fromAminoMsg(object) {
|
|
@@ -1376,7 +1388,8 @@ function createBaseDKGContribution() {
|
|
|
1376
1388
|
round: BigInt(0),
|
|
1377
1389
|
feldmanCommitments: [],
|
|
1378
1390
|
encryptedEvaluations: [],
|
|
1379
|
-
proofOfPossession: new Uint8Array()
|
|
1391
|
+
proofOfPossession: new Uint8Array(),
|
|
1392
|
+
feldmanCommitmentsG2: []
|
|
1380
1393
|
};
|
|
1381
1394
|
}
|
|
1382
1395
|
/**
|
|
@@ -1403,6 +1416,9 @@ export const DKGContribution = {
|
|
|
1403
1416
|
if (message.proofOfPossession.length !== 0) {
|
|
1404
1417
|
writer.uint32(42).bytes(message.proofOfPossession);
|
|
1405
1418
|
}
|
|
1419
|
+
for (const v of message.feldmanCommitmentsG2) {
|
|
1420
|
+
writer.uint32(50).bytes(v);
|
|
1421
|
+
}
|
|
1406
1422
|
return writer;
|
|
1407
1423
|
},
|
|
1408
1424
|
decode(input, length) {
|
|
@@ -1427,6 +1443,9 @@ export const DKGContribution = {
|
|
|
1427
1443
|
case 5:
|
|
1428
1444
|
message.proofOfPossession = reader.bytes();
|
|
1429
1445
|
break;
|
|
1446
|
+
case 6:
|
|
1447
|
+
message.feldmanCommitmentsG2.push(reader.bytes());
|
|
1448
|
+
break;
|
|
1430
1449
|
default:
|
|
1431
1450
|
reader.skipType(tag & 7);
|
|
1432
1451
|
break;
|
|
@@ -1441,6 +1460,7 @@ export const DKGContribution = {
|
|
|
1441
1460
|
message.feldmanCommitments = object.feldmanCommitments?.map(e => e) || [];
|
|
1442
1461
|
message.encryptedEvaluations = object.encryptedEvaluations?.map(e => EncryptedEvaluation.fromPartial(e)) || [];
|
|
1443
1462
|
message.proofOfPossession = object.proofOfPossession ?? new Uint8Array();
|
|
1463
|
+
message.feldmanCommitmentsG2 = object.feldmanCommitmentsG2?.map(e => e) || [];
|
|
1444
1464
|
return message;
|
|
1445
1465
|
},
|
|
1446
1466
|
fromAmino(object) {
|
|
@@ -1456,6 +1476,7 @@ export const DKGContribution = {
|
|
|
1456
1476
|
if (object.proof_of_possession !== undefined && object.proof_of_possession !== null) {
|
|
1457
1477
|
message.proofOfPossession = bytesFromBase64(object.proof_of_possession);
|
|
1458
1478
|
}
|
|
1479
|
+
message.feldmanCommitmentsG2 = object.feldman_commitments_g2?.map(e => bytesFromBase64(e)) || [];
|
|
1459
1480
|
return message;
|
|
1460
1481
|
},
|
|
1461
1482
|
toAmino(message) {
|
|
@@ -1475,6 +1496,12 @@ export const DKGContribution = {
|
|
|
1475
1496
|
obj.encrypted_evaluations = message.encryptedEvaluations;
|
|
1476
1497
|
}
|
|
1477
1498
|
obj.proof_of_possession = message.proofOfPossession ? base64FromBytes(message.proofOfPossession) : undefined;
|
|
1499
|
+
if (message.feldmanCommitmentsG2) {
|
|
1500
|
+
obj.feldman_commitments_g2 = message.feldmanCommitmentsG2.map(e => base64FromBytes(e));
|
|
1501
|
+
}
|
|
1502
|
+
else {
|
|
1503
|
+
obj.feldman_commitments_g2 = message.feldmanCommitmentsG2;
|
|
1504
|
+
}
|
|
1478
1505
|
return obj;
|
|
1479
1506
|
},
|
|
1480
1507
|
fromAminoMsg(object) {
|
|
@@ -1664,6 +1691,7 @@ function createBaseDKGVoteExtension() {
|
|
|
1664
1691
|
feldmanCommitments: [],
|
|
1665
1692
|
encryptedEvaluations: [],
|
|
1666
1693
|
contributionPop: new Uint8Array(),
|
|
1694
|
+
feldmanCommitmentsG2: [],
|
|
1667
1695
|
decryptionEpoch: BigInt(0),
|
|
1668
1696
|
decryptionShare: new Uint8Array()
|
|
1669
1697
|
};
|
|
@@ -1699,11 +1727,14 @@ export const DKGVoteExtension = {
|
|
|
1699
1727
|
if (message.contributionPop.length !== 0) {
|
|
1700
1728
|
writer.uint32(58).bytes(message.contributionPop);
|
|
1701
1729
|
}
|
|
1730
|
+
for (const v of message.feldmanCommitmentsG2) {
|
|
1731
|
+
writer.uint32(66).bytes(v);
|
|
1732
|
+
}
|
|
1702
1733
|
if (message.decryptionEpoch !== BigInt(0)) {
|
|
1703
|
-
writer.uint32(
|
|
1734
|
+
writer.uint32(72).uint64(message.decryptionEpoch);
|
|
1704
1735
|
}
|
|
1705
1736
|
if (message.decryptionShare.length !== 0) {
|
|
1706
|
-
writer.uint32(
|
|
1737
|
+
writer.uint32(82).bytes(message.decryptionShare);
|
|
1707
1738
|
}
|
|
1708
1739
|
return writer;
|
|
1709
1740
|
},
|
|
@@ -1736,9 +1767,12 @@ export const DKGVoteExtension = {
|
|
|
1736
1767
|
message.contributionPop = reader.bytes();
|
|
1737
1768
|
break;
|
|
1738
1769
|
case 8:
|
|
1739
|
-
message.
|
|
1770
|
+
message.feldmanCommitmentsG2.push(reader.bytes());
|
|
1740
1771
|
break;
|
|
1741
1772
|
case 9:
|
|
1773
|
+
message.decryptionEpoch = reader.uint64();
|
|
1774
|
+
break;
|
|
1775
|
+
case 10:
|
|
1742
1776
|
message.decryptionShare = reader.bytes();
|
|
1743
1777
|
break;
|
|
1744
1778
|
default:
|
|
@@ -1757,6 +1791,7 @@ export const DKGVoteExtension = {
|
|
|
1757
1791
|
message.feldmanCommitments = object.feldmanCommitments?.map(e => e) || [];
|
|
1758
1792
|
message.encryptedEvaluations = object.encryptedEvaluations?.map(e => EncryptedEvaluation.fromPartial(e)) || [];
|
|
1759
1793
|
message.contributionPop = object.contributionPop ?? new Uint8Array();
|
|
1794
|
+
message.feldmanCommitmentsG2 = object.feldmanCommitmentsG2?.map(e => e) || [];
|
|
1760
1795
|
message.decryptionEpoch = object.decryptionEpoch !== undefined && object.decryptionEpoch !== null ? BigInt(object.decryptionEpoch.toString()) : BigInt(0);
|
|
1761
1796
|
message.decryptionShare = object.decryptionShare ?? new Uint8Array();
|
|
1762
1797
|
return message;
|
|
@@ -1780,6 +1815,7 @@ export const DKGVoteExtension = {
|
|
|
1780
1815
|
if (object.contribution_pop !== undefined && object.contribution_pop !== null) {
|
|
1781
1816
|
message.contributionPop = bytesFromBase64(object.contribution_pop);
|
|
1782
1817
|
}
|
|
1818
|
+
message.feldmanCommitmentsG2 = object.feldman_commitments_g2?.map(e => bytesFromBase64(e)) || [];
|
|
1783
1819
|
if (object.decryption_epoch !== undefined && object.decryption_epoch !== null) {
|
|
1784
1820
|
message.decryptionEpoch = BigInt(object.decryption_epoch);
|
|
1785
1821
|
}
|
|
@@ -1807,6 +1843,12 @@ export const DKGVoteExtension = {
|
|
|
1807
1843
|
obj.encrypted_evaluations = message.encryptedEvaluations;
|
|
1808
1844
|
}
|
|
1809
1845
|
obj.contribution_pop = message.contributionPop ? base64FromBytes(message.contributionPop) : undefined;
|
|
1846
|
+
if (message.feldmanCommitmentsG2) {
|
|
1847
|
+
obj.feldman_commitments_g2 = message.feldmanCommitmentsG2.map(e => base64FromBytes(e));
|
|
1848
|
+
}
|
|
1849
|
+
else {
|
|
1850
|
+
obj.feldman_commitments_g2 = message.feldmanCommitmentsG2;
|
|
1851
|
+
}
|
|
1810
1852
|
obj.decryption_epoch = message.decryptionEpoch !== BigInt(0) ? message.decryptionEpoch?.toString() : undefined;
|
|
1811
1853
|
obj.decryption_share = message.decryptionShare ? base64FromBytes(message.decryptionShare) : undefined;
|
|
1812
1854
|
return obj;
|
package/esm/tendermint/bundle.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
2
|
+
import * as _330 from "./abci/types";
|
|
3
|
+
import * as _331 from "./crypto/keys";
|
|
4
|
+
import * as _332 from "./crypto/proof";
|
|
5
|
+
import * as _333 from "./p2p/types";
|
|
6
|
+
import * as _334 from "./types/block";
|
|
7
|
+
import * as _335 from "./types/evidence";
|
|
8
|
+
import * as _336 from "./types/params";
|
|
9
|
+
import * as _337 from "./types/types";
|
|
10
|
+
import * as _338 from "./types/validator";
|
|
11
|
+
import * as _339 from "./version/types";
|
|
12
12
|
export var tendermint;
|
|
13
13
|
(function (tendermint) {
|
|
14
14
|
tendermint.abci = {
|
|
15
|
-
...
|
|
15
|
+
..._330
|
|
16
16
|
};
|
|
17
17
|
tendermint.crypto = {
|
|
18
|
-
...
|
|
19
|
-
...
|
|
18
|
+
..._331,
|
|
19
|
+
..._332
|
|
20
20
|
};
|
|
21
21
|
tendermint.p2p = {
|
|
22
|
-
...
|
|
22
|
+
..._333
|
|
23
23
|
};
|
|
24
24
|
tendermint.types = {
|
|
25
|
-
...
|
|
26
|
-
...
|
|
27
|
-
...
|
|
28
|
-
...
|
|
29
|
-
...
|
|
25
|
+
..._334,
|
|
26
|
+
..._335,
|
|
27
|
+
..._336,
|
|
28
|
+
..._337,
|
|
29
|
+
..._338
|
|
30
30
|
};
|
|
31
31
|
tendermint.version = {
|
|
32
|
-
...
|
|
32
|
+
..._339
|
|
33
33
|
};
|
|
34
34
|
})(tendermint || (tendermint = {}));
|