@sparkdreamnft/sparkdreamjs 0.0.16 → 0.0.18

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 (264) hide show
  1. package/cosmos/bundle.d.ts +160 -160
  2. package/cosmos/bundle.js +182 -182
  3. package/esm/cosmos/bundle.js +182 -182
  4. package/esm/ibc/bundle.js +106 -106
  5. package/esm/sparkdream/blog/v1/params.js +51 -50
  6. package/esm/sparkdream/blog/v1/tx.amino.js +53 -20
  7. package/esm/sparkdream/bundle.js +448 -346
  8. package/esm/sparkdream/client.js +7 -1
  9. package/esm/sparkdream/collect/v1/params.js +13 -1
  10. package/esm/sparkdream/collect/v1/tx.amino.js +138 -36
  11. package/esm/sparkdream/collect/v1/types.js +13 -1
  12. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  13. package/esm/sparkdream/commons/v1/query.js +317 -0
  14. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  15. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  16. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  17. package/esm/sparkdream/commons/v1/tx.amino.js +76 -6
  18. package/esm/sparkdream/commons/v1/tx.js +693 -0
  19. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  20. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  21. package/esm/sparkdream/ecosystem/v1/tx.amino.js +18 -4
  22. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  23. package/esm/sparkdream/federation/v1/params.js +29 -54
  24. package/esm/sparkdream/federation/v1/query.js +216 -71
  25. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  26. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  27. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  28. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  29. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  30. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  31. package/esm/sparkdream/federation/v1/types.js +355 -99
  32. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  33. package/esm/sparkdream/forum/v1/params.js +173 -148
  34. package/esm/sparkdream/forum/v1/tx.amino.js +69 -40
  35. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  36. package/esm/sparkdream/guardian/v1/query.js +128 -0
  37. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  38. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  39. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  40. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  41. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  42. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  43. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  44. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  45. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  46. package/esm/sparkdream/identity/v1/query.js +372 -0
  47. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  48. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  49. package/esm/sparkdream/lcd.js +15 -0
  50. package/esm/sparkdream/name/v1/params.js +19 -18
  51. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  52. package/esm/sparkdream/rep/v1/tag.js +6 -13
  53. package/esm/sparkdream/rep/v1/tx.amino.js +177 -58
  54. package/esm/sparkdream/reveal/v1/tx.amino.js +34 -13
  55. package/esm/sparkdream/rpc.query.js +9 -0
  56. package/esm/sparkdream/rpc.tx.js +6 -0
  57. package/esm/sparkdream/service/module/v1/module.js +71 -0
  58. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  59. package/esm/sparkdream/service/v1/genesis.js +240 -0
  60. package/esm/sparkdream/service/v1/operator.js +250 -0
  61. package/esm/sparkdream/service/v1/params.js +355 -0
  62. package/esm/sparkdream/service/v1/query.js +1582 -0
  63. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  64. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  65. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  66. package/esm/sparkdream/service/v1/report.js +212 -0
  67. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  68. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  69. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  70. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  71. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  72. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  73. package/esm/sparkdream/service/v1/tx.js +2124 -0
  74. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  75. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  76. package/esm/sparkdream/service/v1/types.js +353 -0
  77. package/esm/sparkdream/session/v1/genesis.js +136 -10
  78. package/esm/sparkdream/session/v1/grant.js +1020 -0
  79. package/esm/sparkdream/session/v1/params.js +543 -19
  80. package/esm/sparkdream/session/v1/query.js +487 -0
  81. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  82. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  83. package/esm/sparkdream/session/v1/session.js +6 -0
  84. package/esm/sparkdream/session/v1/tx.amino.js +17 -1
  85. package/esm/sparkdream/session/v1/tx.js +1066 -0
  86. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  87. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  88. package/esm/sparkdream/shield/v1/tx.amino.js +61 -8
  89. package/esm/tendermint/bundle.js +20 -20
  90. package/ibc/bundle.d.ts +90 -90
  91. package/ibc/bundle.js +106 -106
  92. package/package.json +1 -1
  93. package/sparkdream/blog/v1/params.d.ts +37 -28
  94. package/sparkdream/blog/v1/params.js +51 -50
  95. package/sparkdream/blog/v1/post.d.ts +2 -2
  96. package/sparkdream/blog/v1/tx.amino.d.ts +2 -2
  97. package/sparkdream/blog/v1/tx.amino.js +53 -20
  98. package/sparkdream/blog/v1/tx.d.ts +4 -4
  99. package/sparkdream/bundle.d.ts +14945 -12924
  100. package/sparkdream/bundle.js +448 -346
  101. package/sparkdream/client.d.ts +125 -50
  102. package/sparkdream/client.js +7 -1
  103. package/sparkdream/collect/v1/params.d.ts +16 -0
  104. package/sparkdream/collect/v1/params.js +13 -1
  105. package/sparkdream/collect/v1/tx.amino.d.ts +7 -7
  106. package/sparkdream/collect/v1/tx.amino.js +138 -36
  107. package/sparkdream/collect/v1/types.d.ts +2 -0
  108. package/sparkdream/collect/v1/types.js +13 -1
  109. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  110. package/sparkdream/commons/v1/genesis.js +29 -1
  111. package/sparkdream/commons/v1/query.d.ts +186 -0
  112. package/sparkdream/commons/v1/query.js +318 -1
  113. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  114. package/sparkdream/commons/v1/query.lcd.js +23 -0
  115. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  116. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  117. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  118. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  119. package/sparkdream/commons/v1/tx.amino.d.ts +11 -6
  120. package/sparkdream/commons/v1/tx.amino.js +75 -5
  121. package/sparkdream/commons/v1/tx.d.ts +472 -0
  122. package/sparkdream/commons/v1/tx.js +694 -1
  123. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  124. package/sparkdream/commons/v1/tx.registry.js +73 -1
  125. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  126. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  127. package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -1
  128. package/sparkdream/ecosystem/v1/tx.amino.js +19 -5
  129. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  130. package/sparkdream/federation/v1/genesis.js +9 -9
  131. package/sparkdream/federation/v1/params.d.ts +64 -13
  132. package/sparkdream/federation/v1/params.js +29 -54
  133. package/sparkdream/federation/v1/query.d.ts +209 -100
  134. package/sparkdream/federation/v1/query.js +216 -71
  135. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  136. package/sparkdream/federation/v1/query.lcd.js +11 -6
  137. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  138. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  139. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  140. package/sparkdream/federation/v1/tx.amino.js +20 -20
  141. package/sparkdream/federation/v1/tx.d.ts +479 -352
  142. package/sparkdream/federation/v1/tx.js +1147 -1106
  143. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  144. package/sparkdream/federation/v1/tx.registry.js +73 -73
  145. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  146. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  147. package/sparkdream/federation/v1/types.d.ts +307 -41
  148. package/sparkdream/federation/v1/types.js +360 -100
  149. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  150. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  151. package/sparkdream/forum/v1/params.d.ts +99 -62
  152. package/sparkdream/forum/v1/params.js +173 -148
  153. package/sparkdream/forum/v1/tx.amino.d.ts +2 -2
  154. package/sparkdream/forum/v1/tx.amino.js +69 -40
  155. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  156. package/sparkdream/guardian/module/v1/module.js +71 -0
  157. package/sparkdream/guardian/v1/query.d.ts +88 -0
  158. package/sparkdream/guardian/v1/query.js +131 -0
  159. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  160. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  161. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  162. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  163. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  164. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  165. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  166. package/sparkdream/guardian/v1/tx.js +181 -0
  167. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  168. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  169. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  170. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  171. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  172. package/sparkdream/identity/module/v1/module.js +74 -0
  173. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  174. package/sparkdream/identity/v1/chain_identity.js +202 -0
  175. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  176. package/sparkdream/identity/v1/genesis.js +87 -0
  177. package/sparkdream/identity/v1/query.d.ts +243 -0
  178. package/sparkdream/identity/v1/query.js +375 -0
  179. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  180. package/sparkdream/identity/v1/query.lcd.js +25 -0
  181. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  182. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  183. package/sparkdream/lcd.d.ts +9 -0
  184. package/sparkdream/lcd.js +15 -0
  185. package/sparkdream/name/v1/params.d.ts +25 -8
  186. package/sparkdream/name/v1/params.js +19 -18
  187. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  188. package/sparkdream/rep/v1/bonded_role.js +48 -2
  189. package/sparkdream/rep/v1/tag.d.ts +15 -2
  190. package/sparkdream/rep/v1/tag.js +6 -13
  191. package/sparkdream/rep/v1/tx.amino.d.ts +9 -9
  192. package/sparkdream/rep/v1/tx.amino.js +177 -58
  193. package/sparkdream/reveal/v1/tx.amino.d.ts +1 -1
  194. package/sparkdream/reveal/v1/tx.amino.js +34 -13
  195. package/sparkdream/rpc.query.d.ts +34 -2
  196. package/sparkdream/rpc.query.js +9 -0
  197. package/sparkdream/rpc.tx.d.ts +6 -0
  198. package/sparkdream/rpc.tx.js +6 -0
  199. package/sparkdream/service/module/v1/module.d.ts +54 -0
  200. package/sparkdream/service/module/v1/module.js +74 -0
  201. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  202. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  203. package/sparkdream/service/v1/genesis.d.ts +172 -0
  204. package/sparkdream/service/v1/genesis.js +243 -0
  205. package/sparkdream/service/v1/operator.d.ts +215 -0
  206. package/sparkdream/service/v1/operator.js +253 -0
  207. package/sparkdream/service/v1/params.d.ts +346 -0
  208. package/sparkdream/service/v1/params.js +358 -0
  209. package/sparkdream/service/v1/query.d.ts +964 -0
  210. package/sparkdream/service/v1/query.js +1585 -0
  211. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  212. package/sparkdream/service/v1/query.lcd.js +111 -0
  213. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  214. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  215. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  216. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  217. package/sparkdream/service/v1/report.d.ts +174 -0
  218. package/sparkdream/service/v1/report.js +215 -0
  219. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  220. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  221. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  222. package/sparkdream/service/v1/service_type_config.js +269 -0
  223. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  224. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  225. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  226. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  227. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  228. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  229. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  230. package/sparkdream/service/v1/tx.amino.js +72 -0
  231. package/sparkdream/service/v1/tx.d.ts +1264 -0
  232. package/sparkdream/service/v1/tx.js +2127 -0
  233. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  234. package/sparkdream/service/v1/tx.registry.js +253 -0
  235. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  236. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  237. package/sparkdream/service/v1/types.d.ts +94 -0
  238. package/sparkdream/service/v1/types.js +370 -0
  239. package/sparkdream/session/v1/genesis.d.ts +93 -9
  240. package/sparkdream/session/v1/genesis.js +137 -11
  241. package/sparkdream/session/v1/grant.d.ts +517 -0
  242. package/sparkdream/session/v1/grant.js +1027 -0
  243. package/sparkdream/session/v1/params.d.ts +338 -7
  244. package/sparkdream/session/v1/params.js +543 -19
  245. package/sparkdream/session/v1/query.d.ts +265 -0
  246. package/sparkdream/session/v1/query.js +488 -1
  247. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  248. package/sparkdream/session/v1/query.lcd.js +41 -3
  249. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  250. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  251. package/sparkdream/session/v1/session.d.ts +18 -0
  252. package/sparkdream/session/v1/session.js +6 -0
  253. package/sparkdream/session/v1/tx.amino.d.ts +1 -1
  254. package/sparkdream/session/v1/tx.amino.js +17 -1
  255. package/sparkdream/session/v1/tx.d.ts +660 -0
  256. package/sparkdream/session/v1/tx.js +1067 -1
  257. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  258. package/sparkdream/session/v1/tx.registry.js +109 -1
  259. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  260. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  261. package/sparkdream/shield/v1/tx.amino.d.ts +3 -3
  262. package/sparkdream/shield/v1/tx.amino.js +61 -8
  263. package/tendermint/bundle.d.ts +844 -844
  264. package/tendermint/bundle.js +20 -20
