@sparkdreamnft/sparkdreamjs 0.0.44 → 0.0.46

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.
Files changed (202) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/cosmos/bundle.d.ts +160 -160
  4. package/cosmos/bundle.js +182 -182
  5. package/esm/akash/bundle.js +150 -150
  6. package/esm/cosmos/bundle.js +182 -182
  7. package/esm/ibc/bundle.js +116 -116
  8. package/esm/nested-amino.js +6 -4
  9. package/esm/sparkdream/artifact/v1/genesis.js +217 -3
  10. package/esm/sparkdream/artifact/v1/params.js +146 -2
  11. package/esm/sparkdream/artifact/v1/query.js +3767 -5
  12. package/esm/sparkdream/artifact/v1/query.lcd.js +173 -0
  13. package/esm/sparkdream/artifact/v1/query.rpc.Query.js +195 -1
  14. package/esm/sparkdream/artifact/v1/tx.amino.js +324 -5
  15. package/esm/sparkdream/artifact/v1/tx.js +7498 -5
  16. package/esm/sparkdream/artifact/v1/tx.registry.js +704 -2
  17. package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +241 -1
  18. package/esm/sparkdream/artifact/v1/types.js +4312 -1120
  19. package/esm/sparkdream/blog/v1/tx.amino.js +21 -1
  20. package/esm/sparkdream/bundle.js +329 -291
  21. package/esm/sparkdream/client.js +5 -2
  22. package/esm/sparkdream/collect/v1/tx.amino.js +16 -1
  23. package/esm/sparkdream/commons/v1/tx.amino.js +33 -1
  24. package/esm/sparkdream/commons/v1/tx.js +25 -1
  25. package/esm/sparkdream/federation/v1/tx.amino.js +51 -1
  26. package/esm/sparkdream/forum/v1/tx.amino.js +21 -1
  27. package/esm/sparkdream/guardian/v1/tx.amino.js +33 -3
  28. package/esm/sparkdream/lcd.js +5 -0
  29. package/esm/sparkdream/name/v1/genesis.js +32 -2
  30. package/esm/sparkdream/rep/v1/genesis.js +74 -1
  31. package/esm/sparkdream/rep/v1/member.js +110 -1
  32. package/esm/sparkdream/rep/v1/migration.js +957 -0
  33. package/esm/sparkdream/rep/v1/params.js +193 -1
  34. package/esm/sparkdream/rep/v1/query.js +1060 -0
  35. package/esm/sparkdream/rep/v1/query.lcd.js +48 -0
  36. package/esm/sparkdream/rep/v1/query.rpc.Query.js +65 -1
  37. package/esm/sparkdream/rep/v1/tx.amino.js +71 -1
  38. package/esm/sparkdream/rep/v1/tx.js +1886 -1
  39. package/esm/sparkdream/rep/v1/tx.registry.js +218 -2
  40. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +75 -1
  41. package/esm/sparkdream/rpc.query.js +3 -0
  42. package/esm/sparkdream/rpc.tx.js +3 -0
  43. package/esm/sparkdream/season/v1/tx.amino.js +64 -2
  44. package/esm/sparkdream/season/v1/tx.js +33 -2
  45. package/esm/sparkdream/service/v1/operator.js +25 -1
  46. package/esm/sparkdream/service/v1/tx.amino.js +6 -1
  47. package/esm/sparkdream/service/v1/tx.js +163 -0
  48. package/esm/sparkdream/service/v1/tx.registry.js +20 -2
  49. package/esm/sparkdream/service/v1/tx.rpc.msg.js +11 -1
  50. package/esm/sparkdream/session/v1/grant.js +98 -6
  51. package/esm/sparkdream/session/v1/tx.amino.js +3 -0
  52. package/esm/sparkdream/session/v1/tx.js +53 -5
  53. package/esm/sparkdream/session/v1/tx.rpc.msg.js +2 -2
  54. package/esm/sparkdream/shield/v1/genesis.js +32 -2
  55. package/esm/sparkdream/shield/v1/params.js +13 -1
  56. package/esm/sparkdream/shield/v1/query.js +13 -1
  57. package/esm/sparkdream/shield/v1/types.js +414 -15
  58. package/esm/sparkdream/vault/module/v1/module.js +71 -0
  59. package/esm/sparkdream/vault/v1/genesis.js +104 -0
  60. package/esm/sparkdream/vault/v1/params.js +90 -0
  61. package/esm/sparkdream/vault/v1/query.js +1535 -0
  62. package/esm/sparkdream/vault/v1/query.lcd.js +100 -0
  63. package/esm/sparkdream/vault/v1/query.rpc.Query.js +111 -0
  64. package/esm/sparkdream/vault/v1/tx.amino.js +111 -0
  65. package/esm/sparkdream/vault/v1/tx.js +1393 -0
  66. package/esm/sparkdream/vault/v1/tx.registry.js +159 -0
  67. package/esm/sparkdream/vault/v1/tx.rpc.msg.js +60 -0
  68. package/esm/sparkdream/vault/v1/vault.js +163 -0
  69. package/esm/sparkdream/vault/v1/vault_proposal.js +277 -0
  70. package/esm/sparkdream/vault/v1/vault_signer.js +85 -0
  71. package/esm/tendermint/bundle.js +20 -20
  72. package/ibc/bundle.d.ts +99 -99
  73. package/ibc/bundle.js +116 -116
  74. package/nested-amino.d.ts +3 -2
  75. package/nested-amino.js +6 -4
  76. package/package.json +1 -13
  77. package/sparkdream/artifact/v1/genesis.d.ts +37 -4
  78. package/sparkdream/artifact/v1/genesis.js +216 -2
  79. package/sparkdream/artifact/v1/params.d.ts +92 -0
  80. package/sparkdream/artifact/v1/params.js +146 -2
  81. package/sparkdream/artifact/v1/query.d.ts +2373 -168
  82. package/sparkdream/artifact/v1/query.js +3768 -5
  83. package/sparkdream/artifact/v1/query.lcd.d.ts +22 -1
  84. package/sparkdream/artifact/v1/query.lcd.js +173 -0
  85. package/sparkdream/artifact/v1/query.rpc.Query.d.ts +98 -1
  86. package/sparkdream/artifact/v1/query.rpc.Query.js +194 -0
  87. package/sparkdream/artifact/v1/tx.amino.d.ts +200 -5
  88. package/sparkdream/artifact/v1/tx.amino.js +324 -5
  89. package/sparkdream/artifact/v1/tx.d.ts +5188 -930
  90. package/sparkdream/artifact/v1/tx.js +7499 -5
  91. package/sparkdream/artifact/v1/tx.registry.d.ts +469 -1
  92. package/sparkdream/artifact/v1/tx.registry.js +703 -1
  93. package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +136 -1
  94. package/sparkdream/artifact/v1/tx.rpc.msg.js +240 -0
  95. package/sparkdream/artifact/v1/types.d.ts +1797 -25
  96. package/sparkdream/artifact/v1/types.js +4322 -1121
  97. package/sparkdream/blog/v1/tx.amino.d.ts +21 -1
  98. package/sparkdream/blog/v1/tx.amino.js +20 -0
  99. package/sparkdream/bundle.d.ts +13721 -9493
  100. package/sparkdream/bundle.js +329 -291
  101. package/sparkdream/client.d.ts +394 -9
  102. package/sparkdream/client.js +5 -2
  103. package/sparkdream/collect/v1/tx.amino.d.ts +16 -1
  104. package/sparkdream/collect/v1/tx.amino.js +15 -0
  105. package/sparkdream/commons/v1/tx.amino.d.ts +21 -1
  106. package/sparkdream/commons/v1/tx.amino.js +32 -0
  107. package/sparkdream/commons/v1/tx.d.ts +18 -0
  108. package/sparkdream/commons/v1/tx.js +25 -1
  109. package/sparkdream/federation/v1/tx.amino.d.ts +1 -1
  110. package/sparkdream/federation/v1/tx.amino.js +52 -2
  111. package/sparkdream/forum/v1/tx.amino.d.ts +21 -1
  112. package/sparkdream/forum/v1/tx.amino.js +20 -0
  113. package/sparkdream/guardian/v1/tx.amino.d.ts +3 -3
  114. package/sparkdream/guardian/v1/tx.amino.js +36 -5
  115. package/sparkdream/lcd.d.ts +3 -0
  116. package/sparkdream/lcd.js +5 -0
  117. package/sparkdream/name/v1/genesis.d.ts +23 -1
  118. package/sparkdream/name/v1/genesis.js +31 -1
  119. package/sparkdream/rep/v1/genesis.d.ts +19 -0
  120. package/sparkdream/rep/v1/genesis.js +74 -1
  121. package/sparkdream/rep/v1/member.d.ts +92 -0
  122. package/sparkdream/rep/v1/member.js +110 -1
  123. package/sparkdream/rep/v1/migration.d.ts +587 -0
  124. package/sparkdream/rep/v1/migration.js +964 -0
  125. package/sparkdream/rep/v1/params.d.ts +190 -0
  126. package/sparkdream/rep/v1/params.js +193 -1
  127. package/sparkdream/rep/v1/query.d.ts +679 -0
  128. package/sparkdream/rep/v1/query.js +1061 -1
  129. package/sparkdream/rep/v1/query.lcd.d.ts +8 -1
  130. package/sparkdream/rep/v1/query.lcd.js +48 -0
  131. package/sparkdream/rep/v1/query.rpc.Query.d.ts +32 -1
  132. package/sparkdream/rep/v1/query.rpc.Query.js +64 -0
  133. package/sparkdream/rep/v1/tx.amino.d.ts +71 -1
  134. package/sparkdream/rep/v1/tx.amino.js +70 -0
  135. package/sparkdream/rep/v1/tx.d.ts +1278 -0
  136. package/sparkdream/rep/v1/tx.js +1887 -2
  137. package/sparkdream/rep/v1/tx.registry.d.ts +145 -1
  138. package/sparkdream/rep/v1/tx.registry.js +217 -1
  139. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +41 -1
  140. package/sparkdream/rep/v1/tx.rpc.msg.js +74 -0
  141. package/sparkdream/rpc.query.d.ts +42 -0
  142. package/sparkdream/rpc.query.js +3 -0
  143. package/sparkdream/rpc.tx.d.ts +3 -0
  144. package/sparkdream/rpc.tx.js +3 -0
  145. package/sparkdream/season/v1/tx.amino.d.ts +2 -2
  146. package/sparkdream/season/v1/tx.amino.js +65 -3
  147. package/sparkdream/season/v1/tx.d.ts +19 -0
  148. package/sparkdream/season/v1/tx.js +33 -2
  149. package/sparkdream/service/v1/operator.d.ts +30 -0
  150. package/sparkdream/service/v1/operator.js +25 -1
  151. package/sparkdream/service/v1/tx.amino.d.ts +6 -1
  152. package/sparkdream/service/v1/tx.amino.js +5 -0
  153. package/sparkdream/service/v1/tx.d.ts +119 -0
  154. package/sparkdream/service/v1/tx.js +164 -1
  155. package/sparkdream/service/v1/tx.registry.d.ts +13 -1
  156. package/sparkdream/service/v1/tx.registry.js +19 -1
  157. package/sparkdream/service/v1/tx.rpc.msg.d.ts +10 -1
  158. package/sparkdream/service/v1/tx.rpc.msg.js +10 -0
  159. package/sparkdream/session/v1/grant.d.ts +75 -7
  160. package/sparkdream/session/v1/grant.js +99 -7
  161. package/sparkdream/session/v1/tx.amino.js +3 -0
  162. package/sparkdream/session/v1/tx.d.ts +36 -4
  163. package/sparkdream/session/v1/tx.js +52 -4
  164. package/sparkdream/session/v1/tx.rpc.msg.d.ts +2 -2
  165. package/sparkdream/session/v1/tx.rpc.msg.js +2 -2
  166. package/sparkdream/shield/v1/genesis.d.ts +17 -1
  167. package/sparkdream/shield/v1/genesis.js +31 -1
  168. package/sparkdream/shield/v1/params.d.ts +16 -4
  169. package/sparkdream/shield/v1/params.js +13 -1
  170. package/sparkdream/shield/v1/query.d.ts +8 -0
  171. package/sparkdream/shield/v1/query.js +13 -1
  172. package/sparkdream/shield/v1/tx.d.ts +36 -10
  173. package/sparkdream/shield/v1/types.d.ts +294 -13
  174. package/sparkdream/shield/v1/types.js +415 -16
  175. package/sparkdream/vault/module/v1/module.d.ts +54 -0
  176. package/sparkdream/vault/module/v1/module.js +74 -0
  177. package/sparkdream/vault/v1/genesis.d.ts +59 -0
  178. package/sparkdream/vault/v1/genesis.js +107 -0
  179. package/sparkdream/vault/v1/params.d.ts +68 -0
  180. package/sparkdream/vault/v1/params.js +93 -0
  181. package/sparkdream/vault/v1/query.d.ts +935 -0
  182. package/sparkdream/vault/v1/query.js +1538 -0
  183. package/sparkdream/vault/v1/query.lcd.d.ts +18 -0
  184. package/sparkdream/vault/v1/query.lcd.js +104 -0
  185. package/sparkdream/vault/v1/query.rpc.Query.d.ts +56 -0
  186. package/sparkdream/vault/v1/query.rpc.Query.js +116 -0
  187. package/sparkdream/vault/v1/tx.amino.d.ts +44 -0
  188. package/sparkdream/vault/v1/tx.amino.js +115 -0
  189. package/sparkdream/vault/v1/tx.d.ts +826 -0
  190. package/sparkdream/vault/v1/tx.js +1399 -0
  191. package/sparkdream/vault/v1/tx.registry.d.ts +109 -0
  192. package/sparkdream/vault/v1/tx.registry.js +163 -0
  193. package/sparkdream/vault/v1/tx.rpc.msg.d.ts +37 -0
  194. package/sparkdream/vault/v1/tx.rpc.msg.js +65 -0
  195. package/sparkdream/vault/v1/vault.d.ts +117 -0
  196. package/sparkdream/vault/v1/vault.js +166 -0
  197. package/sparkdream/vault/v1/vault_proposal.d.ts +158 -0
  198. package/sparkdream/vault/v1/vault_proposal.js +285 -0
  199. package/sparkdream/vault/v1/vault_signer.d.ts +54 -0
  200. package/sparkdream/vault/v1/vault_signer.js +88 -0
  201. package/tendermint/bundle.d.ts +844 -844
  202. package/tendermint/bundle.js +20 -20
