@sparkdreamnft/sparkdreamjs 0.0.45 → 0.0.47

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 (194) hide show
  1. package/akash/bundle.d.ts +134 -134
  2. package/akash/bundle.js +150 -150
  3. package/amino-schema.d.ts +5741 -0
  4. package/amino-schema.js +8 -0
  5. package/chain-amino.d.ts +61 -0
  6. package/chain-amino.js +670 -0
  7. package/cosmos/bundle.d.ts +160 -160
  8. package/cosmos/bundle.js +182 -182
  9. package/esm/akash/bundle.js +150 -150
  10. package/esm/amino-schema.js +5 -0
  11. package/esm/chain-amino.js +665 -0
  12. package/esm/cosmos/bundle.js +182 -182
  13. package/esm/ibc/bundle.js +116 -116
  14. package/esm/nested-amino.js +12 -4
  15. package/esm/sparkdream/artifact/v1/genesis.js +217 -3
  16. package/esm/sparkdream/artifact/v1/params.js +146 -2
  17. package/esm/sparkdream/artifact/v1/query.js +3767 -5
  18. package/esm/sparkdream/artifact/v1/query.lcd.js +173 -0
  19. package/esm/sparkdream/artifact/v1/query.rpc.Query.js +195 -1
  20. package/esm/sparkdream/artifact/v1/tx.amino.js +16 -158
  21. package/esm/sparkdream/artifact/v1/tx.js +7498 -5
  22. package/esm/sparkdream/artifact/v1/tx.registry.js +704 -2
  23. package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +241 -1
  24. package/esm/sparkdream/artifact/v1/types.js +4312 -1120
  25. package/esm/sparkdream/blog/v1/tx.amino.js +15 -115
  26. package/esm/sparkdream/bundle.js +329 -291
  27. package/esm/sparkdream/client.js +5 -2
  28. package/esm/sparkdream/collect/v1/tx.amino.js +15 -239
  29. package/esm/sparkdream/commons/v1/tx.amino.js +12 -226
  30. package/esm/sparkdream/commons/v1/tx.js +25 -1
  31. package/esm/sparkdream/ecosystem/v1/tx.amino.js +15 -26
  32. package/esm/sparkdream/federation/v1/tx.amino.js +16 -128
  33. package/esm/sparkdream/forum/v1/tx.amino.js +15 -211
  34. package/esm/sparkdream/futarchy/v1/tx.amino.js +16 -38
  35. package/esm/sparkdream/guardian/v1/tx.amino.js +17 -8
  36. package/esm/sparkdream/lcd.js +5 -0
  37. package/esm/sparkdream/name/v1/tx.amino.js +16 -63
  38. package/esm/sparkdream/rep/v1/genesis.js +74 -1
  39. package/esm/sparkdream/rep/v1/member.js +110 -1
  40. package/esm/sparkdream/rep/v1/migration.js +957 -0
  41. package/esm/sparkdream/rep/v1/params.js +181 -1
  42. package/esm/sparkdream/rep/v1/query.js +1060 -0
  43. package/esm/sparkdream/rep/v1/query.lcd.js +48 -0
  44. package/esm/sparkdream/rep/v1/query.rpc.Query.js +65 -1
  45. package/esm/sparkdream/rep/v1/tx.amino.js +12 -414
  46. package/esm/sparkdream/rep/v1/tx.js +1741 -1
  47. package/esm/sparkdream/rep/v1/tx.registry.js +200 -2
  48. package/esm/sparkdream/rep/v1/tx.rpc.msg.js +67 -1
  49. package/esm/sparkdream/reveal/v1/tx.amino.js +15 -73
  50. package/esm/sparkdream/rpc.query.js +3 -0
  51. package/esm/sparkdream/rpc.tx.js +3 -0
  52. package/esm/sparkdream/season/v1/tx.amino.js +16 -218
  53. package/esm/sparkdream/service/v1/tx.amino.js +16 -78
  54. package/esm/sparkdream/session/v1/tx.amino.js +16 -271
  55. package/esm/sparkdream/session/v1/tx.js +38 -2
  56. package/esm/sparkdream/shield/v1/tx.amino.js +15 -80
  57. package/esm/sparkdream/sparkdream/v1/tx.amino.js +16 -8
  58. package/esm/sparkdream/split/v1/tx.amino.js +16 -8
  59. package/esm/sparkdream/vault/module/v1/module.js +71 -0
  60. package/esm/sparkdream/vault/v1/genesis.js +104 -0
  61. package/esm/sparkdream/vault/v1/params.js +90 -0
  62. package/esm/sparkdream/vault/v1/query.js +1535 -0
  63. package/esm/sparkdream/vault/v1/query.lcd.js +100 -0
  64. package/esm/sparkdream/vault/v1/query.rpc.Query.js +111 -0
  65. package/esm/sparkdream/vault/v1/tx.amino.js +18 -0
  66. package/esm/sparkdream/vault/v1/tx.js +1393 -0
  67. package/esm/sparkdream/vault/v1/tx.registry.js +159 -0
  68. package/esm/sparkdream/vault/v1/tx.rpc.msg.js +60 -0
  69. package/esm/sparkdream/vault/v1/vault.js +163 -0
  70. package/esm/sparkdream/vault/v1/vault_proposal.js +277 -0
  71. package/esm/sparkdream/vault/v1/vault_signer.js +85 -0
  72. package/esm/tendermint/bundle.js +20 -20
  73. package/ibc/bundle.d.ts +99 -99
  74. package/ibc/bundle.js +116 -116
  75. package/nested-amino.d.ts +7 -2
  76. package/nested-amino.js +13 -4
  77. package/package.json +1 -13
  78. package/sparkdream/artifact/v1/genesis.d.ts +37 -4
  79. package/sparkdream/artifact/v1/genesis.js +216 -2
  80. package/sparkdream/artifact/v1/params.d.ts +92 -0
  81. package/sparkdream/artifact/v1/params.js +146 -2
  82. package/sparkdream/artifact/v1/query.d.ts +2373 -168
  83. package/sparkdream/artifact/v1/query.js +3768 -5
  84. package/sparkdream/artifact/v1/query.lcd.d.ts +22 -1
  85. package/sparkdream/artifact/v1/query.lcd.js +173 -0
  86. package/sparkdream/artifact/v1/query.rpc.Query.d.ts +98 -1
  87. package/sparkdream/artifact/v1/query.rpc.Query.js +194 -0
  88. package/sparkdream/artifact/v1/tx.amino.d.ts +1 -158
  89. package/sparkdream/artifact/v1/tx.amino.js +49 -158
  90. package/sparkdream/artifact/v1/tx.d.ts +5188 -930
  91. package/sparkdream/artifact/v1/tx.js +7499 -5
  92. package/sparkdream/artifact/v1/tx.registry.d.ts +469 -1
  93. package/sparkdream/artifact/v1/tx.registry.js +703 -1
  94. package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +136 -1
  95. package/sparkdream/artifact/v1/tx.rpc.msg.js +240 -0
  96. package/sparkdream/artifact/v1/types.d.ts +1797 -25
  97. package/sparkdream/artifact/v1/types.js +4322 -1121
  98. package/sparkdream/blog/v1/tx.amino.d.ts +1 -83
  99. package/sparkdream/blog/v1/tx.amino.js +50 -117
  100. package/sparkdream/bundle.d.ts +12983 -10912
  101. package/sparkdream/bundle.js +329 -291
  102. package/sparkdream/client.d.ts +1 -1629
  103. package/sparkdream/client.js +5 -2
  104. package/sparkdream/collect/v1/tx.amino.d.ts +1 -138
  105. package/sparkdream/collect/v1/tx.amino.js +50 -241
  106. package/sparkdream/commons/v1/tx.amino.d.ts +1 -103
  107. package/sparkdream/commons/v1/tx.amino.js +49 -230
  108. package/sparkdream/commons/v1/tx.d.ts +18 -0
  109. package/sparkdream/commons/v1/tx.js +25 -1
  110. package/sparkdream/ecosystem/v1/tx.amino.d.ts +1 -13
  111. package/sparkdream/ecosystem/v1/tx.amino.js +50 -28
  112. package/sparkdream/federation/v1/tx.amino.d.ts +1 -128
  113. package/sparkdream/federation/v1/tx.amino.js +49 -128
  114. package/sparkdream/forum/v1/tx.amino.d.ts +1 -183
  115. package/sparkdream/forum/v1/tx.amino.js +50 -213
  116. package/sparkdream/futarchy/v1/tx.amino.d.ts +1 -38
  117. package/sparkdream/futarchy/v1/tx.amino.js +49 -38
  118. package/sparkdream/guardian/v1/tx.amino.d.ts +2 -8
  119. package/sparkdream/guardian/v1/tx.amino.js +52 -9
  120. package/sparkdream/lcd.d.ts +3 -0
  121. package/sparkdream/lcd.js +5 -0
  122. package/sparkdream/name/v1/tx.amino.d.ts +1 -63
  123. package/sparkdream/name/v1/tx.amino.js +49 -63
  124. package/sparkdream/rep/v1/genesis.d.ts +19 -0
  125. package/sparkdream/rep/v1/genesis.js +74 -1
  126. package/sparkdream/rep/v1/member.d.ts +92 -0
  127. package/sparkdream/rep/v1/member.js +110 -1
  128. package/sparkdream/rep/v1/migration.d.ts +587 -0
  129. package/sparkdream/rep/v1/migration.js +964 -0
  130. package/sparkdream/rep/v1/params.d.ts +174 -0
  131. package/sparkdream/rep/v1/params.js +181 -1
  132. package/sparkdream/rep/v1/query.d.ts +679 -0
  133. package/sparkdream/rep/v1/query.js +1061 -1
  134. package/sparkdream/rep/v1/query.lcd.d.ts +8 -1
  135. package/sparkdream/rep/v1/query.lcd.js +48 -0
  136. package/sparkdream/rep/v1/query.rpc.Query.d.ts +32 -1
  137. package/sparkdream/rep/v1/query.rpc.Query.js +64 -0
  138. package/sparkdream/rep/v1/tx.amino.d.ts +1 -283
  139. package/sparkdream/rep/v1/tx.amino.js +47 -416
  140. package/sparkdream/rep/v1/tx.d.ts +1185 -0
  141. package/sparkdream/rep/v1/tx.js +1742 -2
  142. package/sparkdream/rep/v1/tx.registry.d.ts +133 -1
  143. package/sparkdream/rep/v1/tx.registry.js +199 -1
  144. package/sparkdream/rep/v1/tx.rpc.msg.d.ts +34 -1
  145. package/sparkdream/rep/v1/tx.rpc.msg.js +66 -0
  146. package/sparkdream/reveal/v1/tx.amino.d.ts +1 -53
  147. package/sparkdream/reveal/v1/tx.amino.js +50 -75
  148. package/sparkdream/rpc.query.d.ts +42 -0
  149. package/sparkdream/rpc.query.js +3 -0
  150. package/sparkdream/rpc.tx.d.ts +3 -0
  151. package/sparkdream/rpc.tx.js +3 -0
  152. package/sparkdream/season/v1/tx.amino.d.ts +1 -218
  153. package/sparkdream/season/v1/tx.amino.js +49 -218
  154. package/sparkdream/service/v1/tx.amino.d.ts +1 -78
  155. package/sparkdream/service/v1/tx.amino.js +49 -78
  156. package/sparkdream/session/v1/tx.amino.d.ts +1 -93
  157. package/sparkdream/session/v1/tx.amino.js +48 -270
  158. package/sparkdream/session/v1/tx.d.ts +30 -0
  159. package/sparkdream/session/v1/tx.js +38 -2
  160. package/sparkdream/shield/v1/tx.amino.d.ts +1 -28
  161. package/sparkdream/shield/v1/tx.amino.js +50 -82
  162. package/sparkdream/sparkdream/v1/tx.amino.d.ts +1 -8
  163. package/sparkdream/sparkdream/v1/tx.amino.js +49 -8
  164. package/sparkdream/split/v1/tx.amino.d.ts +1 -8
  165. package/sparkdream/split/v1/tx.amino.js +49 -8
  166. package/sparkdream/vault/module/v1/module.d.ts +54 -0
  167. package/sparkdream/vault/module/v1/module.js +74 -0
  168. package/sparkdream/vault/v1/genesis.d.ts +59 -0
  169. package/sparkdream/vault/v1/genesis.js +107 -0
  170. package/sparkdream/vault/v1/params.d.ts +68 -0
  171. package/sparkdream/vault/v1/params.js +93 -0
  172. package/sparkdream/vault/v1/query.d.ts +935 -0
  173. package/sparkdream/vault/v1/query.js +1538 -0
  174. package/sparkdream/vault/v1/query.lcd.d.ts +18 -0
  175. package/sparkdream/vault/v1/query.lcd.js +104 -0
  176. package/sparkdream/vault/v1/query.rpc.Query.d.ts +56 -0
  177. package/sparkdream/vault/v1/query.rpc.Query.js +116 -0
  178. package/sparkdream/vault/v1/tx.amino.d.ts +2 -0
  179. package/sparkdream/vault/v1/tx.amino.js +55 -0
  180. package/sparkdream/vault/v1/tx.d.ts +826 -0
  181. package/sparkdream/vault/v1/tx.js +1399 -0
  182. package/sparkdream/vault/v1/tx.registry.d.ts +109 -0
  183. package/sparkdream/vault/v1/tx.registry.js +163 -0
  184. package/sparkdream/vault/v1/tx.rpc.msg.d.ts +37 -0
  185. package/sparkdream/vault/v1/tx.rpc.msg.js +65 -0
  186. package/sparkdream/vault/v1/vault.d.ts +117 -0
  187. package/sparkdream/vault/v1/vault.js +166 -0
  188. package/sparkdream/vault/v1/vault_proposal.d.ts +158 -0
  189. package/sparkdream/vault/v1/vault_proposal.js +285 -0
  190. package/sparkdream/vault/v1/vault_signer.d.ts +54 -0
  191. package/sparkdream/vault/v1/vault_signer.js +88 -0
  192. package/tendermint/bundle.d.ts +844 -844
  193. package/tendermint/bundle.js +20 -20
  194. package/varint.d.ts +1 -1