@@ -1,5 +1,4 @@
1
1
  import { Duration, DurationAmino } from "../../../google/protobuf/duration";
2
- import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
3
2
  import { BinaryReader, BinaryWriter } from "../../../binary";
4
3
  import { DeepPartial } from "../../../helpers";
5
4
  /**
@@ -32,14 +31,145 @@ export interface Params {
32
31
  */
33
32
  maxExpiration: Duration;
34
33
  /**
35
- * Maximum gas budget per session.
34
+ * Maximum gas budget per session, in bond-denom micro-units (the chain's
35
+ * bond denom is resolved at runtime via x/identity).
36
36
  */
37
- maxSpendLimit: Coin;
37
+ maxSpendLimitAmount: string;
38
38
  /**
39
39
  * Maximum exec_count per session. Must be > 0; sessions must declare
40
40
  * a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
41
41
  */
42
42
  maxExecCount: bigint;
43
+ /**
44
+ * --- RecurringPull (P3) ---
45
+ * Minimum period_seconds on a RECURRING_PULL grant. Default 86_400 (1 day);
46
+ * prevents abusive sub-second polling.
47
+ */
48
+ minRecurringPeriodSeconds: bigint;
49
+ /**
50
+ * Maximum (expires_at - start_time) on a RECURRING_PULL grant. Default
51
+ * 31_536_000 (1 year); long-lived recurring authorizations need explicit
52
+ * re-issuance.
53
+ */
54
+ maxRecurringDurationSeconds: bigint;
55
+ /**
56
+ * Maximum number of active RECURRING_PULL grants per granter. Default 50.
57
+ */
58
+ maxRecurringPullsPerGranter: number;
59
+ /**
60
+ * --- SpendingAllowance (P4) ---
61
+ * Minimum period_seconds on a SPENDING_ALLOWANCE grant. Default 3_600
62
+ * (1 hour); finer-grained than RecurringPull to support rolling burst
63
+ * budgets.
64
+ */
65
+ minAllowancePeriodSeconds: bigint;
66
+ /**
67
+ * Maximum number of active SPENDING_ALLOWANCE grants per granter.
68
+ * Default 20.
69
+ */
70
+ maxAllowancesPerGranter: number;
71
+ /**
72
+ * Maximum size of an allowed_recipients whitelist. Default 50. Prevents
73
+ * state-bloat attacks by capping the per-grant list length.
74
+ */
75
+ maxAllowanceRecipientList: number;
76
+ /**
77
+ * Minimum amount per MsgPullAllowance call, as sdk.Int (string). Default
78
+ * "1000" (1000 uspark / 0.001 SPARK). Closes the "1 utoken at a time to
79
+ * bloat events / drain state" griefing pattern.
80
+ */
81
+ minPullAmount: string;
82
+ /**
83
+ * --- ScheduledOneshot (P5) ---
84
+ * Minimum (fire_at - block_time) at creation. Default 60s; closes
85
+ * front-running edge cases.
86
+ */
87
+ minScheduleDelaySeconds: bigint;
88
+ /**
89
+ * Maximum (fire_at - block_time) at creation. Default 31_536_000 (1 year).
90
+ * Applies to fire_at only; max_grant_lifetime_seconds applies to expires_at.
91
+ */
92
+ maxScheduleHorizonSeconds: bigint;
93
+ /**
94
+ * Required buffer between fire_at and expires_at. Default 3600 (1h);
95
+ * makes the EndBlocker fire-vs-expire race impossible.
96
+ */
97
+ fireToExpiryBufferSeconds: bigint;
98
+ /**
99
+ * Maximum active (non-paused) ScheduledOneshot grants per granter. Default 100.
100
+ */
101
+ maxPendingOneshotsPerGranter: number;
102
+ /**
103
+ * Maximum paused (PAUSED_INSUFFICIENT_FUNDS) ScheduledOneshot grants per
104
+ * granter. Default 20. Separate from active cap so paused grants don't
105
+ * pin slots indefinitely.
106
+ */
107
+ maxPausedOneshotsPerGranter: number;
108
+ /**
109
+ * Auto-revoke a paused oneshot after this many seconds. Default 604_800
110
+ * (7 days). Deposit refunded on auto-revoke.
111
+ */
112
+ pausedOneshotTtlSeconds: bigint;
113
+ /**
114
+ * Minimum gas_limit allowed on OneshotExec. Default 30_000.
115
+ */
116
+ minOneshotExecGas: bigint;
117
+ /**
118
+ * Maximum gas_limit allowed on OneshotExec. Default 200_000.
119
+ */
120
+ maxOneshotExecGas: bigint;
121
+ /**
122
+ * Price per gas unit for OneshotExec deposit calculation, as sdk.Dec
123
+ * string. Default "0.0025" (100x typical min_gas_price). Floor must be
124
+ * >= chain's effective min_gas_price. Denominated in the chain's bond
125
+ * denom (resolved at runtime via x/identity).
126
+ */
127
+ oneshotGasPrice: string;
128
+ /**
129
+ * Flat per-slot fee on every Oneshot grant creation (both Transfer and
130
+ * Exec variants), in bond-denom micro-units. Default 1000 (0.001 SPARK).
131
+ * Closes the "free state slot" hole.
132
+ */
133
+ oneshotCreationFee: bigint;
134
+ /**
135
+ * Hard floor on total deposit, in bond-denom micro-units. Default 1000.
136
+ * Defeats `gas_limit=1` zero-deposit slot griefing.
137
+ */
138
+ minOneshotDeposit: bigint;
139
+ /**
140
+ * Per-EndBlocker pass cap on dispatches (fire, auto-revoke, expire each
141
+ * get their own cap). Default 100.
142
+ */
143
+ maxEndblockerDispatchesPerPass: number;
144
+ /**
145
+ * --- Cross-type (P3) ---
146
+ * Additional coins permitted as denom in RecurringPull / SpendingAllowance
147
+ * / Oneshot grants. Default empty — the chain's bond denom is ALWAYS
148
+ * allowed; this list adds additional permitted denoms (e.g. IBC vouchers).
149
+ * DREAM is permanently excluded at the handler level regardless of
150
+ * contents.
151
+ */
152
+ allowedDenoms: string[];
153
+ /**
154
+ * General cap on `expires_at - created_at` across all grant types. Default
155
+ * 31_536_000 (1 year).
156
+ */
157
+ maxGrantLifetimeSeconds: bigint;
158
+ /**
159
+ * --- Module-bypass (P8) ---
160
+ * Bech32 addresses of module accounts authorized to call
161
+ * `CreateGrantOnBehalfOf` (the signature-bypass keeper entrypoint).
162
+ * Default empty — no module may bypass signatures unless explicitly
163
+ * gov-allowlisted.
164
+ *
165
+ * The bypass exists to let trusted modules (e.g. x/commons for council
166
+ * recurring spends) create grants for module-account granters that
167
+ * can't sign a real tx. Each address listed here is a strict trust
168
+ * grant; the bypass skips signature + sequence verification, so a
169
+ * compromised or buggy allowlisted module could synthesize arbitrary
170
+ * grants. Add only after a security review.
171
+ */
172
+ authorizedGrantCreators: string[];
43
173
  }
