@sparkdreamnft/sparkdreamjs 0.0.44 → 0.0.45
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/esm/sparkdream/name/v1/genesis.js +32 -2
- package/esm/sparkdream/rep/v1/params.js +13 -1
- package/esm/sparkdream/rep/v1/tx.js +145 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +20 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +9 -1
- package/esm/sparkdream/season/v1/tx.js +33 -2
- package/esm/sparkdream/service/v1/operator.js +25 -1
- package/esm/sparkdream/service/v1/tx.amino.js +6 -1
- package/esm/sparkdream/service/v1/tx.js +163 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +11 -1
- package/esm/sparkdream/session/v1/grant.js +98 -6
- package/esm/sparkdream/session/v1/tx.amino.js +3 -0
- package/esm/sparkdream/session/v1/tx.js +15 -3
- package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/esm/sparkdream/shield/v1/genesis.js +32 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/query.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +414 -15
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +129 -0
- package/sparkdream/client.d.ts +5 -0
- package/sparkdream/name/v1/genesis.d.ts +23 -1
- package/sparkdream/name/v1/genesis.js +31 -1
- package/sparkdream/rep/v1/params.d.ts +16 -0
- package/sparkdream/rep/v1/params.js +13 -1
- package/sparkdream/rep/v1/tx.d.ts +93 -0
- package/sparkdream/rep/v1/tx.js +146 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +13 -1
- package/sparkdream/rep/v1/tx.registry.js +19 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +8 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +8 -0
- package/sparkdream/season/v1/tx.d.ts +19 -0
- package/sparkdream/season/v1/tx.js +33 -2
- package/sparkdream/service/v1/operator.d.ts +30 -0
- package/sparkdream/service/v1/operator.js +25 -1
- package/sparkdream/service/v1/tx.amino.d.ts +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +119 -0
- package/sparkdream/service/v1/tx.js +164 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +10 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +10 -0
- package/sparkdream/session/v1/grant.d.ts +75 -7
- package/sparkdream/session/v1/grant.js +99 -7
- package/sparkdream/session/v1/tx.amino.js +3 -0
- package/sparkdream/session/v1/tx.d.ts +6 -4
- package/sparkdream/session/v1/tx.js +14 -2
- package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
- package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
- package/sparkdream/shield/v1/genesis.d.ts +17 -1
- package/sparkdream/shield/v1/genesis.js +31 -1
- package/sparkdream/shield/v1/params.d.ts +16 -4
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/query.d.ts +8 -0
- package/sparkdream/shield/v1/query.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +36 -10
- package/sparkdream/shield/v1/types.d.ts +294 -13
- package/sparkdream/shield/v1/types.js +415 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TLEMissCounterEntry = exports.IdentityRateLimitEntry = exports.VerificationKey = exports.ValidatorDKGExtension = exports.InjectedDecryptionShare = exports.InjectedDKGData = exports.DKGVoteExtension = exports.DKGContributionEntry = exports.EncryptedEvaluation = exports.DKGContribution = exports.DKGState = exports.TLEValidatorPublicShare = exports.TLEKeySet = exports.ShieldDecryptionShare = exports.ShieldEpochDecryptionKey = exports.ShieldEpochState = exports.PendingShieldedOp = exports.DayFunding = exports.UsedNullifier = exports.ShieldedOpRegistration = exports.DKGPhaseAmino = exports.DKGPhase = exports.ShieldExecModeAmino = exports.ShieldExecMode = exports.ShieldBatchModeAmino = exports.ShieldBatchMode = exports.NullifierModeAmino = exports.NullifierMode = exports.NullifierScopeTypeAmino = exports.NullifierScopeType = exports.ProofDomainAmino = exports.ProofDomain = void 0;
|
|
3
|
+
exports.DecryptionDemandEntry = exports.TLEMissCounterEntry = exports.IdentityRateLimitEntry = exports.VerificationKey = exports.ValidatorDKGExtension = exports.InjectedDecryptionShare = exports.InjectedDKGData = exports.DKGComplaint = exports.DKGJustification = exports.DKGVoteExtension = exports.DKGContributionEntry = exports.EncryptedEvaluation = exports.DKGContribution = exports.DKGState = exports.TLEValidatorPublicShare = exports.TLEKeySet = exports.ShieldDecryptionShare = exports.ShieldEpochDecryptionKey = exports.ShieldEpochState = exports.PendingShieldedOp = exports.DayFunding = exports.UsedNullifier = exports.ShieldedOpRegistration = exports.DKGPhaseAmino = exports.DKGPhase = exports.ShieldExecModeAmino = exports.ShieldExecMode = exports.ShieldBatchModeAmino = exports.ShieldBatchMode = exports.NullifierModeAmino = exports.NullifierMode = exports.NullifierScopeTypeAmino = exports.NullifierScopeType = exports.ProofDomainAmino = exports.ProofDomain = void 0;
|
|
4
4
|
exports.proofDomainFromJSON = proofDomainFromJSON;
|
|
5
5
|
exports.proofDomainToJSON = proofDomainToJSON;
|
|
6
6
|
exports.nullifierScopeTypeFromJSON = nullifierScopeTypeFromJSON;
|
|
@@ -220,8 +220,19 @@ var DKGPhase;
|
|
|
220
220
|
DKGPhase[DKGPhase["DKG_PHASE_REGISTERING"] = 1] = "DKG_PHASE_REGISTERING";
|
|
221
221
|
/** DKG_PHASE_CONTRIBUTING - Key registration closed; accepting Feldman DKG contributions */
|
|
222
222
|
DKGPhase[DKGPhase["DKG_PHASE_CONTRIBUTING"] = 2] = "DKG_PHASE_CONTRIBUTING";
|
|
223
|
-
/** DKG_PHASE_ACTIVE - DKG complete, master key available
|
|
223
|
+
/** DKG_PHASE_ACTIVE - DKG complete, master key available */
|
|
224
224
|
DKGPhase[DKGPhase["DKG_PHASE_ACTIVE"] = 3] = "DKG_PHASE_ACTIVE";
|
|
225
|
+
/**
|
|
226
|
+
* DKG_PHASE_COMPLAINING - Contributions closed; validators report dealers whose evaluation for
|
|
227
|
+
* them is missing, undecryptable or inconsistent with the commitments
|
|
228
|
+
*/
|
|
229
|
+
DKGPhase[DKGPhase["DKG_PHASE_COMPLAINING"] = 4] = "DKG_PHASE_COMPLAINING";
|
|
230
|
+
/**
|
|
231
|
+
* DKG_PHASE_JUSTIFYING - Complaints closed; accused dealers publish the disputed evaluations in
|
|
232
|
+
* clear. A dealer with an unjustified complaint at the deadline is
|
|
233
|
+
* disqualified from the key set.
|
|
234
|
+
*/
|
|
235
|
+
DKGPhase[DKGPhase["DKG_PHASE_JUSTIFYING"] = 5] = "DKG_PHASE_JUSTIFYING";
|
|
225
236
|
DKGPhase[DKGPhase["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
226
237
|
})(DKGPhase || (exports.DKGPhase = DKGPhase = {}));
|
|
227
238
|
exports.DKGPhaseAmino = DKGPhase;
|
|
@@ -239,6 +250,12 @@ function dKGPhaseFromJSON(object) {
|
|
|
239
250
|
case 3:
|
|
240
251
|
case "DKG_PHASE_ACTIVE":
|
|
241
252
|
return DKGPhase.DKG_PHASE_ACTIVE;
|
|
253
|
+
case 4:
|
|
254
|
+
case "DKG_PHASE_COMPLAINING":
|
|
255
|
+
return DKGPhase.DKG_PHASE_COMPLAINING;
|
|
256
|
+
case 5:
|
|
257
|
+
case "DKG_PHASE_JUSTIFYING":
|
|
258
|
+
return DKGPhase.DKG_PHASE_JUSTIFYING;
|
|
242
259
|
case -1:
|
|
243
260
|
case "UNRECOGNIZED":
|
|
244
261
|
default:
|
|
@@ -255,6 +272,10 @@ function dKGPhaseToJSON(object) {
|
|
|
255
272
|
return "DKG_PHASE_CONTRIBUTING";
|
|
256
273
|
case DKGPhase.DKG_PHASE_ACTIVE:
|
|
257
274
|
return "DKG_PHASE_ACTIVE";
|
|
275
|
+
case DKGPhase.DKG_PHASE_COMPLAINING:
|
|
276
|
+
return "DKG_PHASE_COMPLAINING";
|
|
277
|
+
case DKGPhase.DKG_PHASE_JUSTIFYING:
|
|
278
|
+
return "DKG_PHASE_JUSTIFYING";
|
|
258
279
|
case DKGPhase.UNRECOGNIZED:
|
|
259
280
|
default:
|
|
260
281
|
return "UNRECOGNIZED";
|
|
@@ -551,7 +572,7 @@ function createBaseDayFunding() {
|
|
|
551
572
|
}
|
|
552
573
|
/**
|
|
553
574
|
* DayFunding tracks funding per day to enforce the daily cap.
|
|
554
|
-
* Day is
|
|
575
|
+
* Day is the UTC day of the block time (block_time / 86400).
|
|
555
576
|
* @name DayFunding
|
|
556
577
|
* @package sparkdream.shield.v1
|
|
557
578
|
* @see proto type: sparkdream.shield.v1.DayFunding
|
|
@@ -629,17 +650,19 @@ function createBasePendingShieldedOp() {
|
|
|
629
650
|
return {
|
|
630
651
|
id: BigInt(0),
|
|
631
652
|
targetEpoch: BigInt(0),
|
|
632
|
-
|
|
653
|
+
submissionNullifier: new Uint8Array(),
|
|
633
654
|
merkleRoot: new Uint8Array(),
|
|
634
655
|
proofDomain: 0,
|
|
635
656
|
minTrustLevel: 0,
|
|
636
657
|
encryptedPayload: new Uint8Array(),
|
|
637
658
|
submittedAtHeight: BigInt(0),
|
|
638
|
-
submittedAtEpoch: BigInt(0)
|
|
659
|
+
submittedAtEpoch: BigInt(0),
|
|
660
|
+
rateLimitNullifier: new Uint8Array()
|
|
639
661
|
};
|
|
640
662
|
}
|
|
641
663
|
/**
|
|
642
|
-
* PendingShieldedOp is stored in queue until
|
|
664
|
+
* PendingShieldedOp is stored in queue until its epoch has closed, its batch was
|
|
665
|
+
* demanded and the epoch key exists; it then executes in that block.
|
|
643
666
|
* @name PendingShieldedOp
|
|
644
667
|
* @package sparkdream.shield.v1
|
|
645
668
|
* @see proto type: sparkdream.shield.v1.PendingShieldedOp
|
|
@@ -653,8 +676,8 @@ exports.PendingShieldedOp = {
|
|
|
653
676
|
if (message.targetEpoch !== BigInt(0)) {
|
|
654
677
|
writer.uint32(16).uint64(message.targetEpoch);
|
|
655
678
|
}
|
|
656
|
-
if (message.
|
|
657
|
-
writer.uint32(26).bytes(message.
|
|
679
|
+
if (message.submissionNullifier.length !== 0) {
|
|
680
|
+
writer.uint32(26).bytes(message.submissionNullifier);
|
|
658
681
|
}
|
|
659
682
|
if (message.merkleRoot.length !== 0) {
|
|
660
683
|
writer.uint32(34).bytes(message.merkleRoot);
|
|
@@ -674,6 +697,9 @@ exports.PendingShieldedOp = {
|
|
|
674
697
|
if (message.submittedAtEpoch !== BigInt(0)) {
|
|
675
698
|
writer.uint32(72).uint64(message.submittedAtEpoch);
|
|
676
699
|
}
|
|
700
|
+
if (message.rateLimitNullifier.length !== 0) {
|
|
701
|
+
writer.uint32(82).bytes(message.rateLimitNullifier);
|
|
702
|
+
}
|
|
677
703
|
return writer;
|
|
678
704
|
},
|
|
679
705
|
decode(input, length) {
|
|
@@ -690,7 +716,7 @@ exports.PendingShieldedOp = {
|
|
|
690
716
|
message.targetEpoch = reader.uint64();
|
|
691
717
|
break;
|
|
692
718
|
case 3:
|
|
693
|
-
message.
|
|
719
|
+
message.submissionNullifier = reader.bytes();
|
|
694
720
|
break;
|
|
695
721
|
case 4:
|
|
696
722
|
message.merkleRoot = reader.bytes();
|
|
@@ -710,6 +736,9 @@ exports.PendingShieldedOp = {
|
|
|
710
736
|
case 9:
|
|
711
737
|
message.submittedAtEpoch = reader.uint64();
|
|
712
738
|
break;
|
|
739
|
+
case 10:
|
|
740
|
+
message.rateLimitNullifier = reader.bytes();
|
|
741
|
+
break;
|
|
713
742
|
default:
|
|
714
743
|
reader.skipType(tag & 7);
|
|
715
744
|
break;
|
|
@@ -721,13 +750,14 @@ exports.PendingShieldedOp = {
|
|
|
721
750
|
const message = createBasePendingShieldedOp();
|
|
722
751
|
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
723
752
|
message.targetEpoch = object.targetEpoch !== undefined && object.targetEpoch !== null ? BigInt(object.targetEpoch.toString()) : BigInt(0);
|
|
724
|
-
message.
|
|
753
|
+
message.submissionNullifier = object.submissionNullifier ?? new Uint8Array();
|
|
725
754
|
message.merkleRoot = object.merkleRoot ?? new Uint8Array();
|
|
726
755
|
message.proofDomain = object.proofDomain ?? 0;
|
|
727
756
|
message.minTrustLevel = object.minTrustLevel ?? 0;
|
|
728
757
|
message.encryptedPayload = object.encryptedPayload ?? new Uint8Array();
|
|
729
758
|
message.submittedAtHeight = object.submittedAtHeight !== undefined && object.submittedAtHeight !== null ? BigInt(object.submittedAtHeight.toString()) : BigInt(0);
|
|
730
759
|
message.submittedAtEpoch = object.submittedAtEpoch !== undefined && object.submittedAtEpoch !== null ? BigInt(object.submittedAtEpoch.toString()) : BigInt(0);
|
|
760
|
+
message.rateLimitNullifier = object.rateLimitNullifier ?? new Uint8Array();
|
|
731
761
|
return message;
|
|
732
762
|
},
|
|
733
763
|
fromAmino(object) {
|
|
@@ -738,8 +768,8 @@ exports.PendingShieldedOp = {
|
|
|
738
768
|
if (object.target_epoch !== undefined && object.target_epoch !== null) {
|
|
739
769
|
message.targetEpoch = BigInt(object.target_epoch);
|
|
740
770
|
}
|
|
741
|
-
if (object.
|
|
742
|
-
message.
|
|
771
|
+
if (object.submission_nullifier !== undefined && object.submission_nullifier !== null) {
|
|
772
|
+
message.submissionNullifier = (0, helpers_1.bytesFromBase64)(object.submission_nullifier);
|
|
743
773
|
}
|
|
744
774
|
if (object.merkle_root !== undefined && object.merkle_root !== null) {
|
|
745
775
|
message.merkleRoot = (0, helpers_1.bytesFromBase64)(object.merkle_root);
|
|
@@ -759,19 +789,23 @@ exports.PendingShieldedOp = {
|
|
|
759
789
|
if (object.submitted_at_epoch !== undefined && object.submitted_at_epoch !== null) {
|
|
760
790
|
message.submittedAtEpoch = BigInt(object.submitted_at_epoch);
|
|
761
791
|
}
|
|
792
|
+
if (object.rate_limit_nullifier !== undefined && object.rate_limit_nullifier !== null) {
|
|
793
|
+
message.rateLimitNullifier = (0, helpers_1.bytesFromBase64)(object.rate_limit_nullifier);
|
|
794
|
+
}
|
|
762
795
|
return message;
|
|
763
796
|
},
|
|
764
797
|
toAmino(message) {
|
|
765
798
|
const obj = {};
|
|
766
799
|
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
767
800
|
obj.target_epoch = message.targetEpoch !== BigInt(0) ? message.targetEpoch?.toString() : undefined;
|
|
768
|
-
obj.
|
|
801
|
+
obj.submission_nullifier = message.submissionNullifier ? (0, helpers_1.base64FromBytes)(message.submissionNullifier) : undefined;
|
|
769
802
|
obj.merkle_root = message.merkleRoot ? (0, helpers_1.base64FromBytes)(message.merkleRoot) : undefined;
|
|
770
803
|
obj.proof_domain = message.proofDomain === 0 ? undefined : message.proofDomain;
|
|
771
804
|
obj.min_trust_level = message.minTrustLevel === 0 ? undefined : message.minTrustLevel;
|
|
772
805
|
obj.encrypted_payload = message.encryptedPayload ? (0, helpers_1.base64FromBytes)(message.encryptedPayload) : undefined;
|
|
773
806
|
obj.submitted_at_height = message.submittedAtHeight !== BigInt(0) ? message.submittedAtHeight?.toString() : undefined;
|
|
774
807
|
obj.submitted_at_epoch = message.submittedAtEpoch !== BigInt(0) ? message.submittedAtEpoch?.toString() : undefined;
|
|
808
|
+
obj.rate_limit_nullifier = message.rateLimitNullifier ? (0, helpers_1.base64FromBytes)(message.rateLimitNullifier) : undefined;
|
|
775
809
|
return obj;
|
|
776
810
|
},
|
|
777
811
|
fromAminoMsg(object) {
|
|
@@ -1075,7 +1109,8 @@ function createBaseTLEKeySet() {
|
|
|
1075
1109
|
thresholdNumerator: BigInt(0),
|
|
1076
1110
|
thresholdDenominator: BigInt(0),
|
|
1077
1111
|
validatorShares: [],
|
|
1078
|
-
createdAtHeight: BigInt(0)
|
|
1112
|
+
createdAtHeight: BigInt(0),
|
|
1113
|
+
masterPublicKeyG2: new Uint8Array()
|
|
1079
1114
|
};
|
|
1080
1115
|
}
|
|
1081
1116
|
/**
|
|
@@ -1102,6 +1137,9 @@ exports.TLEKeySet = {
|
|
|
1102
1137
|
if (message.createdAtHeight !== BigInt(0)) {
|
|
1103
1138
|
writer.uint32(40).int64(message.createdAtHeight);
|
|
1104
1139
|
}
|
|
1140
|
+
if (message.masterPublicKeyG2.length !== 0) {
|
|
1141
|
+
writer.uint32(50).bytes(message.masterPublicKeyG2);
|
|
1142
|
+
}
|
|
1105
1143
|
return writer;
|
|
1106
1144
|
},
|
|
1107
1145
|
decode(input, length) {
|
|
@@ -1126,6 +1164,9 @@ exports.TLEKeySet = {
|
|
|
1126
1164
|
case 5:
|
|
1127
1165
|
message.createdAtHeight = reader.int64();
|
|
1128
1166
|
break;
|
|
1167
|
+
case 6:
|
|
1168
|
+
message.masterPublicKeyG2 = reader.bytes();
|
|
1169
|
+
break;
|
|
1129
1170
|
default:
|
|
1130
1171
|
reader.skipType(tag & 7);
|
|
1131
1172
|
break;
|
|
@@ -1140,6 +1181,7 @@ exports.TLEKeySet = {
|
|
|
1140
1181
|
message.thresholdDenominator = object.thresholdDenominator !== undefined && object.thresholdDenominator !== null ? BigInt(object.thresholdDenominator.toString()) : BigInt(0);
|
|
1141
1182
|
message.validatorShares = object.validatorShares?.map(e => exports.TLEValidatorPublicShare.fromPartial(e)) || [];
|
|
1142
1183
|
message.createdAtHeight = object.createdAtHeight !== undefined && object.createdAtHeight !== null ? BigInt(object.createdAtHeight.toString()) : BigInt(0);
|
|
1184
|
+
message.masterPublicKeyG2 = object.masterPublicKeyG2 ?? new Uint8Array();
|
|
1143
1185
|
return message;
|
|
1144
1186
|
},
|
|
1145
1187
|
fromAmino(object) {
|
|
@@ -1157,6 +1199,9 @@ exports.TLEKeySet = {
|
|
|
1157
1199
|
if (object.created_at_height !== undefined && object.created_at_height !== null) {
|
|
1158
1200
|
message.createdAtHeight = BigInt(object.created_at_height);
|
|
1159
1201
|
}
|
|
1202
|
+
if (object.master_public_key_g2 !== undefined && object.master_public_key_g2 !== null) {
|
|
1203
|
+
message.masterPublicKeyG2 = (0, helpers_1.bytesFromBase64)(object.master_public_key_g2);
|
|
1204
|
+
}
|
|
1160
1205
|
return message;
|
|
1161
1206
|
},
|
|
1162
1207
|
toAmino(message) {
|
|
@@ -1171,6 +1216,7 @@ exports.TLEKeySet = {
|
|
|
1171
1216
|
obj.validator_shares = message.validatorShares;
|
|
1172
1217
|
}
|
|
1173
1218
|
obj.created_at_height = message.createdAtHeight !== BigInt(0) ? message.createdAtHeight?.toString() : undefined;
|
|
1219
|
+
obj.master_public_key_g2 = message.masterPublicKeyG2 ? (0, helpers_1.base64FromBytes)(message.masterPublicKeyG2) : undefined;
|
|
1174
1220
|
return obj;
|
|
1175
1221
|
},
|
|
1176
1222
|
fromAminoMsg(object) {
|
|
@@ -1304,7 +1350,10 @@ function createBaseDKGState() {
|
|
|
1304
1350
|
thresholdNumerator: BigInt(0),
|
|
1305
1351
|
thresholdDenominator: BigInt(0),
|
|
1306
1352
|
expectedValidators: [],
|
|
1307
|
-
contributionsReceived: BigInt(0)
|
|
1353
|
+
contributionsReceived: BigInt(0),
|
|
1354
|
+
complaintDeadline: BigInt(0),
|
|
1355
|
+
justificationDeadline: BigInt(0),
|
|
1356
|
+
disqualifiedDealers: []
|
|
1308
1357
|
};
|
|
1309
1358
|
}
|
|
1310
1359
|
/**
|
|
@@ -1343,6 +1392,15 @@ exports.DKGState = {
|
|
|
1343
1392
|
if (message.contributionsReceived !== BigInt(0)) {
|
|
1344
1393
|
writer.uint32(72).uint64(message.contributionsReceived);
|
|
1345
1394
|
}
|
|
1395
|
+
if (message.complaintDeadline !== BigInt(0)) {
|
|
1396
|
+
writer.uint32(80).int64(message.complaintDeadline);
|
|
1397
|
+
}
|
|
1398
|
+
if (message.justificationDeadline !== BigInt(0)) {
|
|
1399
|
+
writer.uint32(88).int64(message.justificationDeadline);
|
|
1400
|
+
}
|
|
1401
|
+
for (const v of message.disqualifiedDealers) {
|
|
1402
|
+
writer.uint32(98).string(v);
|
|
1403
|
+
}
|
|
1346
1404
|
return writer;
|
|
1347
1405
|
},
|
|
1348
1406
|
decode(input, length) {
|
|
@@ -1379,6 +1437,15 @@ exports.DKGState = {
|
|
|
1379
1437
|
case 9:
|
|
1380
1438
|
message.contributionsReceived = reader.uint64();
|
|
1381
1439
|
break;
|
|
1440
|
+
case 10:
|
|
1441
|
+
message.complaintDeadline = reader.int64();
|
|
1442
|
+
break;
|
|
1443
|
+
case 11:
|
|
1444
|
+
message.justificationDeadline = reader.int64();
|
|
1445
|
+
break;
|
|
1446
|
+
case 12:
|
|
1447
|
+
message.disqualifiedDealers.push(reader.string());
|
|
1448
|
+
break;
|
|
1382
1449
|
default:
|
|
1383
1450
|
reader.skipType(tag & 7);
|
|
1384
1451
|
break;
|
|
@@ -1397,6 +1464,9 @@ exports.DKGState = {
|
|
|
1397
1464
|
message.thresholdDenominator = object.thresholdDenominator !== undefined && object.thresholdDenominator !== null ? BigInt(object.thresholdDenominator.toString()) : BigInt(0);
|
|
1398
1465
|
message.expectedValidators = object.expectedValidators?.map(e => e) || [];
|
|
1399
1466
|
message.contributionsReceived = object.contributionsReceived !== undefined && object.contributionsReceived !== null ? BigInt(object.contributionsReceived.toString()) : BigInt(0);
|
|
1467
|
+
message.complaintDeadline = object.complaintDeadline !== undefined && object.complaintDeadline !== null ? BigInt(object.complaintDeadline.toString()) : BigInt(0);
|
|
1468
|
+
message.justificationDeadline = object.justificationDeadline !== undefined && object.justificationDeadline !== null ? BigInt(object.justificationDeadline.toString()) : BigInt(0);
|
|
1469
|
+
message.disqualifiedDealers = object.disqualifiedDealers?.map(e => e) || [];
|
|
1400
1470
|
return message;
|
|
1401
1471
|
},
|
|
1402
1472
|
fromAmino(object) {
|
|
@@ -1426,6 +1496,13 @@ exports.DKGState = {
|
|
|
1426
1496
|
if (object.contributions_received !== undefined && object.contributions_received !== null) {
|
|
1427
1497
|
message.contributionsReceived = BigInt(object.contributions_received);
|
|
1428
1498
|
}
|
|
1499
|
+
if (object.complaint_deadline !== undefined && object.complaint_deadline !== null) {
|
|
1500
|
+
message.complaintDeadline = BigInt(object.complaint_deadline);
|
|
1501
|
+
}
|
|
1502
|
+
if (object.justification_deadline !== undefined && object.justification_deadline !== null) {
|
|
1503
|
+
message.justificationDeadline = BigInt(object.justification_deadline);
|
|
1504
|
+
}
|
|
1505
|
+
message.disqualifiedDealers = object.disqualified_dealers?.map(e => e) || [];
|
|
1429
1506
|
return message;
|
|
1430
1507
|
},
|
|
1431
1508
|
toAmino(message) {
|
|
@@ -1444,6 +1521,14 @@ exports.DKGState = {
|
|
|
1444
1521
|
obj.expected_validators = message.expectedValidators;
|
|
1445
1522
|
}
|
|
1446
1523
|
obj.contributions_received = message.contributionsReceived !== BigInt(0) ? message.contributionsReceived?.toString() : undefined;
|
|
1524
|
+
obj.complaint_deadline = message.complaintDeadline !== BigInt(0) ? message.complaintDeadline?.toString() : undefined;
|
|
1525
|
+
obj.justification_deadline = message.justificationDeadline !== BigInt(0) ? message.justificationDeadline?.toString() : undefined;
|
|
1526
|
+
if (message.disqualifiedDealers) {
|
|
1527
|
+
obj.disqualified_dealers = message.disqualifiedDealers.map(e => e);
|
|
1528
|
+
}
|
|
1529
|
+
else {
|
|
1530
|
+
obj.disqualified_dealers = message.disqualifiedDealers;
|
|
1531
|
+
}
|
|
1447
1532
|
return obj;
|
|
1448
1533
|
},
|
|
1449
1534
|
fromAminoMsg(object) {
|
|
@@ -1773,7 +1858,9 @@ function createBaseDKGVoteExtension() {
|
|
|
1773
1858
|
contributionPop: new Uint8Array(),
|
|
1774
1859
|
feldmanCommitmentsG2: [],
|
|
1775
1860
|
decryptionEpoch: BigInt(0),
|
|
1776
|
-
decryptionShare: new Uint8Array()
|
|
1861
|
+
decryptionShare: new Uint8Array(),
|
|
1862
|
+
complaints: [],
|
|
1863
|
+
justifications: []
|
|
1777
1864
|
};
|
|
1778
1865
|
}
|
|
1779
1866
|
/**
|
|
@@ -1816,6 +1903,14 @@ exports.DKGVoteExtension = {
|
|
|
1816
1903
|
if (message.decryptionShare.length !== 0) {
|
|
1817
1904
|
writer.uint32(82).bytes(message.decryptionShare);
|
|
1818
1905
|
}
|
|
1906
|
+
writer.uint32(90).fork();
|
|
1907
|
+
for (const v of message.complaints) {
|
|
1908
|
+
writer.uint32(v);
|
|
1909
|
+
}
|
|
1910
|
+
writer.ldelim();
|
|
1911
|
+
for (const v of message.justifications) {
|
|
1912
|
+
exports.DKGJustification.encode(v, writer.uint32(98).fork()).ldelim();
|
|
1913
|
+
}
|
|
1819
1914
|
return writer;
|
|
1820
1915
|
},
|
|
1821
1916
|
decode(input, length) {
|
|
@@ -1855,6 +1950,20 @@ exports.DKGVoteExtension = {
|
|
|
1855
1950
|
case 10:
|
|
1856
1951
|
message.decryptionShare = reader.bytes();
|
|
1857
1952
|
break;
|
|
1953
|
+
case 11:
|
|
1954
|
+
if ((tag & 7) === 2) {
|
|
1955
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1956
|
+
while (reader.pos < end2) {
|
|
1957
|
+
message.complaints.push(reader.uint32());
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
else {
|
|
1961
|
+
message.complaints.push(reader.uint32());
|
|
1962
|
+
}
|
|
1963
|
+
break;
|
|
1964
|
+
case 12:
|
|
1965
|
+
message.justifications.push(exports.DKGJustification.decode(reader, reader.uint32()));
|
|
1966
|
+
break;
|
|
1858
1967
|
default:
|
|
1859
1968
|
reader.skipType(tag & 7);
|
|
1860
1969
|
break;
|
|
@@ -1874,6 +1983,8 @@ exports.DKGVoteExtension = {
|
|
|
1874
1983
|
message.feldmanCommitmentsG2 = object.feldmanCommitmentsG2?.map(e => e) || [];
|
|
1875
1984
|
message.decryptionEpoch = object.decryptionEpoch !== undefined && object.decryptionEpoch !== null ? BigInt(object.decryptionEpoch.toString()) : BigInt(0);
|
|
1876
1985
|
message.decryptionShare = object.decryptionShare ?? new Uint8Array();
|
|
1986
|
+
message.complaints = object.complaints?.map(e => e) || [];
|
|
1987
|
+
message.justifications = object.justifications?.map(e => exports.DKGJustification.fromPartial(e)) || [];
|
|
1877
1988
|
return message;
|
|
1878
1989
|
},
|
|
1879
1990
|
fromAmino(object) {
|
|
@@ -1902,6 +2013,8 @@ exports.DKGVoteExtension = {
|
|
|
1902
2013
|
if (object.decryption_share !== undefined && object.decryption_share !== null) {
|
|
1903
2014
|
message.decryptionShare = (0, helpers_1.bytesFromBase64)(object.decryption_share);
|
|
1904
2015
|
}
|
|
2016
|
+
message.complaints = object.complaints?.map(e => e) || [];
|
|
2017
|
+
message.justifications = object.justifications?.map(e => exports.DKGJustification.fromAmino(e)) || [];
|
|
1905
2018
|
return message;
|
|
1906
2019
|
},
|
|
1907
2020
|
toAmino(message) {
|
|
@@ -1931,6 +2044,18 @@ exports.DKGVoteExtension = {
|
|
|
1931
2044
|
}
|
|
1932
2045
|
obj.decryption_epoch = message.decryptionEpoch !== BigInt(0) ? message.decryptionEpoch?.toString() : undefined;
|
|
1933
2046
|
obj.decryption_share = message.decryptionShare ? (0, helpers_1.base64FromBytes)(message.decryptionShare) : undefined;
|
|
2047
|
+
if (message.complaints) {
|
|
2048
|
+
obj.complaints = message.complaints.map(e => e);
|
|
2049
|
+
}
|
|
2050
|
+
else {
|
|
2051
|
+
obj.complaints = message.complaints;
|
|
2052
|
+
}
|
|
2053
|
+
if (message.justifications) {
|
|
2054
|
+
obj.justifications = message.justifications.map(e => e ? exports.DKGJustification.toAmino(e) : undefined);
|
|
2055
|
+
}
|
|
2056
|
+
else {
|
|
2057
|
+
obj.justifications = message.justifications;
|
|
2058
|
+
}
|
|
1934
2059
|
return obj;
|
|
1935
2060
|
},
|
|
1936
2061
|
fromAminoMsg(object) {
|
|
@@ -1949,6 +2074,197 @@ exports.DKGVoteExtension = {
|
|
|
1949
2074
|
};
|
|
1950
2075
|
}
|
|
1951
2076
|
};
|
|
2077
|
+
function createBaseDKGJustification() {
|
|
2078
|
+
return {
|
|
2079
|
+
complainerIndex: 0,
|
|
2080
|
+
evaluation: new Uint8Array()
|
|
2081
|
+
};
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* DKGJustification is a dealer's public answer to a complaint: p_i(j) for the
|
|
2085
|
+
* complaining validator j, which anyone checks against the dealer's Feldman
|
|
2086
|
+
* commitments.
|
|
2087
|
+
* @name DKGJustification
|
|
2088
|
+
* @package sparkdream.shield.v1
|
|
2089
|
+
* @see proto type: sparkdream.shield.v1.DKGJustification
|
|
2090
|
+
*/
|
|
2091
|
+
exports.DKGJustification = {
|
|
2092
|
+
typeUrl: "/sparkdream.shield.v1.DKGJustification",
|
|
2093
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2094
|
+
if (message.complainerIndex !== 0) {
|
|
2095
|
+
writer.uint32(8).uint32(message.complainerIndex);
|
|
2096
|
+
}
|
|
2097
|
+
if (message.evaluation.length !== 0) {
|
|
2098
|
+
writer.uint32(18).bytes(message.evaluation);
|
|
2099
|
+
}
|
|
2100
|
+
return writer;
|
|
2101
|
+
},
|
|
2102
|
+
decode(input, length) {
|
|
2103
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2104
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2105
|
+
const message = createBaseDKGJustification();
|
|
2106
|
+
while (reader.pos < end) {
|
|
2107
|
+
const tag = reader.uint32();
|
|
2108
|
+
switch (tag >>> 3) {
|
|
2109
|
+
case 1:
|
|
2110
|
+
message.complainerIndex = reader.uint32();
|
|
2111
|
+
break;
|
|
2112
|
+
case 2:
|
|
2113
|
+
message.evaluation = reader.bytes();
|
|
2114
|
+
break;
|
|
2115
|
+
default:
|
|
2116
|
+
reader.skipType(tag & 7);
|
|
2117
|
+
break;
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
return message;
|
|
2121
|
+
},
|
|
2122
|
+
fromPartial(object) {
|
|
2123
|
+
const message = createBaseDKGJustification();
|
|
2124
|
+
message.complainerIndex = object.complainerIndex ?? 0;
|
|
2125
|
+
message.evaluation = object.evaluation ?? new Uint8Array();
|
|
2126
|
+
return message;
|
|
2127
|
+
},
|
|
2128
|
+
fromAmino(object) {
|
|
2129
|
+
const message = createBaseDKGJustification();
|
|
2130
|
+
if (object.complainer_index !== undefined && object.complainer_index !== null) {
|
|
2131
|
+
message.complainerIndex = object.complainer_index;
|
|
2132
|
+
}
|
|
2133
|
+
if (object.evaluation !== undefined && object.evaluation !== null) {
|
|
2134
|
+
message.evaluation = (0, helpers_1.bytesFromBase64)(object.evaluation);
|
|
2135
|
+
}
|
|
2136
|
+
return message;
|
|
2137
|
+
},
|
|
2138
|
+
toAmino(message) {
|
|
2139
|
+
const obj = {};
|
|
2140
|
+
obj.complainer_index = message.complainerIndex === 0 ? undefined : message.complainerIndex;
|
|
2141
|
+
obj.evaluation = message.evaluation ? (0, helpers_1.base64FromBytes)(message.evaluation) : undefined;
|
|
2142
|
+
return obj;
|
|
2143
|
+
},
|
|
2144
|
+
fromAminoMsg(object) {
|
|
2145
|
+
return exports.DKGJustification.fromAmino(object.value);
|
|
2146
|
+
},
|
|
2147
|
+
fromProtoMsg(message) {
|
|
2148
|
+
return exports.DKGJustification.decode(message.value);
|
|
2149
|
+
},
|
|
2150
|
+
toProto(message) {
|
|
2151
|
+
return exports.DKGJustification.encode(message).finish();
|
|
2152
|
+
},
|
|
2153
|
+
toProtoMsg(message) {
|
|
2154
|
+
return {
|
|
2155
|
+
typeUrl: "/sparkdream.shield.v1.DKGJustification",
|
|
2156
|
+
value: exports.DKGJustification.encode(message).finish()
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2160
|
+
function createBaseDKGComplaint() {
|
|
2161
|
+
return {
|
|
2162
|
+
dealerAddress: "",
|
|
2163
|
+
complainerAddress: "",
|
|
2164
|
+
justified: false,
|
|
2165
|
+
evaluation: new Uint8Array()
|
|
2166
|
+
};
|
|
2167
|
+
}
|
|
2168
|
+
/**
|
|
2169
|
+
* DKGComplaint records a complaint by complainer_address against
|
|
2170
|
+
* dealer_address in the current round and, once the dealer answers with a
|
|
2171
|
+
* valid evaluation, that evaluation (the complainer uses it in place of the
|
|
2172
|
+
* ciphertext it could not open).
|
|
2173
|
+
* @name DKGComplaint
|
|
2174
|
+
* @package sparkdream.shield.v1
|
|
2175
|
+
* @see proto type: sparkdream.shield.v1.DKGComplaint
|
|
2176
|
+
*/
|
|
2177
|
+
exports.DKGComplaint = {
|
|
2178
|
+
typeUrl: "/sparkdream.shield.v1.DKGComplaint",
|
|
2179
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2180
|
+
if (message.dealerAddress !== "") {
|
|
2181
|
+
writer.uint32(10).string(message.dealerAddress);
|
|
2182
|
+
}
|
|
2183
|
+
if (message.complainerAddress !== "") {
|
|
2184
|
+
writer.uint32(18).string(message.complainerAddress);
|
|
2185
|
+
}
|
|
2186
|
+
if (message.justified === true) {
|
|
2187
|
+
writer.uint32(24).bool(message.justified);
|
|
2188
|
+
}
|
|
2189
|
+
if (message.evaluation.length !== 0) {
|
|
2190
|
+
writer.uint32(34).bytes(message.evaluation);
|
|
2191
|
+
}
|
|
2192
|
+
return writer;
|
|
2193
|
+
},
|
|
2194
|
+
decode(input, length) {
|
|
2195
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2196
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2197
|
+
const message = createBaseDKGComplaint();
|
|
2198
|
+
while (reader.pos < end) {
|
|
2199
|
+
const tag = reader.uint32();
|
|
2200
|
+
switch (tag >>> 3) {
|
|
2201
|
+
case 1:
|
|
2202
|
+
message.dealerAddress = reader.string();
|
|
2203
|
+
break;
|
|
2204
|
+
case 2:
|
|
2205
|
+
message.complainerAddress = reader.string();
|
|
2206
|
+
break;
|
|
2207
|
+
case 3:
|
|
2208
|
+
message.justified = reader.bool();
|
|
2209
|
+
break;
|
|
2210
|
+
case 4:
|
|
2211
|
+
message.evaluation = reader.bytes();
|
|
2212
|
+
break;
|
|
2213
|
+
default:
|
|
2214
|
+
reader.skipType(tag & 7);
|
|
2215
|
+
break;
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
return message;
|
|
2219
|
+
},
|
|
2220
|
+
fromPartial(object) {
|
|
2221
|
+
const message = createBaseDKGComplaint();
|
|
2222
|
+
message.dealerAddress = object.dealerAddress ?? "";
|
|
2223
|
+
message.complainerAddress = object.complainerAddress ?? "";
|
|
2224
|
+
message.justified = object.justified ?? false;
|
|
2225
|
+
message.evaluation = object.evaluation ?? new Uint8Array();
|
|
2226
|
+
return message;
|
|
2227
|
+
},
|
|
2228
|
+
fromAmino(object) {
|
|
2229
|
+
const message = createBaseDKGComplaint();
|
|
2230
|
+
if (object.dealer_address !== undefined && object.dealer_address !== null) {
|
|
2231
|
+
message.dealerAddress = object.dealer_address;
|
|
2232
|
+
}
|
|
2233
|
+
if (object.complainer_address !== undefined && object.complainer_address !== null) {
|
|
2234
|
+
message.complainerAddress = object.complainer_address;
|
|
2235
|
+
}
|
|
2236
|
+
if (object.justified !== undefined && object.justified !== null) {
|
|
2237
|
+
message.justified = object.justified;
|
|
2238
|
+
}
|
|
2239
|
+
if (object.evaluation !== undefined && object.evaluation !== null) {
|
|
2240
|
+
message.evaluation = (0, helpers_1.bytesFromBase64)(object.evaluation);
|
|
2241
|
+
}
|
|
2242
|
+
return message;
|
|
2243
|
+
},
|
|
2244
|
+
toAmino(message) {
|
|
2245
|
+
const obj = {};
|
|
2246
|
+
obj.dealer_address = message.dealerAddress === "" ? undefined : message.dealerAddress;
|
|
2247
|
+
obj.complainer_address = message.complainerAddress === "" ? undefined : message.complainerAddress;
|
|
2248
|
+
obj.justified = message.justified === false ? undefined : message.justified;
|
|
2249
|
+
obj.evaluation = message.evaluation ? (0, helpers_1.base64FromBytes)(message.evaluation) : undefined;
|
|
2250
|
+
return obj;
|
|
2251
|
+
},
|
|
2252
|
+
fromAminoMsg(object) {
|
|
2253
|
+
return exports.DKGComplaint.fromAmino(object.value);
|
|
2254
|
+
},
|
|
2255
|
+
fromProtoMsg(message) {
|
|
2256
|
+
return exports.DKGComplaint.decode(message.value);
|
|
2257
|
+
},
|
|
2258
|
+
toProto(message) {
|
|
2259
|
+
return exports.DKGComplaint.encode(message).finish();
|
|
2260
|
+
},
|
|
2261
|
+
toProtoMsg(message) {
|
|
2262
|
+
return {
|
|
2263
|
+
typeUrl: "/sparkdream.shield.v1.DKGComplaint",
|
|
2264
|
+
value: exports.DKGComplaint.encode(message).finish()
|
|
2265
|
+
};
|
|
2266
|
+
}
|
|
2267
|
+
};
|
|
1952
2268
|
function createBaseInjectedDKGData() {
|
|
1953
2269
|
return {
|
|
1954
2270
|
round: BigInt(0),
|
|
@@ -2505,3 +2821,86 @@ exports.TLEMissCounterEntry = {
|
|
|
2505
2821
|
};
|
|
2506
2822
|
}
|
|
2507
2823
|
};
|
|
2824
|
+
function createBaseDecryptionDemandEntry() {
|
|
2825
|
+
return {
|
|
2826
|
+
epoch: BigInt(0),
|
|
2827
|
+
height: BigInt(0)
|
|
2828
|
+
};
|
|
2829
|
+
}
|
|
2830
|
+
/**
|
|
2831
|
+
* DecryptionDemandEntry records that the EndBlocker asked validators for
|
|
2832
|
+
* decryption shares of a closed epoch (its batch became ready) at a height.
|
|
2833
|
+
* TLE liveness for that epoch is judged one full epoch interval later.
|
|
2834
|
+
* @name DecryptionDemandEntry
|
|
2835
|
+
* @package sparkdream.shield.v1
|
|
2836
|
+
* @see proto type: sparkdream.shield.v1.DecryptionDemandEntry
|
|
2837
|
+
*/
|
|
2838
|
+
exports.DecryptionDemandEntry = {
|
|
2839
|
+
typeUrl: "/sparkdream.shield.v1.DecryptionDemandEntry",
|
|
2840
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2841
|
+
if (message.epoch !== BigInt(0)) {
|
|
2842
|
+
writer.uint32(8).uint64(message.epoch);
|
|
2843
|
+
}
|
|
2844
|
+
if (message.height !== BigInt(0)) {
|
|
2845
|
+
writer.uint32(16).int64(message.height);
|
|
2846
|
+
}
|
|
2847
|
+
return writer;
|
|
2848
|
+
},
|
|
2849
|
+
decode(input, length) {
|
|
2850
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2851
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2852
|
+
const message = createBaseDecryptionDemandEntry();
|
|
2853
|
+
while (reader.pos < end) {
|
|
2854
|
+
const tag = reader.uint32();
|
|
2855
|
+
switch (tag >>> 3) {
|
|
2856
|
+
case 1:
|
|
2857
|
+
message.epoch = reader.uint64();
|
|
2858
|
+
break;
|
|
2859
|
+
case 2:
|
|
2860
|
+
message.height = reader.int64();
|
|
2861
|
+
break;
|
|
2862
|
+
default:
|
|
2863
|
+
reader.skipType(tag & 7);
|
|
2864
|
+
break;
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
return message;
|
|
2868
|
+
},
|
|
2869
|
+
fromPartial(object) {
|
|
2870
|
+
const message = createBaseDecryptionDemandEntry();
|
|
2871
|
+
message.epoch = object.epoch !== undefined && object.epoch !== null ? BigInt(object.epoch.toString()) : BigInt(0);
|
|
2872
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
2873
|
+
return message;
|
|
2874
|
+
},
|
|
2875
|
+
fromAmino(object) {
|
|
2876
|
+
const message = createBaseDecryptionDemandEntry();
|
|
2877
|
+
if (object.epoch !== undefined && object.epoch !== null) {
|
|
2878
|
+
message.epoch = BigInt(object.epoch);
|
|
2879
|
+
}
|
|
2880
|
+
if (object.height !== undefined && object.height !== null) {
|
|
2881
|
+
message.height = BigInt(object.height);
|
|
2882
|
+
}
|
|
2883
|
+
return message;
|
|
2884
|
+
},
|
|
2885
|
+
toAmino(message) {
|
|
2886
|
+
const obj = {};
|
|
2887
|
+
obj.epoch = message.epoch !== BigInt(0) ? message.epoch?.toString() : undefined;
|
|
2888
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
2889
|
+
return obj;
|
|
2890
|
+
},
|
|
2891
|
+
fromAminoMsg(object) {
|
|
2892
|
+
return exports.DecryptionDemandEntry.fromAmino(object.value);
|
|
2893
|
+
},
|
|
2894
|
+
fromProtoMsg(message) {
|
|
2895
|
+
return exports.DecryptionDemandEntry.decode(message.value);
|
|
2896
|
+
},
|
|
2897
|
+
toProto(message) {
|
|
2898
|
+
return exports.DecryptionDemandEntry.encode(message).finish();
|
|
2899
|
+
},
|
|
2900
|
+
toProtoMsg(message) {
|
|
2901
|
+
return {
|
|
2902
|
+
typeUrl: "/sparkdream.shield.v1.DecryptionDemandEntry",
|
|
2903
|
+
value: exports.DecryptionDemandEntry.encode(message).finish()
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
};
|