@@ -12,7 +12,7 @@ export interface Params {
12
12
  */
13
13
  enabled: boolean;
14
14
  /**
15
- * Maximum uspark to skim from community pool per day (14400 blocks at 6s/block)
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 (split: first half = key registration, second half = contributions)
75
+ * Total DKG window in blocks, split into four equal phases: key registration, dealing, complaints, justifications
76
76
  */
77
77
  dkgWindowBlocks: bigint;
78
78
  /**
@@ -88,6 +88,12 @@ export interface Params {
88
88
  * rejected before anything is paid.
89
89
  */
90
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;
91
97
  }
92
98
  export interface ParamsProtoMsg {
93
99
  typeUrl: "/sparkdream.shield.v1.Params";
@@ -105,7 +111,7 @@ export interface ParamsAmino {
105
111
  */
106
112
  enabled?: boolean;
107
113
  /**
108
- * Maximum uspark to skim from community pool per day (14400 blocks at 6s/block)
114
+ * Maximum bond-denom amount to draw from the community pool per UTC day (day = block time / 86400)
109
115
  */
110
116
  max_funding_per_day?: string;
111
117
  /**
@@ -165,7 +171,7 @@ export interface ParamsAmino {
165
171
  */
166
172
  min_tle_validators?: number;
167
173
  /**
168
- * Total DKG window in blocks (split: first half = key registration, second half = contributions)
174
+ * Total DKG window in blocks, split into four equal phases: key registration, dealing, complaints, justifications
169
175
  */
170
176
  dkg_window_blocks?: string;
171
177
  /**
@@ -181,6 +187,12 @@ export interface ParamsAmino {
181
187
  * rejected before anything is paid.
182
188
  */
183
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;
184
196
  }
185
197
  export interface ParamsAminoMsg {
186
198
  type: "sparkdream/x/shield/Params";
@@ -23,7 +23,8 @@ function createBaseParams() {
23
23
  minTleValidators: 0,
24
24
  dkgWindowBlocks: BigInt(0),
25
25
  maxValidatorSetDrift: 0,
26
- maxFeePerExec: ""
26
+ maxFeePerExec: "",
27
+ enableBatchAfterDkg: false
27
28
  };
28
29
  }
29
30
  /**
@@ -93,6 +94,9 @@ exports.Params = {
93
94
  if (message.maxFeePerExec !== "") {
94
95
  writer.uint32(154).string(message.maxFeePerExec);
95
96
  }
97
+ if (message.enableBatchAfterDkg === true) {
98
+ writer.uint32(160).bool(message.enableBatchAfterDkg);
99
+ }
96
100
  return writer;
97
101
  },
98
102
  decode(input, length) {
@@ -159,6 +163,9 @@ exports.Params = {
159
163
  case 19:
160
164
  message.maxFeePerExec = reader.string();
161
165
  break;
166
+ case 20:
167
+ message.enableBatchAfterDkg = reader.bool();
168
+ break;
162
169
  default:
163
170
  reader.skipType(tag & 7);
164
171
  break;
@@ -187,6 +194,7 @@ exports.Params = {
187
194
  message.dkgWindowBlocks = object.dkgWindowBlocks !== undefined && object.dkgWindowBlocks !== null ? BigInt(object.dkgWindowBlocks.toString()) : BigInt(0);
188
195
  message.maxValidatorSetDrift = object.maxValidatorSetDrift ?? 0;
189
196
  message.maxFeePerExec = object.maxFeePerExec ?? "";
197
+ message.enableBatchAfterDkg = object.enableBatchAfterDkg ?? false;
190
198
  return message;
191
199
  },
192
200
  fromAmino(object) {
@@ -248,6 +256,9 @@ exports.Params = {
248
256
  if (object.max_fee_per_exec !== undefined && object.max_fee_per_exec !== null) {
249
257
  message.maxFeePerExec = object.max_fee_per_exec;
250
258
  }
259
+ if (object.enable_batch_after_dkg !== undefined && object.enable_batch_after_dkg !== null) {
260
+ message.enableBatchAfterDkg = object.enable_batch_after_dkg;
261
+ }
251
262
  return message;
252
263
  },
253
264
  toAmino(message) {
@@ -271,6 +282,7 @@ exports.Params = {
271
282
  obj.dkg_window_blocks = message.dkgWindowBlocks !== BigInt(0) ? message.dkgWindowBlocks?.toString() : undefined;
272
283
  obj.max_validator_set_drift = message.maxValidatorSetDrift === 0 ? undefined : message.maxValidatorSetDrift;
273
284
  obj.max_fee_per_exec = message.maxFeePerExec === "" ? undefined : message.maxFeePerExec;
285
+ obj.enable_batch_after_dkg = message.enableBatchAfterDkg === false ? undefined : message.enableBatchAfterDkg;
274
286
  return obj;
275
287
  },
276
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 (Groth16 over BN254).
75
- * REQUIRED for IMMEDIATE mode, EMPTY for ENCRYPTED_BATCH mode.
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: H(secret, "rate_limit", epoch)
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 (Groth16 over BN254).
135
- * REQUIRED for IMMEDIATE mode, EMPTY for ENCRYPTED_BATCH mode.
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: H(secret, "rate_limit", epoch)
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 {