@@ -0,0 +1,587 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ import { DeepPartial } from "../../../helpers";
3
+ /**
4
+ * MigrationPath is how a member migration was authorized. Precedence is
5
+ * RECOVERY > COUNCIL > KEY: opening a higher-precedence migration for a
6
+ * member cancels any pending lower-precedence one.
7
+ */
8
+ export declare enum MigrationPath {
9
+ MIGRATION_PATH_UNSPECIFIED = 0,
10
+ /**
11
+ * MIGRATION_PATH_KEY - KEY: the old address signed the request. The cheap routine path, subject
12
+ * to the cooldown, the rolling window cap and the open-report block. Can
13
+ * be switched off by governance (key_path_enabled) if the account
14
+ * signature scheme is considered broken.
15
+ */
16
+ MIGRATION_PATH_KEY = 1,
17
+ /**
18
+ * MIGRATION_PATH_RECOVERY - RECOVERY: a pre-registered SHA-256 commitment was revealed. Relies on
19
+ * nothing signed by the old address, so it survives a signature-scheme
20
+ * break and outranks a thief holding the old key.
21
+ */
22
+ MIGRATION_PATH_RECOVERY = 2,
23
+ /**
24
+ * MIGRATION_PATH_COUNCIL - COUNCIL: the Commons HR committee (or x/gov) forced the migration on
25
+ * off-chain evidence; the old address may object to a jury.
26
+ */
27
+ MIGRATION_PATH_COUNCIL = 3,
28
+ UNRECOGNIZED = -1
29
+ }
30
+ export declare const MigrationPathAmino: typeof MigrationPath;
31
+ export declare function migrationPathFromJSON(object: any): MigrationPath;
32
+ export declare function migrationPathToJSON(object: MigrationPath): string;
33
+ /** MigrationStatus is the lifecycle of a MemberMigration. */
34
+ export declare enum MigrationStatus {
35
+ MIGRATION_STATUS_UNSPECIFIED = 0,
36
+ /**
37
+ * MIGRATION_STATUS_REQUESTED - REQUESTED: created, waiting for the new address to accept within
38
+ * migration_accept_window.
39
+ */
40
+ MIGRATION_STATUS_REQUESTED = 1,
41
+ /**
42
+ * MIGRATION_STATUS_ACCEPTED - ACCEPTED: the new address accepted; executes_at is set and the
43
+ * migration sits in the EndBlocker queue.
44
+ */
45
+ MIGRATION_STATUS_ACCEPTED = 2,
46
+ /**
47
+ * MIGRATION_STATUS_OBJECTED - OBJECTED: (COUNCIL path) the old address objected during the delay and
48
+ * a jury review decides. The queue entry is removed until the verdict.
49
+ */
50
+ MIGRATION_STATUS_OBJECTED = 3,
51
+ /** MIGRATION_STATUS_FINALIZED - FINALIZED: the identity moved; the old address is a tombstone. */
52
+ MIGRATION_STATUS_FINALIZED = 4,
53
+ /**
54
+ * MIGRATION_STATUS_CANCELLED - CANCELLED: cancelled by a party, by precedence, by a jury verdict, or at
55
+ * finalization because the member was zeroed during the delay.
56
+ */
57
+ MIGRATION_STATUS_CANCELLED = 5,
58
+ /** MIGRATION_STATUS_EXPIRED - EXPIRED: the new address never accepted within the window. */
59
+ MIGRATION_STATUS_EXPIRED = 6,
60
+ /**
61
+ * MIGRATION_STATUS_FAILED - FAILED: finalization raised an error (a hook veto or a re-key failure);
62
+ * the chain did not halt and nothing moved. failure_reason says why.
63
+ */
64
+ MIGRATION_STATUS_FAILED = 7,
65
+ UNRECOGNIZED = -1
66
+ }
67
+ export declare const MigrationStatusAmino: typeof MigrationStatus;
68
+ export declare function migrationStatusFromJSON(object: any): MigrationStatus;
69
+ export declare function migrationStatusToJSON(object: MigrationStatus): string;
70
+ /**
71
+ * MemberMigration moves a member identity from from_address to to_address.
72
+ * @name MemberMigration
73
+ * @package sparkdream.rep.v1
74
+ * @see proto type: sparkdream.rep.v1.MemberMigration
75
+ */
76
+ export interface MemberMigration {
77
+ id: bigint;
78
+ fromAddress: string;
79
+ toAddress: string;
80
+ path: MigrationPath;
81
+ status: MigrationStatus;
82
+ /**
83
+ * requested_at is the block time of the request / reveal / force.
84
+ */
85
+ requestedAt: bigint;
86
+ /**
87
+ * accepted_at is the block time of MsgAcceptMigration (0 until then).
88
+ */
89
+ acceptedAt: bigint;
90
+ /**
91
+ * executes_at = accepted_at + the path's delay. Set on accept.
92
+ */
93
+ executesAt: bigint;
94
+ /**
95
+ * jury_review_id is the x/rep jury review opened by an objection
96
+ * (COUNCIL path only; 0 otherwise).
97
+ */
98
+ juryReviewId: bigint;
99
+ /**
100
+ * evidence_uri references the off-chain evidence a COUNCIL migration was
101
+ * filed on (inviter attestation, guild officers' statements, ...).
102
+ */
103
+ evidenceUri: string;
104
+ /**
105
+ * objector is the address that posted the objection bond (COUNCIL path).
106
+ */
107
+ objector: string;
108
+ /**
109
+ * objection_bond is the SPARK bond held while the jury decides, as a
110
+ * micro-denom integer string. Paid to to_address when the migration is
111
+ * upheld, refunded to the objector otherwise; never burned.
112
+ */
113
+ objectionBond: string;
114
+ /**
115
+ * failure_reason is set when status is FAILED or CANCELLED by the chain.
116
+ */
117
+ failureReason: string;
118
+ /**
119
+ * finalized_at is the block time of finalization (0 until then).
120
+ */
121
+ finalizedAt: bigint;
122
+ }
123
+ export interface MemberMigrationProtoMsg {
124
+ typeUrl: "/sparkdream.rep.v1.MemberMigration";
125
+ value: Uint8Array;
126
+ }
127
+ /**
128
+ * MemberMigration moves a member identity from from_address to to_address.
129
+ * @name MemberMigrationAmino
130
+ * @package sparkdream.rep.v1
131
+ * @see proto type: sparkdream.rep.v1.MemberMigration
132
+ */
133
+ export interface MemberMigrationAmino {
134
+ id?: string;
135
+ from_address?: string;
136
+ to_address?: string;
137
+ path?: MigrationPath;
138
+ status?: MigrationStatus;
139
+ /**
140
+ * requested_at is the block time of the request / reveal / force.
141
+ */
142
+ requested_at?: string;
143
+ /**
144
+ * accepted_at is the block time of MsgAcceptMigration (0 until then).
145
+ */
146
+ accepted_at?: string;
147
+ /**
148
+ * executes_at = accepted_at + the path's delay. Set on accept.
149
+ */
150
+ executes_at?: string;
151
+ /**
152
+ * jury_review_id is the x/rep jury review opened by an objection
153
+ * (COUNCIL path only; 0 otherwise).
154
+ */
155
+ jury_review_id?: string;
156
+ /**
157
+ * evidence_uri references the off-chain evidence a COUNCIL migration was
158
+ * filed on (inviter attestation, guild officers' statements, ...).
159
+ */
160
+ evidence_uri?: string;
161
+ /**
162
+ * objector is the address that posted the objection bond (COUNCIL path).
163
+ */
164
+ objector?: string;
165
+ /**
166
+ * objection_bond is the SPARK bond held while the jury decides, as a
167
+ * micro-denom integer string. Paid to to_address when the migration is
168
+ * upheld, refunded to the objector otherwise; never burned.
169
+ */
170
+ objection_bond?: string;
171
+ /**
172
+ * failure_reason is set when status is FAILED or CANCELLED by the chain.
173
+ */
174
+ failure_reason?: string;
175
+ /**
176
+ * finalized_at is the block time of finalization (0 until then).
177
+ */
178
+ finalized_at?: string;
179
+ }
180
+ export interface MemberMigrationAminoMsg {
181
+ type: "/sparkdream.rep.v1.MemberMigration";
182
+ value: MemberMigrationAmino;
183
+ }
184
+ /**
185
+ * Tombstone is the forward alias left behind at from_address once a
186
+ * migration finalizes. canonical always points at the CURRENT address: when
187
+ * the canonical address migrates again, every predecessor is rewritten
188
+ * (path compression), so one lookup is enough.
189
+ * @name Tombstone
190
+ * @package sparkdream.rep.v1
191
+ * @see proto type: sparkdream.rep.v1.Tombstone
192
+ */
193
+ export interface Tombstone {
194
+ /**
195
+ * address is the tombstoned (old) address; the map key in state.
196
+ */
197
+ address: string;
198
+ canonical: string;
199
+ /**
200
+ * path is the path of the migration that tombstoned this address. The
201
+ * ante decorator reads it: a KEY tombstone may still MsgSend, a RECOVERY
202
+ * or COUNCIL tombstone (presumed compromised) may not.
203
+ */
204
+ path: MigrationPath;
205
+ migrationId: bigint;
206
+ /**
207
+ * finalized_epoch is the rep epoch in which this address stopped being
208
+ * canonical. The dedup horizon (AliasDedupHorizonEpochs) is measured from
209
+ * it, so it is never rewritten by a later path compression.
210
+ */
211
+ finalizedEpoch: bigint;
212
+ }
213
+ export interface TombstoneProtoMsg {
214
+ typeUrl: "/sparkdream.rep.v1.Tombstone";
215
+ value: Uint8Array;
216
+ }
217
+ /**
218
+ * Tombstone is the forward alias left behind at from_address once a
219
+ * migration finalizes. canonical always points at the CURRENT address: when
220
+ * the canonical address migrates again, every predecessor is rewritten
221
+ * (path compression), so one lookup is enough.
222
+ * @name TombstoneAmino
223
+ * @package sparkdream.rep.v1
224
+ * @see proto type: sparkdream.rep.v1.Tombstone
225
+ */
226
+ export interface TombstoneAmino {
227
+ /**
228
+ * address is the tombstoned (old) address; the map key in state.
229
+ */
230
+ address?: string;
231
+ canonical?: string;
232
+ /**
233
+ * path is the path of the migration that tombstoned this address. The
234
+ * ante decorator reads it: a KEY tombstone may still MsgSend, a RECOVERY
235
+ * or COUNCIL tombstone (presumed compromised) may not.
236
+ */
237
+ path?: MigrationPath;
238
+ migration_id?: string;
239
+ /**
240
+ * finalized_epoch is the rep epoch in which this address stopped being
241
+ * canonical. The dedup horizon (AliasDedupHorizonEpochs) is measured from
242
+ * it, so it is never rewritten by a later path compression.
243
+ */
244
+ finalized_epoch?: string;
245
+ }
246
+ export interface TombstoneAminoMsg {
247
+ type: "/sparkdream.rep.v1.Tombstone";
248
+ value: TombstoneAmino;
249
+ }
250
+ /**
251
+ * RecoveryCommitment is one SHA-256 commitment to a secret preimage. A reveal
252
+ * of the preimage opens a RECOVERY migration without any signature from the
253
+ * member's account key.
254
+ * @name RecoveryCommitment
255
+ * @package sparkdream.rep.v1
256
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitment
257
+ */
258
+ export interface RecoveryCommitment {
259
+ /**
260
+ * commitment = SHA-256("sparkdream/recovery/commit/v1" || preimage).
261
+ */
262
+ commitment: Uint8Array;
263
+ /**
264
+ * effective_at is the block time from which the commitment is active;
265
+ * 0 means active now. Every commitment set by an existing member waits out
266
+ * recovery_change_delay; only the one carried by MsgAcceptInvitation at
267
+ * onboarding is immediate.
268
+ */
269
+ effectiveAt: bigint;
270
+ }
271
+ export interface RecoveryCommitmentProtoMsg {
272
+ typeUrl: "/sparkdream.rep.v1.RecoveryCommitment";
273
+ value: Uint8Array;
274
+ }
275
+ /**
276
+ * RecoveryCommitment is one SHA-256 commitment to a secret preimage. A reveal
277
+ * of the preimage opens a RECOVERY migration without any signature from the
278
+ * member's account key.
279
+ * @name RecoveryCommitmentAmino
280
+ * @package sparkdream.rep.v1
281
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitment
282
+ */
283
+ export interface RecoveryCommitmentAmino {
284
+ /**
285
+ * commitment = SHA-256("sparkdream/recovery/commit/v1" || preimage).
286
+ */
287
+ commitment?: string;
288
+ /**
289
+ * effective_at is the block time from which the commitment is active;
290
+ * 0 means active now. Every commitment set by an existing member waits out
291
+ * recovery_change_delay; only the one carried by MsgAcceptInvitation at
292
+ * onboarding is immediate.
293
+ */
294
+ effective_at?: string;
295
+ }
296
+ export interface RecoveryCommitmentAminoMsg {
297
+ type: "/sparkdream.rep.v1.RecoveryCommitment";
298
+ value: RecoveryCommitmentAmino;
299
+ }
300
+ /**
301
+ * RecoveryCommitmentSet is a member's commitments, at most
302
+ * MaxRecoveryCommitments, in no particular order. A failed reveal burns one
303
+ * commitment, never the member's only recovery.
304
+ * @name RecoveryCommitmentSet
305
+ * @package sparkdream.rep.v1
306
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitmentSet
307
+ */
308
+ export interface RecoveryCommitmentSet {
309
+ commitments: RecoveryCommitment[];
310
+ /**
311
+ * pending_removals are commitments whose removal is waiting out
312
+ * recovery_change_delay: the commitment stays active until removal_at.
313
+ */
314
+ pendingRemovals: PendingCommitmentRemoval[];
315
+ }
316
+ export interface RecoveryCommitmentSetProtoMsg {
317
+ typeUrl: "/sparkdream.rep.v1.RecoveryCommitmentSet";
318
+ value: Uint8Array;
319
+ }
320
+ /**
321
+ * RecoveryCommitmentSet is a member's commitments, at most
322
+ * MaxRecoveryCommitments, in no particular order. A failed reveal burns one
323
+ * commitment, never the member's only recovery.
324
+ * @name RecoveryCommitmentSetAmino
325
+ * @package sparkdream.rep.v1
326
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitmentSet
327
+ */
328
+ export interface RecoveryCommitmentSetAmino {
329
+ commitments?: RecoveryCommitmentAmino[];
330
+ /**
331
+ * pending_removals are commitments whose removal is waiting out
332
+ * recovery_change_delay: the commitment stays active until removal_at.
333
+ */
334
+ pending_removals?: PendingCommitmentRemovalAmino[];
335
+ }
336
+ export interface RecoveryCommitmentSetAminoMsg {
337
+ type: "/sparkdream.rep.v1.RecoveryCommitmentSet";
338
+ value: RecoveryCommitmentSetAmino;
339
+ }
340
+ /**
341
+ * PendingCommitmentRemoval schedules the removal of a commitment.
342
+ * @name PendingCommitmentRemoval
343
+ * @package sparkdream.rep.v1
344
+ * @see proto type: sparkdream.rep.v1.PendingCommitmentRemoval
345
+ */
346
+ export interface PendingCommitmentRemoval {
347
+ commitment: Uint8Array;
348
+ removalAt: bigint;
349
+ }
350
+ export interface PendingCommitmentRemovalProtoMsg {
351
+ typeUrl: "/sparkdream.rep.v1.PendingCommitmentRemoval";
352
+ value: Uint8Array;
353
+ }
354
+ /**
355
+ * PendingCommitmentRemoval schedules the removal of a commitment.
356
+ * @name PendingCommitmentRemovalAmino
357
+ * @package sparkdream.rep.v1
358
+ * @see proto type: sparkdream.rep.v1.PendingCommitmentRemoval
359
+ */
360
+ export interface PendingCommitmentRemovalAmino {
361
+ commitment?: string;
362
+ removal_at?: string;
363
+ }
364
+ export interface PendingCommitmentRemovalAminoMsg {
365
+ type: "/sparkdream.rep.v1.PendingCommitmentRemoval";
366
+ value: PendingCommitmentRemovalAmino;
367
+ }
368
+ /**
369
+ * RecoveryCommit is the front-running guard for a reveal: a sealed hash of
370
+ * (preimage, old address, new address) that must have aged
371
+ * recovery_reveal_min_blocks before the reveal is accepted. Anyone can submit
372
+ * one; it says nothing about the member, the preimage or the target.
373
+ * @name RecoveryCommit
374
+ * @package sparkdream.rep.v1
375
+ * @see proto type: sparkdream.rep.v1.RecoveryCommit
376
+ */
377
+ export interface RecoveryCommit {
378
+ /**
379
+ * sealed = SHA-256("sparkdream/recovery/seal/v1" || preimage || A || B);
380
+ * the map key in state.
381
+ */
382
+ sealed: Uint8Array;
383
+ submitter: string;
384
+ height: bigint;
385
+ expiresAt: bigint;
386
+ /**
387
+ * deposit is the SPARK locked by the submitter, refunded when a reveal
388
+ * consumes the seal and burned when the seal expires.
389
+ */
390
+ deposit: string;
391
+ }
392
+ export interface RecoveryCommitProtoMsg {
393
+ typeUrl: "/sparkdream.rep.v1.RecoveryCommit";
394
+ value: Uint8Array;
395
+ }
396
+ /**
397
+ * RecoveryCommit is the front-running guard for a reveal: a sealed hash of
398
+ * (preimage, old address, new address) that must have aged
399
+ * recovery_reveal_min_blocks before the reveal is accepted. Anyone can submit
400
+ * one; it says nothing about the member, the preimage or the target.
401
+ * @name RecoveryCommitAmino
402
+ * @package sparkdream.rep.v1
403
+ * @see proto type: sparkdream.rep.v1.RecoveryCommit
404
+ */
405
+ export interface RecoveryCommitAmino {
406
+ /**
407
+ * sealed = SHA-256("sparkdream/recovery/seal/v1" || preimage || A || B);
408
+ * the map key in state.
409
+ */
410
+ sealed?: string;
411
+ submitter?: string;
412
+ height?: string;
413
+ expires_at?: string;
414
+ /**
415
+ * deposit is the SPARK locked by the submitter, refunded when a reveal
416
+ * consumes the seal and burned when the seal expires.
417
+ */
418
+ deposit?: string;
419
+ }
420
+ export interface RecoveryCommitAminoMsg {
421
+ type: "/sparkdream.rep.v1.RecoveryCommit";
422
+ value: RecoveryCommitAmino;
423
+ }
424
+ /**
425
+ * RecoveryCommitmentEntry is the genesis form of the RecoveryCommitments map.
426
+ * @name RecoveryCommitmentEntry
427
+ * @package sparkdream.rep.v1
428
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitmentEntry
429
+ */
430
+ export interface RecoveryCommitmentEntry {
431
+ member: string;
432
+ set: RecoveryCommitmentSet;
433
+ }
434
+ export interface RecoveryCommitmentEntryProtoMsg {
435
+ typeUrl: "/sparkdream.rep.v1.RecoveryCommitmentEntry";
436
+ value: Uint8Array;
437
+ }
438
+ /**
439
+ * RecoveryCommitmentEntry is the genesis form of the RecoveryCommitments map.
440
+ * @name RecoveryCommitmentEntryAmino
441
+ * @package sparkdream.rep.v1
442
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitmentEntry
443
+ */
444
+ export interface RecoveryCommitmentEntryAmino {
445
+ member?: string;
446
+ set?: RecoveryCommitmentSetAmino;
447
+ }
448
+ export interface RecoveryCommitmentEntryAminoMsg {
449
+ type: "/sparkdream.rep.v1.RecoveryCommitmentEntry";
450
+ value: RecoveryCommitmentEntryAmino;
451
+ }
452
+ /**
453
+ * MemberMigration moves a member identity from from_address to to_address.
454
+ * @name MemberMigration
455
+ * @package sparkdream.rep.v1
456
+ * @see proto type: sparkdream.rep.v1.MemberMigration
457
+ */
458
+ export declare const MemberMigration: {
459
+ typeUrl: string;
460
+ encode(message: MemberMigration, writer?: BinaryWriter): BinaryWriter;
461
+ decode(input: BinaryReader | Uint8Array, length?: number): MemberMigration;
462
+ fromPartial(object: DeepPartial<MemberMigration>): MemberMigration;
463
+ fromAmino(object: MemberMigrationAmino): MemberMigration;
464
+ toAmino(message: MemberMigration): MemberMigrationAmino;
465
+ fromAminoMsg(object: MemberMigrationAminoMsg): MemberMigration;
466
+ fromProtoMsg(message: MemberMigrationProtoMsg): MemberMigration;
467
+ toProto(message: MemberMigration): Uint8Array;
468
+ toProtoMsg(message: MemberMigration): MemberMigrationProtoMsg;
469
+ };
470
+ /**
471
+ * Tombstone is the forward alias left behind at from_address once a
472
+ * migration finalizes. canonical always points at the CURRENT address: when
473
+ * the canonical address migrates again, every predecessor is rewritten
474
+ * (path compression), so one lookup is enough.
475
+ * @name Tombstone
476
+ * @package sparkdream.rep.v1
477
+ * @see proto type: sparkdream.rep.v1.Tombstone
478
+ */
479
+ export declare const Tombstone: {
480
+ typeUrl: string;
481
+ encode(message: Tombstone, writer?: BinaryWriter): BinaryWriter;
482
+ decode(input: BinaryReader | Uint8Array, length?: number): Tombstone;
483
+ fromPartial(object: DeepPartial<Tombstone>): Tombstone;
484
+ fromAmino(object: TombstoneAmino): Tombstone;
485
+ toAmino(message: Tombstone): TombstoneAmino;
486
+ fromAminoMsg(object: TombstoneAminoMsg): Tombstone;
487
+ fromProtoMsg(message: TombstoneProtoMsg): Tombstone;
488
+ toProto(message: Tombstone): Uint8Array;
489
+ toProtoMsg(message: Tombstone): TombstoneProtoMsg;
490
+ };
491
+ /**
492
+ * RecoveryCommitment is one SHA-256 commitment to a secret preimage. A reveal
493
+ * of the preimage opens a RECOVERY migration without any signature from the
494
+ * member's account key.
495
+ * @name RecoveryCommitment
496
+ * @package sparkdream.rep.v1
497
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitment
498
+ */
499
+ export declare const RecoveryCommitment: {
500
+ typeUrl: string;
501
+ encode(message: RecoveryCommitment, writer?: BinaryWriter): BinaryWriter;
502
+ decode(input: BinaryReader | Uint8Array, length?: number): RecoveryCommitment;
503
+ fromPartial(object: DeepPartial<RecoveryCommitment>): RecoveryCommitment;
504
+ fromAmino(object: RecoveryCommitmentAmino): RecoveryCommitment;
505
+ toAmino(message: RecoveryCommitment): RecoveryCommitmentAmino;
506
+ fromAminoMsg(object: RecoveryCommitmentAminoMsg): RecoveryCommitment;
507
+ fromProtoMsg(message: RecoveryCommitmentProtoMsg): RecoveryCommitment;
508
+ toProto(message: RecoveryCommitment): Uint8Array;
509
+ toProtoMsg(message: RecoveryCommitment): RecoveryCommitmentProtoMsg;
510
+ };
511
+ /**
512
+ * RecoveryCommitmentSet is a member's commitments, at most
513
+ * MaxRecoveryCommitments, in no particular order. A failed reveal burns one
514
+ * commitment, never the member's only recovery.
515
+ * @name RecoveryCommitmentSet
516
+ * @package sparkdream.rep.v1
517
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitmentSet
518
+ */
519
+ export declare const RecoveryCommitmentSet: {
520
+ typeUrl: string;
521
+ encode(message: RecoveryCommitmentSet, writer?: BinaryWriter): BinaryWriter;
522
+ decode(input: BinaryReader | Uint8Array, length?: number): RecoveryCommitmentSet;
523
+ fromPartial(object: DeepPartial<RecoveryCommitmentSet>): RecoveryCommitmentSet;
524
+ fromAmino(object: RecoveryCommitmentSetAmino): RecoveryCommitmentSet;
525
+ toAmino(message: RecoveryCommitmentSet): RecoveryCommitmentSetAmino;
526
+ fromAminoMsg(object: RecoveryCommitmentSetAminoMsg): RecoveryCommitmentSet;
527
+ fromProtoMsg(message: RecoveryCommitmentSetProtoMsg): RecoveryCommitmentSet;
528
+ toProto(message: RecoveryCommitmentSet): Uint8Array;
529
+ toProtoMsg(message: RecoveryCommitmentSet): RecoveryCommitmentSetProtoMsg;
530
+ };
531
+ /**
532
+ * PendingCommitmentRemoval schedules the removal of a commitment.
533
+ * @name PendingCommitmentRemoval
534
+ * @package sparkdream.rep.v1
535
+ * @see proto type: sparkdream.rep.v1.PendingCommitmentRemoval
536
+ */
537
+ export declare const PendingCommitmentRemoval: {
538
+ typeUrl: string;
539
+ encode(message: PendingCommitmentRemoval, writer?: BinaryWriter): BinaryWriter;
540
+ decode(input: BinaryReader | Uint8Array, length?: number): PendingCommitmentRemoval;
541
+ fromPartial(object: DeepPartial<PendingCommitmentRemoval>): PendingCommitmentRemoval;
542
+ fromAmino(object: PendingCommitmentRemovalAmino): PendingCommitmentRemoval;
543
+ toAmino(message: PendingCommitmentRemoval): PendingCommitmentRemovalAmino;
544
+ fromAminoMsg(object: PendingCommitmentRemovalAminoMsg): PendingCommitmentRemoval;
545
+ fromProtoMsg(message: PendingCommitmentRemovalProtoMsg): PendingCommitmentRemoval;
546
+ toProto(message: PendingCommitmentRemoval): Uint8Array;
547
+ toProtoMsg(message: PendingCommitmentRemoval): PendingCommitmentRemovalProtoMsg;
548
+ };
549
+ /**
550
+ * RecoveryCommit is the front-running guard for a reveal: a sealed hash of
551
+ * (preimage, old address, new address) that must have aged
552
+ * recovery_reveal_min_blocks before the reveal is accepted. Anyone can submit
553
+ * one; it says nothing about the member, the preimage or the target.
554
+ * @name RecoveryCommit
555
+ * @package sparkdream.rep.v1
556
+ * @see proto type: sparkdream.rep.v1.RecoveryCommit
557
+ */
558
+ export declare const RecoveryCommit: {
559
+ typeUrl: string;
560
+ encode(message: RecoveryCommit, writer?: BinaryWriter): BinaryWriter;
561
+ decode(input: BinaryReader | Uint8Array, length?: number): RecoveryCommit;
562
+ fromPartial(object: DeepPartial<RecoveryCommit>): RecoveryCommit;
563
+ fromAmino(object: RecoveryCommitAmino): RecoveryCommit;
564
+ toAmino(message: RecoveryCommit): RecoveryCommitAmino;
565
+ fromAminoMsg(object: RecoveryCommitAminoMsg): RecoveryCommit;
566
+ fromProtoMsg(message: RecoveryCommitProtoMsg): RecoveryCommit;
567
+ toProto(message: RecoveryCommit): Uint8Array;
568
+ toProtoMsg(message: RecoveryCommit): RecoveryCommitProtoMsg;
569
+ };
570
+ /**
571
+ * RecoveryCommitmentEntry is the genesis form of the RecoveryCommitments map.
572
+ * @name RecoveryCommitmentEntry
573
+ * @package sparkdream.rep.v1
574
+ * @see proto type: sparkdream.rep.v1.RecoveryCommitmentEntry
575
+ */
576
+ export declare const RecoveryCommitmentEntry: {
577
+ typeUrl: string;
578
+ encode(message: RecoveryCommitmentEntry, writer?: BinaryWriter): BinaryWriter;
579
+ decode(input: BinaryReader | Uint8Array, length?: number): RecoveryCommitmentEntry;
580
+ fromPartial(object: DeepPartial<RecoveryCommitmentEntry>): RecoveryCommitmentEntry;
581
+ fromAmino(object: RecoveryCommitmentEntryAmino): RecoveryCommitmentEntry;
582
+ toAmino(message: RecoveryCommitmentEntry): RecoveryCommitmentEntryAmino;
583
+ fromAminoMsg(object: RecoveryCommitmentEntryAminoMsg): RecoveryCommitmentEntry;
584
+ fromProtoMsg(message: RecoveryCommitmentEntryProtoMsg): RecoveryCommitmentEntry;
585
+ toProto(message: RecoveryCommitmentEntry): Uint8Array;
586
+ toProtoMsg(message: RecoveryCommitmentEntry): RecoveryCommitmentEntryProtoMsg;
587
+ };