@sparkdreamnft/sparkdreamjs 0.0.17 → 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 (237) 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/bundle.js +448 -346
  7. package/esm/sparkdream/client.js +7 -1
  8. package/esm/sparkdream/collect/v1/params.js +13 -1
  9. package/esm/sparkdream/collect/v1/types.js +13 -1
  10. package/esm/sparkdream/commons/v1/genesis.js +29 -1
  11. package/esm/sparkdream/commons/v1/query.js +317 -0
  12. package/esm/sparkdream/commons/v1/query.lcd.js +23 -0
  13. package/esm/sparkdream/commons/v1/query.rpc.Query.js +20 -1
  14. package/esm/sparkdream/commons/v1/recurring_spend.js +296 -0
  15. package/esm/sparkdream/commons/v1/tx.js +693 -0
  16. package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
  17. package/esm/sparkdream/commons/v1/tx.rpc.msg.js +33 -1
  18. package/esm/sparkdream/federation/v1/genesis.js +10 -10
  19. package/esm/sparkdream/federation/v1/params.js +29 -54
  20. package/esm/sparkdream/federation/v1/query.js +216 -71
  21. package/esm/sparkdream/federation/v1/query.lcd.js +11 -6
  22. package/esm/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  23. package/esm/sparkdream/federation/v1/tx.amino.js +21 -21
  24. package/esm/sparkdream/federation/v1/tx.js +1146 -1105
  25. package/esm/sparkdream/federation/v1/tx.registry.js +74 -74
  26. package/esm/sparkdream/federation/v1/tx.rpc.msg.js +32 -26
  27. package/esm/sparkdream/federation/v1/types.js +355 -99
  28. package/esm/sparkdream/federation/v1/verifier_activity.js +13 -1
  29. package/esm/sparkdream/forum/v1/params.js +173 -148
  30. package/esm/sparkdream/guardian/module/v1/module.js +68 -0
  31. package/esm/sparkdream/guardian/v1/query.js +128 -0
  32. package/esm/sparkdream/guardian/v1/query.lcd.js +13 -0
  33. package/esm/sparkdream/guardian/v1/query.rpc.Query.js +26 -0
  34. package/esm/sparkdream/guardian/v1/tx.amino.js +9 -0
  35. package/esm/sparkdream/guardian/v1/tx.js +175 -0
  36. package/esm/sparkdream/guardian/v1/tx.registry.js +33 -0
  37. package/esm/sparkdream/guardian/v1/tx.rpc.msg.js +24 -0
  38. package/esm/sparkdream/identity/module/v1/module.js +71 -0
  39. package/esm/sparkdream/identity/v1/chain_identity.js +199 -0
  40. package/esm/sparkdream/identity/v1/genesis.js +84 -0
  41. package/esm/sparkdream/identity/v1/query.js +372 -0
  42. package/esm/sparkdream/identity/v1/query.lcd.js +21 -0
  43. package/esm/sparkdream/identity/v1/query.rpc.Query.js +42 -0
  44. package/esm/sparkdream/lcd.js +15 -0
  45. package/esm/sparkdream/name/v1/params.js +19 -18
  46. package/esm/sparkdream/rep/v1/bonded_role.js +48 -2
  47. package/esm/sparkdream/rep/v1/tag.js +6 -13
  48. package/esm/sparkdream/rpc.query.js +9 -0
  49. package/esm/sparkdream/rpc.tx.js +6 -0
  50. package/esm/sparkdream/service/module/v1/module.js +71 -0
  51. package/esm/sparkdream/service/v1/controller_transfer_case.js +155 -0
  52. package/esm/sparkdream/service/v1/genesis.js +240 -0
  53. package/esm/sparkdream/service/v1/operator.js +250 -0
  54. package/esm/sparkdream/service/v1/params.js +355 -0
  55. package/esm/sparkdream/service/v1/query.js +1582 -0
  56. package/esm/sparkdream/service/v1/query.lcd.js +107 -0
  57. package/esm/sparkdream/service/v1/query.rpc.Query.js +109 -0
  58. package/esm/sparkdream/service/v1/refile_cooldown.js +121 -0
  59. package/esm/sparkdream/service/v1/report.js +212 -0
  60. package/esm/sparkdream/service/v1/reporter_rate_limit.js +137 -0
  61. package/esm/sparkdream/service/v1/service_type_config.js +264 -0
  62. package/esm/sparkdream/service/v1/system_report_rate_limit.js +115 -0
  63. package/esm/sparkdream/service/v1/tier1_escrow_entry.js +145 -0
  64. package/esm/sparkdream/service/v1/tier1_last_slash.js +121 -0
  65. package/esm/sparkdream/service/v1/tx.amino.js +69 -0
  66. package/esm/sparkdream/service/v1/tx.js +2124 -0
  67. package/esm/sparkdream/service/v1/tx.registry.js +249 -0
  68. package/esm/sparkdream/service/v1/tx.rpc.msg.js +100 -0
  69. package/esm/sparkdream/service/v1/types.js +353 -0
  70. package/esm/sparkdream/session/v1/genesis.js +136 -10
  71. package/esm/sparkdream/session/v1/grant.js +1020 -0
  72. package/esm/sparkdream/session/v1/params.js +543 -19
  73. package/esm/sparkdream/session/v1/query.js +487 -0
  74. package/esm/sparkdream/session/v1/query.lcd.js +41 -3
  75. package/esm/sparkdream/session/v1/query.rpc.Query.js +36 -4
  76. package/esm/sparkdream/session/v1/session.js +6 -0
  77. package/esm/sparkdream/session/v1/tx.js +1066 -0
  78. package/esm/sparkdream/session/v1/tx.registry.js +110 -2
  79. package/esm/sparkdream/session/v1/tx.rpc.msg.js +65 -3
  80. package/esm/tendermint/bundle.js +20 -20
  81. package/ibc/bundle.d.ts +90 -90
  82. package/ibc/bundle.js +106 -106
  83. package/package.json +1 -1
  84. package/sparkdream/blog/v1/params.d.ts +37 -28
  85. package/sparkdream/blog/v1/params.js +51 -50
  86. package/sparkdream/blog/v1/post.d.ts +2 -2
  87. package/sparkdream/blog/v1/tx.d.ts +4 -4
  88. package/sparkdream/bundle.d.ts +14912 -12896
  89. package/sparkdream/bundle.js +448 -346
  90. package/sparkdream/client.d.ts +90 -20
  91. package/sparkdream/client.js +7 -1
  92. package/sparkdream/collect/v1/params.d.ts +16 -0
  93. package/sparkdream/collect/v1/params.js +13 -1
  94. package/sparkdream/collect/v1/types.d.ts +2 -0
  95. package/sparkdream/collect/v1/types.js +13 -1
  96. package/sparkdream/commons/v1/genesis.d.ts +17 -0
  97. package/sparkdream/commons/v1/genesis.js +29 -1
  98. package/sparkdream/commons/v1/query.d.ts +186 -0
  99. package/sparkdream/commons/v1/query.js +318 -1
  100. package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
  101. package/sparkdream/commons/v1/query.lcd.js +23 -0
  102. package/sparkdream/commons/v1/query.rpc.Query.d.ts +12 -1
  103. package/sparkdream/commons/v1/query.rpc.Query.js +19 -0
  104. package/sparkdream/commons/v1/recurring_spend.d.ts +234 -0
  105. package/sparkdream/commons/v1/recurring_spend.js +301 -0
  106. package/sparkdream/commons/v1/tx.d.ts +472 -0
  107. package/sparkdream/commons/v1/tx.js +694 -1
  108. package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
  109. package/sparkdream/commons/v1/tx.registry.js +73 -1
  110. package/sparkdream/commons/v1/tx.rpc.msg.d.ts +29 -1
  111. package/sparkdream/commons/v1/tx.rpc.msg.js +32 -0
  112. package/sparkdream/federation/v1/genesis.d.ts +3 -3
  113. package/sparkdream/federation/v1/genesis.js +9 -9
  114. package/sparkdream/federation/v1/params.d.ts +64 -13
  115. package/sparkdream/federation/v1/params.js +29 -54
  116. package/sparkdream/federation/v1/query.d.ts +209 -100
  117. package/sparkdream/federation/v1/query.js +216 -71
  118. package/sparkdream/federation/v1/query.lcd.d.ts +4 -3
  119. package/sparkdream/federation/v1/query.lcd.js +11 -6
  120. package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
  121. package/sparkdream/federation/v1/query.rpc.Query.js +24 -15
  122. package/sparkdream/federation/v1/tx.amino.d.ts +21 -21
  123. package/sparkdream/federation/v1/tx.amino.js +20 -20
  124. package/sparkdream/federation/v1/tx.d.ts +479 -352
  125. package/sparkdream/federation/v1/tx.js +1147 -1106
  126. package/sparkdream/federation/v1/tx.registry.d.ts +49 -49
  127. package/sparkdream/federation/v1/tx.registry.js +73 -73
  128. package/sparkdream/federation/v1/tx.rpc.msg.d.ts +18 -9
  129. package/sparkdream/federation/v1/tx.rpc.msg.js +31 -25
  130. package/sparkdream/federation/v1/types.d.ts +307 -41
  131. package/sparkdream/federation/v1/types.js +360 -100
  132. package/sparkdream/federation/v1/verifier_activity.d.ts +18 -0
  133. package/sparkdream/federation/v1/verifier_activity.js +13 -1
  134. package/sparkdream/forum/v1/params.d.ts +99 -62
  135. package/sparkdream/forum/v1/params.js +173 -148
  136. package/sparkdream/guardian/module/v1/module.d.ts +74 -0
  137. package/sparkdream/guardian/module/v1/module.js +71 -0
  138. package/sparkdream/guardian/v1/query.d.ts +88 -0
  139. package/sparkdream/guardian/v1/query.js +131 -0
  140. package/sparkdream/guardian/v1/query.lcd.d.ts +9 -0
  141. package/sparkdream/guardian/v1/query.lcd.js +17 -0
  142. package/sparkdream/guardian/v1/query.rpc.Query.d.ts +20 -0
  143. package/sparkdream/guardian/v1/query.rpc.Query.js +31 -0
  144. package/sparkdream/guardian/v1/tx.amino.d.ts +8 -0
  145. package/sparkdream/guardian/v1/tx.amino.js +12 -0
  146. package/sparkdream/guardian/v1/tx.d.ts +138 -0
  147. package/sparkdream/guardian/v1/tx.js +181 -0
  148. package/sparkdream/guardian/v1/tx.registry.d.ts +25 -0
  149. package/sparkdream/guardian/v1/tx.registry.js +37 -0
  150. package/sparkdream/guardian/v1/tx.rpc.msg.d.ts +22 -0
  151. package/sparkdream/guardian/v1/tx.rpc.msg.js +29 -0
  152. package/sparkdream/identity/module/v1/module.d.ts +54 -0
  153. package/sparkdream/identity/module/v1/module.js +74 -0
  154. package/sparkdream/identity/v1/chain_identity.d.ts +131 -0
  155. package/sparkdream/identity/v1/chain_identity.js +202 -0
  156. package/sparkdream/identity/v1/genesis.d.ts +65 -0
  157. package/sparkdream/identity/v1/genesis.js +87 -0
  158. package/sparkdream/identity/v1/query.d.ts +243 -0
  159. package/sparkdream/identity/v1/query.js +375 -0
  160. package/sparkdream/identity/v1/query.lcd.d.ts +11 -0
  161. package/sparkdream/identity/v1/query.lcd.js +25 -0
  162. package/sparkdream/identity/v1/query.rpc.Query.d.ts +26 -0
  163. package/sparkdream/identity/v1/query.rpc.Query.js +47 -0
  164. package/sparkdream/lcd.d.ts +9 -0
  165. package/sparkdream/lcd.js +15 -0
  166. package/sparkdream/name/v1/params.d.ts +25 -8
  167. package/sparkdream/name/v1/params.js +19 -18
  168. package/sparkdream/rep/v1/bonded_role.d.ts +51 -0
  169. package/sparkdream/rep/v1/bonded_role.js +48 -2
  170. package/sparkdream/rep/v1/tag.d.ts +15 -2
  171. package/sparkdream/rep/v1/tag.js +6 -13
  172. package/sparkdream/rpc.query.d.ts +34 -2
  173. package/sparkdream/rpc.query.js +9 -0
  174. package/sparkdream/rpc.tx.d.ts +6 -0
  175. package/sparkdream/rpc.tx.js +6 -0
  176. package/sparkdream/service/module/v1/module.d.ts +54 -0
  177. package/sparkdream/service/module/v1/module.js +74 -0
  178. package/sparkdream/service/v1/controller_transfer_case.d.ts +125 -0
  179. package/sparkdream/service/v1/controller_transfer_case.js +158 -0
  180. package/sparkdream/service/v1/genesis.d.ts +172 -0
  181. package/sparkdream/service/v1/genesis.js +243 -0
  182. package/sparkdream/service/v1/operator.d.ts +215 -0
  183. package/sparkdream/service/v1/operator.js +253 -0
  184. package/sparkdream/service/v1/params.d.ts +346 -0
  185. package/sparkdream/service/v1/params.js +358 -0
  186. package/sparkdream/service/v1/query.d.ts +964 -0
  187. package/sparkdream/service/v1/query.js +1585 -0
  188. package/sparkdream/service/v1/query.lcd.d.ts +18 -0
  189. package/sparkdream/service/v1/query.lcd.js +111 -0
  190. package/sparkdream/service/v1/query.rpc.Query.d.ts +63 -0
  191. package/sparkdream/service/v1/query.rpc.Query.js +114 -0
  192. package/sparkdream/service/v1/refile_cooldown.d.ts +105 -0
  193. package/sparkdream/service/v1/refile_cooldown.js +124 -0
  194. package/sparkdream/service/v1/report.d.ts +174 -0
  195. package/sparkdream/service/v1/report.js +215 -0
  196. package/sparkdream/service/v1/reporter_rate_limit.d.ts +112 -0
  197. package/sparkdream/service/v1/reporter_rate_limit.js +140 -0
  198. package/sparkdream/service/v1/service_type_config.d.ts +222 -0
  199. package/sparkdream/service/v1/service_type_config.js +269 -0
  200. package/sparkdream/service/v1/system_report_rate_limit.d.ts +106 -0
  201. package/sparkdream/service/v1/system_report_rate_limit.js +118 -0
  202. package/sparkdream/service/v1/tier1_escrow_entry.d.ts +125 -0
  203. package/sparkdream/service/v1/tier1_escrow_entry.js +148 -0
  204. package/sparkdream/service/v1/tier1_last_slash.d.ts +101 -0
  205. package/sparkdream/service/v1/tier1_last_slash.js +124 -0
  206. package/sparkdream/service/v1/tx.amino.d.ts +68 -0
  207. package/sparkdream/service/v1/tx.amino.js +72 -0
  208. package/sparkdream/service/v1/tx.d.ts +1264 -0
  209. package/sparkdream/service/v1/tx.js +2127 -0
  210. package/sparkdream/service/v1/tx.registry.d.ts +169 -0
  211. package/sparkdream/service/v1/tx.registry.js +253 -0
  212. package/sparkdream/service/v1/tx.rpc.msg.d.ts +80 -0
  213. package/sparkdream/service/v1/tx.rpc.msg.js +105 -0
  214. package/sparkdream/service/v1/types.d.ts +94 -0
  215. package/sparkdream/service/v1/types.js +370 -0
  216. package/sparkdream/session/v1/genesis.d.ts +93 -9
  217. package/sparkdream/session/v1/genesis.js +137 -11
  218. package/sparkdream/session/v1/grant.d.ts +517 -0
  219. package/sparkdream/session/v1/grant.js +1027 -0
  220. package/sparkdream/session/v1/params.d.ts +338 -7
  221. package/sparkdream/session/v1/params.js +543 -19
  222. package/sparkdream/session/v1/query.d.ts +265 -0
  223. package/sparkdream/session/v1/query.js +488 -1
  224. package/sparkdream/session/v1/query.lcd.d.ts +4 -1
  225. package/sparkdream/session/v1/query.lcd.js +41 -3
  226. package/sparkdream/session/v1/query.rpc.Query.d.ts +27 -4
  227. package/sparkdream/session/v1/query.rpc.Query.js +35 -3
  228. package/sparkdream/session/v1/session.d.ts +18 -0
  229. package/sparkdream/session/v1/session.js +6 -0
  230. package/sparkdream/session/v1/tx.d.ts +660 -0
  231. package/sparkdream/session/v1/tx.js +1067 -1
  232. package/sparkdream/session/v1/tx.registry.d.ts +73 -1
  233. package/sparkdream/session/v1/tx.registry.js +109 -1
  234. package/sparkdream/session/v1/tx.rpc.msg.d.ts +63 -3
  235. package/sparkdream/session/v1/tx.rpc.msg.js +64 -2
  236. package/tendermint/bundle.d.ts +844 -844
  237. package/tendermint/bundle.js +20 -20
