@arca-network/sdk 1.12.1 → 1.14.0

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.
package/dist/cosign.d.ts CHANGED
@@ -30,14 +30,43 @@
30
30
  /**
31
31
  * Mirrors `IArcaCustodyKernel.CosignAction`. The integer values are folded
32
32
  * into the EIP-712 digest and MUST stay in lockstep with that enum; once the
33
- * contracts are deployed this is a frozen wire contract.
33
+ * contracts are deployed this is a frozen wire contract. (The pre-v5-deploy
34
+ * compaction removed the retired `VaultDrain` / `VaultBridge` /
35
+ * `SetCoordinator` / `MigrateOut` slots and renumbered the survivors — no
36
+ * signature has ever been issued against the fresh-deploy kernel, so this
37
+ * numbering is the wire truth.)
34
38
  *
35
- * `MoveOut` (0) is the kernel's single generic value-out primitive. The
36
- * coordinator composes it as both a plain withdraw (`context = 0`) and a
37
- * venue route (`context = moduleAccountId`), so one discriminator covers what
38
- * were previously the separate `Withdraw` and `RouteToModule` actions.
39
+ * `Withdraw` (0) is the kernel's single generic value-out primitive, composed
40
+ * as both a plain withdraw (`context = 0`) and a venue route
41
+ * (`context = venueAccountId`). Numeric value 0 is the wire contract — the
42
+ * Solidity identifier was `MoveOut` before the v6 naming pass.
39
43
  */