44
174
  export interface ParamsProtoMsg {
45
175
  typeUrl: "/sparkdream.session.v1.Params";
@@ -75,14 +205,145 @@ export interface ParamsAmino {
75
205
  */
76
206
  max_expiration?: DurationAmino;
77
207
  /**
78
- * Maximum gas budget per session.
208
+ * Maximum gas budget per session, in bond-denom micro-units (the chain's
209
+ * bond denom is resolved at runtime via x/identity).
79
210
  */
80
- max_spend_limit: CoinAmino;
211
+ max_spend_limit_amount?: string;
81
212
  /**
82
213
  * Maximum exec_count per session. Must be > 0; sessions must declare
83
214
  * a finite cap (1 <= session.max_exec_count <= params.max_exec_count).
84
215
  */
85
216
  max_exec_count?: string;
217
+ /**
218
+ * --- RecurringPull (P3) ---
219
+ * Minimum period_seconds on a RECURRING_PULL grant. Default 86_400 (1 day);
220
+ * prevents abusive sub-second polling.
221
+ */
222
+ min_recurring_period_seconds?: string;
223
+ /**
224
+ * Maximum (expires_at - start_time) on a RECURRING_PULL grant. Default
225
+ * 31_536_000 (1 year); long-lived recurring authorizations need explicit
226
+ * re-issuance.
227
+ */
228
+ max_recurring_duration_seconds?: string;
229
+ /**
230
+ * Maximum number of active RECURRING_PULL grants per granter. Default 50.
231
+ */
232
+ max_recurring_pulls_per_granter?: number;
233
+ /**
234
+ * --- SpendingAllowance (P4) ---
235
+ * Minimum period_seconds on a SPENDING_ALLOWANCE grant. Default 3_600
236
+ * (1 hour); finer-grained than RecurringPull to support rolling burst
237
+ * budgets.
238
+ */
239
+ min_allowance_period_seconds?: string;
240
+ /**
241
+ * Maximum number of active SPENDING_ALLOWANCE grants per granter.
242
+ * Default 20.
243
+ */
244
+ max_allowances_per_granter?: number;
245
+ /**
246
+ * Maximum size of an allowed_recipients whitelist. Default 50. Prevents
247
+ * state-bloat attacks by capping the per-grant list length.
248
+ */
249
+ max_allowance_recipient_list?: number;
250
+ /**
251
+ * Minimum amount per MsgPullAllowance call, as sdk.Int (string). Default
252
+ * "1000" (1000 uspark / 0.001 SPARK). Closes the "1 utoken at a time to
253
+ * bloat events / drain state" griefing pattern.
254
+ */
255
+ min_pull_amount?: string;
256
+ /**
257
+ * --- ScheduledOneshot (P5) ---
258
+ * Minimum (fire_at - block_time) at creation. Default 60s; closes
259
+ * front-running edge cases.
260
+ */
261
+ min_schedule_delay_seconds?: string;
262
+ /**
263
+ * Maximum (fire_at - block_time) at creation. Default 31_536_000 (1 year).
264
+ * Applies to fire_at only; max_grant_lifetime_seconds applies to expires_at.
265
+ */
266
+ max_schedule_horizon_seconds?: string;
267
+ /**
268
+ * Required buffer between fire_at and expires_at. Default 3600 (1h);
269
+ * makes the EndBlocker fire-vs-expire race impossible.
270
+ */
271
+ fire_to_expiry_buffer_seconds?: string;
272
+ /**
273
+ * Maximum active (non-paused) ScheduledOneshot grants per granter. Default 100.
274
+ */
275
+ max_pending_oneshots_per_granter?: number;
276
+ /**
277
+ * Maximum paused (PAUSED_INSUFFICIENT_FUNDS) ScheduledOneshot grants per
278
+ * granter. Default 20. Separate from active cap so paused grants don't
279
+ * pin slots indefinitely.
280
+ */
281
+ max_paused_oneshots_per_granter?: number;
282
+ /**
283
+ * Auto-revoke a paused oneshot after this many seconds. Default 604_800
284
+ * (7 days). Deposit refunded on auto-revoke.
285
+ */
286
+ paused_oneshot_ttl_seconds?: string;
287
+ /**
288
+ * Minimum gas_limit allowed on OneshotExec. Default 30_000.
289
+ */
290
+ min_oneshot_exec_gas?: string;
291
+ /**
292
+ * Maximum gas_limit allowed on OneshotExec. Default 200_000.
293
+ */
294
+ max_oneshot_exec_gas?: string;
295
+ /**
296
+ * Price per gas unit for OneshotExec deposit calculation, as sdk.Dec
297
+ * string. Default "0.0025" (100x typical min_gas_price). Floor must be
298
+ * >= chain's effective min_gas_price. Denominated in the chain's bond
299
+ * denom (resolved at runtime via x/identity).
300
+ */
301
+ oneshot_gas_price?: string;
302
+ /**
303
+ * Flat per-slot fee on every Oneshot grant creation (both Transfer and
304
+ * Exec variants), in bond-denom micro-units. Default 1000 (0.001 SPARK).
305
+ * Closes the "free state slot" hole.
306
+ */
307
+ oneshot_creation_fee?: string;
308
+ /**
309
+ * Hard floor on total deposit, in bond-denom micro-units. Default 1000.
310
+ * Defeats `gas_limit=1` zero-deposit slot griefing.
311
+ */
312
+ min_oneshot_deposit?: string;
313
+ /**
314
+ * Per-EndBlocker pass cap on dispatches (fire, auto-revoke, expire each
315
+ * get their own cap). Default 100.
316
+ */
317
+ max_endblocker_dispatches_per_pass?: number;
318
+ /**
319
+ * --- Cross-type (P3) ---
320
+ * Additional coins permitted as denom in RecurringPull / SpendingAllowance
321
+ * / Oneshot grants. Default empty — the chain's bond denom is ALWAYS
322
+ * allowed; this list adds additional permitted denoms (e.g. IBC vouchers).
323
+ * DREAM is permanently excluded at the handler level regardless of
324
+ * contents.
325
+ */
326
+ allowed_denoms?: string[];
327
+ /**
328
+ * General cap on `expires_at - created_at` across all grant types. Default
329
+ * 31_536_000 (1 year).
330
+ */
331
+ max_grant_lifetime_seconds?: string;
332
+ /**
333
+ * --- Module-bypass (P8) ---
334
+ * Bech32 addresses of module accounts authorized to call
335
+ * `CreateGrantOnBehalfOf` (the signature-bypass keeper entrypoint).
336
+ * Default empty — no module may bypass signatures unless explicitly
337
+ * gov-allowlisted.
338
+ *
339
+ * The bypass exists to let trusted modules (e.g. x/commons for council
340
+ * recurring spends) create grants for module-account granters that
341
+ * can't sign a real tx. Each address listed here is a strict trust
342
+ * grant; the bypass skips signature + sequence verification, so a
343
+ * compromised or buggy allowlisted module could synthesize arbitrary
344
+ * grants. Add only after a security review.
345
+ */
346
+ authorized_grant_creators?: string[];
86
347
  }
87
348
  export interface ParamsAminoMsg {
88
349
  type: "sparkdream/x/session/Params";
@@ -105,8 +366,43 @@ export interface SessionOperationalParams {
105
366
  maxSessionsPerGranter: bigint;
106
367
  maxMsgTypesPerSession: bigint;
107
368
  maxExpiration: Duration;
108
- maxSpendLimit: Coin;
369
+ maxSpendLimitAmount: string;
109
370
  maxExecCount: bigint;
371
+ /**
372
+ * --- RecurringPull + cross-type (P3) ---
373
+ */
374
+ minRecurringPeriodSeconds: bigint;
375
+ maxRecurringDurationSeconds: bigint;
376
+ maxRecurringPullsPerGranter: number;
377
+ /**
378
+ * --- SpendingAllowance (P4) ---
379
+ */
380
+ minAllowancePeriodSeconds: bigint;
381
+ maxAllowancesPerGranter: number;
382
+ maxAllowanceRecipientList: number;
383
+ minPullAmount: string;
384
+ /**
385
+ * --- ScheduledOneshot (P5) ---
386
+ */
387
+ minScheduleDelaySeconds: bigint;
388
+ maxScheduleHorizonSeconds: bigint;
389
+ fireToExpiryBufferSeconds: bigint;
390
+ maxPendingOneshotsPerGranter: number;
391
+ maxPausedOneshotsPerGranter: number;
392
+ pausedOneshotTtlSeconds: bigint;
393
+ minOneshotExecGas: bigint;
394
+ maxOneshotExecGas: bigint;
395
+ oneshotGasPrice: string;
396
+ oneshotCreationFee: bigint;
397
+ minOneshotDeposit: bigint;
398
+ maxEndblockerDispatchesPerPass: number;
399
+ /**
400
+ * Note: allowed_denoms is add-only by ops (removing a denom strands existing
401
+ * grants and is gov-only via MsgUpdateParams). Including it here so ops can
402
+ * widen the set.
403
+ */
404
+ allowedDenoms: string[];
405
+ maxGrantLifetimeSeconds: bigint;
110
406
  }
111
407
  export interface SessionOperationalParamsProtoMsg {
112
408
  typeUrl: "/sparkdream.session.v1.SessionOperationalParams";
@@ -129,8 +425,43 @@ export interface SessionOperationalParamsAmino {
129
425
  max_sessions_per_granter?: string;
130
426
  max_msg_types_per_session?: string;
131
427
  max_expiration?: DurationAmino;
132
- max_spend_limit: CoinAmino;
428
+ max_spend_limit_amount?: string;
133
429
  max_exec_count?: string;
430
+ /**
431
+ * --- RecurringPull + cross-type (P3) ---
432
+ */
433
+ min_recurring_period_seconds?: string;
434
+ max_recurring_duration_seconds?: string;
435
+ max_recurring_pulls_per_granter?: number;
436
+ /**
437
+ * --- SpendingAllowance (P4) ---
438
+ */
439
+ min_allowance_period_seconds?: string;
440
+ max_allowances_per_granter?: number;
441
+ max_allowance_recipient_list?: number;
442
+ min_pull_amount?: string;
443
+ /**
444
+ * --- ScheduledOneshot (P5) ---
445
+ */
446
+ min_schedule_delay_seconds?: string;
447
+ max_schedule_horizon_seconds?: string;
448
+ fire_to_expiry_buffer_seconds?: string;
449
+ max_pending_oneshots_per_granter?: number;
450
+ max_paused_oneshots_per_granter?: number;
451
+ paused_oneshot_ttl_seconds?: string;
452
+ min_oneshot_exec_gas?: string;
453
+ max_oneshot_exec_gas?: string;
454
+ oneshot_gas_price?: string;
455
+ oneshot_creation_fee?: string;
456
+ min_oneshot_deposit?: string;
457
+ max_endblocker_dispatches_per_pass?: number;
458
+ /**
459
+ * Note: allowed_denoms is add-only by ops (removing a denom strands existing
460
+ * grants and is gov-only via MsgUpdateParams). Including it here so ops can
461
+ * widen the set.
462
+ */
463
+ allowed_denoms?: string[];
464
+ max_grant_lifetime_seconds?: string;
134
465
  }
135
466
  export interface SessionOperationalParamsAminoMsg {
136
467
  type: "sparkdream/x/session/SessionOperationalParams";