@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,5 +1,5 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./params";
|
|
2
|
-
import { ShieldedOpRegistration, ShieldedOpRegistrationAmino, UsedNullifier, UsedNullifierAmino, DayFunding, DayFundingAmino, VerificationKey, VerificationKeyAmino, TLEKeySet, TLEKeySetAmino, PendingShieldedOp, PendingShieldedOpAmino, ShieldEpochState, ShieldEpochStateAmino, ShieldEpochDecryptionKey, ShieldEpochDecryptionKeyAmino, IdentityRateLimitEntry, IdentityRateLimitEntryAmino, ShieldDecryptionShare, ShieldDecryptionShareAmino, TLEMissCounterEntry, TLEMissCounterEntryAmino, DKGState, DKGStateAmino, DKGContributionEntry, DKGContributionEntryAmino } from "./types";
|
|
2
|
+
import { ShieldedOpRegistration, ShieldedOpRegistrationAmino, UsedNullifier, UsedNullifierAmino, DayFunding, DayFundingAmino, VerificationKey, VerificationKeyAmino, TLEKeySet, TLEKeySetAmino, PendingShieldedOp, PendingShieldedOpAmino, ShieldEpochState, ShieldEpochStateAmino, ShieldEpochDecryptionKey, ShieldEpochDecryptionKeyAmino, IdentityRateLimitEntry, IdentityRateLimitEntryAmino, ShieldDecryptionShare, ShieldDecryptionShareAmino, TLEMissCounterEntry, TLEMissCounterEntryAmino, DKGState, DKGStateAmino, DKGContributionEntry, DKGContributionEntryAmino, DecryptionDemandEntry, DecryptionDemandEntryAmino, DKGComplaint, DKGComplaintAmino } from "./types";
|
|
3
3
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
4
|
import { DeepPartial } from "../../../helpers";
|
|
5
5
|
/**
|
|
@@ -77,6 +77,14 @@ export interface GenesisState {
|
|
|
77
77
|
* DKG registrations (pub keys from REGISTERING phase)
|
|
78
78
|
*/
|
|
79
79
|
dkgRegistrations: DKGContributionEntry[];
|
|
80
|
+
/**
|
|
81
|
+
* Closed epochs whose decryption shares have been requested from validators
|
|
82
|
+
*/
|
|
83
|
+
decryptionDemands: DecryptionDemandEntry[];
|
|
84
|
+
/**
|
|
85
|
+
* DKG complaints for the current round
|
|
86
|
+
*/
|
|
87
|
+
dkgComplaints: DKGComplaint[];
|
|
80
88
|
}
|
|
81
89
|
export interface GenesisStateProtoMsg {
|
|
82
90
|
typeUrl: "/sparkdream.shield.v1.GenesisState";
|
|
@@ -157,6 +165,14 @@ export interface GenesisStateAmino {
|
|
|
157
165
|
* DKG registrations (pub keys from REGISTERING phase)
|
|
158
166
|
*/
|
|
159
167
|
dkg_registrations?: DKGContributionEntryAmino[];
|
|
168
|
+
/**
|
|
169
|
+
* Closed epochs whose decryption shares have been requested from validators
|
|
170
|
+
*/
|
|
171
|
+
decryption_demands?: DecryptionDemandEntryAmino[];
|
|
172
|
+
/**
|
|
173
|
+
* DKG complaints for the current round
|
|
174
|
+
*/
|
|
175
|
+
dkg_complaints?: DKGComplaintAmino[];
|
|
160
176
|
}
|
|
161
177
|
export interface GenesisStateAminoMsg {
|
|
162
178
|
type: "/sparkdream.shield.v1.GenesisState";
|
|
@@ -23,7 +23,9 @@ function createBaseGenesisState() {
|
|
|
23
23
|
tleMissCounters: [],
|
|
24
24
|
dkgState: types_1.DKGState.fromPartial({}),
|
|
25
25
|
dkgContributions: [],
|
|
26
|
-
dkgRegistrations: []
|
|
26
|
+
dkgRegistrations: [],
|
|
27
|
+
decryptionDemands: [],
|
|
28
|
+
dkgComplaints: []
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
@@ -86,6 +88,12 @@ exports.GenesisState = {
|
|
|
86
88
|
for (const v of message.dkgRegistrations) {
|
|
87
89
|
types_1.DKGContributionEntry.encode(v, writer.uint32(138).fork()).ldelim();
|
|
88
90
|
}
|
|
91
|
+
for (const v of message.decryptionDemands) {
|
|
92
|
+
types_1.DecryptionDemandEntry.encode(v, writer.uint32(146).fork()).ldelim();
|
|
93
|
+
}
|
|
94
|
+
for (const v of message.dkgComplaints) {
|
|
95
|
+
types_1.DKGComplaint.encode(v, writer.uint32(154).fork()).ldelim();
|
|
96
|
+
}
|
|
89
97
|
return writer;
|
|
90
98
|
},
|
|
91
99
|
decode(input, length) {
|
|
@@ -146,6 +154,12 @@ exports.GenesisState = {
|
|
|
146
154
|
case 17:
|
|
147
155
|
message.dkgRegistrations.push(types_1.DKGContributionEntry.decode(reader, reader.uint32()));
|
|
148
156
|
break;
|
|
157
|
+
case 18:
|
|
158
|
+
message.decryptionDemands.push(types_1.DecryptionDemandEntry.decode(reader, reader.uint32()));
|
|
159
|
+
break;
|
|
160
|
+
case 19:
|
|
161
|
+
message.dkgComplaints.push(types_1.DKGComplaint.decode(reader, reader.uint32()));
|
|
162
|
+
break;
|
|
149
163
|
default:
|
|
150
164
|
reader.skipType(tag & 7);
|
|
151
165
|
break;
|
|
@@ -172,6 +186,8 @@ exports.GenesisState = {
|
|
|
172
186
|
message.dkgState = object.dkgState !== undefined && object.dkgState !== null ? types_1.DKGState.fromPartial(object.dkgState) : undefined;
|
|
173
187
|
message.dkgContributions = object.dkgContributions?.map(e => types_1.DKGContributionEntry.fromPartial(e)) || [];
|
|
174
188
|
message.dkgRegistrations = object.dkgRegistrations?.map(e => types_1.DKGContributionEntry.fromPartial(e)) || [];
|
|
189
|
+
message.decryptionDemands = object.decryptionDemands?.map(e => types_1.DecryptionDemandEntry.fromPartial(e)) || [];
|
|
190
|
+
message.dkgComplaints = object.dkgComplaints?.map(e => types_1.DKGComplaint.fromPartial(e)) || [];
|
|
175
191
|
return message;
|
|
176
192
|
},
|
|
177
193
|
fromAmino(object) {
|
|
@@ -203,6 +219,8 @@ exports.GenesisState = {
|
|
|
203
219
|
}
|
|
204
220
|
message.dkgContributions = object.dkg_contributions?.map(e => types_1.DKGContributionEntry.fromAmino(e)) || [];
|
|
205
221
|
message.dkgRegistrations = object.dkg_registrations?.map(e => types_1.DKGContributionEntry.fromAmino(e)) || [];
|
|
222
|
+
message.decryptionDemands = object.decryption_demands?.map(e => types_1.DecryptionDemandEntry.fromAmino(e)) || [];
|
|
223
|
+
message.dkgComplaints = object.dkg_complaints?.map(e => types_1.DKGComplaint.fromAmino(e)) || [];
|
|
206
224
|
return message;
|
|
207
225
|
},
|
|
208
226
|
toAmino(message) {
|
|
@@ -284,6 +302,18 @@ exports.GenesisState = {
|
|
|
284
302
|
else {
|
|
285
303
|
obj.dkg_registrations = message.dkgRegistrations;
|
|
286
304
|
}
|
|
305
|
+
if (message.decryptionDemands) {
|
|
306
|
+
obj.decryption_demands = message.decryptionDemands.map(e => e ? types_1.DecryptionDemandEntry.toAmino(e) : undefined);
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
obj.decryption_demands = message.decryptionDemands;
|
|
310
|
+
}
|
|
311
|
+
if (message.dkgComplaints) {
|
|
312
|
+
obj.dkg_complaints = message.dkgComplaints.map(e => e ? types_1.DKGComplaint.toAmino(e) : undefined);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
obj.dkg_complaints = message.dkgComplaints;
|
|
316
|
+
}
|
|
287
317
|
return obj;
|
|
288
318
|
},
|
|
289
319
|
fromAminoMsg(object) {
|
|
@@ -12,7 +12,7 @@ export interface Params {
|
|
|
12
12
|
*/
|
|
13
13
|
enabled: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* Maximum
|
|
15
|
+
* Maximum bond-denom amount to draw from the community pool per UTC day (day = block time / 86400)
|
|
16
16
|
*/
|
|
17
17
|
maxFundingPerDay: string;
|
|
18
18
|
/**
|
|
@@ -72,7 +72,7 @@ export interface Params {
|
|
|
72
72
|
*/
|
|
73
73
|
minTleValidators: number;
|
|
74
74
|
/**
|
|
75
|
-
* Total DKG window in blocks
|
|
75
|
+
* Total DKG window in blocks, split into four equal phases: key registration, dealing, complaints, justifications
|
|
76
76
|
*/
|
|
77
77
|
dkgWindowBlocks: bigint;
|
|
78
78
|
/**
|
|
@@ -80,6 +80,20 @@ export interface Params {
|
|
|
80
80
|
* e.g. 33 means re-key if >33% of DKG participants are no longer in the bonded set.
|
|
81
81
|
*/
|
|
82
82
|
maxValidatorSetDrift: number;
|
|
83
|
+
/**
|
|
84
|
+
* Maximum fee (in the bond denom) the shield module pays for one
|
|
85
|
+
* MsgShieldedExec. The submitter chooses the fee but the module pays it, so
|
|
86
|
+
* without a ceiling one exec could hand the whole gas reserve to the fee
|
|
87
|
+
* collector. A tx whose fee exceeds this, or is in any other denom, is
|
|
88
|
+
* rejected before anything is paid.
|
|
89
|
+
*/
|
|
90
|
+
maxFeePerExec: string;
|
|
91
|
+
/**
|
|
92
|
+
* Whether a completed DKG turns encrypted_batch_enabled on by itself.
|
|
93
|
+
* Off by default: governance enables batch mode explicitly once it is
|
|
94
|
+
* satisfied with the ceremony. A re-key always turns batch mode off.
|
|
95
|
+
*/
|
|
96
|
+
enableBatchAfterDkg: boolean;
|
|
83
97
|
}
|
|
84
98
|
export interface ParamsProtoMsg {
|
|
85
99
|
typeUrl: "/sparkdream.shield.v1.Params";
|
|
@@ -97,7 +111,7 @@ export interface ParamsAmino {
|
|
|
97
111
|
*/
|
|
98
112
|
enabled?: boolean;
|
|
99
113
|
/**
|
|
100
|
-
* Maximum
|
|
114
|
+
* Maximum bond-denom amount to draw from the community pool per UTC day (day = block time / 86400)
|
|
101
115
|
*/
|
|
102
116
|
max_funding_per_day?: string;
|
|
103
117
|
/**
|
|
@@ -157,7 +171,7 @@ export interface ParamsAmino {
|
|
|
157
171
|
*/
|
|
158
172
|
min_tle_validators?: number;
|
|
159
173
|
/**
|
|
160
|
-
* Total DKG window in blocks
|
|
174
|
+
* Total DKG window in blocks, split into four equal phases: key registration, dealing, complaints, justifications
|
|
161
175
|
*/
|
|
162
176
|
dkg_window_blocks?: string;
|
|
163
177
|
/**
|
|
@@ -165,6 +179,20 @@ export interface ParamsAmino {
|
|
|
165
179
|
* e.g. 33 means re-key if >33% of DKG participants are no longer in the bonded set.
|
|
166
180
|
*/
|
|
167
181
|
max_validator_set_drift?: number;
|
|
182
|
+
/**
|
|
183
|
+
* Maximum fee (in the bond denom) the shield module pays for one
|
|
184
|
+
* MsgShieldedExec. The submitter chooses the fee but the module pays it, so
|
|
185
|
+
* without a ceiling one exec could hand the whole gas reserve to the fee
|
|
186
|
+
* collector. A tx whose fee exceeds this, or is in any other denom, is
|
|
187
|
+
* rejected before anything is paid.
|
|
188
|
+
*/
|
|
189
|
+
max_fee_per_exec?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Whether a completed DKG turns encrypted_batch_enabled on by itself.
|
|
192
|
+
* Off by default: governance enables batch mode explicitly once it is
|
|
193
|
+
* satisfied with the ceremony. A re-key always turns batch mode off.
|
|
194
|
+
*/
|
|
195
|
+
enable_batch_after_dkg?: boolean;
|
|
168
196
|
}
|
|
169
197
|
export interface ParamsAminoMsg {
|
|
170
198
|
type: "sparkdream/x/shield/Params";
|
|
@@ -22,7 +22,9 @@ function createBaseParams() {
|
|
|
22
22
|
tleJailDuration: BigInt(0),
|
|
23
23
|
minTleValidators: 0,
|
|
24
24
|
dkgWindowBlocks: BigInt(0),
|
|
25
|
-
maxValidatorSetDrift: 0
|
|
25
|
+
maxValidatorSetDrift: 0,
|
|
26
|
+
maxFeePerExec: "",
|
|
27
|
+
enableBatchAfterDkg: false
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
@@ -89,6 +91,12 @@ exports.Params = {
|
|
|
89
91
|
if (message.maxValidatorSetDrift !== 0) {
|
|
90
92
|
writer.uint32(144).uint32(message.maxValidatorSetDrift);
|
|
91
93
|
}
|
|
94
|
+
if (message.maxFeePerExec !== "") {
|
|
95
|
+
writer.uint32(154).string(message.maxFeePerExec);
|
|
96
|
+
}
|
|
97
|
+
if (message.enableBatchAfterDkg === true) {
|
|
98
|
+
writer.uint32(160).bool(message.enableBatchAfterDkg);
|
|
99
|
+
}
|
|
92
100
|
return writer;
|
|
93
101
|
},
|
|
94
102
|
decode(input, length) {
|
|
@@ -152,6 +160,12 @@ exports.Params = {
|
|
|
152
160
|
case 18:
|
|
153
161
|
message.maxValidatorSetDrift = reader.uint32();
|
|
154
162
|
break;
|
|
163
|
+
case 19:
|
|
164
|
+
message.maxFeePerExec = reader.string();
|
|
165
|
+
break;
|
|
166
|
+
case 20:
|
|
167
|
+
message.enableBatchAfterDkg = reader.bool();
|
|
168
|
+
break;
|
|
155
169
|
default:
|
|
156
170
|
reader.skipType(tag & 7);
|
|
157
171
|
break;
|
|
@@ -179,6 +193,8 @@ exports.Params = {
|
|
|
179
193
|
message.minTleValidators = object.minTleValidators ?? 0;
|
|
180
194
|
message.dkgWindowBlocks = object.dkgWindowBlocks !== undefined && object.dkgWindowBlocks !== null ? BigInt(object.dkgWindowBlocks.toString()) : BigInt(0);
|
|
181
195
|
message.maxValidatorSetDrift = object.maxValidatorSetDrift ?? 0;
|
|
196
|
+
message.maxFeePerExec = object.maxFeePerExec ?? "";
|
|
197
|
+
message.enableBatchAfterDkg = object.enableBatchAfterDkg ?? false;
|
|
182
198
|
return message;
|
|
183
199
|
},
|
|
184
200
|
fromAmino(object) {
|
|
@@ -237,6 +253,12 @@ exports.Params = {
|
|
|
237
253
|
if (object.max_validator_set_drift !== undefined && object.max_validator_set_drift !== null) {
|
|
238
254
|
message.maxValidatorSetDrift = object.max_validator_set_drift;
|
|
239
255
|
}
|
|
256
|
+
if (object.max_fee_per_exec !== undefined && object.max_fee_per_exec !== null) {
|
|
257
|
+
message.maxFeePerExec = object.max_fee_per_exec;
|
|
258
|
+
}
|
|
259
|
+
if (object.enable_batch_after_dkg !== undefined && object.enable_batch_after_dkg !== null) {
|
|
260
|
+
message.enableBatchAfterDkg = object.enable_batch_after_dkg;
|
|
261
|
+
}
|
|
240
262
|
return message;
|
|
241
263
|
},
|
|
242
264
|
toAmino(message) {
|
|
@@ -259,6 +281,8 @@ exports.Params = {
|
|
|
259
281
|
obj.min_tle_validators = message.minTleValidators === 0 ? undefined : message.minTleValidators;
|
|
260
282
|
obj.dkg_window_blocks = message.dkgWindowBlocks !== BigInt(0) ? message.dkgWindowBlocks?.toString() : undefined;
|
|
261
283
|
obj.max_validator_set_drift = message.maxValidatorSetDrift === 0 ? undefined : message.maxValidatorSetDrift;
|
|
284
|
+
obj.max_fee_per_exec = message.maxFeePerExec === "" ? undefined : message.maxFeePerExec;
|
|
285
|
+
obj.enable_batch_after_dkg = message.enableBatchAfterDkg === false ? undefined : message.enableBatchAfterDkg;
|
|
262
286
|
return obj;
|
|
263
287
|
},
|
|
264
288
|
fromAminoMsg(object) {
|
|
@@ -475,6 +475,10 @@ export interface QueryTLEMasterPublicKeyRequestAminoMsg {
|
|
|
475
475
|
*/
|
|
476
476
|
export interface QueryTLEMasterPublicKeyResponse {
|
|
477
477
|
masterPublicKey: Uint8Array;
|
|
478
|
+
/**
|
|
479
|
+
* The key clients encrypt batch payloads to (see tools/tle).
|
|
480
|
+
*/
|
|
481
|
+
masterPublicKeyG2: Uint8Array;
|
|
478
482
|
}
|
|
479
483
|
export interface QueryTLEMasterPublicKeyResponseProtoMsg {
|
|
480
484
|
typeUrl: "/sparkdream.shield.v1.QueryTLEMasterPublicKeyResponse";
|
|
@@ -487,6 +491,10 @@ export interface QueryTLEMasterPublicKeyResponseProtoMsg {
|
|
|
487
491
|
*/
|
|
488
492
|
export interface QueryTLEMasterPublicKeyResponseAmino {
|
|
489
493
|
master_public_key?: string;
|
|
494
|
+
/**
|
|
495
|
+
* The key clients encrypt batch payloads to (see tools/tle).
|
|
496
|
+
*/
|
|
497
|
+
master_public_key_g2?: string;
|
|
490
498
|
}
|
|
491
499
|
export interface QueryTLEMasterPublicKeyResponseAminoMsg {
|
|
492
500
|
type: "/sparkdream.shield.v1.QueryTLEMasterPublicKeyResponse";
|
|
@@ -1315,7 +1315,8 @@ exports.QueryTLEMasterPublicKeyRequest = {
|
|
|
1315
1315
|
};
|
|
1316
1316
|
function createBaseQueryTLEMasterPublicKeyResponse() {
|
|
1317
1317
|
return {
|
|
1318
|
-
masterPublicKey: new Uint8Array()
|
|
1318
|
+
masterPublicKey: new Uint8Array(),
|
|
1319
|
+
masterPublicKeyG2: new Uint8Array()
|
|
1319
1320
|
};
|
|
1320
1321
|
}
|
|
1321
1322
|
/**
|
|
@@ -1329,6 +1330,9 @@ exports.QueryTLEMasterPublicKeyResponse = {
|
|
|
1329
1330
|
if (message.masterPublicKey.length !== 0) {
|
|
1330
1331
|
writer.uint32(10).bytes(message.masterPublicKey);
|
|
1331
1332
|
}
|
|
1333
|
+
if (message.masterPublicKeyG2.length !== 0) {
|
|
1334
|
+
writer.uint32(18).bytes(message.masterPublicKeyG2);
|
|
1335
|
+
}
|
|
1332
1336
|
return writer;
|
|
1333
1337
|
},
|
|
1334
1338
|
decode(input, length) {
|
|
@@ -1341,6 +1345,9 @@ exports.QueryTLEMasterPublicKeyResponse = {
|
|
|
1341
1345
|
case 1:
|
|
1342
1346
|
message.masterPublicKey = reader.bytes();
|
|
1343
1347
|
break;
|
|
1348
|
+
case 2:
|
|
1349
|
+
message.masterPublicKeyG2 = reader.bytes();
|
|
1350
|
+
break;
|
|
1344
1351
|
default:
|
|
1345
1352
|
reader.skipType(tag & 7);
|
|
1346
1353
|
break;
|
|
@@ -1351,6 +1358,7 @@ exports.QueryTLEMasterPublicKeyResponse = {
|
|
|
1351
1358
|
fromPartial(object) {
|
|
1352
1359
|
const message = createBaseQueryTLEMasterPublicKeyResponse();
|
|
1353
1360
|
message.masterPublicKey = object.masterPublicKey ?? new Uint8Array();
|
|
1361
|
+
message.masterPublicKeyG2 = object.masterPublicKeyG2 ?? new Uint8Array();
|
|
1354
1362
|
return message;
|
|
1355
1363
|
},
|
|
1356
1364
|
fromAmino(object) {
|
|
@@ -1358,11 +1366,15 @@ exports.QueryTLEMasterPublicKeyResponse = {
|
|
|
1358
1366
|
if (object.master_public_key !== undefined && object.master_public_key !== null) {
|
|
1359
1367
|
message.masterPublicKey = (0, helpers_1.bytesFromBase64)(object.master_public_key);
|
|
1360
1368
|
}
|
|
1369
|
+
if (object.master_public_key_g2 !== undefined && object.master_public_key_g2 !== null) {
|
|
1370
|
+
message.masterPublicKeyG2 = (0, helpers_1.bytesFromBase64)(object.master_public_key_g2);
|
|
1371
|
+
}
|
|
1361
1372
|
return message;
|
|
1362
1373
|
},
|
|
1363
1374
|
toAmino(message) {
|
|
1364
1375
|
const obj = {};
|
|
1365
1376
|
obj.master_public_key = message.masterPublicKey ? (0, helpers_1.base64FromBytes)(message.masterPublicKey) : undefined;
|
|
1377
|
+
obj.master_public_key_g2 = message.masterPublicKeyG2 ? (0, helpers_1.base64FromBytes)(message.masterPublicKeyG2) : undefined;
|
|
1366
1378
|
return obj;
|
|
1367
1379
|
},
|
|
1368
1380
|
fromAminoMsg(object) {
|
|
@@ -71,16 +71,22 @@ export interface MsgShieldedExec {
|
|
|
71
71
|
*/
|
|
72
72
|
innerMessage?: Any;
|
|
73
73
|
/**
|
|
74
|
-
* ZK proof bytes (
|
|
75
|
-
*
|
|
74
|
+
* ZK proof bytes (Groth16 over BN254), always required. IMMEDIATE: the
|
|
75
|
+
* operation proof, bound to inner_message. ENCRYPTED_BATCH: the submission
|
|
76
|
+
* proof, bound to encrypted_payload (MessageHash =
|
|
77
|
+
* ShieldMessageHash(BatchSubmissionTypeURL, encrypted_payload), Scope =
|
|
78
|
+
* ScopeElement(BatchSubmissionDomain, BatchSubmissionScope(payload))); the
|
|
79
|
+
* operation proof travels inside the ciphertext.
|
|
76
80
|
*/
|
|
77
81
|
proof: Uint8Array;
|
|
78
82
|
/**
|
|
79
|
-
* 32-byte nullifier (prevents replay)
|
|
83
|
+
* 32-byte nullifier. IMMEDIATE: the operation nullifier (prevents replay).
|
|
84
|
+
* ENCRYPTED_BATCH: the submission nullifier (one per payload and member;
|
|
85
|
+
* the operation nullifier is inside the ciphertext).
|
|
80
86
|
*/
|
|
81
87
|
nullifier: Uint8Array;
|
|
82
88
|
/**
|
|
83
|
-
* 32-byte rate-limit nullifier:
|
|
89
|
+
* 32-byte rate-limit nullifier: MiMC(secret_key, MaxUint64, epoch)
|
|
84
90
|
*/
|
|
85
91
|
rateLimitNullifier: Uint8Array;
|
|
86
92
|
/**
|
|
@@ -100,7 +106,8 @@ export interface MsgShieldedExec {
|
|
|
100
106
|
*/
|
|
101
107
|
execMode: ShieldExecMode;
|
|
102
108
|
/**
|
|
103
|
-
* IBE-encrypted payload containing (inner_message + proof
|
|
109
|
+
* IBE-encrypted payload containing (inner_message + operation proof +
|
|
110
|
+
* operation nullifier), see tools/tle.EncodeExecFragment
|
|
104
111
|
* REQUIRED for ENCRYPTED_BATCH mode, EMPTY for IMMEDIATE mode
|
|
105
112
|
*/
|
|
106
113
|
encryptedPayload: Uint8Array;
|
|
@@ -131,16 +138,22 @@ export interface MsgShieldedExecAmino {
|
|
|
131
138
|
*/
|
|
132
139
|
inner_message?: AnyAmino;
|
|
133
140
|
/**
|
|
134
|
-
* ZK proof bytes (
|
|
135
|
-
*
|
|
141
|
+
* ZK proof bytes (Groth16 over BN254), always required. IMMEDIATE: the
|
|
142
|
+
* operation proof, bound to inner_message. ENCRYPTED_BATCH: the submission
|
|
143
|
+
* proof, bound to encrypted_payload (MessageHash =
|
|
144
|
+
* ShieldMessageHash(BatchSubmissionTypeURL, encrypted_payload), Scope =
|
|
145
|
+
* ScopeElement(BatchSubmissionDomain, BatchSubmissionScope(payload))); the
|
|
146
|
+
* operation proof travels inside the ciphertext.
|
|
136
147
|
*/
|
|
137
148
|
proof?: string;
|
|
138
149
|
/**
|
|
139
|
-
* 32-byte nullifier (prevents replay)
|
|
150
|
+
* 32-byte nullifier. IMMEDIATE: the operation nullifier (prevents replay).
|
|
151
|
+
* ENCRYPTED_BATCH: the submission nullifier (one per payload and member;
|
|
152
|
+
* the operation nullifier is inside the ciphertext).
|
|
140
153
|
*/
|
|
141
154
|
nullifier?: string;
|
|
142
155
|
/**
|
|
143
|
-
* 32-byte rate-limit nullifier:
|
|
156
|
+
* 32-byte rate-limit nullifier: MiMC(secret_key, MaxUint64, epoch)
|
|
144
157
|
*/
|
|
145
158
|
rate_limit_nullifier?: string;
|
|
146
159
|
/**
|
|
@@ -160,7 +173,8 @@ export interface MsgShieldedExecAmino {
|
|
|
160
173
|
*/
|
|
161
174
|
exec_mode?: ShieldExecMode;
|
|
162
175
|
/**
|
|
163
|
-
* IBE-encrypted payload containing (inner_message + proof
|
|
176
|
+
* IBE-encrypted payload containing (inner_message + operation proof +
|
|
177
|
+
* operation nullifier), see tools/tle.EncodeExecFragment
|
|
164
178
|
* REQUIRED for ENCRYPTED_BATCH mode, EMPTY for IMMEDIATE mode
|
|
165
179
|
*/
|
|
166
180
|
encrypted_payload?: string;
|
|
@@ -219,7 +233,13 @@ export interface MsgShieldedExecResponseAminoMsg {
|
|
|
219
233
|
*/
|
|
220
234
|
export interface MsgTriggerDkg {
|
|
221
235
|
authority: string;
|
|
236
|
+
/**
|
|
237
|
+
* Optional threshold numerator (0 = default 2)
|
|
238
|
+
*/
|
|
222
239
|
thresholdNumerator: bigint;
|
|
240
|
+
/**
|
|
241
|
+
* Optional threshold denominator (0 = default 3)
|
|
242
|
+
*/
|
|
223
243
|
thresholdDenominator: bigint;
|
|
224
244
|
}
|
|
225
245
|
export interface MsgTriggerDkgProtoMsg {
|
|
@@ -234,7 +254,13 @@ export interface MsgTriggerDkgProtoMsg {
|
|
|
234
254
|
*/
|
|
235
255
|
export interface MsgTriggerDkgAmino {
|
|
236
256
|
authority?: string;
|
|
257
|
+
/**
|
|
258
|
+
* Optional threshold numerator (0 = default 2)
|
|
259
|
+
*/
|
|
237
260
|
threshold_numerator?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Optional threshold denominator (0 = default 3)
|
|
263
|
+
*/
|
|
238
264
|
threshold_denominator?: string;
|
|
239
265
|
}
|
|
240
266
|
export interface MsgTriggerDkgAminoMsg {
|