40
44
  export declare enum CosignAction {
45
+ Withdraw = 0,
46
+ CrossTransfer = 1,
47
+ AccountAddAgent = 2,
48
+ AccountMigrateParent = 3,
49
+ RotateSovereignKey = 4,
50
+ AccountApproveBuilderFee = 5,
51
+ RaiseLien = 6,
52
+ /** kernel.transferToKernel — the cross-kernel value hop (token-bearing
53
+ * preimage; the paramsHash helper ships with the token-resync pass). */
54
+ TransferToKernel = 7,
55
+ /** HL venue: re-home an account to another boundary. Appended; never
56
+ * renumber 0–7. paramsHash = keccak256(abi.encode(arcaId, newBoundary)). */
57
+ ReassignAccountBoundary = 8
58
+ }
59
+ /**
60
+ * FROZEN wire numbering of the DEPLOYED v4 kernel line (`src/v4`). v4
61
+ * kernels are not upgradable onto the v5 line and keep serving until their
62
+ * realms migrate, so a co-signature for a v4 kernel MUST use these action
63
+ * values (pass them to `signOperatorAction` / `operatorActionDigest`
64
+ * directly), never the compacted v5 `CosignAction` above. The retired slots
65
+ * (3–6) are listed for completeness; no v4 contract accepts them. The v4
66
+ * value-path preimages are also tokenless — pinned by the frozen fixture
67
+ * `backend/contracts/test/v4/vectors/cosign-vectors.json`.
68
+ */
69
+ export declare enum CosignActionV4 {
41
70
  MoveOut = 0,
42
71
  CrossTransfer = 1,
43
72
  VaultAddAgent = 2,
@@ -87,11 +116,17 @@ export declare function recoverOperatorActionSigner(signature: string, a: Operat
87
116
  /** A 32-byte zero word — the `context` for a plain withdraw. */
88
117
  export declare const ZERO_BYTES32: string;
89
118
  /**
90
- * kernel.moveOut: keccak256(abi.encode(to, amount, ref, context)). This is the
91
- * single commitment for every co-signed value-out. `to` is the recipient (a
92
- * plain withdraw) or the venue module (a route); `context` is `ZERO_BYTES32`
93
- * for a withdraw, or the venue sub-account id for a route — so the operator
94
- * cannot redirect a consented venue deposit to a different sub-account.
119
+ * kernel.withdraw (v6 line): keccak256(abi.encode(token, to, amount, ref,
120
+ * context)). This is the single commitment for every co-signed value-out.
121
+ * `token` is the ERC-20 being withdrawn (the v6 kernel is token-agnostic, so
122
+ * the denomination is part of what the user consents to); `to` is the
123
+ * recipient (a plain withdraw) or the venue (a route); `context` is
124
+ * `ZERO_BYTES32` for a withdraw, or the venue sub-account id for a route — so
125
+ * the operator cannot redirect a consented venue deposit to a different
126
+ * sub-account.
127
+ *
128
+ * The frozen v4/v5 kernels hash a tokenless preimage — use
129
+ * {@link withdrawParamsHashV5} against a realm still on that line.
95
130
  *
96
131
  * UNITS: `amount` is the RAW token uint256 (6dp USDC micro-units), matching the
97
132
  * on-chain preimage — NOT a decimal USD string. If you got the amount from the
@@ -99,69 +134,53 @@ export declare const ZERO_BYTES32: string;
99
134
  * field here, never the decimal `amount` field (encoding the decimal string
100
135
  * yields a 10^6×-wrong commitment).
101
136
  */
102
- export declare function moveOutParamsHash(to: string, amount: Uint, ref: string, context: string): string;
137
+ export declare function withdrawParamsHash(token: string, to: string, amount: Uint, ref: string, context: string): string;
103
138
  /**
104
- * Convenience wrapper for a plain withdraw — a `moveOut` with `context = 0`.
105
- * Produces the kernel's `keccak256(abi.encode(recipient, amount, ref, 0))`.
106
- *
107
- * UNITS: `amount` is the RAW token uint256 (see {@link moveOutParamsHash}). Use
108
- * the propose response's `amountRaw`, not its decimal `amount`.
139
+ * The FROZEN v4/v5 kernels' withdraw commitment:
140
+ * keccak256(abi.encode(to, amount, ref, context)) — no token word (those
141
+ * kernels are single-token). Only for realms still pinned to the frozen
142
+ * lines (e.g. a v5 `gobi-wallet-lab`); every fresh realm is v6 and takes
143
+ * {@link withdrawParamsHash}.
109
144
  */
110
- export declare function withdrawParamsHash(amount: Uint, recipient: string, ref: string): string;
145
+ export declare function withdrawParamsHashV5(to: string, amount: Uint, ref: string, context: string): string;
111
146
  /** kernel.crossTransfer: keccak256(abi.encode(fromB, toB, amount)). */
112
147
  export declare function crossTransferParamsHash(fromB: string, toB: string, amount: Uint): string;
113
148
  /**
114
- * Convenience wrapper for a venue route — a `moveOut` whose `to` is the module
149
+ * Convenience wrapper for a venue route — a `withdraw` whose `to` is the venue
115
150
  * and whose `context` is the venue sub-account id. Produces the kernel's
116
- * `keccak256(abi.encode(module, amount, ref, subjectId))`.
151
+ * `keccak256(abi.encode(token, venue, amount, ref, venueAccountId))`.
117
152
  */
118
- export declare function routeToModuleParamsHash(module: string, subjectId: string, amount: Uint, ref: string): string;
153
+ export declare function allocateToVenueParamsHash(token: string, venue: string, venueAccountId: string, amount: Uint, ref: string): string;
154
+ /** HL venue.reassignAccountBoundary: keccak256(abi.encode(arcaId, newBoundary)). */
155
+ export declare function reassignAccountBoundaryParamsHash(arcaId: string, newBoundary: string): string;
119
156
  /**
120
- * HL module.vaultAddAgent: keccak256(abi.encode(arcaId, agent, name)). The
157
+ * HL module.accountAddAgent: keccak256(abi.encode(arcaId, agent, name)). The
121
158
  * leading `arcaId` binds the co-signature to ONE arca — a boundary can hold
122
159
  * several arcas, and the kernel digest only binds `boundary`, so without this
123
160
  * an operator could replay the signature against a different arca in the same
124
161
  * boundary. `name` is a dynamic string, so this uses full head/tail ABI
125
162
  * encoding: two head words (arcaId, agent) then the offset to the string.
126
163
  */
127
- export declare function vaultAddAgentParamsHash(arcaId: string, agent: string, name: string): string;
128
- /**
129
- * HL module.vaultDrainPerpToSpot: keccak256(abi.encode(arcaId, coreAmt)).
130
- *
131
- * RETIRED SURFACE (kept as an algebra pin). The venue-withdrawal exemption
132
- * (module v6, 2026-08-17) removed the cosign gate from the drain leg — it is
133
- * a destination-fixed custody-increasing repatriation, so no contract accepts
134
- * a VaultDrain (action 3) signature any more. Kept for the `vaultDrain`
135
- * golden vector's cross-language ABI pin.
136
- */
137
- export declare function vaultDrainParamsHash(arcaId: string, coreAmt: Uint): string;
138
- /**
139
- * HL module.vaultBridgeAndForwardUSDC: keccak256(abi.encode(arcaId, coreAmt, ref)).
140
- *
141
- * RETIRED SURFACE (kept as an algebra pin) — same exemption as
142
- * `vaultDrainParamsHash`; no contract accepts a VaultBridge (action 4)
143
- * signature any more. Kept for the `vaultBridge` golden vector.
144
- */
145
- export declare function vaultBridgeParamsHash(arcaId: string, coreAmt: Uint, ref: string): string;
146
- /** HL module.migrateVaultParent: keccak256(abi.encode(arcaId, newModule)). */
147
- export declare function vaultMigrateParentParamsHash(arcaId: string, newModule: string): string;
164
+ export declare function accountAddAgentParamsHash(arcaId: string, agent: string, name: string): string;
165
+ /** HL module.migrateAccountParent: keccak256(abi.encode(arcaId, newModule)). */
166
+ export declare function accountMigrateParentParamsHash(arcaId: string, newModule: string): string;
148
167
  /**
149
- * kernel.rotateRecoveryKey: keccak256(abi.encode(newKey)). The boundary owner
150
- * (co-sign key OR the *current* recovery key) signs off on rotating to
151
- * `newKey`; the operator co-submits. This is the 2-of-2 that lets a user
152
- * replace a lost/rotated recovery key without a full recovery. Bound at
153
- * `ArcaCustodyKernel.rotateRecoveryKey` (`keccak256(abi.encode(newKey))`).
168
+ * kernel.rotateSovereignKey: keccak256(abi.encode(newKey)). The boundary's
169
+ * *current* sovereign key signs off on rotating to `newKey`; the operator
170
+ * co-submits. This is the 2-of-2 that lets a user replace a
171
+ * compromised-but-not-lost sovereign key without a full recovery. Bound at
172
+ * `ArcaCustodyKernel.rotateSovereignKey` (`keccak256(abi.encode(newKey))`).
154
173
  */
155
- export declare function rotateRecoveryKeyParamsHash(newKey: string): string;
174
+ export declare function rotateSovereignKeyParamsHash(newKey: string): string;
156
175
  /**
157
- * HL module.vaultApproveBuilderFee: keccak256(abi.encode(arcaId, maxFeeRate,
176
+ * HL module.accountApproveBuilderFee: keccak256(abi.encode(arcaId, maxFeeRate,
158
177
  * builder)). Grants a builder a capped fee rate on the Arca's HL account. Like
159
- * the other `vault*` helpers the leading `arcaId` binds the co-signature to ONE
160
- * arca so it cannot be replayed against a sibling arca in the same boundary.
161
- * `maxFeeRate` is a uint64 (tenths of a basis point). No fund movement, so the
162
- * kernel does not gate it on recovery state.
178
+ * the other `account*` helpers the leading `arcaId` binds the co-signature to
179
+ * ONE arca so it cannot be replayed against a sibling arca in the same
180
+ * boundary. `maxFeeRate` is a uint64 (tenths of a basis point). No fund
181
+ * movement, so the kernel does not gate it on recovery state.
163
182
  */
164
- export declare function vaultApproveBuilderFeeParamsHash(arcaId: string, maxFeeRate: Uint, builder: string): string;
183
+ export declare function accountApproveBuilderFeeParamsHash(arcaId: string, maxFeeRate: Uint, builder: string): string;
165
184
  /**
166
185
  * kernel.raiseLien: keccak256(abi.encode(boundary, amount, beneficiaryBoundary)).
167
186
  * The user's explicit acceptance of a lien — an operator-raised encumbrance
@@ -176,7 +195,7 @@ export declare function vaultApproveBuilderFeeParamsHash(arcaId: string, maxFeeR
176
195
  * a different collection destination.
177
196
  *
178
197
  * UNITS: `amount` is the RAW token uint256 (6dp USDC micro-units), matching
179
- * the on-chain preimage — the same contract as {@link moveOutParamsHash}.
198
+ * the on-chain preimage — the same contract as {@link withdrawParamsHash}.
180
199
  */
181
200
  export declare function raiseLienParamsHash(boundary: string, amount: Uint, beneficiaryBoundary: string): string;
182
201
  export interface CosignContext {
@@ -186,20 +205,19 @@ export interface CosignContext {
186
205
  nonce: Uint;
187
206
  deadline: Uint;
188
207
  }
189
- export declare function signWithdraw(privateKey: string | Uint8Array, ctx: CosignContext, amount: Uint, recipient: string, ref: string): string;
208
+ export declare function signWithdraw(privateKey: string | Uint8Array, ctx: CosignContext, token: string, amount: Uint, recipient: string, ref: string): string;
190
209
  export declare function signCrossTransfer(privateKey: string | Uint8Array, ctx: CosignContext, toBoundary: string, amount: Uint): string;
191
- export declare function signRouteToModule(privateKey: string | Uint8Array, ctx: CosignContext, module: string, subjectId: string, amount: Uint, ref: string): string;
192
- export declare function signVaultAddAgent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, agent: string, name: string): string;
193
- export declare function signVaultDrain(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, coreAmt: Uint): string;
194
- export declare function signVaultBridge(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, coreAmt: Uint, ref: string): string;
195
- export declare function signVaultMigrateParent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, newModule: string): string;
210
+ export declare function signAllocateToVenue(privateKey: string | Uint8Array, ctx: CosignContext, token: string, venue: string, venueAccountId: string, amount: Uint, ref: string): string;
211
+ export declare function signReassignAccountBoundary(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, newBoundary: string): string;
212
+ export declare function signAccountAddAgent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, agent: string, name: string): string;
213
+ export declare function signAccountMigrateParent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, newModule: string): string;
196
214
  /**
197
- * Sign the owner's sign-off for rotating a boundary's recovery key to
198
- * `newKey`. The signer is the boundary owner (its co-sign key or the current
199
- * recovery key); the platform operator co-submits `rotateRecoveryKey`.
215
+ * Sign the sovereign sign-off for rotating a boundary's sovereign key to
216
+ * `newKey`. The signer is the boundary's CURRENT sovereign key; the platform
217
+ * operator co-submits `rotateSovereignKey`.
200
218
  */
