@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
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OneshotExec = exports.OneshotTransfer = exports.ScheduledOneshotPayload = exports.SpendingAllowancePayload = exports.RecurringPullPayload = exports.SessionKeyPayload = exports.Grant = exports.GrantStatusAmino = exports.GrantStatus = exports.GrantTypeAmino = exports.GrantType = void 0;
3
+ exports.SignInPayload = exports.OneshotExec = exports.OneshotTransfer = exports.ScheduledOneshotPayload = exports.SpendingAllowancePayload = exports.RecurringPullPayload = exports.SessionKeyPayload = exports.Grant = exports.GrantStatusAmino = exports.GrantStatus = exports.GrantTypeAmino = exports.GrantType = void 0;
4
4
  exports.grantTypeFromJSON = grantTypeFromJSON;
5
5
  exports.grantTypeToJSON = grantTypeToJSON;
6
6
  exports.grantStatusFromJSON = grantStatusFromJSON;
@@ -12,11 +12,12 @@ const any_1 = require("../../../google/protobuf/any");
12
12
  const binary_1 = require("../../../binary");
13
13
  const helpers_1 = require("../../../helpers");
14
14
  /**
15
- * GrantType enumerates the four typed payload variants of the unified grant
15
+ * GrantType enumerates the typed payload variants of the unified grant
16
16
  * registry. The session-key variant preserves the legacy x/session model;
17
- * the other three are introduced by the delegated-authorization-registry
18
- * refactor and ship in subsequent phases (P3 RecurringPull, P4
19
- * SpendingAllowance, P5 ScheduledOneshot).
17
+ * RecurringPull, SpendingAllowance and ScheduledOneshot came with the
18
+ * delegated-authorization-registry refactor. SignIn is the one variant
19
+ * nothing on chain executes: it records permission for an off-chain
20
+ * service to let the grantee sign in as the granter.
20
21
  */
21
22
  var GrantType;