@@ -1,4 +1,4 @@
1
- import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
1
+ import { ChainIdentity, ChainIdentityAmino } from "../../identity/v1/chain_identity";
2
2
  import { BinaryReader, BinaryWriter } from "../../../binary";
3
3
  import { DeepPartial } from "../../../helpers";
4
4
  export declare enum PeerType {
@@ -6,6 +6,23 @@ export declare enum PeerType {
6
6
  PEER_TYPE_SPARK_DREAM = 1,
7
7
  PEER_TYPE_ACTIVITYPUB = 2,
8
8
  PEER_TYPE_ATPROTO = 3,
9
+ /**
10
+ * PEER_TYPE_NOSTR - NOSTR peers are modeled per-relay (one Peer = one relay endpoint).
11
+ * Uses an off-chain bridge daemon, same accountability model as
12
+ * ActivityPub/AT Protocol. NOSTR identity (pubkey) is global, so the
13
+ * same remote_identity may be linked across multiple NOSTR-relay peers.
14
+ */
15
+ PEER_TYPE_NOSTR = 4,
16
+ /**
17
+ * PEER_TYPE_LENS - Lens peers represent a Lens Chain deployment (zkSync L2 + Avail DA).
18
+ * Identity is on-chain (wallet address + tokenized handle NFT); the
19
+ * off-chain bridge daemon is expected to query Lens Chain RPC to
20
+ * verify NFT ownership before attesting, raising the bar relative to
21
+ * pure HTTP-signature attestation used for ActivityPub. Future work
22
+ * (deferred): MsgLinkIdentityViaStateProof for fully on-chain
23
+ * verification via EVM state proofs.
24
+ */
25
+ PEER_TYPE_LENS = 5,
9
26
  UNRECOGNIZED = -1
10
27
  }
11
28
  export declare const PeerTypeAmino: typeof PeerType;
@@ -66,6 +83,37 @@ export declare enum VerificationOutcome {
66
83
  export declare const VerificationOutcomeAmino: typeof VerificationOutcome;
67
84
  export declare function verificationOutcomeFromJSON(object: any): VerificationOutcome;
68
85
  export declare function verificationOutcomeToJSON(object: VerificationOutcome): string;
86
+ /**
87
+ * PendingVerifierVerdict captures an arbiter-quorum auto-verdict that
88
+ * hasn't yet been applied (escalation window still open). Drives the
89
+ * fee-disbursement and slash logic in EndBlocker phase
90
+ * finalizeAutoResolutions.
91
+ */
92
+ export declare enum PendingVerifierVerdict {
93
+ PENDING_VERIFIER_VERDICT_UNSPECIFIED = 0,
94
+ PENDING_VERIFIER_VERDICT_VERIFIER_RIGHT = 1,
95
+ PENDING_VERIFIER_VERDICT_VERIFIER_WRONG = 2,
96
+ UNRECOGNIZED = -1
97
+ }
98
+ export declare const PendingVerifierVerdictAmino: typeof PendingVerifierVerdict;
99
+ export declare function pendingVerifierVerdictFromJSON(object: any): PendingVerifierVerdict;
100
+ export declare function pendingVerifierVerdictToJSON(object: PendingVerifierVerdict): string;
101
+ /**
102
+ * JuryVerdict is the Phase 2 (human jury) outcome for an escalated
103
+ * challenge. Submitted via MsgResolveEscalatedChallenge or stamped
104
+ * automatically on jury deadline expiry (TIMEOUT). Drives the final
105
+ * fee disbursement, content status, and verifier-side accounting.
106
+ */
107
+ export declare enum JuryVerdict {
108
+ JURY_VERDICT_UNSPECIFIED = 0,
109
+ JURY_VERDICT_CHALLENGE_UPHELD = 1,
110
+ JURY_VERDICT_CHALLENGE_REJECTED = 2,
111
+ JURY_VERDICT_CHALLENGE_TIMEOUT = 3,
112
+ UNRECOGNIZED = -1
113
+ }
114
+ export declare const JuryVerdictAmino: typeof JuryVerdict;
115
+ export declare function juryVerdictFromJSON(object: any): JuryVerdict;
116
+ export declare function juryVerdictToJSON(object: JuryVerdict): string;
69
117
  /**
70
118
  * Peer represents a federation peer (another Spark Dream chain or external protocol).
71
119
  * @name Peer
@@ -83,6 +131,25 @@ export interface Peer {
83
131
  registeredBy: string;
84
132
  metadata: string;
85
133
  removedAt: bigint;
134
+ /**
135
+ * controller_group is the x/commons Group policy address that resolves
136
+ * tier-1 reports against this peer's bridge operators (federation→
137
+ * service migration, Decision 2). If empty, federation resolves it to
138
+ * the Operations Committee policy address at MsgRegisterBridge time.
139
+ * The resolved address is captured on the resulting service.Operator;
140
+ * changing it later (MsgUpdatePeerController) affects only new
141
+ * registrations, not existing bridges.
142
+ */
143
+ controllerGroup: string;
144
+ /**
145
+ * peer_identity carries the chain identity (denoms, display symbols,
146
+ * chain human name) supplied at peer registration. Used for IBC voucher
147
+ * metadata pre-registration (see spec §9.2 and x-identity-spec.md) so
148
+ * wallets render PSPK.ibc instead of ibc/<hash>. Optional for backwards
149
+ * compatibility with pre-extension peers; populated for PEER_TYPE_SPARK_DREAM
150
+ * peers registered via MsgRegisterPeer with --peer-identity.
151
+ */
152
+ peerIdentity?: ChainIdentity;
86
153
  }
87
154
  export interface PeerProtoMsg {
88
155
  typeUrl: "/sparkdream.federation.v1.Peer";
@@ -105,6 +172,25 @@ export interface PeerAmino {
105
172
  registered_by?: string;
106
173
  metadata?: string;
107
174
  removed_at?: string;
175
+ /**
176
+ * controller_group is the x/commons Group policy address that resolves
177
+ * tier-1 reports against this peer's bridge operators (federation→
178
+ * service migration, Decision 2). If empty, federation resolves it to
179
+ * the Operations Committee policy address at MsgRegisterBridge time.
180
+ * The resolved address is captured on the resulting service.Operator;
181
+ * changing it later (MsgUpdatePeerController) affects only new
182
+ * registrations, not existing bridges.
183
+ */
184
+ controller_group?: string;
185
+ /**
186
+ * peer_identity carries the chain identity (denoms, display symbols,
187
+ * chain human name) supplied at peer registration. Used for IBC voucher
188
+ * metadata pre-registration (see spec §9.2 and x-identity-spec.md) so
189
+ * wallets render PSPK.ibc instead of ibc/<hash>. Optional for backwards
190
+ * compatibility with pre-extension peers; populated for PEER_TYPE_SPARK_DREAM
191
+ * peers registered via MsgRegisterPeer with --peer-identity.
192
+ */
193
+ peer_identity?: ChainIdentityAmino;
108
194
  }
109
195
  export interface PeerAminoMsg {
110
196
  type: "/sparkdream.federation.v1.Peer";
@@ -175,58 +261,82 @@ export interface PeerPolicyAminoMsg {
175
261
  value: PeerPolicyAmino;
176
262
  }
177
263
  /**
178
- * BridgeOperator represents an off-chain bridge operator.
179
- * @name BridgeOperator
264
+ * BridgeBinding represents the federation-owned binding between a bridge
265
+ * operator and a peer. Economic state (bond, status, unbonding, slashing
266
+ * history) lives on the corresponding x/service Operator record keyed
267
+ * by (address, service_type). This binding holds only federation-
268
+ * specific data: which peer + protocol + endpoint URL + content stats
269
+ * + suspended flag (toggled by underfunded/refunded hooks).
270
+ *
271
+ * Per Decision 1a of the federation→service migration, one operator
272
+ * address may hold multiple bindings under the same protocol (one per
273
+ * peer) backed by a single shared service.Operator and a single shared
274
+ * bond. Suspending a binding refuses new content submissions but does
275
+ * not delete it.
276
+ * @name BridgeBinding
180
277
  * @package sparkdream.federation.v1
181
- * @see proto type: sparkdream.federation.v1.BridgeOperator
278
+ * @see proto type: sparkdream.federation.v1.BridgeBinding
182
279
  */
183
- export interface BridgeOperator {
280
+ export interface BridgeBinding {
184
281
  address: string;
185
282
  peerId: string;
186
283
  protocol: string;
187
284
  endpoint: string;
188
- stake: Coin;
189
285
  registeredAt: bigint;
190
- status: BridgeStatus;
191
286
  contentSubmitted: bigint;
192
- contentRejected: bigint;
193
- slashCount: bigint;
194
- revokedAt: bigint;
195
- lastSubmissionAt: bigint;
196
- unbondingEndTime: bigint;
197
287
  contentVerified: bigint;
288
+ contentRejected: bigint;
198
289
  contentUnverified: bigint;
290
+ lastSubmissionAt: bigint;
291
+ /**
292
+ * suspended is set to true by AfterOperatorUnderfunded and cleared
293
+ * by AfterOperatorReFunded. Federation rejects new content
294
+ * submissions from suspended bindings.
295
+ */
296
+ suspended: boolean;
199
297
  }
200
- export interface BridgeOperatorProtoMsg {
201
- typeUrl: "/sparkdream.federation.v1.BridgeOperator";
298
+ export interface BridgeBindingProtoMsg {
299
+ typeUrl: "/sparkdream.federation.v1.BridgeBinding";
202
300
  value: Uint8Array;
203
301
  }
204
302
  /**
205
- * BridgeOperator represents an off-chain bridge operator.
206
- * @name BridgeOperatorAmino
303
+ * BridgeBinding represents the federation-owned binding between a bridge
304
+ * operator and a peer. Economic state (bond, status, unbonding, slashing
305
+ * history) lives on the corresponding x/service Operator record keyed
306
+ * by (address, service_type). This binding holds only federation-
307
+ * specific data: which peer + protocol + endpoint URL + content stats
308
+ * + suspended flag (toggled by underfunded/refunded hooks).
309
+ *
310
+ * Per Decision 1a of the federation→service migration, one operator
311
+ * address may hold multiple bindings under the same protocol (one per
312
+ * peer) backed by a single shared service.Operator and a single shared
313
+ * bond. Suspending a binding refuses new content submissions but does
314
+ * not delete it.
315
+ * @name BridgeBindingAmino
207
316
  * @package sparkdream.federation.v1
208
- * @see proto type: sparkdream.federation.v1.BridgeOperator
317
+ * @see proto type: sparkdream.federation.v1.BridgeBinding
209
318
  */
210
- export interface BridgeOperatorAmino {
319
+ export interface BridgeBindingAmino {
211
320
  address?: string;
212
321
  peer_id?: string;
213
322
  protocol?: string;
214
323
  endpoint?: string;
215
- stake?: CoinAmino;
216
324
  registered_at?: string;
217
- status?: BridgeStatus;
218
325
  content_submitted?: string;
219
- content_rejected?: string;
220
- slash_count?: string;
221
- revoked_at?: string;
222
- last_submission_at?: string;
223
- unbonding_end_time?: string;
224
326
  content_verified?: string;
327
+ content_rejected?: string;
225
328
  content_unverified?: string;
329
+ last_submission_at?: string;
330
+ /**
331
+ * suspended is set to true by AfterOperatorUnderfunded and cleared
332
+ * by AfterOperatorReFunded. Federation rejects new content
333
+ * submissions from suspended bindings.
334
+ */
335
+ suspended?: boolean;
226
336
  }
227
- export interface BridgeOperatorAminoMsg {
228
- type: "/sparkdream.federation.v1.BridgeOperator";
229
- value: BridgeOperatorAmino;
337
+ export interface BridgeBindingAminoMsg {
338
+ type: "/sparkdream.federation.v1.BridgeBinding";
339
+ value: BridgeBindingAmino;
230
340
  }
231
341
  /**
232
342
  * VerificationRecord tracks a verifier's verification of specific content.
@@ -246,6 +356,23 @@ export interface VerificationRecord {
246
356
  priorRejectedChallenges: number;
247
357
  lastChallengeResolvedAt: bigint;
248
358
  challenger: string;
359
+ /**
360
+ * escrowed_challenge_fee is the per-challenge SPARK amount the
361
+ * challenger escrowed at MsgChallengeVerification time. Snapshotted
362
+ * because the effective fee escalates with prior_rejected_challenges
363
+ * (2^N multiplier) — recomputing at resolution time would be fragile.
364
+ * Used by the auto-resolve path to refund (UPHELD) or split
365
+ * (REJECTED) the escrow.
366
+ */
367
+ escrowedChallengeFee: string;
368
+ /**
369
+ * pending_verifier_verdict snapshots the would-be auto-verdict from
370
+ * the arbiter-quorum branch (UNSPECIFIED until quorum lands, then
371
+ * VERIFIER_RIGHT or VERIFIER_WRONG). The verdict is applied by the
372
+ * EndBlocker when the escalation window expires; MsgEscalateChallenge
373
+ * clears it back to UNSPECIFIED, deferring resolution to the jury path.
374
+ */
375
+ pendingVerifierVerdict: PendingVerifierVerdict;
249
376
  }
250
377
  export interface VerificationRecordProtoMsg {
251
378
  typeUrl: "/sparkdream.federation.v1.VerificationRecord";
@@ -269,11 +396,114 @@ export interface VerificationRecordAmino {
269
396
  prior_rejected_challenges?: number;
270
397
  last_challenge_resolved_at?: string;
271
398
  challenger?: string;
399
+ /**
400
+ * escrowed_challenge_fee is the per-challenge SPARK amount the
401
+ * challenger escrowed at MsgChallengeVerification time. Snapshotted
402
+ * because the effective fee escalates with prior_rejected_challenges
403
+ * (2^N multiplier) — recomputing at resolution time would be fragile.
404
+ * Used by the auto-resolve path to refund (UPHELD) or split
405
+ * (REJECTED) the escrow.
406
+ */
407
+ escrowed_challenge_fee?: string;
408
+ /**
409
+ * pending_verifier_verdict snapshots the would-be auto-verdict from
410
+ * the arbiter-quorum branch (UNSPECIFIED until quorum lands, then
411
+ * VERIFIER_RIGHT or VERIFIER_WRONG). The verdict is applied by the
412
+ * EndBlocker when the escalation window expires; MsgEscalateChallenge
413
+ * clears it back to UNSPECIFIED, deferring resolution to the jury path.
414
+ */
415
+ pending_verifier_verdict?: PendingVerifierVerdict;
272
416
  }
273
417
  export interface VerificationRecordAminoMsg {
274
418
  type: "/sparkdream.federation.v1.VerificationRecord";
275
419
  value: VerificationRecordAmino;
276
420
  }
421
+ /**
422
+ * EscalatedChallenge tracks the Phase 2 (human jury) lifecycle for a
423
+ * challenge whose Phase 1 auto-verdict was contested via
424
+ * MsgEscalateChallenge. Operations Committee submits the jury verdict
425
+ * via MsgResolveEscalatedChallenge; the EndBlocker stamps TIMEOUT on
426
+ * jury_deadline expiry. Both paths feed the same applyJuryVerdict
427
+ * helper which disposes of the escrowed challenge_fee + escalation_fee
428
+ * and (on UPHELD/REJECTED) applies the same verifier-side accounting
429
+ * as the auto-resolution path.
430
+ * @name EscalatedChallenge
431
+ * @package sparkdream.federation.v1
432
+ * @see proto type: sparkdream.federation.v1.EscalatedChallenge
433
+ */
434
+ export interface EscalatedChallenge {
435
+ contentId: bigint;
436
+ /**
437
+ * escalator is the address that paid the escalation_fee (challenger
438
+ * or verifier — either party can escalate within the window).
439
+ */
440
+ escalator: string;
441
+ /**
442
+ * escrowed_escalation_fee snapshots the SPARK amount escrowed at
443
+ * escalation time. Refunded to the escalator if the jury verdict
444
+ * overturns the auto-verdict; burned otherwise.
445
+ */
446
+ escrowedEscalationFee: string;
447
+ /**
448
+ * auto_verdict_before_escalation snapshots the Phase 1 verdict that
449
+ * was about to apply. Compared to the jury verdict to determine if
450
+ * the jury "overturned" the auto-verdict (escalation fee refund).
451
+ */
452
+ autoVerdictBeforeEscalation: PendingVerifierVerdict;
453
+ /**
454
+ * jury_deadline is the unix-time block-time after which the
455
+ * EndBlocker stamps TIMEOUT if no MsgResolveEscalatedChallenge has
456
+ * landed.
457
+ */
458
+ juryDeadline: bigint;
459
+ }
460
+ export interface EscalatedChallengeProtoMsg {
461
+ typeUrl: "/sparkdream.federation.v1.EscalatedChallenge";
462
+ value: Uint8Array;
463
+ }
464
+ /**
465
+ * EscalatedChallenge tracks the Phase 2 (human jury) lifecycle for a
466
+ * challenge whose Phase 1 auto-verdict was contested via
467
+ * MsgEscalateChallenge. Operations Committee submits the jury verdict
468
+ * via MsgResolveEscalatedChallenge; the EndBlocker stamps TIMEOUT on
469
+ * jury_deadline expiry. Both paths feed the same applyJuryVerdict
470
+ * helper which disposes of the escrowed challenge_fee + escalation_fee
471
+ * and (on UPHELD/REJECTED) applies the same verifier-side accounting
472
+ * as the auto-resolution path.
473
+ * @name EscalatedChallengeAmino
474
+ * @package sparkdream.federation.v1
475
+ * @see proto type: sparkdream.federation.v1.EscalatedChallenge
476
+ */
477
+ export interface EscalatedChallengeAmino {
478
+ content_id?: string;
479
+ /**
480
+ * escalator is the address that paid the escalation_fee (challenger
481
+ * or verifier — either party can escalate within the window).
482
+ */
483
+ escalator?: string;
484
+ /**
485
+ * escrowed_escalation_fee snapshots the SPARK amount escrowed at
486
+ * escalation time. Refunded to the escalator if the jury verdict
487
+ * overturns the auto-verdict; burned otherwise.
488
+ */
489
+ escrowed_escalation_fee?: string;
490
+ /**
491
+ * auto_verdict_before_escalation snapshots the Phase 1 verdict that
492
+ * was about to apply. Compared to the jury verdict to determine if
493
+ * the jury "overturned" the auto-verdict (escalation fee refund).
494
+ */
495
+ auto_verdict_before_escalation?: PendingVerifierVerdict;
496
+ /**
497
+ * jury_deadline is the unix-time block-time after which the
498
+ * EndBlocker stamps TIMEOUT if no MsgResolveEscalatedChallenge has
499
+ * landed.
500
+ */
501
+ jury_deadline?: string;
502
+ }
503
+ export interface EscalatedChallengeAminoMsg {
504
+ type: "/sparkdream.federation.v1.EscalatedChallenge";
505
+ value: EscalatedChallengeAmino;
506
+ }
277
507
  /**
278
508
  * ArbiterHashSubmission stores an arbiter's hash for quorum-based challenge resolution.
279
509
  * @name ArbiterHashSubmission
@@ -629,22 +859,33 @@ export declare const PeerPolicy: {
629
859
  toProtoMsg(message: PeerPolicy): PeerPolicyProtoMsg;
630
860
  };
631
861
  /**
632
- * BridgeOperator represents an off-chain bridge operator.
633
- * @name BridgeOperator
862
+ * BridgeBinding represents the federation-owned binding between a bridge
863
+ * operator and a peer. Economic state (bond, status, unbonding, slashing
864
+ * history) lives on the corresponding x/service Operator record keyed
865
+ * by (address, service_type). This binding holds only federation-
866
+ * specific data: which peer + protocol + endpoint URL + content stats
867
+ * + suspended flag (toggled by underfunded/refunded hooks).
868
+ *
869
+ * Per Decision 1a of the federation→service migration, one operator
870
+ * address may hold multiple bindings under the same protocol (one per
871
+ * peer) backed by a single shared service.Operator and a single shared
872
+ * bond. Suspending a binding refuses new content submissions but does
873
+ * not delete it.
874
+ * @name BridgeBinding
634
875
  * @package sparkdream.federation.v1
635
- * @see proto type: sparkdream.federation.v1.BridgeOperator
876
+ * @see proto type: sparkdream.federation.v1.BridgeBinding
636
877
  */
637
- export declare const BridgeOperator: {
878
+ export declare const BridgeBinding: {
638
879
  typeUrl: string;
639
- encode(message: BridgeOperator, writer?: BinaryWriter): BinaryWriter;
640
- decode(input: BinaryReader | Uint8Array, length?: number): BridgeOperator;
641
- fromPartial(object: DeepPartial<BridgeOperator>): BridgeOperator;
642
- fromAmino(object: BridgeOperatorAmino): BridgeOperator;
643
- toAmino(message: BridgeOperator): BridgeOperatorAmino;
644
- fromAminoMsg(object: BridgeOperatorAminoMsg): BridgeOperator;
645
- fromProtoMsg(message: BridgeOperatorProtoMsg): BridgeOperator;
646
- toProto(message: BridgeOperator): Uint8Array;
647
- toProtoMsg(message: BridgeOperator): BridgeOperatorProtoMsg;
880
+ encode(message: BridgeBinding, writer?: BinaryWriter): BinaryWriter;
881
+ decode(input: BinaryReader | Uint8Array, length?: number): BridgeBinding;
882
+ fromPartial(object: DeepPartial<BridgeBinding>): BridgeBinding;
883
+ fromAmino(object: BridgeBindingAmino): BridgeBinding;
884
+ toAmino(message: BridgeBinding): BridgeBindingAmino;
885
+ fromAminoMsg(object: BridgeBindingAminoMsg): BridgeBinding;
886
+ fromProtoMsg(message: BridgeBindingProtoMsg): BridgeBinding;
887
+ toProto(message: BridgeBinding): Uint8Array;
888
+ toProtoMsg(message: BridgeBinding): BridgeBindingProtoMsg;
648
889
  };
649
890
  /**
650
891
  * VerificationRecord tracks a verifier's verification of specific content.
@@ -664,6 +905,31 @@ export declare const VerificationRecord: {
664
905
  toProto(message: VerificationRecord): Uint8Array;
665
906
  toProtoMsg(message: VerificationRecord): VerificationRecordProtoMsg;
666
907
  };
908
+ /**
909
+ * EscalatedChallenge tracks the Phase 2 (human jury) lifecycle for a
910
+ * challenge whose Phase 1 auto-verdict was contested via
911
+ * MsgEscalateChallenge. Operations Committee submits the jury verdict
912
+ * via MsgResolveEscalatedChallenge; the EndBlocker stamps TIMEOUT on
913
+ * jury_deadline expiry. Both paths feed the same applyJuryVerdict
914
+ * helper which disposes of the escrowed challenge_fee + escalation_fee
915
+ * and (on UPHELD/REJECTED) applies the same verifier-side accounting
916
+ * as the auto-resolution path.
917
+ * @name EscalatedChallenge
918
+ * @package sparkdream.federation.v1
919
+ * @see proto type: sparkdream.federation.v1.EscalatedChallenge
920
+ */
921
+ export declare const EscalatedChallenge: {
922
+ typeUrl: string;
923
+ encode(message: EscalatedChallenge, writer?: BinaryWriter): BinaryWriter;
924
+ decode(input: BinaryReader | Uint8Array, length?: number): EscalatedChallenge;
925
+ fromPartial(object: DeepPartial<EscalatedChallenge>): EscalatedChallenge;
926
+ fromAmino(object: EscalatedChallengeAmino): EscalatedChallenge;
927
+ toAmino(message: EscalatedChallenge): EscalatedChallengeAmino;
928
+ fromAminoMsg(object: EscalatedChallengeAminoMsg): EscalatedChallenge;
929
+ fromProtoMsg(message: EscalatedChallengeProtoMsg): EscalatedChallenge;
930
+ toProto(message: EscalatedChallenge): Uint8Array;
931
+ toProtoMsg(message: EscalatedChallenge): EscalatedChallengeProtoMsg;
932
+ };
667
933
  /**
668
934
  * ArbiterHashSubmission stores an arbiter's hash for quorum-based challenge resolution.
669
935
  * @name ArbiterHashSubmission