201
- export declare function signRotateRecoveryKey(privateKey: string | Uint8Array, ctx: CosignContext, newKey: string): string;
202
- export declare function signVaultApproveBuilderFee(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, maxFeeRate: Uint, builder: string): string;
219
+ export declare function signRotateSovereignKey(privateKey: string | Uint8Array, ctx: CosignContext, newKey: string): string;
220
+ export declare function signAccountApproveBuilderFee(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, maxFeeRate: Uint, builder: string): string;
203
221
  /**
204
222
  * Sign the user's explicit acceptance of a lien on their boundary
205
223
  * (`kernel.raiseLien`). `ctx.boundary` is the boundary being encumbered;
@@ -244,7 +262,7 @@ export declare function deviceSignerHash(signer: string): string;
244
262
  * Build the registry co-sign blob `abi.encode(bytes[] signers, bytes[] sigs)`,
245
263
  * ordered by strictly increasing `keccak256(signer)` (the canonical order the
246
264
  * registry requires). Throws on a duplicate device. Pass this as the kernel's
247
- * `cosignSig` when `cosignKey` points at a `CosignRegistry`.
265
+ * `cosignSig` when the boundary's sovereign key points at a `CosignRegistry`.
248
266
  */
249
267
  export declare function encodeRegistryCosignBlob(items: CosignDeviceItem[]): string;