22
23
  (function (GrantType) {
@@ -25,6 +26,7 @@ var GrantType;
25
26
  GrantType[GrantType["GRANT_TYPE_RECURRING_PULL"] = 2] = "GRANT_TYPE_RECURRING_PULL";
26
27
  GrantType[GrantType["GRANT_TYPE_SPENDING_ALLOWANCE"] = 3] = "GRANT_TYPE_SPENDING_ALLOWANCE";
27
28
  GrantType[GrantType["GRANT_TYPE_SCHEDULED_ONESHOT"] = 4] = "GRANT_TYPE_SCHEDULED_ONESHOT";
29
+ GrantType[GrantType["GRANT_TYPE_SIGN_IN"] = 5] = "GRANT_TYPE_SIGN_IN";
28
30
  GrantType[GrantType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
29
31
  })(GrantType || (exports.GrantType = GrantType = {}));
30
32
  exports.GrantTypeAmino = GrantType;
@@ -45,6 +47,9 @@ function grantTypeFromJSON(object) {
45
47
  case 4:
46
48
  case "GRANT_TYPE_SCHEDULED_ONESHOT":
47
49
  return GrantType.GRANT_TYPE_SCHEDULED_ONESHOT;
50
+ case 5:
51
+ case "GRANT_TYPE_SIGN_IN":
52
+ return GrantType.GRANT_TYPE_SIGN_IN;
48
53
  case -1:
49
54
  case "UNRECOGNIZED":
50
55
  default:
@@ -63,6 +68,8 @@ function grantTypeToJSON(object) {
63
68
  return "GRANT_TYPE_SPENDING_ALLOWANCE";
64
69
  case GrantType.GRANT_TYPE_SCHEDULED_ONESHOT:
65
70
  return "GRANT_TYPE_SCHEDULED_ONESHOT";
71
+ case GrantType.GRANT_TYPE_SIGN_IN:
72
+ return "GRANT_TYPE_SIGN_IN";
66
73
  case GrantType.UNRECOGNIZED:
67
74
  default:
68
75
  return "UNRECOGNIZED";
@@ -148,13 +155,14 @@ function createBaseGrant() {
148
155
  sessionKey: undefined,
149
156
  recurringPull: undefined,
150
157
  spendingAllowance: undefined,
151
- scheduledOneshot: undefined
158
+ scheduledOneshot: undefined,
159
+ signIn: undefined
152
160
  };
153
161
  }
154
162
  /**
155
163
  * Grant is the unified record for every delegated-authorization primitive
156
164
  * in x/session. One record carries the shared lifecycle fields (id,
157
- * granter, grantee, status, expires_at, note) and exactly one of the four
165
+ * granter, grantee, status, expires_at, note) and exactly one of the
158
166
  * typed payloads.
159
167
  * @name Grant
160
168
  * @package sparkdream.session.v1
@@ -199,6 +207,9 @@ exports.Grant = {
199
207
  if (message.scheduledOneshot !== undefined) {
200
208
  exports.ScheduledOneshotPayload.encode(message.scheduledOneshot, writer.uint32(186).fork()).ldelim();
201
209
  }
210
+ if (message.signIn !== undefined) {
211
+ exports.SignInPayload.encode(message.signIn, writer.uint32(194).fork()).ldelim();
212
+ }
202
213
  return writer;
203
214
  },
204
215
  decode(input, length) {
@@ -244,6 +255,9 @@ exports.Grant = {
244
255
  case 23:
245
256
  message.scheduledOneshot = exports.ScheduledOneshotPayload.decode(reader, reader.uint32());
246
257
  break;
258
+ case 24:
259
+ message.signIn = exports.SignInPayload.decode(reader, reader.uint32());
260
+ break;
247
261
  default:
248
262
  reader.skipType(tag & 7);
249
263
  break;
@@ -265,6 +279,7 @@ exports.Grant = {
265
279
  message.recurringPull = object.recurringPull !== undefined && object.recurringPull !== null ? exports.RecurringPullPayload.fromPartial(object.recurringPull) : undefined;
266
280
  message.spendingAllowance = object.spendingAllowance !== undefined && object.spendingAllowance !== null ? exports.SpendingAllowancePayload.fromPartial(object.spendingAllowance) : undefined;
267
281
  message.scheduledOneshot = object.scheduledOneshot !== undefined && object.scheduledOneshot !== null ? exports.ScheduledOneshotPayload.fromPartial(object.scheduledOneshot) : undefined;
282
+ message.signIn = object.signIn !== undefined && object.signIn !== null ? exports.SignInPayload.fromPartial(object.signIn) : undefined;
268
283
  return message;
269
284
  },
270
285
  fromAmino(object) {
@@ -305,6 +320,9 @@ exports.Grant = {
305
320
  if (object.scheduled_oneshot !== undefined && object.scheduled_oneshot !== null) {
306
321
  message.scheduledOneshot = exports.ScheduledOneshotPayload.fromAmino(object.scheduled_oneshot);
307
322
  }
323
+ if (object.sign_in !== undefined && object.sign_in !== null) {
324
+ message.signIn = exports.SignInPayload.fromAmino(object.sign_in);
325
+ }
308
326
  return message;
309
327
  },
310
328
  toAmino(message) {
@@ -321,6 +339,7 @@ exports.Grant = {
321
339
  obj.recurring_pull = message.recurringPull ? exports.RecurringPullPayload.toAmino(message.recurringPull) : undefined;
322
340
  obj.spending_allowance = message.spendingAllowance ? exports.SpendingAllowancePayload.toAmino(message.spendingAllowance) : undefined;
323
341
  obj.scheduled_oneshot = message.scheduledOneshot ? exports.ScheduledOneshotPayload.toAmino(message.scheduledOneshot) : undefined;
342
+ obj.sign_in = message.signIn ? exports.SignInPayload.toAmino(message.signIn) : undefined;
324
343
  return obj;
325
344
  },
326
345
  fromAminoMsg(object) {
@@ -1025,3 +1044,76 @@ exports.OneshotExec = {
1025
1044
  };
1026
1045
  }
1027
1046
  };
1047
+ function createBaseSignInPayload() {
1048
+ return {
1049
+ service: ""
1050
+ };
1051
+ }
1052
+ /**
1053
+ * SignInPayload lets the grantee sign in to an off-chain service as the
1054
+ * granter. The chain only records the permission: the service (e.g. a
1055
+ * Spark Dream Mastodon instance's wallet login) reads active SIGN_IN grants
1056
+ * to its own hostname and stops honouring one once it is revoked, declined
1057
+ * or expired. Nothing on chain executes through it.
1058
+ * @name SignInPayload
1059
+ * @package sparkdream.session.v1
1060
+ * @see proto type: sparkdream.session.v1.SignInPayload
1061
+ */
1062
+ exports.SignInPayload = {
1063
+ typeUrl: "/sparkdream.session.v1.SignInPayload",
1064
+ encode(message, writer = binary_1.BinaryWriter.create()) {
1065
+ if (message.service !== "") {
1066
+ writer.uint32(10).string(message.service);
1067
+ }
1068
+ return writer;
1069
+ },
1070
+ decode(input, length) {
1071
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
1072
+ let end = length === undefined ? reader.len : reader.pos + length;
1073
+ const message = createBaseSignInPayload();
1074
+ while (reader.pos < end) {
1075
+ const tag = reader.uint32();
1076
+ switch (tag >>> 3) {
1077
+ case 1:
1078
+ message.service = reader.string();
1079
+ break;
1080
+ default:
1081
+ reader.skipType(tag & 7);
1082
+ break;
1083
+ }
1084
+ }
1085
+ return message;
1086
+ },
1087
+ fromPartial(object) {
1088
+ const message = createBaseSignInPayload();
1089
+ message.service = object.service ?? "";
1090
+ return message;
1091
+ },
1092
+ fromAmino(object) {
1093
+ const message = createBaseSignInPayload();
1094
+ if (object.service !== undefined && object.service !== null) {
1095
+ message.service = object.service;
1096
+ }
1097
+ return message;
1098
+ },
1099
+ toAmino(message) {
1100
+ const obj = {};
1101
+ obj.service = message.service === "" ? undefined : message.service;
1102
+ return obj;
1103
+ },
1104
+ fromAminoMsg(object) {
1105
+ return exports.SignInPayload.fromAmino(object.value);
1106
+ },
1107
+ fromProtoMsg(message) {
1108
+ return exports.SignInPayload.decode(message.value);
1109
+ },
1110
+ toProto(message) {
1111
+ return exports.SignInPayload.encode(message).finish();
1112
+ },
1113
+ toProtoMsg(message) {
1114
+ return {
1115
+ typeUrl: "/sparkdream.session.v1.SignInPayload",
1116
+ value: exports.SignInPayload.encode(message).finish()
1117
+ };
1118
+ }
1119
+ };
@@ -141,11 +141,14 @@ const scheduledOneshotFromAmino = (o) => {
141
141
  fireError: o.fire_error ?? "",
142
142
  };
143
143
  };
144
+ const signInToAmino = (p) => ({ service: str(p.service) });
145
+ const signInFromAmino = (o) => ({ service: o.service ?? "" });
144
146
  const PAYLOADS = [
145
147
  ["sessionKey", "session_key", "sparkdream/session/SessionKeyPayload", sessionKeyToAmino, sessionKeyFromAmino],
146
148
  ["recurringPull", "recurring_pull", "sparkdream/session/RecurringPullPayload", recurringPullToAmino, recurringPullFromAmino],
147
149
  ["spendingAllowance", "spending_allowance", "sparkdream/session/SpendingAllowancePayload", spendingAllowanceToAmino, spendingAllowanceFromAmino],
148
150
  ["scheduledOneshot", "scheduled_oneshot", "sparkdream/session/ScheduledOneshotPayload", scheduledOneshotToAmino, scheduledOneshotFromAmino],
151
+ ["signIn", "sign_in", "sparkdream/session/SignInPayload", signInToAmino, signInFromAmino],
149
152
  ];
150
153
  // ── Messages ────────────────────────────────────────────────────────────
151
154
  // {<signer>, grant_id} messages; each signer field name is a single word, so
@@ -1,7 +1,7 @@
1
1
  import { Params, ParamsAmino, SessionOperationalParams, SessionOperationalParamsAmino } from "./params";
2
2
  import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
3
3
  import { Any, AnyAmino } from "../../../google/protobuf/any";
4
- import { SessionKeyPayload, SessionKeyPayloadAmino, RecurringPullPayload, RecurringPullPayloadAmino, SpendingAllowancePayload, SpendingAllowancePayloadAmino, ScheduledOneshotPayload, ScheduledOneshotPayloadAmino } from "./grant";
4
+ import { SessionKeyPayload, SessionKeyPayloadAmino, RecurringPullPayload, RecurringPullPayloadAmino, SpendingAllowancePayload, SpendingAllowancePayloadAmino, ScheduledOneshotPayload, ScheduledOneshotPayloadAmino, SignInPayload, SignInPayloadAmino } from "./grant";
5
5
  import { BinaryReader, BinaryWriter } from "../../../binary";
6
6
  import { DeepPartial } from "../../../helpers";
7
7
  /**
@@ -301,7 +301,7 @@ export interface MsgExecSessionResponseAminoMsg {
301
301
  value: MsgExecSessionResponseAmino;
302
302
  }
303
303
  /**
304
- * MsgCreateGrant is the unified entrypoint for creating any of the four
304
+ * MsgCreateGrant is the unified entrypoint for creating any of the
305
305
  * typed grants. The grant type is inferred from the payload oneof; the
306
306
  * handler dispatches to type-specific validation. Signed by the granter.
307
307
  * @name MsgCreateGrant
@@ -320,13 +320,14 @@ export interface MsgCreateGrant {
320
320
  recurringPull?: RecurringPullPayload;
321
321
  spendingAllowance?: SpendingAllowancePayload;
322
322
  scheduledOneshot?: ScheduledOneshotPayload;
323
+ signIn?: SignInPayload;
323
324
  }
324
325
  export interface MsgCreateGrantProtoMsg {
325
326
  typeUrl: "/sparkdream.session.v1.MsgCreateGrant";
326
327
  value: Uint8Array;
327
328
  }
328
329
  /**
329
- * MsgCreateGrant is the unified entrypoint for creating any of the four
330
+ * MsgCreateGrant is the unified entrypoint for creating any of the
330
331
  * typed grants. The grant type is inferred from the payload oneof; the
331
332
  * handler dispatches to type-specific validation. Signed by the granter.
332
333
  * @name MsgCreateGrantAmino
@@ -345,6 +346,7 @@ export interface MsgCreateGrantAmino {
345
346
  recurring_pull?: RecurringPullPayloadAmino;
346
347
  spending_allowance?: SpendingAllowancePayloadAmino;
347
348
  scheduled_oneshot?: ScheduledOneshotPayloadAmino;
349
+ sign_in?: SignInPayloadAmino;
348
350
  }
349
351
  export interface MsgCreateGrantAminoMsg {
350
352
  type: "sparkdream/x/session/MsgCreateGrant";
@@ -424,6 +426,16 @@ export interface MsgClaimRecurringPullResponse {
424
426
  * Unix timestamp at which the next claim becomes eligible.
425
427
  */
426
428
  nextClaimTime: bigint;
429
+ /**
430
+ * true when the granter could not cover the period: nothing moved and the
431
+ * grant is now PAUSED_INSUFFICIENT_FUNDS (a later claim resumes it).
432
+ */
433
+ paused: boolean;
434
+ /**
435
+ * true when the grant's window had closed: nothing moved and the grant
436
+ * is now COMPLETED.
437
+ */
438
+ completed: boolean;
427
439
  }
