@sparkdreamnft/sparkdreamjs 0.0.43 → 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/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +37 -1
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/name/v1/genesis.js +32 -2
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +198 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +499 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +56 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +21 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/tx.js +33 -2
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/operator.js +25 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +11 -1
- package/esm/sparkdream/service/v1/tx.js +332 -0
- package/esm/sparkdream/service/v1/tx.registry.js +38 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +20 -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 +25 -1
- package/esm/sparkdream/shield/v1/query.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +480 -16
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20666 -17863
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +165 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +34 -0
- package/sparkdream/federation/v1/types.js +37 -1
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/name/v1/genesis.d.ts +23 -1
- package/sparkdream/name/v1/genesis.js +31 -1
- package/sparkdream/rep/v1/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +144 -28
- package/sparkdream/rep/v1/params.js +198 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +338 -1
- package/sparkdream/rep/v1/tx.js +500 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +37 -1
- package/sparkdream/rep/v1/tx.registry.js +55 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +14 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +20 -0
- package/sparkdream/rpc.query.d.ts +32 -0
- 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/tx.d.ts +19 -0
- package/sparkdream/season/v1/tx.js +33 -2
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/operator.d.ts +30 -0
- package/sparkdream/service/v1/operator.js +25 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +11 -1
- package/sparkdream/service/v1/tx.amino.js +10 -0
- package/sparkdream/service/v1/tx.d.ts +216 -0
- package/sparkdream/service/v1/tx.js +333 -1
- package/sparkdream/service/v1/tx.registry.d.ts +25 -1
- package/sparkdream/service/v1/tx.registry.js +37 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +18 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +19 -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 +32 -4
- package/sparkdream/shield/v1/params.js +25 -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 +337 -13
- package/sparkdream/shield/v1/types.js +483 -17
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,10 +1,12 @@
|
|
|
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.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;
|
|
7
7
|
exports.nullifierScopeTypeToJSON = nullifierScopeTypeToJSON;
|
|
8
|
+
exports.nullifierModeFromJSON = nullifierModeFromJSON;
|
|
9
|
+
exports.nullifierModeToJSON = nullifierModeToJSON;
|
|
8
10
|
exports.shieldBatchModeFromJSON = shieldBatchModeFromJSON;
|
|
9
11
|
exports.shieldBatchModeToJSON = shieldBatchModeToJSON;
|
|
10
12
|
exports.shieldExecModeFromJSON = shieldExecModeFromJSON;
|
|
@@ -93,6 +95,47 @@ function nullifierScopeTypeToJSON(object) {
|
|
|
93
95
|
return "UNRECOGNIZED";
|
|
94
96
|
}
|
|
95
97
|
}
|
|
98
|
+
/** NullifierMode controls what an operation's nullifier proves. */
|
|
99
|
+
var NullifierMode;
|
|
100
|
+
(function (NullifierMode) {
|
|
101
|
+
/** NULLIFIER_MODE_CONSUME - The nullifier is consumed: each (member, scope) acts once. */
|
|
102
|
+
NullifierMode[NullifierMode["NULLIFIER_MODE_CONSUME"] = 0] = "NULLIFIER_MODE_CONSUME";
|
|
103
|
+
/**
|
|
104
|
+
* NULLIFIER_MODE_OWNERSHIP - The nullifier proves ownership of anonymously created content and is
|
|
105
|
+
* reused: the target module's ShieldOwnershipResolver supplies the owner's
|
|
106
|
+
* domain, scope and tag (the creation nullifier), the proof must reproduce
|
|
107
|
+
* the tag, and the owner's sequence (bound into the message hash) stops
|
|
108
|
+
* replays. Immediate mode only.
|
|
109
|
+
*/
|
|
110
|
+
NullifierMode[NullifierMode["NULLIFIER_MODE_OWNERSHIP"] = 1] = "NULLIFIER_MODE_OWNERSHIP";
|
|
111
|
+
NullifierMode[NullifierMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
112
|
+
})(NullifierMode || (exports.NullifierMode = NullifierMode = {}));
|
|
113
|
+
exports.NullifierModeAmino = NullifierMode;
|
|
114
|
+
function nullifierModeFromJSON(object) {
|
|
115
|
+
switch (object) {
|
|
116
|
+
case 0:
|
|
117
|
+
case "NULLIFIER_MODE_CONSUME":
|
|
118
|
+
return NullifierMode.NULLIFIER_MODE_CONSUME;
|
|
119
|
+
case 1:
|
|
120
|
+
case "NULLIFIER_MODE_OWNERSHIP":
|
|
121
|
+
return NullifierMode.NULLIFIER_MODE_OWNERSHIP;
|
|
122
|
+
case -1:
|
|
123
|
+
case "UNRECOGNIZED":
|
|
124
|
+
default:
|
|
125
|
+
return NullifierMode.UNRECOGNIZED;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function nullifierModeToJSON(object) {
|
|
129
|
+
switch (object) {
|
|
130
|
+
case NullifierMode.NULLIFIER_MODE_CONSUME:
|
|
131
|
+
return "NULLIFIER_MODE_CONSUME";
|
|
132
|
+
case NullifierMode.NULLIFIER_MODE_OWNERSHIP:
|
|
133
|
+
return "NULLIFIER_MODE_OWNERSHIP";
|
|
134
|
+
case NullifierMode.UNRECOGNIZED:
|
|
135
|
+
default:
|
|
136
|
+
return "UNRECOGNIZED";
|
|
137
|
+
}
|
|
138
|
+
}
|
|
96
139
|
/** ShieldBatchMode controls which execution modes an operation supports. */
|
|
97
140
|
var ShieldBatchMode;
|
|
98
141
|
(function (ShieldBatchMode) {
|
|
@@ -177,8 +220,19 @@ var DKGPhase;
|
|
|
177
220
|
DKGPhase[DKGPhase["DKG_PHASE_REGISTERING"] = 1] = "DKG_PHASE_REGISTERING";
|
|
178
221
|
/** DKG_PHASE_CONTRIBUTING - Key registration closed; accepting Feldman DKG contributions */
|
|
179
222
|
DKGPhase[DKGPhase["DKG_PHASE_CONTRIBUTING"] = 2] = "DKG_PHASE_CONTRIBUTING";
|
|
180
|
-
/** DKG_PHASE_ACTIVE - DKG complete, master key available
|
|
223
|
+
/** DKG_PHASE_ACTIVE - DKG complete, master key available */
|
|
181
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";
|
|
182
236
|
DKGPhase[DKGPhase["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
183
237
|
})(DKGPhase || (exports.DKGPhase = DKGPhase = {}));
|
|
184
238
|
exports.DKGPhaseAmino = DKGPhase;
|
|
@@ -196,6 +250,12 @@ function dKGPhaseFromJSON(object) {
|
|
|
196
250
|
case 3:
|
|
197
251
|
case "DKG_PHASE_ACTIVE":
|
|
198
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;
|
|
199
259
|
case -1:
|
|
200
260
|
case "UNRECOGNIZED":
|
|
201
261
|
default:
|
|
@@ -212,6 +272,10 @@ function dKGPhaseToJSON(object) {
|
|
|
212
272
|
return "DKG_PHASE_CONTRIBUTING";
|
|
213
273
|
case DKGPhase.DKG_PHASE_ACTIVE:
|
|
214
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";
|
|
215
279
|
case DKGPhase.UNRECOGNIZED:
|
|
216
280
|
default:
|
|
217
281
|
return "UNRECOGNIZED";
|
|
@@ -226,7 +290,9 @@ function createBaseShieldedOpRegistration() {
|
|
|
226
290
|
nullifierScopeType: 0,
|
|
227
291
|
active: false,
|
|
228
292
|
batchMode: 0,
|
|
229
|
-
scopeFieldPath: ""
|
|
293
|
+
scopeFieldPath: "",
|
|
294
|
+
nullifierMode: 0,
|
|
295
|
+
epochWindow: BigInt(0)
|
|
230
296
|
};
|
|
231
297
|
}
|
|
232
298
|
/**
|
|
@@ -262,6 +328,12 @@ exports.ShieldedOpRegistration = {
|
|
|
262
328
|
if (message.scopeFieldPath !== "") {
|
|
263
329
|
writer.uint32(66).string(message.scopeFieldPath);
|
|
264
330
|
}
|
|
331
|
+
if (message.nullifierMode !== 0) {
|
|
332
|
+
writer.uint32(72).int32(message.nullifierMode);
|
|
333
|
+
}
|
|
334
|
+
if (message.epochWindow !== BigInt(0)) {
|
|
335
|
+
writer.uint32(80).uint64(message.epochWindow);
|
|
336
|
+
}
|
|
265
337
|
return writer;
|
|
266
338
|
},
|
|
267
339
|
decode(input, length) {
|
|
@@ -295,6 +367,12 @@ exports.ShieldedOpRegistration = {
|
|
|
295
367
|
case 8:
|
|
296
368
|
message.scopeFieldPath = reader.string();
|
|
297
369
|
break;
|
|
370
|
+
case 9:
|
|
371
|
+
message.nullifierMode = reader.int32();
|
|
372
|
+
break;
|
|
373
|
+
case 10:
|
|
374
|
+
message.epochWindow = reader.uint64();
|
|
375
|
+
break;
|
|
298
376
|
default:
|
|
299
377
|
reader.skipType(tag & 7);
|
|
300
378
|
break;
|
|
@@ -312,6 +390,8 @@ exports.ShieldedOpRegistration = {
|
|
|
312
390
|
message.active = object.active ?? false;
|
|
313
391
|
message.batchMode = object.batchMode ?? 0;
|
|
314
392
|
message.scopeFieldPath = object.scopeFieldPath ?? "";
|
|
393
|
+
message.nullifierMode = object.nullifierMode ?? 0;
|
|
394
|
+
message.epochWindow = object.epochWindow !== undefined && object.epochWindow !== null ? BigInt(object.epochWindow.toString()) : BigInt(0);
|
|
315
395
|
return message;
|
|
316
396
|
},
|
|
317
397
|
fromAmino(object) {
|
|
@@ -340,6 +420,12 @@ exports.ShieldedOpRegistration = {
|
|
|
340
420
|
if (object.scope_field_path !== undefined && object.scope_field_path !== null) {
|
|
341
421
|
message.scopeFieldPath = object.scope_field_path;
|
|
342
422
|
}
|
|
423
|
+
if (object.nullifier_mode !== undefined && object.nullifier_mode !== null) {
|
|
424
|
+
message.nullifierMode = object.nullifier_mode;
|
|
425
|
+
}
|
|
426
|
+
if (object.epoch_window !== undefined && object.epoch_window !== null) {
|
|
427
|
+
message.epochWindow = BigInt(object.epoch_window);
|
|
428
|
+
}
|
|
343
429
|
return message;
|
|
344
430
|
},
|
|
345
431
|
toAmino(message) {
|
|
@@ -352,6 +438,8 @@ exports.ShieldedOpRegistration = {
|
|
|
352
438
|
obj.active = message.active === false ? undefined : message.active;
|
|
353
439
|
obj.batch_mode = message.batchMode === 0 ? undefined : message.batchMode;
|
|
354
440
|
obj.scope_field_path = message.scopeFieldPath === "" ? undefined : message.scopeFieldPath;
|
|
441
|
+
obj.nullifier_mode = message.nullifierMode === 0 ? undefined : message.nullifierMode;
|
|
442
|
+
obj.epoch_window = message.epochWindow !== BigInt(0) ? message.epochWindow?.toString() : undefined;
|
|
355
443
|
return obj;
|
|
356
444
|
},
|
|
357
445
|
fromAminoMsg(object) {
|
|
@@ -484,7 +572,7 @@ function createBaseDayFunding() {
|
|
|
484
572
|
}
|
|
485
573
|
/**
|
|
486
574
|
* DayFunding tracks funding per day to enforce the daily cap.
|
|
487
|
-
* Day is
|
|
575
|
+
* Day is the UTC day of the block time (block_time / 86400).
|
|
488
576
|
* @name DayFunding
|
|
489
577
|
* @package sparkdream.shield.v1
|
|
490
578
|
* @see proto type: sparkdream.shield.v1.DayFunding
|
|
@@ -562,17 +650,19 @@ function createBasePendingShieldedOp() {
|
|
|
562
650
|
return {
|
|
563
651
|
id: BigInt(0),
|
|
564
652
|
targetEpoch: BigInt(0),
|
|
565
|
-
|
|
653
|
+
submissionNullifier: new Uint8Array(),
|
|
566
654
|
merkleRoot: new Uint8Array(),
|
|
567
655
|
proofDomain: 0,
|
|
568
656
|
minTrustLevel: 0,
|
|
569
657
|
encryptedPayload: new Uint8Array(),
|
|
570
658
|
submittedAtHeight: BigInt(0),
|
|
571
|
-
submittedAtEpoch: BigInt(0)
|
|
659
|
+
submittedAtEpoch: BigInt(0),
|
|
660
|
+
rateLimitNullifier: new Uint8Array()
|
|
572
661
|
};
|
|
573
662
|
}
|
|
574
663
|
/**
|
|
575
|
-
* 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.
|
|
576
666
|
* @name PendingShieldedOp
|
|
577
667
|
* @package sparkdream.shield.v1
|
|
578
668
|
* @see proto type: sparkdream.shield.v1.PendingShieldedOp
|
|
@@ -586,8 +676,8 @@ exports.PendingShieldedOp = {
|
|
|
586
676
|
if (message.targetEpoch !== BigInt(0)) {
|
|
587
677
|
writer.uint32(16).uint64(message.targetEpoch);
|
|
588
678
|
}
|
|
589
|
-
if (message.
|
|
590
|
-
writer.uint32(26).bytes(message.
|
|
679
|
+
if (message.submissionNullifier.length !== 0) {
|
|
680
|
+
writer.uint32(26).bytes(message.submissionNullifier);
|
|
591
681
|
}
|
|
592
682
|
if (message.merkleRoot.length !== 0) {
|
|
593
683
|
writer.uint32(34).bytes(message.merkleRoot);
|
|
@@ -607,6 +697,9 @@ exports.PendingShieldedOp = {
|
|
|
607
697
|
if (message.submittedAtEpoch !== BigInt(0)) {
|
|
608
698
|
writer.uint32(72).uint64(message.submittedAtEpoch);
|
|
609
699
|
}
|
|
700
|
+
if (message.rateLimitNullifier.length !== 0) {
|
|
701
|
+
writer.uint32(82).bytes(message.rateLimitNullifier);
|
|
702
|
+
}
|
|
610
703
|
return writer;
|
|
611
704
|
},
|
|
612
705
|
decode(input, length) {
|
|
@@ -623,7 +716,7 @@ exports.PendingShieldedOp = {
|
|
|
623
716
|
message.targetEpoch = reader.uint64();
|
|
624
717
|
break;
|
|
625
718
|
case 3:
|
|
626
|
-
message.
|
|
719
|
+
message.submissionNullifier = reader.bytes();
|
|
627
720
|
break;
|
|
628
721
|
case 4:
|
|
629
722
|
message.merkleRoot = reader.bytes();
|
|
@@ -643,6 +736,9 @@ exports.PendingShieldedOp = {
|
|
|
643
736
|
case 9:
|
|
644
737
|
message.submittedAtEpoch = reader.uint64();
|
|
645
738
|
break;
|
|
739
|
+
case 10:
|
|
740
|
+
message.rateLimitNullifier = reader.bytes();
|
|
741
|
+
break;
|
|
646
742
|
default:
|
|
647
743
|
reader.skipType(tag & 7);
|
|
648
744
|
break;
|
|
@@ -654,13 +750,14 @@ exports.PendingShieldedOp = {
|
|
|
654
750
|
const message = createBasePendingShieldedOp();
|
|
655
751
|
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
656
752
|
message.targetEpoch = object.targetEpoch !== undefined && object.targetEpoch !== null ? BigInt(object.targetEpoch.toString()) : BigInt(0);
|
|
657
|
-
message.
|
|
753
|
+
message.submissionNullifier = object.submissionNullifier ?? new Uint8Array();
|
|
658
754
|
message.merkleRoot = object.merkleRoot ?? new Uint8Array();
|
|
659
755
|
message.proofDomain = object.proofDomain ?? 0;
|
|
660
756
|
message.minTrustLevel = object.minTrustLevel ?? 0;
|
|
661
757
|
message.encryptedPayload = object.encryptedPayload ?? new Uint8Array();
|
|
662
758
|
message.submittedAtHeight = object.submittedAtHeight !== undefined && object.submittedAtHeight !== null ? BigInt(object.submittedAtHeight.toString()) : BigInt(0);
|
|
663
759
|
message.submittedAtEpoch = object.submittedAtEpoch !== undefined && object.submittedAtEpoch !== null ? BigInt(object.submittedAtEpoch.toString()) : BigInt(0);
|
|
760
|
+
message.rateLimitNullifier = object.rateLimitNullifier ?? new Uint8Array();
|
|
664
761
|
return message;
|
|
665
762
|
},
|
|
666
763
|
fromAmino(object) {
|
|
@@ -671,8 +768,8 @@ exports.PendingShieldedOp = {
|
|
|
671
768
|
if (object.target_epoch !== undefined && object.target_epoch !== null) {
|
|
672
769
|
message.targetEpoch = BigInt(object.target_epoch);
|
|
673
770
|
}
|
|
674
|
-
if (object.
|
|
675
|
-
message.
|
|
771
|
+
if (object.submission_nullifier !== undefined && object.submission_nullifier !== null) {
|
|
772
|
+
message.submissionNullifier = (0, helpers_1.bytesFromBase64)(object.submission_nullifier);
|
|
676
773
|
}
|
|
677
774
|
if (object.merkle_root !== undefined && object.merkle_root !== null) {
|
|
678
775
|
message.merkleRoot = (0, helpers_1.bytesFromBase64)(object.merkle_root);
|
|
@@ -692,19 +789,23 @@ exports.PendingShieldedOp = {
|
|
|
692
789
|
if (object.submitted_at_epoch !== undefined && object.submitted_at_epoch !== null) {
|
|
693
790
|
message.submittedAtEpoch = BigInt(object.submitted_at_epoch);
|
|
694
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
|
+
}
|
|
695
795
|
return message;
|
|
696
796
|
},
|
|
697
797
|
toAmino(message) {
|
|
698
798
|
const obj = {};
|
|
699
799
|
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
700
800
|
obj.target_epoch = message.targetEpoch !== BigInt(0) ? message.targetEpoch?.toString() : undefined;
|
|
701
|
-
obj.
|
|
801
|
+
obj.submission_nullifier = message.submissionNullifier ? (0, helpers_1.base64FromBytes)(message.submissionNullifier) : undefined;
|
|
702
802
|
obj.merkle_root = message.merkleRoot ? (0, helpers_1.base64FromBytes)(message.merkleRoot) : undefined;
|
|
703
803
|
obj.proof_domain = message.proofDomain === 0 ? undefined : message.proofDomain;
|
|
704
804
|
obj.min_trust_level = message.minTrustLevel === 0 ? undefined : message.minTrustLevel;
|
|
705
805
|
obj.encrypted_payload = message.encryptedPayload ? (0, helpers_1.base64FromBytes)(message.encryptedPayload) : undefined;
|
|
706
806
|
obj.submitted_at_height = message.submittedAtHeight !== BigInt(0) ? message.submittedAtHeight?.toString() : undefined;
|
|
707
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;
|
|
708
809
|
return obj;
|
|
709
810
|
},
|
|
710
811
|
fromAminoMsg(object) {
|
|
@@ -1008,7 +1109,8 @@ function createBaseTLEKeySet() {
|
|
|
1008
1109
|
thresholdNumerator: BigInt(0),
|
|
1009
1110
|
thresholdDenominator: BigInt(0),
|
|
1010
1111
|
validatorShares: [],
|
|
1011
|
-
createdAtHeight: BigInt(0)
|
|
1112
|
+
createdAtHeight: BigInt(0),
|
|
1113
|
+
masterPublicKeyG2: new Uint8Array()
|
|
1012
1114
|
};
|
|
1013
1115
|
}
|
|
1014
1116
|
/**
|
|
@@ -1035,6 +1137,9 @@ exports.TLEKeySet = {
|
|
|
1035
1137
|
if (message.createdAtHeight !== BigInt(0)) {
|
|
1036
1138
|
writer.uint32(40).int64(message.createdAtHeight);
|
|
1037
1139
|
}
|
|
1140
|
+
if (message.masterPublicKeyG2.length !== 0) {
|
|
1141
|
+
writer.uint32(50).bytes(message.masterPublicKeyG2);
|
|
1142
|
+
}
|
|
1038
1143
|
return writer;
|
|
1039
1144
|
},
|
|
1040
1145
|
decode(input, length) {
|
|
@@ -1059,6 +1164,9 @@ exports.TLEKeySet = {
|
|
|
1059
1164
|
case 5:
|
|
1060
1165
|
message.createdAtHeight = reader.int64();
|
|
1061
1166
|
break;
|
|
1167
|
+
case 6:
|
|
1168
|
+
message.masterPublicKeyG2 = reader.bytes();
|
|
1169
|
+
break;
|
|
1062
1170
|
default:
|
|
1063
1171
|
reader.skipType(tag & 7);
|
|
1064
1172
|
break;
|
|
@@ -1073,6 +1181,7 @@ exports.TLEKeySet = {
|
|
|
1073
1181
|
message.thresholdDenominator = object.thresholdDenominator !== undefined && object.thresholdDenominator !== null ? BigInt(object.thresholdDenominator.toString()) : BigInt(0);
|
|
1074
1182
|
message.validatorShares = object.validatorShares?.map(e => exports.TLEValidatorPublicShare.fromPartial(e)) || [];
|
|
1075
1183
|
message.createdAtHeight = object.createdAtHeight !== undefined && object.createdAtHeight !== null ? BigInt(object.createdAtHeight.toString()) : BigInt(0);
|
|
1184
|
+
message.masterPublicKeyG2 = object.masterPublicKeyG2 ?? new Uint8Array();
|
|
1076
1185
|
return message;
|
|
1077
1186
|
},
|
|
1078
1187
|
fromAmino(object) {
|
|
@@ -1090,6 +1199,9 @@ exports.TLEKeySet = {
|
|
|
1090
1199
|
if (object.created_at_height !== undefined && object.created_at_height !== null) {
|
|
1091
1200
|
message.createdAtHeight = BigInt(object.created_at_height);
|
|
1092
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
|
+
}
|
|
1093
1205
|
return message;
|
|
1094
1206
|
},
|
|
1095
1207
|
toAmino(message) {
|
|
@@ -1104,6 +1216,7 @@ exports.TLEKeySet = {
|
|
|
1104
1216
|
obj.validator_shares = message.validatorShares;
|
|
1105
1217
|
}
|
|
1106
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;
|
|
1107
1220
|
return obj;
|
|
1108
1221
|
},
|
|
1109
1222
|
fromAminoMsg(object) {
|
|
@@ -1237,7 +1350,10 @@ function createBaseDKGState() {
|
|
|
1237
1350
|
thresholdNumerator: BigInt(0),
|
|
1238
1351
|
thresholdDenominator: BigInt(0),
|
|
1239
1352
|
expectedValidators: [],
|
|
1240
|
-
contributionsReceived: BigInt(0)
|
|
1353
|
+
contributionsReceived: BigInt(0),
|
|
1354
|
+
complaintDeadline: BigInt(0),
|
|
1355
|
+
justificationDeadline: BigInt(0),
|
|
1356
|
+
disqualifiedDealers: []
|
|
1241
1357
|
};
|
|
1242
1358
|
}
|
|
1243
1359
|
/**
|
|
@@ -1276,6 +1392,15 @@ exports.DKGState = {
|
|
|
1276
1392
|
if (message.contributionsReceived !== BigInt(0)) {
|
|
1277
1393
|
writer.uint32(72).uint64(message.contributionsReceived);
|
|
1278
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
|
+
}
|
|
1279
1404
|
return writer;
|
|
1280
1405
|
},
|
|
1281
1406
|
decode(input, length) {
|
|
@@ -1312,6 +1437,15 @@ exports.DKGState = {
|
|
|
1312
1437
|
case 9:
|
|
1313
1438
|
message.contributionsReceived = reader.uint64();
|
|
1314
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;
|
|
1315
1449
|
default:
|
|
1316
1450
|
reader.skipType(tag & 7);
|
|
1317
1451
|
break;
|
|
@@ -1330,6 +1464,9 @@ exports.DKGState = {
|
|
|
1330
1464
|
message.thresholdDenominator = object.thresholdDenominator !== undefined && object.thresholdDenominator !== null ? BigInt(object.thresholdDenominator.toString()) : BigInt(0);
|
|
1331
1465
|
message.expectedValidators = object.expectedValidators?.map(e => e) || [];
|
|
1332
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) || [];
|
|
1333
1470
|
return message;
|
|
1334
1471
|
},
|
|
1335
1472
|
fromAmino(object) {
|
|
@@ -1359,6 +1496,13 @@ exports.DKGState = {
|
|
|
1359
1496
|
if (object.contributions_received !== undefined && object.contributions_received !== null) {
|
|
1360
1497
|
message.contributionsReceived = BigInt(object.contributions_received);
|
|
1361
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) || [];
|
|
1362
1506
|
return message;
|
|
1363
1507
|
},
|
|
1364
1508
|
toAmino(message) {
|
|
@@ -1377,6 +1521,14 @@ exports.DKGState = {
|
|
|
1377
1521
|
obj.expected_validators = message.expectedValidators;
|
|
1378
1522
|
}
|
|
1379
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
|
+
}
|
|
1380
1532
|
return obj;
|
|
1381
1533
|
},
|
|
1382
1534
|
fromAminoMsg(object) {
|
|
@@ -1706,7 +1858,9 @@ function createBaseDKGVoteExtension() {
|
|
|
1706
1858
|
contributionPop: new Uint8Array(),
|
|
1707
1859
|
feldmanCommitmentsG2: [],
|
|
1708
1860
|
decryptionEpoch: BigInt(0),
|
|
1709
|
-
decryptionShare: new Uint8Array()
|
|
1861
|
+
decryptionShare: new Uint8Array(),
|
|
1862
|
+
complaints: [],
|
|
1863
|
+
justifications: []
|
|
1710
1864
|
};
|
|
1711
1865
|
}
|
|
1712
1866
|
/**
|
|
@@ -1749,6 +1903,14 @@ exports.DKGVoteExtension = {
|
|
|
1749
1903
|
if (message.decryptionShare.length !== 0) {
|
|
1750
1904
|
writer.uint32(82).bytes(message.decryptionShare);
|
|
1751
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
|
+
}
|
|
1752
1914
|
return writer;
|
|
1753
1915
|
},
|
|
1754
1916
|
decode(input, length) {
|
|
@@ -1788,6 +1950,20 @@ exports.DKGVoteExtension = {
|
|
|
1788
1950
|
case 10:
|
|
1789
1951
|
message.decryptionShare = reader.bytes();
|
|
1790
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;
|
|
1791
1967
|
default:
|
|
1792
1968
|
reader.skipType(tag & 7);
|
|
1793
1969
|
break;
|
|
@@ -1807,6 +1983,8 @@ exports.DKGVoteExtension = {
|
|
|
1807
1983
|
message.feldmanCommitmentsG2 = object.feldmanCommitmentsG2?.map(e => e) || [];
|
|
1808
1984
|
message.decryptionEpoch = object.decryptionEpoch !== undefined && object.decryptionEpoch !== null ? BigInt(object.decryptionEpoch.toString()) : BigInt(0);
|
|
1809
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)) || [];
|
|
1810
1988
|
return message;
|
|
1811
1989
|
},
|
|
1812
1990
|
fromAmino(object) {
|
|
@@ -1835,6 +2013,8 @@ exports.DKGVoteExtension = {
|
|
|
1835
2013
|
if (object.decryption_share !== undefined && object.decryption_share !== null) {
|
|
1836
2014
|
message.decryptionShare = (0, helpers_1.bytesFromBase64)(object.decryption_share);
|
|
1837
2015
|
}
|
|
2016
|
+
message.complaints = object.complaints?.map(e => e) || [];
|
|
2017
|
+
message.justifications = object.justifications?.map(e => exports.DKGJustification.fromAmino(e)) || [];
|
|
1838
2018
|
return message;
|
|
1839
2019
|
},
|
|
1840
2020
|
toAmino(message) {
|
|
@@ -1864,6 +2044,18 @@ exports.DKGVoteExtension = {
|
|
|
1864
2044
|
}
|
|
1865
2045
|
obj.decryption_epoch = message.decryptionEpoch !== BigInt(0) ? message.decryptionEpoch?.toString() : undefined;
|
|
1866
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
|
+
}
|
|
1867
2059
|
return obj;
|
|
1868
2060
|
},
|
|
1869
2061
|
fromAminoMsg(object) {
|
|
@@ -1882,6 +2074,197 @@ exports.DKGVoteExtension = {
|
|
|
1882
2074
|
};
|
|
1883
2075
|
}
|
|
1884
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
|
+
};
|
|
1885
2268
|
function createBaseInjectedDKGData() {
|
|
1886
2269
|
return {
|
|
1887
2270
|
round: BigInt(0),
|
|
@@ -2438,3 +2821,86 @@ exports.TLEMissCounterEntry = {
|
|
|
2438
2821
|
};
|
|
2439
2822
|
}
|
|
2440
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
|
+
};
|