250
268
  /** Relayed management action ids — part of the signed `CosignerManage` digest. */
@@ -270,12 +288,12 @@ export interface CosignerManage {
270
288
  /** EIP-712 domain separator for a `CosignRegistry` on a given chain. */
271
289
  export declare function cosignRegistryDomainSeparator(chainId: Uint, registryAddress: string): string;
272
290
  /**
273
- * The EIP-712 digest a boundary's recovery key signs to relay an enroll/remove
291
+ * The EIP-712 digest a boundary's sovereign key signs to relay an enroll/remove
274
292
  * to the registry (`addCosignerWithSig` / `removeCosignerWithSig`). Equal to
275
293
  * the registry's `manageDigest(action, boundary, signerHash, deadline)`.
276
294
  */
277
295
  export declare function cosignerManageDigest(m: CosignerManage): string;
278
- /** Sign a `CosignerManage` relay authorization with the recovery key. */
296
+ /** Sign a `CosignerManage` relay authorization with the sovereign key. */
279
297
  export declare function signCosignerManage(privateKey: string | Uint8Array, m: CosignerManage): string;
280
298
  /** Recover the signer of a `CosignerManage` relay signature. */
281
299
  export declare function recoverCosignerManageSigner(signature: string, m: CosignerManage): string;
@@ -1 +1 @@
1
- {"version":3,"file":"cosign.d.ts","sourceRoot":"","sources":["../src/cosign.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH;;;;;;;;;GASG;AACH,oBAAY,YAAY;IACtB,OAAO,IAAI;IACX,aAAa,IAAI;IACjB,aAAa,IAAI;IACjB,UAAU,IAAI;IACd,WAAW,IAAI;IACf,cAAc,IAAI;IAClB,UAAU,IAAI;IACd,kBAAkB,IAAI;IACtB,iBAAiB,IAAI;IACrB,sBAAsB,IAAI;IAC1B,SAAS,KAAK;CACf;AAcD,gEAAgE;AAChE,eAAO,MAAM,4BAA4B,QAAkC,CAAC;AAI5E,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,OAAO,EAAE,IAAI,CAAC;IACd,6DAA6D;IAC7D,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,YAAY,CAAC;IACrB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;IACnB,sEAAsE;IACtE,KAAK,EAAE,IAAI,CAAC;IACZ,2BAA2B;IAC3B,QAAQ,EAAE,IAAI,CAAC;CAChB;AAID,8DAA8D;AAC9D,wBAAgB,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAS5E;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,GAAG,MAAM,CAc9D;AAID;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