428
440
  export interface MsgClaimRecurringPullResponseProtoMsg {
429
441
  typeUrl: "/sparkdream.session.v1.MsgClaimRecurringPullResponse";
@@ -443,6 +455,16 @@ export interface MsgClaimRecurringPullResponseAmino {
443
455
  * Unix timestamp at which the next claim becomes eligible.
444
456
  */
445
457
  next_claim_time?: string;
458
+ /**
459
+ * true when the granter could not cover the period: nothing moved and the
460
+ * grant is now PAUSED_INSUFFICIENT_FUNDS (a later claim resumes it).
461
+ */
462
+ paused?: boolean;
463
+ /**
464
+ * true when the grant's window had closed: nothing moved and the grant
465
+ * is now COMPLETED.
466
+ */
467
+ completed?: boolean;
446
468
  }
447
469
  export interface MsgClaimRecurringPullResponseAminoMsg {
448
470
  type: "/sparkdream.session.v1.MsgClaimRecurringPullResponse";
@@ -498,6 +520,11 @@ export interface MsgPullAllowanceResponse {
498
520
  * Total spent in the current rolling-window period after this pull.
499
521
  */
500
522
  spentInPeriod: Coin;
523
+ /**
524
+ * true when the granter could not cover the pull: nothing moved and the
525
+ * grant is now PAUSED_INSUFFICIENT_FUNDS (a later pull resumes it).
526
+ */
527
+ paused: boolean;
501
528
  }
502
529
  export interface MsgPullAllowanceResponseProtoMsg {
503
530
  typeUrl: "/sparkdream.session.v1.MsgPullAllowanceResponse";
@@ -519,6 +546,11 @@ export interface MsgPullAllowanceResponseAmino {
519
546
  * Total spent in the current rolling-window period after this pull.
520
547
  */
521
548
  spent_in_period?: CoinAmino;
549
+ /**
550
+ * true when the granter could not cover the pull: nothing moved and the
551
+ * grant is now PAUSED_INSUFFICIENT_FUNDS (a later pull resumes it).
552
+ */
553
+ paused?: boolean;
522
554
  }
523
555
  export interface MsgPullAllowanceResponseAminoMsg {
524
556
  type: "/sparkdream.session.v1.MsgPullAllowanceResponse";
@@ -915,7 +947,7 @@ export declare const MsgExecSessionResponse: {
915
947
  toProtoMsg(message: MsgExecSessionResponse): MsgExecSessionResponseProtoMsg;
916
948
  };
917
949
  /**
918
- * MsgCreateGrant is the unified entrypoint for creating any of the four
950
+ * MsgCreateGrant is the unified entrypoint for creating any of the
919
951
  * typed grants. The grant type is inferred from the payload oneof; the
920
952
  * handler dispatches to type-specific validation. Signed by the granter.
921
953
  * @name MsgCreateGrant
@@ -800,11 +800,12 @@ function createBaseMsgCreateGrant() {
800
800
  sessionKey: undefined,
801
801
  recurringPull: undefined,
802
802
  spendingAllowance: undefined,
803
- scheduledOneshot: undefined
803
+ scheduledOneshot: undefined,
804
+ signIn: undefined
804
805
  };
805
806
  }
806
807
  /**
807
- * MsgCreateGrant is the unified entrypoint for creating any of the four
808
+ * MsgCreateGrant is the unified entrypoint for creating any of the
808
809
  * typed grants. The grant type is inferred from the payload oneof; the
809
810
  * handler dispatches to type-specific validation. Signed by the granter.
810
811
  * @name MsgCreateGrant
@@ -839,6 +840,9 @@ exports.MsgCreateGrant = {
839
840
  if (message.scheduledOneshot !== undefined) {
840
841
  grant_1.ScheduledOneshotPayload.encode(message.scheduledOneshot, writer.uint32(106).fork()).ldelim();
841
842
  }
843
+ if (message.signIn !== undefined) {
844
+ grant_1.SignInPayload.encode(message.signIn, writer.uint32(114).fork()).ldelim();
845
+ }
842
846
  return writer;
843
847
  },
844
848
  decode(input, length) {
@@ -872,6 +876,9 @@ exports.MsgCreateGrant = {
872
876
  case 13:
873
877
  message.scheduledOneshot = grant_1.ScheduledOneshotPayload.decode(reader, reader.uint32());
874
878
  break;
879
+ case 14:
880
+ message.signIn = grant_1.SignInPayload.decode(reader, reader.uint32());
881
+ break;
875
882
  default:
876
883
  reader.skipType(tag & 7);
877
884
  break;
@@ -889,6 +896,7 @@ exports.MsgCreateGrant = {
889
896
  message.recurringPull = object.recurringPull !== undefined && object.recurringPull !== null ? grant_1.RecurringPullPayload.fromPartial(object.recurringPull) : undefined;
890
897
  message.spendingAllowance = object.spendingAllowance !== undefined && object.spendingAllowance !== null ? grant_1.SpendingAllowancePayload.fromPartial(object.spendingAllowance) : undefined;
891
898
  message.scheduledOneshot = object.scheduledOneshot !== undefined && object.scheduledOneshot !== null ? grant_1.ScheduledOneshotPayload.fromPartial(object.scheduledOneshot) : undefined;
899
+ message.signIn = object.signIn !== undefined && object.signIn !== null ? grant_1.SignInPayload.fromPartial(object.signIn) : undefined;
892
900
  return message;
893
901
  },
894
902
  fromAmino(object) {
@@ -917,6 +925,9 @@ exports.MsgCreateGrant = {
917
925
  if (object.scheduled_oneshot !== undefined && object.scheduled_oneshot !== null) {
918
926
  message.scheduledOneshot = grant_1.ScheduledOneshotPayload.fromAmino(object.scheduled_oneshot);
919
927
  }
928
+ if (object.sign_in !== undefined && object.sign_in !== null) {
929
+ message.signIn = grant_1.SignInPayload.fromAmino(object.sign_in);
930
+ }
920
931
  return message;
921
932
  },
922
933
  toAmino(message) {
@@ -929,6 +940,7 @@ exports.MsgCreateGrant = {
929
940
  obj.recurring_pull = message.recurringPull ? grant_1.RecurringPullPayload.toAmino(message.recurringPull) : undefined;
930
941
  obj.spending_allowance = message.spendingAllowance ? grant_1.SpendingAllowancePayload.toAmino(message.spendingAllowance) : undefined;
931
942
  obj.scheduled_oneshot = message.scheduledOneshot ? grant_1.ScheduledOneshotPayload.toAmino(message.scheduledOneshot) : undefined;
943
+ obj.sign_in = message.signIn ? grant_1.SignInPayload.toAmino(message.signIn) : undefined;
932
944
  return obj;
933
945
  },
934
946
  fromAminoMsg(object) {
@@ -1113,7 +1125,9 @@ exports.MsgClaimRecurringPull = {
1113
1125
  function createBaseMsgClaimRecurringPullResponse() {
1114
1126
  return {
1115
1127
  claimNumber: BigInt(0),
1116
- nextClaimTime: BigInt(0)
1128
+ nextClaimTime: BigInt(0),
1129
+ paused: false,
1130
+ completed: false
1117
1131
  };
1118
1132
  }
1119
1133
  /**
@@ -1130,6 +1144,12 @@ exports.MsgClaimRecurringPullResponse = {
1130
1144
  if (message.nextClaimTime !== BigInt(0)) {
1131
1145
  writer.uint32(16).int64(message.nextClaimTime);
1132
1146
  }
1147
+ if (message.paused === true) {
1148
+ writer.uint32(24).bool(message.paused);
1149
+ }
1150
+ if (message.completed === true) {
1151
+ writer.uint32(32).bool(message.completed);
1152
+ }
1133
1153
  return writer;
1134
1154
  },
1135
1155
  decode(input, length) {
@@ -1145,6 +1165,12 @@ exports.MsgClaimRecurringPullResponse = {
1145
1165
  case 2:
1146
1166
  message.nextClaimTime = reader.int64();
1147
1167
  break;
1168
+ case 3:
1169
+ message.paused = reader.bool();
1170
+ break;
1171
+ case 4:
1172
+ message.completed = reader.bool();
1173
+ break;
1148
1174
  default:
1149
1175
  reader.skipType(tag & 7);
1150
1176
  break;
@@ -1156,6 +1182,8 @@ exports.MsgClaimRecurringPullResponse = {
1156
1182
  const message = createBaseMsgClaimRecurringPullResponse();
1157
1183
  message.claimNumber = object.claimNumber !== undefined && object.claimNumber !== null ? BigInt(object.claimNumber.toString()) : BigInt(0);
1158
1184
  message.nextClaimTime = object.nextClaimTime !== undefined && object.nextClaimTime !== null ? BigInt(object.nextClaimTime.toString()) : BigInt(0);
1185
+ message.paused = object.paused ?? false;
1186
+ message.completed = object.completed ?? false;
1159
1187
  return message;
1160
1188
  },
1161
1189
  fromAmino(object) {
@@ -1166,12 +1194,20 @@ exports.MsgClaimRecurringPullResponse = {
1166
1194
  if (object.next_claim_time !== undefined && object.next_claim_time !== null) {
1167
1195
  message.nextClaimTime = BigInt(object.next_claim_time);
1168
1196
  }
1197
+ if (object.paused !== undefined && object.paused !== null) {
1198
+ message.paused = object.paused;
1199
+ }
1200
+ if (object.completed !== undefined && object.completed !== null) {
1201
+ message.completed = object.completed;
1202
+ }
1169
1203
  return message;
1170
1204
  },
1171
1205
  toAmino(message) {
1172
1206
  const obj = {};
1173
1207
  obj.claim_number = message.claimNumber !== BigInt(0) ? message.claimNumber?.toString() : undefined;
1174
1208
  obj.next_claim_time = message.nextClaimTime !== BigInt(0) ? message.nextClaimTime?.toString() : undefined;
1209
+ obj.paused = message.paused === false ? undefined : message.paused;
1210
+ obj.completed = message.completed === false ? undefined : message.completed;
1175
1211
  return obj;
1176
1212
  },
1177
1213
  fromAminoMsg(object) {
@@ -1306,7 +1342,8 @@ exports.MsgPullAllowance = {
1306
1342
  function createBaseMsgPullAllowanceResponse() {
1307
1343
  return {
1308
1344
  transferred: coin_1.Coin.fromPartial({}),
1309
- spentInPeriod: coin_1.Coin.fromPartial({})
1345
+ spentInPeriod: coin_1.Coin.fromPartial({}),
1346
+ paused: false
1310
1347
  };
1311
1348
  }
1312
1349
  /**
@@ -1323,6 +1360,9 @@ exports.MsgPullAllowanceResponse = {
1323
1360
  if (message.spentInPeriod !== undefined) {
1324
1361
  coin_1.Coin.encode(message.spentInPeriod, writer.uint32(18).fork()).ldelim();
1325
1362
  }
1363
+ if (message.paused === true) {
1364
+ writer.uint32(24).bool(message.paused);
1365
+ }
1326
1366
  return writer;
1327
1367
  },
1328
1368
  decode(input, length) {
@@ -1338,6 +1378,9 @@ exports.MsgPullAllowanceResponse = {
1338
1378
  case 2:
1339
1379
  message.spentInPeriod = coin_1.Coin.decode(reader, reader.uint32());
1340
1380
  break;
1381
+ case 3:
1382
+ message.paused = reader.bool();
1383
+ break;
1341
1384
  default:
1342
1385
  reader.skipType(tag & 7);
1343
1386
  break;
@@ -1349,6 +1392,7 @@ exports.MsgPullAllowanceResponse = {
1349
1392
  const message = createBaseMsgPullAllowanceResponse();
1350
1393
  message.transferred = object.transferred !== undefined && object.transferred !== null ? coin_1.Coin.fromPartial(object.transferred) : undefined;
1351
1394
  message.spentInPeriod = object.spentInPeriod !== undefined && object.spentInPeriod !== null ? coin_1.Coin.fromPartial(object.spentInPeriod) : undefined;
1395
+ message.paused = object.paused ?? false;
1352
1396
  return message;
1353
1397
  },
1354
1398
  fromAmino(object) {
@@ -1359,12 +1403,16 @@ exports.MsgPullAllowanceResponse = {
1359
1403
  if (object.spent_in_period !== undefined && object.spent_in_period !== null) {
1360
1404
  message.spentInPeriod = coin_1.Coin.fromAmino(object.spent_in_period);
1361
1405
  }
1406
+ if (object.paused !== undefined && object.paused !== null) {
1407
+ message.paused = object.paused;
1408
+ }
1362
1409
  return message;
1363
1410
  },
1364
1411
  toAmino(message) {
1365
1412
  const obj = {};
1366
1413
  obj.transferred = message.transferred ? coin_1.Coin.toAmino(message.transferred) : undefined;
1367
1414
  obj.spent_in_period = message.spentInPeriod ? coin_1.Coin.toAmino(message.spentInPeriod) : undefined;
1415
+ obj.paused = message.paused === false ? undefined : message.paused;
1368
1416
  return obj;
1369
1417
  },
1370
1418
  fromAminoMsg(object) {
@@ -29,7 +29,7 @@ export interface Msg {
29
29
  /** ExecSession executes messages using a session key. */
30
30
  execSession(request: MsgExecSession): Promise<MsgExecSessionResponse>;
31
31
  /**
32
- * CreateGrant is the unified entrypoint that creates any of the four typed
32
+ * CreateGrant is the unified entrypoint that creates any of the typed
33
33
  * grants. Type is inferred from the payload oneof.
34
34
  */
35
35
  createGrant(request: MsgCreateGrant): Promise<MsgCreateGrantResponse>;
@@ -65,7 +65,7 @@ export interface Msg {
65
65
  revokeGrant(request: MsgRevokeGrant): Promise<MsgRevokeGrantResponse>;
66
66
  /**
67
67
  * DeclineGrant lets the grantee opt out of any active grant by id.
68
- * Applies uniformly across all four grant types. For ScheduledOneshot
68
+ * Applies uniformly across all grant types. For ScheduledOneshot
69
69
  * this is a pre-fire veto: the grant transitions to DECLINED, the
70
70
  * EndBlocker skips it, and the held deposit is refunded to the
71
71
  * granter. Decline is one-way — the granter must Revoke + CreateGrant
@@ -46,7 +46,7 @@ class MsgClientImpl {
46
46
  const promise = this.rpc.request("sparkdream.session.v1.Msg", "ExecSession", data);
47
47
  return promise.then(data => tx_1.MsgExecSessionResponse.decode(new binary_1.BinaryReader(data)));
48
48
  };
49
- /* CreateGrant is the unified entrypoint that creates any of the four typed
49
+ /* CreateGrant is the unified entrypoint that creates any of the typed
50
50
  grants. Type is inferred from the payload oneof. */
51
51
  createGrant = async (request) => {
52
52
  const data = tx_1.MsgCreateGrant.encode(request).finish();
@@ -92,7 +92,7 @@ class MsgClientImpl {
92
92
  return promise.then(data => tx_1.MsgRevokeGrantResponse.decode(new binary_1.BinaryReader(data)));
93
93
  };
94
94
  /* DeclineGrant lets the grantee opt out of any active grant by id.
95
- Applies uniformly across all four grant types. For ScheduledOneshot
95
+ Applies uniformly across all grant types. For ScheduledOneshot
96
96
  this is a pre-fire veto: the grant transitions to DECLINED, the
97
97
  EndBlocker skips it, and the held deposit is refunded to the
98
98
  granter. Decline is one-way — the granter must Revoke + CreateGrant
@@ -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) {