@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
|
@@ -80,6 +80,47 @@ export function nullifierScopeTypeToJSON(object) {
|
|
|
80
80
|
return "UNRECOGNIZED";
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
/** NullifierMode controls what an operation's nullifier proves. */
|
|
84
|
+
export var NullifierMode;
|
|
85
|
+
(function (NullifierMode) {
|
|
86
|
+
/** NULLIFIER_MODE_CONSUME - The nullifier is consumed: each (member, scope) acts once. */
|
|
87
|
+
NullifierMode[NullifierMode["NULLIFIER_MODE_CONSUME"] = 0] = "NULLIFIER_MODE_CONSUME";
|
|
88
|
+
/**
|
|
89
|
+
* NULLIFIER_MODE_OWNERSHIP - The nullifier proves ownership of anonymously created content and is
|
|
90
|
+
* reused: the target module's ShieldOwnershipResolver supplies the owner's
|
|
91
|
+
* domain, scope and tag (the creation nullifier), the proof must reproduce
|
|
92
|
+
* the tag, and the owner's sequence (bound into the message hash) stops
|
|
93
|
+
* replays. Immediate mode only.
|
|
94
|
+
*/
|
|
95
|
+
NullifierMode[NullifierMode["NULLIFIER_MODE_OWNERSHIP"] = 1] = "NULLIFIER_MODE_OWNERSHIP";
|
|
96
|
+
NullifierMode[NullifierMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
97
|
+
})(NullifierMode || (NullifierMode = {}));
|
|
98
|
+
export const NullifierModeAmino = NullifierMode;
|
|
99
|
+
export function nullifierModeFromJSON(object) {
|
|
100
|
+
switch (object) {
|
|
101
|
+
case 0:
|
|
102
|
+
case "NULLIFIER_MODE_CONSUME":
|
|
103
|
+
return NullifierMode.NULLIFIER_MODE_CONSUME;
|
|
104
|
+
case 1:
|
|
105
|
+
case "NULLIFIER_MODE_OWNERSHIP":
|
|
106
|
+
return NullifierMode.NULLIFIER_MODE_OWNERSHIP;
|
|
107
|
+
case -1:
|
|
108
|
+
case "UNRECOGNIZED":
|
|
109
|
+
default:
|
|
110
|
+
return NullifierMode.UNRECOGNIZED;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export function nullifierModeToJSON(object) {
|
|
114
|
+
switch (object) {
|
|
115
|
+
case NullifierMode.NULLIFIER_MODE_CONSUME:
|
|
116
|
+
return "NULLIFIER_MODE_CONSUME";
|
|
117
|
+
case NullifierMode.NULLIFIER_MODE_OWNERSHIP:
|
|
118
|
+
return "NULLIFIER_MODE_OWNERSHIP";
|
|
119
|
+
case NullifierMode.UNRECOGNIZED:
|
|
120
|
+
default:
|
|
121
|
+
return "UNRECOGNIZED";
|
|
122
|
+
}
|
|
123
|
+
}
|
|
83
124
|
/** ShieldBatchMode controls which execution modes an operation supports. */
|
|
84
125
|
export var ShieldBatchMode;
|
|
85
126
|
(function (ShieldBatchMode) {
|
|
@@ -164,8 +205,19 @@ export var DKGPhase;
|
|
|
164
205
|
DKGPhase[DKGPhase["DKG_PHASE_REGISTERING"] = 1] = "DKG_PHASE_REGISTERING";
|
|
165
206
|
/** DKG_PHASE_CONTRIBUTING - Key registration closed; accepting Feldman DKG contributions */
|
|
166
207
|
DKGPhase[DKGPhase["DKG_PHASE_CONTRIBUTING"] = 2] = "DKG_PHASE_CONTRIBUTING";
|
|
167
|
-
/** DKG_PHASE_ACTIVE - DKG complete, master key available
|
|
208
|
+
/** DKG_PHASE_ACTIVE - DKG complete, master key available */
|
|
168
209
|
DKGPhase[DKGPhase["DKG_PHASE_ACTIVE"] = 3] = "DKG_PHASE_ACTIVE";
|
|
210
|
+
/**
|
|
211
|
+
* DKG_PHASE_COMPLAINING - Contributions closed; validators report dealers whose evaluation for
|
|
212
|
+
* them is missing, undecryptable or inconsistent with the commitments
|
|
213
|
+
*/
|
|
214
|
+
DKGPhase[DKGPhase["DKG_PHASE_COMPLAINING"] = 4] = "DKG_PHASE_COMPLAINING";
|
|
215
|
+
/**
|
|
216
|
+
* DKG_PHASE_JUSTIFYING - Complaints closed; accused dealers publish the disputed evaluations in
|
|
217
|
+
* clear. A dealer with an unjustified complaint at the deadline is
|
|
218
|
+
* disqualified from the key set.
|
|
219
|
+
*/
|
|
220
|
+
DKGPhase[DKGPhase["DKG_PHASE_JUSTIFYING"] = 5] = "DKG_PHASE_JUSTIFYING";
|
|
169
221
|
DKGPhase[DKGPhase["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
170
222
|
})(DKGPhase || (DKGPhase = {}));
|
|
171
223
|
export const DKGPhaseAmino = DKGPhase;
|
|
@@ -183,6 +235,12 @@ export function dKGPhaseFromJSON(object) {
|
|
|
183
235
|
case 3:
|
|
184
236
|
case "DKG_PHASE_ACTIVE":
|
|
185
237
|
return DKGPhase.DKG_PHASE_ACTIVE;
|
|
238
|
+
case 4:
|
|
239
|
+
case "DKG_PHASE_COMPLAINING":
|
|
240
|
+
return DKGPhase.DKG_PHASE_COMPLAINING;
|
|
241
|
+
case 5:
|
|
242
|
+
case "DKG_PHASE_JUSTIFYING":
|
|
243
|
+
return DKGPhase.DKG_PHASE_JUSTIFYING;
|
|
186
244
|
case -1:
|
|
187
245
|
case "UNRECOGNIZED":
|
|
188
246
|
default:
|
|
@@ -199,6 +257,10 @@ export function dKGPhaseToJSON(object) {
|
|
|
199
257
|
return "DKG_PHASE_CONTRIBUTING";
|
|
200
258
|
case DKGPhase.DKG_PHASE_ACTIVE:
|
|
201
259
|
return "DKG_PHASE_ACTIVE";
|
|
260
|
+
case DKGPhase.DKG_PHASE_COMPLAINING:
|
|
261
|
+
return "DKG_PHASE_COMPLAINING";
|
|
262
|
+
case DKGPhase.DKG_PHASE_JUSTIFYING:
|
|
263
|
+
return "DKG_PHASE_JUSTIFYING";
|
|
202
264
|
case DKGPhase.UNRECOGNIZED:
|
|
203
265
|
default:
|
|
204
266
|
return "UNRECOGNIZED";
|
|
@@ -213,7 +275,9 @@ function createBaseShieldedOpRegistration() {
|
|
|
213
275
|
nullifierScopeType: 0,
|
|
214
276
|
active: false,
|
|
215
277
|
batchMode: 0,
|
|
216
|
-
scopeFieldPath: ""
|
|
278
|
+
scopeFieldPath: "",
|
|
279
|
+
nullifierMode: 0,
|
|
280
|
+
epochWindow: BigInt(0)
|
|
217
281
|
};
|
|
218
282
|
}
|
|
219
283
|
/**
|
|
@@ -249,6 +313,12 @@ export const ShieldedOpRegistration = {
|
|
|
249
313
|
if (message.scopeFieldPath !== "") {
|
|
250
314
|
writer.uint32(66).string(message.scopeFieldPath);
|
|
251
315
|
}
|
|
316
|
+
if (message.nullifierMode !== 0) {
|
|
317
|
+
writer.uint32(72).int32(message.nullifierMode);
|
|
318
|
+
}
|
|
319
|
+
if (message.epochWindow !== BigInt(0)) {
|
|
320
|
+
writer.uint32(80).uint64(message.epochWindow);
|
|
321
|
+
}
|
|
252
322
|
return writer;
|
|
253
323
|
},
|
|
254
324
|
decode(input, length) {
|
|
@@ -282,6 +352,12 @@ export const ShieldedOpRegistration = {
|
|
|
282
352
|
case 8:
|
|
283
353
|
message.scopeFieldPath = reader.string();
|
|
284
354
|
break;
|
|
355
|
+
case 9:
|
|
356
|
+
message.nullifierMode = reader.int32();
|
|
357
|
+
break;
|
|
358
|
+
case 10:
|
|
359
|
+
message.epochWindow = reader.uint64();
|
|
360
|
+
break;
|
|
285
361
|
default:
|
|
286
362
|
reader.skipType(tag & 7);
|
|
287
363
|
break;
|
|
@@ -299,6 +375,8 @@ export const ShieldedOpRegistration = {
|
|
|
299
375
|
message.active = object.active ?? false;
|
|
300
376
|
message.batchMode = object.batchMode ?? 0;
|
|
301
377
|
message.scopeFieldPath = object.scopeFieldPath ?? "";
|
|
378
|
+
message.nullifierMode = object.nullifierMode ?? 0;
|
|
379
|
+
message.epochWindow = object.epochWindow !== undefined && object.epochWindow !== null ? BigInt(object.epochWindow.toString()) : BigInt(0);
|
|
302
380
|
return message;
|
|
303
381
|
},
|
|
304
382
|
fromAmino(object) {
|
|
@@ -327,6 +405,12 @@ export const ShieldedOpRegistration = {
|
|
|
327
405
|
if (object.scope_field_path !== undefined && object.scope_field_path !== null) {
|
|
328
406
|
message.scopeFieldPath = object.scope_field_path;
|
|
329
407
|
}
|
|
408
|
+
if (object.nullifier_mode !== undefined && object.nullifier_mode !== null) {
|
|
409
|
+
message.nullifierMode = object.nullifier_mode;
|
|
410
|
+
}
|
|
411
|
+
if (object.epoch_window !== undefined && object.epoch_window !== null) {
|
|
412
|
+
message.epochWindow = BigInt(object.epoch_window);
|
|
413
|
+
}
|
|
330
414
|
return message;
|
|
331
415
|
},
|
|
332
416
|
toAmino(message) {
|
|
@@ -339,6 +423,8 @@ export const ShieldedOpRegistration = {
|
|
|
339
423
|
obj.active = message.active === false ? undefined : message.active;
|
|
340
424
|
obj.batch_mode = message.batchMode === 0 ? undefined : message.batchMode;
|
|
341
425
|
obj.scope_field_path = message.scopeFieldPath === "" ? undefined : message.scopeFieldPath;
|
|
426
|
+
obj.nullifier_mode = message.nullifierMode === 0 ? undefined : message.nullifierMode;
|
|
427
|
+
obj.epoch_window = message.epochWindow !== BigInt(0) ? message.epochWindow?.toString() : undefined;
|
|
342
428
|
return obj;
|
|
343
429
|
},
|
|
344
430
|
fromAminoMsg(object) {
|
|
@@ -471,7 +557,7 @@ function createBaseDayFunding() {
|
|
|
471
557
|
}
|
|
472
558
|
/**
|
|
473
559
|
* DayFunding tracks funding per day to enforce the daily cap.
|
|
474
|
-
* Day is
|
|
560
|
+
* Day is the UTC day of the block time (block_time / 86400).
|
|
475
561
|
* @name DayFunding
|
|
476
562
|
* @package sparkdream.shield.v1
|
|
477
563
|
* @see proto type: sparkdream.shield.v1.DayFunding
|
|
@@ -549,17 +635,19 @@ function createBasePendingShieldedOp() {
|
|
|
549
635
|
return {
|
|
550
636
|
id: BigInt(0),
|
|
551
637
|
targetEpoch: BigInt(0),
|
|
552
|
-
|
|
638
|
+
submissionNullifier: new Uint8Array(),
|
|
553
639
|
merkleRoot: new Uint8Array(),
|
|
554
640
|
proofDomain: 0,
|
|
555
641
|
minTrustLevel: 0,
|
|
556
642
|
encryptedPayload: new Uint8Array(),
|
|
557
643
|
submittedAtHeight: BigInt(0),
|
|
558
|
-
submittedAtEpoch: BigInt(0)
|
|
644
|
+
submittedAtEpoch: BigInt(0),
|
|
645
|
+
rateLimitNullifier: new Uint8Array()
|
|
559
646
|
};
|
|
560
647
|
}
|
|
561
648
|
/**
|
|
562
|
-
* PendingShieldedOp is stored in queue until
|
|
649
|
+
* PendingShieldedOp is stored in queue until its epoch has closed, its batch was
|
|
650
|
+
* demanded and the epoch key exists; it then executes in that block.
|
|
563
651
|
* @name PendingShieldedOp
|
|
564
652
|
* @package sparkdream.shield.v1
|
|
565
653
|
* @see proto type: sparkdream.shield.v1.PendingShieldedOp
|
|
@@ -573,8 +661,8 @@ export const PendingShieldedOp = {
|
|
|
573
661
|
if (message.targetEpoch !== BigInt(0)) {
|
|
574
662
|
writer.uint32(16).uint64(message.targetEpoch);
|
|
575
663
|
}
|
|
576
|
-
if (message.
|
|
577
|
-
writer.uint32(26).bytes(message.
|
|
664
|
+
if (message.submissionNullifier.length !== 0) {
|
|
665
|
+
writer.uint32(26).bytes(message.submissionNullifier);
|
|
578
666
|
}
|
|
579
667
|
if (message.merkleRoot.length !== 0) {
|
|
580
668
|
writer.uint32(34).bytes(message.merkleRoot);
|
|
@@ -594,6 +682,9 @@ export const PendingShieldedOp = {
|
|
|
594
682
|
if (message.submittedAtEpoch !== BigInt(0)) {
|
|
595
683
|
writer.uint32(72).uint64(message.submittedAtEpoch);
|
|
596
684
|
}
|
|
685
|
+
if (message.rateLimitNullifier.length !== 0) {
|
|
686
|
+
writer.uint32(82).bytes(message.rateLimitNullifier);
|
|
687
|
+
}
|
|
597
688
|
return writer;
|
|
598
689
|
},
|
|
599
690
|
decode(input, length) {
|
|
@@ -610,7 +701,7 @@ export const PendingShieldedOp = {
|
|
|
610
701
|
message.targetEpoch = reader.uint64();
|
|
611
702
|
break;
|
|
612
703
|
case 3:
|
|
613
|
-
message.
|
|
704
|
+
message.submissionNullifier = reader.bytes();
|
|
614
705
|
break;
|
|
615
706
|
case 4:
|
|
616
707
|
message.merkleRoot = reader.bytes();
|
|
@@ -630,6 +721,9 @@ export const PendingShieldedOp = {
|
|
|
630
721
|
case 9:
|
|
631
722
|
message.submittedAtEpoch = reader.uint64();
|
|
632
723
|
break;
|
|
724
|
+
case 10:
|
|
725
|
+
message.rateLimitNullifier = reader.bytes();
|
|
726
|
+
break;
|
|
633
727
|
default:
|
|
634
728
|
reader.skipType(tag & 7);
|
|
635
729
|
break;
|
|
@@ -641,13 +735,14 @@ export const PendingShieldedOp = {
|
|
|
641
735
|
const message = createBasePendingShieldedOp();
|
|
642
736
|
message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
|
|
643
737
|
message.targetEpoch = object.targetEpoch !== undefined && object.targetEpoch !== null ? BigInt(object.targetEpoch.toString()) : BigInt(0);
|
|
644
|
-
message.
|
|
738
|
+
message.submissionNullifier = object.submissionNullifier ?? new Uint8Array();
|
|
645
739
|
message.merkleRoot = object.merkleRoot ?? new Uint8Array();
|
|
646
740
|
message.proofDomain = object.proofDomain ?? 0;
|
|
647
741
|
message.minTrustLevel = object.minTrustLevel ?? 0;
|
|
648
742
|
message.encryptedPayload = object.encryptedPayload ?? new Uint8Array();
|
|
649
743
|
message.submittedAtHeight = object.submittedAtHeight !== undefined && object.submittedAtHeight !== null ? BigInt(object.submittedAtHeight.toString()) : BigInt(0);
|
|
650
744
|
message.submittedAtEpoch = object.submittedAtEpoch !== undefined && object.submittedAtEpoch !== null ? BigInt(object.submittedAtEpoch.toString()) : BigInt(0);
|
|
745
|
+
message.rateLimitNullifier = object.rateLimitNullifier ?? new Uint8Array();
|
|
651
746
|
return message;
|
|
652
747
|
},
|
|
653
748
|
fromAmino(object) {
|
|
@@ -658,8 +753,8 @@ export const PendingShieldedOp = {
|
|
|
658
753
|
if (object.target_epoch !== undefined && object.target_epoch !== null) {
|
|
659
754
|
message.targetEpoch = BigInt(object.target_epoch);
|
|
660
755
|
}
|
|
661
|
-
if (object.
|
|
662
|
-
message.
|
|
756
|
+
if (object.submission_nullifier !== undefined && object.submission_nullifier !== null) {
|
|
757
|
+
message.submissionNullifier = bytesFromBase64(object.submission_nullifier);
|
|
663
758
|
}
|
|
664
759
|
if (object.merkle_root !== undefined && object.merkle_root !== null) {
|
|
665
760
|
message.merkleRoot = bytesFromBase64(object.merkle_root);
|
|
@@ -679,19 +774,23 @@ export const PendingShieldedOp = {
|
|
|
679
774
|
if (object.submitted_at_epoch !== undefined && object.submitted_at_epoch !== null) {
|
|
680
775
|
message.submittedAtEpoch = BigInt(object.submitted_at_epoch);
|
|
681
776
|
}
|
|
777
|
+
if (object.rate_limit_nullifier !== undefined && object.rate_limit_nullifier !== null) {
|
|
778
|
+
message.rateLimitNullifier = bytesFromBase64(object.rate_limit_nullifier);
|
|
779
|
+
}
|
|
682
780
|
return message;
|
|
683
781
|
},
|
|
684
782
|
toAmino(message) {
|
|
685
783
|
const obj = {};
|
|
686
784
|
obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
|
|
687
785
|
obj.target_epoch = message.targetEpoch !== BigInt(0) ? message.targetEpoch?.toString() : undefined;
|
|
688
|
-
obj.
|
|
786
|
+
obj.submission_nullifier = message.submissionNullifier ? base64FromBytes(message.submissionNullifier) : undefined;
|
|
689
787
|
obj.merkle_root = message.merkleRoot ? base64FromBytes(message.merkleRoot) : undefined;
|
|
690
788
|
obj.proof_domain = message.proofDomain === 0 ? undefined : message.proofDomain;
|
|
691
789
|
obj.min_trust_level = message.minTrustLevel === 0 ? undefined : message.minTrustLevel;
|
|
692
790
|
obj.encrypted_payload = message.encryptedPayload ? base64FromBytes(message.encryptedPayload) : undefined;
|
|
693
791
|
obj.submitted_at_height = message.submittedAtHeight !== BigInt(0) ? message.submittedAtHeight?.toString() : undefined;
|
|
694
792
|
obj.submitted_at_epoch = message.submittedAtEpoch !== BigInt(0) ? message.submittedAtEpoch?.toString() : undefined;
|
|
793
|
+
obj.rate_limit_nullifier = message.rateLimitNullifier ? base64FromBytes(message.rateLimitNullifier) : undefined;
|
|
695
794
|
return obj;
|
|
696
795
|
},
|
|
697
796
|
fromAminoMsg(object) {
|
|
@@ -995,7 +1094,8 @@ function createBaseTLEKeySet() {
|
|
|
995
1094
|
thresholdNumerator: BigInt(0),
|
|
996
1095
|
thresholdDenominator: BigInt(0),
|
|
997
1096
|
validatorShares: [],
|
|
998
|
-
createdAtHeight: BigInt(0)
|
|
1097
|
+
createdAtHeight: BigInt(0),
|
|
1098
|
+
masterPublicKeyG2: new Uint8Array()
|
|
999
1099
|
};
|
|
1000
1100
|
}
|
|
1001
1101
|
/**
|
|
@@ -1022,6 +1122,9 @@ export const TLEKeySet = {
|
|
|
1022
1122
|
if (message.createdAtHeight !== BigInt(0)) {
|
|
1023
1123
|
writer.uint32(40).int64(message.createdAtHeight);
|
|
1024
1124
|
}
|
|
1125
|
+
if (message.masterPublicKeyG2.length !== 0) {
|
|
1126
|
+
writer.uint32(50).bytes(message.masterPublicKeyG2);
|
|
1127
|
+
}
|
|
1025
1128
|
return writer;
|
|
1026
1129
|
},
|
|
1027
1130
|
decode(input, length) {
|
|
@@ -1046,6 +1149,9 @@ export const TLEKeySet = {
|
|
|
1046
1149
|
case 5:
|
|
1047
1150
|
message.createdAtHeight = reader.int64();
|
|
1048
1151
|
break;
|
|
1152
|
+
case 6:
|
|
1153
|
+
message.masterPublicKeyG2 = reader.bytes();
|
|
1154
|
+
break;
|
|
1049
1155
|
default:
|
|
1050
1156
|
reader.skipType(tag & 7);
|
|
1051
1157
|
break;
|
|
@@ -1060,6 +1166,7 @@ export const TLEKeySet = {
|
|
|
1060
1166
|
message.thresholdDenominator = object.thresholdDenominator !== undefined && object.thresholdDenominator !== null ? BigInt(object.thresholdDenominator.toString()) : BigInt(0);
|
|
1061
1167
|
message.validatorShares = object.validatorShares?.map(e => TLEValidatorPublicShare.fromPartial(e)) || [];
|
|
1062
1168
|
message.createdAtHeight = object.createdAtHeight !== undefined && object.createdAtHeight !== null ? BigInt(object.createdAtHeight.toString()) : BigInt(0);
|
|
1169
|
+
message.masterPublicKeyG2 = object.masterPublicKeyG2 ?? new Uint8Array();
|
|
1063
1170
|
return message;
|
|
1064
1171
|
},
|
|
1065
1172
|
fromAmino(object) {
|
|
@@ -1077,6 +1184,9 @@ export const TLEKeySet = {
|
|
|
1077
1184
|
if (object.created_at_height !== undefined && object.created_at_height !== null) {
|
|
1078
1185
|
message.createdAtHeight = BigInt(object.created_at_height);
|
|
1079
1186
|
}
|
|
1187
|
+
if (object.master_public_key_g2 !== undefined && object.master_public_key_g2 !== null) {
|
|
1188
|
+
message.masterPublicKeyG2 = bytesFromBase64(object.master_public_key_g2);
|
|
1189
|
+
}
|
|
1080
1190
|
return message;
|
|
1081
1191
|
},
|
|
1082
1192
|
toAmino(message) {
|
|
@@ -1091,6 +1201,7 @@ export const TLEKeySet = {
|
|
|
1091
1201
|
obj.validator_shares = message.validatorShares;
|
|
1092
1202
|
}
|
|
1093
1203
|
obj.created_at_height = message.createdAtHeight !== BigInt(0) ? message.createdAtHeight?.toString() : undefined;
|
|
1204
|
+
obj.master_public_key_g2 = message.masterPublicKeyG2 ? base64FromBytes(message.masterPublicKeyG2) : undefined;
|
|
1094
1205
|
return obj;
|
|
1095
1206
|
},
|
|
1096
1207
|
fromAminoMsg(object) {
|
|
@@ -1224,7 +1335,10 @@ function createBaseDKGState() {
|
|
|
1224
1335
|
thresholdNumerator: BigInt(0),
|
|
1225
1336
|
thresholdDenominator: BigInt(0),
|
|
1226
1337
|
expectedValidators: [],
|
|
1227
|
-
contributionsReceived: BigInt(0)
|
|
1338
|
+
contributionsReceived: BigInt(0),
|
|
1339
|
+
complaintDeadline: BigInt(0),
|
|
1340
|
+
justificationDeadline: BigInt(0),
|
|
1341
|
+
disqualifiedDealers: []
|
|
1228
1342
|
};
|
|
1229
1343
|
}
|
|
1230
1344
|
/**
|
|
@@ -1263,6 +1377,15 @@ export const DKGState = {
|
|
|
1263
1377
|
if (message.contributionsReceived !== BigInt(0)) {
|
|
1264
1378
|
writer.uint32(72).uint64(message.contributionsReceived);
|
|
1265
1379
|
}
|
|
1380
|
+
if (message.complaintDeadline !== BigInt(0)) {
|
|
1381
|
+
writer.uint32(80).int64(message.complaintDeadline);
|
|
1382
|
+
}
|
|
1383
|
+
if (message.justificationDeadline !== BigInt(0)) {
|
|
1384
|
+
writer.uint32(88).int64(message.justificationDeadline);
|
|
1385
|
+
}
|
|
1386
|
+
for (const v of message.disqualifiedDealers) {
|
|
1387
|
+
writer.uint32(98).string(v);
|
|
1388
|
+
}
|
|
1266
1389
|
return writer;
|
|
1267
1390
|
},
|
|
1268
1391
|
decode(input, length) {
|
|
@@ -1299,6 +1422,15 @@ export const DKGState = {
|
|
|
1299
1422
|
case 9:
|
|
1300
1423
|
message.contributionsReceived = reader.uint64();
|
|
1301
1424
|
break;
|
|
1425
|
+
case 10:
|
|
1426
|
+
message.complaintDeadline = reader.int64();
|
|
1427
|
+
break;
|
|
1428
|
+
case 11:
|
|
1429
|
+
message.justificationDeadline = reader.int64();
|
|
1430
|
+
break;
|
|
1431
|
+
case 12:
|
|
1432
|
+
message.disqualifiedDealers.push(reader.string());
|
|
1433
|
+
break;
|
|
1302
1434
|
default:
|
|
1303
1435
|
reader.skipType(tag & 7);
|
|
1304
1436
|
break;
|
|
@@ -1317,6 +1449,9 @@ export const DKGState = {
|
|
|
1317
1449
|
message.thresholdDenominator = object.thresholdDenominator !== undefined && object.thresholdDenominator !== null ? BigInt(object.thresholdDenominator.toString()) : BigInt(0);
|
|
1318
1450
|
message.expectedValidators = object.expectedValidators?.map(e => e) || [];
|
|
1319
1451
|
message.contributionsReceived = object.contributionsReceived !== undefined && object.contributionsReceived !== null ? BigInt(object.contributionsReceived.toString()) : BigInt(0);
|
|
1452
|
+
message.complaintDeadline = object.complaintDeadline !== undefined && object.complaintDeadline !== null ? BigInt(object.complaintDeadline.toString()) : BigInt(0);
|
|
1453
|
+
message.justificationDeadline = object.justificationDeadline !== undefined && object.justificationDeadline !== null ? BigInt(object.justificationDeadline.toString()) : BigInt(0);
|
|
1454
|
+
message.disqualifiedDealers = object.disqualifiedDealers?.map(e => e) || [];
|
|
1320
1455
|
return message;
|
|
1321
1456
|
},
|
|
1322
1457
|
fromAmino(object) {
|
|
@@ -1346,6 +1481,13 @@ export const DKGState = {
|
|
|
1346
1481
|
if (object.contributions_received !== undefined && object.contributions_received !== null) {
|
|
1347
1482
|
message.contributionsReceived = BigInt(object.contributions_received);
|
|
1348
1483
|
}
|
|
1484
|
+
if (object.complaint_deadline !== undefined && object.complaint_deadline !== null) {
|
|
1485
|
+
message.complaintDeadline = BigInt(object.complaint_deadline);
|
|
1486
|
+
}
|
|
1487
|
+
if (object.justification_deadline !== undefined && object.justification_deadline !== null) {
|
|
1488
|
+
message.justificationDeadline = BigInt(object.justification_deadline);
|
|
1489
|
+
}
|
|
1490
|
+
message.disqualifiedDealers = object.disqualified_dealers?.map(e => e) || [];
|
|
1349
1491
|
return message;
|
|
1350
1492
|
},
|
|
1351
1493
|
toAmino(message) {
|
|
@@ -1364,6 +1506,14 @@ export const DKGState = {
|
|
|
1364
1506
|
obj.expected_validators = message.expectedValidators;
|
|
1365
1507
|
}
|
|
1366
1508
|
obj.contributions_received = message.contributionsReceived !== BigInt(0) ? message.contributionsReceived?.toString() : undefined;
|
|
1509
|
+
obj.complaint_deadline = message.complaintDeadline !== BigInt(0) ? message.complaintDeadline?.toString() : undefined;
|
|
1510
|
+
obj.justification_deadline = message.justificationDeadline !== BigInt(0) ? message.justificationDeadline?.toString() : undefined;
|
|
1511
|
+
if (message.disqualifiedDealers) {
|
|
1512
|
+
obj.disqualified_dealers = message.disqualifiedDealers.map(e => e);
|
|
1513
|
+
}
|
|
1514
|
+
else {
|
|
1515
|
+
obj.disqualified_dealers = message.disqualifiedDealers;
|
|
1516
|
+
}
|
|
1367
1517
|
return obj;
|
|
1368
1518
|
},
|
|
1369
1519
|
fromAminoMsg(object) {
|
|
@@ -1693,7 +1843,9 @@ function createBaseDKGVoteExtension() {
|
|
|
1693
1843
|
contributionPop: new Uint8Array(),
|
|
1694
1844
|
feldmanCommitmentsG2: [],
|
|
1695
1845
|
decryptionEpoch: BigInt(0),
|
|
1696
|
-
decryptionShare: new Uint8Array()
|
|
1846
|
+
decryptionShare: new Uint8Array(),
|
|
1847
|
+
complaints: [],
|
|
1848
|
+
justifications: []
|
|
1697
1849
|
};
|
|
1698
1850
|
}
|
|
1699
1851
|
/**
|
|
@@ -1736,6 +1888,14 @@ export const DKGVoteExtension = {
|
|
|
1736
1888
|
if (message.decryptionShare.length !== 0) {
|
|
1737
1889
|
writer.uint32(82).bytes(message.decryptionShare);
|
|
1738
1890
|
}
|
|
1891
|
+
writer.uint32(90).fork();
|
|
1892
|
+
for (const v of message.complaints) {
|
|
1893
|
+
writer.uint32(v);
|
|
1894
|
+
}
|
|
1895
|
+
writer.ldelim();
|
|
1896
|
+
for (const v of message.justifications) {
|
|
1897
|
+
DKGJustification.encode(v, writer.uint32(98).fork()).ldelim();
|
|
1898
|
+
}
|
|
1739
1899
|
return writer;
|
|
1740
1900
|
},
|
|
1741
1901
|
decode(input, length) {
|
|
@@ -1775,6 +1935,20 @@ export const DKGVoteExtension = {
|
|
|
1775
1935
|
case 10:
|
|
1776
1936
|
message.decryptionShare = reader.bytes();
|
|
1777
1937
|
break;
|
|
1938
|
+
case 11:
|
|
1939
|
+
if ((tag & 7) === 2) {
|
|
1940
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1941
|
+
while (reader.pos < end2) {
|
|
1942
|
+
message.complaints.push(reader.uint32());
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
else {
|
|
1946
|
+
message.complaints.push(reader.uint32());
|
|
1947
|
+
}
|
|
1948
|
+
break;
|
|
1949
|
+
case 12:
|
|
1950
|
+
message.justifications.push(DKGJustification.decode(reader, reader.uint32()));
|
|
1951
|
+
break;
|
|
1778
1952
|
default:
|
|
1779
1953
|
reader.skipType(tag & 7);
|
|
1780
1954
|
break;
|
|
@@ -1794,6 +1968,8 @@ export const DKGVoteExtension = {
|
|
|
1794
1968
|
message.feldmanCommitmentsG2 = object.feldmanCommitmentsG2?.map(e => e) || [];
|
|
1795
1969
|
message.decryptionEpoch = object.decryptionEpoch !== undefined && object.decryptionEpoch !== null ? BigInt(object.decryptionEpoch.toString()) : BigInt(0);
|
|
1796
1970
|
message.decryptionShare = object.decryptionShare ?? new Uint8Array();
|
|
1971
|
+
message.complaints = object.complaints?.map(e => e) || [];
|
|
1972
|
+
message.justifications = object.justifications?.map(e => DKGJustification.fromPartial(e)) || [];
|
|
1797
1973
|
return message;
|
|
1798
1974
|
},
|
|
1799
1975
|
fromAmino(object) {
|
|
@@ -1822,6 +1998,8 @@ export const DKGVoteExtension = {
|
|
|
1822
1998
|
if (object.decryption_share !== undefined && object.decryption_share !== null) {
|
|
1823
1999
|
message.decryptionShare = bytesFromBase64(object.decryption_share);
|
|
1824
2000
|
}
|
|
2001
|
+
message.complaints = object.complaints?.map(e => e) || [];
|
|
2002
|
+
message.justifications = object.justifications?.map(e => DKGJustification.fromAmino(e)) || [];
|
|
1825
2003
|
return message;
|
|
1826
2004
|
},
|
|
1827
2005
|
toAmino(message) {
|
|
@@ -1851,6 +2029,18 @@ export const DKGVoteExtension = {
|
|
|
1851
2029
|
}
|
|
1852
2030
|
obj.decryption_epoch = message.decryptionEpoch !== BigInt(0) ? message.decryptionEpoch?.toString() : undefined;
|
|
1853
2031
|
obj.decryption_share = message.decryptionShare ? base64FromBytes(message.decryptionShare) : undefined;
|
|
2032
|
+
if (message.complaints) {
|
|
2033
|
+
obj.complaints = message.complaints.map(e => e);
|
|
2034
|
+
}
|
|
2035
|
+
else {
|
|
2036
|
+
obj.complaints = message.complaints;
|
|
2037
|
+
}
|
|
2038
|
+
if (message.justifications) {
|
|
2039
|
+
obj.justifications = message.justifications.map(e => e ? DKGJustification.toAmino(e) : undefined);
|
|
2040
|
+
}
|
|
2041
|
+
else {
|
|
2042
|
+
obj.justifications = message.justifications;
|
|
2043
|
+
}
|
|
1854
2044
|
return obj;
|
|
1855
2045
|
},
|
|
1856
2046
|
fromAminoMsg(object) {
|
|
@@ -1869,6 +2059,197 @@ export const DKGVoteExtension = {
|
|
|
1869
2059
|
};
|
|
1870
2060
|
}
|
|
1871
2061
|
};
|
|
2062
|
+
function createBaseDKGJustification() {
|
|
2063
|
+
return {
|
|
2064
|
+
complainerIndex: 0,
|
|
2065
|
+
evaluation: new Uint8Array()
|
|
2066
|
+
};
|
|
2067
|
+
}
|
|
2068
|
+
/**
|
|
2069
|
+
* DKGJustification is a dealer's public answer to a complaint: p_i(j) for the
|
|
2070
|
+
* complaining validator j, which anyone checks against the dealer's Feldman
|
|
2071
|
+
* commitments.
|
|
2072
|
+
* @name DKGJustification
|
|
2073
|
+
* @package sparkdream.shield.v1
|
|
2074
|
+
* @see proto type: sparkdream.shield.v1.DKGJustification
|
|
2075
|
+
*/
|
|
2076
|
+
export const DKGJustification = {
|
|
2077
|
+
typeUrl: "/sparkdream.shield.v1.DKGJustification",
|
|
2078
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2079
|
+
if (message.complainerIndex !== 0) {
|
|
2080
|
+
writer.uint32(8).uint32(message.complainerIndex);
|
|
2081
|
+
}
|
|
2082
|
+
if (message.evaluation.length !== 0) {
|
|
2083
|
+
writer.uint32(18).bytes(message.evaluation);
|
|
2084
|
+
}
|
|
2085
|
+
return writer;
|
|
2086
|
+
},
|
|
2087
|
+
decode(input, length) {
|
|
2088
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2089
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2090
|
+
const message = createBaseDKGJustification();
|
|
2091
|
+
while (reader.pos < end) {
|
|
2092
|
+
const tag = reader.uint32();
|
|
2093
|
+
switch (tag >>> 3) {
|
|
2094
|
+
case 1:
|
|
2095
|
+
message.complainerIndex = reader.uint32();
|
|
2096
|
+
break;
|
|
2097
|
+
case 2:
|
|
2098
|
+
message.evaluation = reader.bytes();
|
|
2099
|
+
break;
|
|
2100
|
+
default:
|
|
2101
|
+
reader.skipType(tag & 7);
|
|
2102
|
+
break;
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
return message;
|
|
2106
|
+
},
|
|
2107
|
+
fromPartial(object) {
|
|
2108
|
+
const message = createBaseDKGJustification();
|
|
2109
|
+
message.complainerIndex = object.complainerIndex ?? 0;
|
|
2110
|
+
message.evaluation = object.evaluation ?? new Uint8Array();
|
|
2111
|
+
return message;
|
|
2112
|
+
},
|
|
2113
|
+
fromAmino(object) {
|
|
2114
|
+
const message = createBaseDKGJustification();
|
|
2115
|
+
if (object.complainer_index !== undefined && object.complainer_index !== null) {
|
|
2116
|
+
message.complainerIndex = object.complainer_index;
|
|
2117
|
+
}
|
|
2118
|
+
if (object.evaluation !== undefined && object.evaluation !== null) {
|
|
2119
|
+
message.evaluation = bytesFromBase64(object.evaluation);
|
|
2120
|
+
}
|
|
2121
|
+
return message;
|
|
2122
|
+
},
|
|
2123
|
+
toAmino(message) {
|
|
2124
|
+
const obj = {};
|
|
2125
|
+
obj.complainer_index = message.complainerIndex === 0 ? undefined : message.complainerIndex;
|
|
2126
|
+
obj.evaluation = message.evaluation ? base64FromBytes(message.evaluation) : undefined;
|
|
2127
|
+
return obj;
|
|
2128
|
+
},
|
|
2129
|
+
fromAminoMsg(object) {
|
|
2130
|
+
return DKGJustification.fromAmino(object.value);
|
|
2131
|
+
},
|
|
2132
|
+
fromProtoMsg(message) {
|
|
2133
|
+
return DKGJustification.decode(message.value);
|
|
2134
|
+
},
|
|
2135
|
+
toProto(message) {
|
|
2136
|
+
return DKGJustification.encode(message).finish();
|
|
2137
|
+
},
|
|
2138
|
+
toProtoMsg(message) {
|
|
2139
|
+
return {
|
|
2140
|
+
typeUrl: "/sparkdream.shield.v1.DKGJustification",
|
|
2141
|
+
value: DKGJustification.encode(message).finish()
|
|
2142
|
+
};
|
|
2143
|
+
}
|
|
2144
|
+
};
|
|
2145
|
+
function createBaseDKGComplaint() {
|
|
2146
|
+
return {
|
|
2147
|
+
dealerAddress: "",
|
|
2148
|
+
complainerAddress: "",
|
|
2149
|
+
justified: false,
|
|
2150
|
+
evaluation: new Uint8Array()
|
|
2151
|
+
};
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* DKGComplaint records a complaint by complainer_address against
|
|
2155
|
+
* dealer_address in the current round and, once the dealer answers with a
|
|
2156
|
+
* valid evaluation, that evaluation (the complainer uses it in place of the
|
|
2157
|
+
* ciphertext it could not open).
|
|
2158
|
+
* @name DKGComplaint
|
|
2159
|
+
* @package sparkdream.shield.v1
|
|
2160
|
+
* @see proto type: sparkdream.shield.v1.DKGComplaint
|
|
2161
|
+
*/
|
|
2162
|
+
export const DKGComplaint = {
|
|
2163
|
+
typeUrl: "/sparkdream.shield.v1.DKGComplaint",
|
|
2164
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2165
|
+
if (message.dealerAddress !== "") {
|
|
2166
|
+
writer.uint32(10).string(message.dealerAddress);
|
|
2167
|
+
}
|
|
2168
|
+
if (message.complainerAddress !== "") {
|
|
2169
|
+
writer.uint32(18).string(message.complainerAddress);
|
|
2170
|
+
}
|
|
2171
|
+
if (message.justified === true) {
|
|
2172
|
+
writer.uint32(24).bool(message.justified);
|
|
2173
|
+
}
|
|
2174
|
+
if (message.evaluation.length !== 0) {
|
|
2175
|
+
writer.uint32(34).bytes(message.evaluation);
|
|
2176
|
+
}
|
|
2177
|
+
return writer;
|
|
2178
|
+
},
|
|
2179
|
+
decode(input, length) {
|
|
2180
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2181
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2182
|
+
const message = createBaseDKGComplaint();
|
|
2183
|
+
while (reader.pos < end) {
|
|
2184
|
+
const tag = reader.uint32();
|
|
2185
|
+
switch (tag >>> 3) {
|
|
2186
|
+
case 1:
|
|
2187
|
+
message.dealerAddress = reader.string();
|
|
2188
|
+
break;
|
|
2189
|
+
case 2:
|
|
2190
|
+
message.complainerAddress = reader.string();
|
|
2191
|
+
break;
|
|
2192
|
+
case 3:
|
|
2193
|
+
message.justified = reader.bool();
|
|
2194
|
+
break;
|
|
2195
|
+
case 4:
|
|
2196
|
+
message.evaluation = reader.bytes();
|
|
2197
|
+
break;
|
|
2198
|
+
default:
|
|
2199
|
+
reader.skipType(tag & 7);
|
|
2200
|
+
break;
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
return message;
|
|
2204
|
+
},
|
|
2205
|
+
fromPartial(object) {
|
|
2206
|
+
const message = createBaseDKGComplaint();
|
|
2207
|
+
message.dealerAddress = object.dealerAddress ?? "";
|
|
2208
|
+
message.complainerAddress = object.complainerAddress ?? "";
|
|
2209
|
+
message.justified = object.justified ?? false;
|
|
2210
|
+
message.evaluation = object.evaluation ?? new Uint8Array();
|
|
2211
|
+
return message;
|
|
2212
|
+
},
|
|
2213
|
+
fromAmino(object) {
|
|
2214
|
+
const message = createBaseDKGComplaint();
|
|
2215
|
+
if (object.dealer_address !== undefined && object.dealer_address !== null) {
|
|
2216
|
+
message.dealerAddress = object.dealer_address;
|
|
2217
|
+
}
|
|
2218
|
+
if (object.complainer_address !== undefined && object.complainer_address !== null) {
|
|
2219
|
+
message.complainerAddress = object.complainer_address;
|
|
2220
|
+
}
|
|
2221
|
+
if (object.justified !== undefined && object.justified !== null) {
|
|
2222
|
+
message.justified = object.justified;
|
|
2223
|
+
}
|
|
2224
|
+
if (object.evaluation !== undefined && object.evaluation !== null) {
|
|
2225
|
+
message.evaluation = bytesFromBase64(object.evaluation);
|
|
2226
|
+
}
|
|
2227
|
+
return message;
|
|
2228
|
+
},
|
|
2229
|
+
toAmino(message) {
|
|
2230
|
+
const obj = {};
|
|
2231
|
+
obj.dealer_address = message.dealerAddress === "" ? undefined : message.dealerAddress;
|
|
2232
|
+
obj.complainer_address = message.complainerAddress === "" ? undefined : message.complainerAddress;
|
|
2233
|
+
obj.justified = message.justified === false ? undefined : message.justified;
|
|
2234
|
+
obj.evaluation = message.evaluation ? base64FromBytes(message.evaluation) : undefined;
|
|
2235
|
+
return obj;
|
|
2236
|
+
},
|
|
2237
|
+
fromAminoMsg(object) {
|
|
2238
|
+
return DKGComplaint.fromAmino(object.value);
|
|
2239
|
+
},
|
|
2240
|
+
fromProtoMsg(message) {
|
|
2241
|
+
return DKGComplaint.decode(message.value);
|
|
2242
|
+
},
|
|
2243
|
+
toProto(message) {
|
|
2244
|
+
return DKGComplaint.encode(message).finish();
|
|
2245
|
+
},
|
|
2246
|
+
toProtoMsg(message) {
|
|
2247
|
+
return {
|
|
2248
|
+
typeUrl: "/sparkdream.shield.v1.DKGComplaint",
|
|
2249
|
+
value: DKGComplaint.encode(message).finish()
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
2252
|
+
};
|
|
1872
2253
|
function createBaseInjectedDKGData() {
|
|
1873
2254
|
return {
|
|
1874
2255
|
round: BigInt(0),
|
|
@@ -2425,3 +2806,86 @@ export const TLEMissCounterEntry = {
|
|
|
2425
2806
|
};
|
|
2426
2807
|
}
|
|
2427
2808
|
};
|
|
2809
|
+
function createBaseDecryptionDemandEntry() {
|
|
2810
|
+
return {
|
|
2811
|
+
epoch: BigInt(0),
|
|
2812
|
+
height: BigInt(0)
|
|
2813
|
+
};
|
|
2814
|
+
}
|
|
2815
|
+
/**
|
|
2816
|
+
* DecryptionDemandEntry records that the EndBlocker asked validators for
|
|
2817
|
+
* decryption shares of a closed epoch (its batch became ready) at a height.
|
|
2818
|
+
* TLE liveness for that epoch is judged one full epoch interval later.
|
|
2819
|
+
* @name DecryptionDemandEntry
|
|
2820
|
+
* @package sparkdream.shield.v1
|
|
2821
|
+
* @see proto type: sparkdream.shield.v1.DecryptionDemandEntry
|
|
2822
|
+
*/
|
|
2823
|
+
export const DecryptionDemandEntry = {
|
|
2824
|
+
typeUrl: "/sparkdream.shield.v1.DecryptionDemandEntry",
|
|
2825
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
2826
|
+
if (message.epoch !== BigInt(0)) {
|
|
2827
|
+
writer.uint32(8).uint64(message.epoch);
|
|
2828
|
+
}
|
|
2829
|
+
if (message.height !== BigInt(0)) {
|
|
2830
|
+
writer.uint32(16).int64(message.height);
|
|
2831
|
+
}
|
|
2832
|
+
return writer;
|
|
2833
|
+
},
|
|
2834
|
+
decode(input, length) {
|
|
2835
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2836
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2837
|
+
const message = createBaseDecryptionDemandEntry();
|
|
2838
|
+
while (reader.pos < end) {
|
|
2839
|
+
const tag = reader.uint32();
|
|
2840
|
+
switch (tag >>> 3) {
|
|
2841
|
+
case 1:
|
|
2842
|
+
message.epoch = reader.uint64();
|
|
2843
|
+
break;
|
|
2844
|
+
case 2:
|
|
2845
|
+
message.height = reader.int64();
|
|
2846
|
+
break;
|
|
2847
|
+
default:
|
|
2848
|
+
reader.skipType(tag & 7);
|
|
2849
|
+
break;
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
return message;
|
|
2853
|
+
},
|
|
2854
|
+
fromPartial(object) {
|
|
2855
|
+
const message = createBaseDecryptionDemandEntry();
|
|
2856
|
+
message.epoch = object.epoch !== undefined && object.epoch !== null ? BigInt(object.epoch.toString()) : BigInt(0);
|
|
2857
|
+
message.height = object.height !== undefined && object.height !== null ? BigInt(object.height.toString()) : BigInt(0);
|
|
2858
|
+
return message;
|
|
2859
|
+
},
|
|
2860
|
+
fromAmino(object) {
|
|
2861
|
+
const message = createBaseDecryptionDemandEntry();
|
|
2862
|
+
if (object.epoch !== undefined && object.epoch !== null) {
|
|
2863
|
+
message.epoch = BigInt(object.epoch);
|
|
2864
|
+
}
|
|
2865
|
+
if (object.height !== undefined && object.height !== null) {
|
|
2866
|
+
message.height = BigInt(object.height);
|
|
2867
|
+
}
|
|
2868
|
+
return message;
|
|
2869
|
+
},
|
|
2870
|
+
toAmino(message) {
|
|
2871
|
+
const obj = {};
|
|
2872
|
+
obj.epoch = message.epoch !== BigInt(0) ? message.epoch?.toString() : undefined;
|
|
2873
|
+
obj.height = message.height !== BigInt(0) ? message.height?.toString() : undefined;
|
|
2874
|
+
return obj;
|
|
2875
|
+
},
|
|
2876
|
+
fromAminoMsg(object) {
|
|
2877
|
+
return DecryptionDemandEntry.fromAmino(object.value);
|
|
2878
|
+
},
|
|
2879
|
+
fromProtoMsg(message) {
|
|
2880
|
+
return DecryptionDemandEntry.decode(message.value);
|
|
2881
|
+
},
|
|
2882
|
+
toProto(message) {
|
|
2883
|
+
return DecryptionDemandEntry.encode(message).finish();
|
|
2884
|
+
},
|
|
2885
|
+
toProtoMsg(message) {
|
|
2886
|
+
return {
|
|
2887
|
+
typeUrl: "/sparkdream.shield.v1.DecryptionDemandEntry",
|
|
2888
|
+
value: DecryptionDemandEntry.encode(message).finish()
|
|
2889
|
+
};
|
|
2890
|
+
}
|
|
2891
|
+
};
|