@arca-network/sdk 1.12.0 → 1.13.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,81 +116,62 @@ 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
119
+ * kernel.withdraw: keccak256(abi.encode(to, amount, ref, context)). This is the
91
120
  * 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`
121
+ * plain withdraw) or the venue (a route); `context` is `ZERO_BYTES32`
93
122
  * for a withdraw, or the venue sub-account id for a route — so the operator
94
123
  * cannot redirect a consented venue deposit to a different sub-account.
95
124
  *
125
+ * The live kernel's on-chain preimage is token-bearing
126
+ * (`token, to, amount, ref, context`); this helper stays tokenless to keep
127
+ * the shared cosign-vector fixture byte-stable (Gobi iOS WalletKit consumes
128
+ * it). Do not "fix" the token word here without regenerating every port.
129
+ *
96
130
  * UNITS: `amount` is the RAW token uint256 (6dp USDC micro-units), matching the
97
131
  * on-chain preimage — NOT a decimal USD string. If you got the amount from the
98
132
  * platform's `POST /custody/withdrawals/propose` response, pass its `amountRaw`
99
133
  * field here, never the decimal `amount` field (encoding the decimal string
100
134
  * yields a 10^6×-wrong commitment).
101
135
  */
102
- export declare function moveOutParamsHash(to: string, amount: Uint, ref: string, context: string): string;
103
- /**
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`.
109
- */
110
- export declare function withdrawParamsHash(amount: Uint, recipient: string, ref: string): string;
136
+ export declare function withdrawParamsHash(to: string, amount: Uint, ref: string, context: string): string;
111
137
  /** kernel.crossTransfer: keccak256(abi.encode(fromB, toB, amount)). */
112
138
  export declare function crossTransferParamsHash(fromB: string, toB: string, amount: Uint): string;
113
139
  /**
114
- * Convenience wrapper for a venue route — a `moveOut` whose `to` is the module
140
+ * Convenience wrapper for a venue route — a `withdraw` whose `to` is the venue
115
141
  * and whose `context` is the venue sub-account id. Produces the kernel's
116
- * `keccak256(abi.encode(module, amount, ref, subjectId))`.
142
+ * `keccak256(abi.encode(venue, amount, ref, venueAccountId))`.
117
143
  */
118
- export declare function routeToModuleParamsHash(module: string, subjectId: string, amount: Uint, ref: string): string;
144
+ export declare function allocateToVenueParamsHash(venue: string, venueAccountId: string, amount: Uint, ref: string): string;
145
+ /** HL venue.reassignAccountBoundary: keccak256(abi.encode(arcaId, newBoundary)). */
146
+ export declare function reassignAccountBoundaryParamsHash(arcaId: string, newBoundary: string): string;
119
147
  /**
120
- * HL module.vaultAddAgent: keccak256(abi.encode(arcaId, agent, name)). The
148
+ * HL module.accountAddAgent: keccak256(abi.encode(arcaId, agent, name)). The
121
149
  * leading `arcaId` binds the co-signature to ONE arca — a boundary can hold
122
150
  * several arcas, and the kernel digest only binds `boundary`, so without this
123
151
  * an operator could replay the signature against a different arca in the same
124
152
  * boundary. `name` is a dynamic string, so this uses full head/tail ABI
125
153
  * encoding: two head words (arcaId, agent) then the offset to the string.
126
154
  */
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;
155
+ export declare function accountAddAgentParamsHash(arcaId: string, agent: string, name: string): string;
156
+ /** HL module.migrateAccountParent: keccak256(abi.encode(arcaId, newModule)). */
157
+ export declare function accountMigrateParentParamsHash(arcaId: string, newModule: string): string;
148
158
  /**
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))`).
159
+ * kernel.rotateSovereignKey: keccak256(abi.encode(newKey)). The boundary's
160
+ * *current* sovereign key signs off on rotating to `newKey`; the operator
161
+ * co-submits. This is the 2-of-2 that lets a user replace a
162
+ * compromised-but-not-lost sovereign key without a full recovery. Bound at
163
+ * `ArcaCustodyKernel.rotateSovereignKey` (`keccak256(abi.encode(newKey))`).
154
164
  */
155
- export declare function rotateRecoveryKeyParamsHash(newKey: string): string;
165
+ export declare function rotateSovereignKeyParamsHash(newKey: string): string;
156
166
  /**
157
- * HL module.vaultApproveBuilderFee: keccak256(abi.encode(arcaId, maxFeeRate,
167
+ * HL module.accountApproveBuilderFee: keccak256(abi.encode(arcaId, maxFeeRate,
158
168
  * 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.
169
+ * the other `account*` helpers the leading `arcaId` binds the co-signature to
170
+ * ONE arca so it cannot be replayed against a sibling arca in the same
171
+ * boundary. `maxFeeRate` is a uint64 (tenths of a basis point). No fund
172
+ * movement, so the kernel does not gate it on recovery state.
163
173
  */
164
- export declare function vaultApproveBuilderFeeParamsHash(arcaId: string, maxFeeRate: Uint, builder: string): string;
174
+ export declare function accountApproveBuilderFeeParamsHash(arcaId: string, maxFeeRate: Uint, builder: string): string;
165
175
  /**
166
176
  * kernel.raiseLien: keccak256(abi.encode(boundary, amount, beneficiaryBoundary)).
167
177
  * The user's explicit acceptance of a lien — an operator-raised encumbrance
@@ -176,7 +186,7 @@ export declare function vaultApproveBuilderFeeParamsHash(arcaId: string, maxFeeR
176
186
  * a different collection destination.
177
187
  *
178
188
  * UNITS: `amount` is the RAW token uint256 (6dp USDC micro-units), matching
179
- * the on-chain preimage — the same contract as {@link moveOutParamsHash}.
189
+ * the on-chain preimage — the same contract as {@link withdrawParamsHash}.
180
190
  */
181
191
  export declare function raiseLienParamsHash(boundary: string, amount: Uint, beneficiaryBoundary: string): string;
182
192
  export interface CosignContext {
@@ -188,18 +198,17 @@ export interface CosignContext {
188
198
  }
189
199
  export declare function signWithdraw(privateKey: string | Uint8Array, ctx: CosignContext, amount: Uint, recipient: string, ref: string): string;
190
200
  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;
201
+ export declare function signAllocateToVenue(privateKey: string | Uint8Array, ctx: CosignContext, venue: string, venueAccountId: string, amount: Uint, ref: string): string;
202
+ export declare function signReassignAccountBoundary(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, newBoundary: string): string;
203
+ export declare function signAccountAddAgent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, agent: string, name: string): string;
204
+ export declare function signAccountMigrateParent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, newModule: string): string;
196
205
  /**
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`.
206
+ * Sign the sovereign sign-off for rotating a boundary's sovereign key to
207
+ * `newKey`. The signer is the boundary's CURRENT sovereign key; the platform
208
+ * operator co-submits `rotateSovereignKey`.
200
209
  */
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;
210
+ export declare function signRotateSovereignKey(privateKey: string | Uint8Array, ctx: CosignContext, newKey: string): string;
211
+ export declare function signAccountApproveBuilderFee(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, maxFeeRate: Uint, builder: string): string;
203
212
  /**
204
213
  * Sign the user's explicit acceptance of a lien on their boundary
205
214
  * (`kernel.raiseLien`). `ctx.boundary` is the boundary being encumbered;
@@ -244,7 +253,7 @@ export declare function deviceSignerHash(signer: string): string;
244
253
  * Build the registry co-sign blob `abi.encode(bytes[] signers, bytes[] sigs)`,
245
254
  * ordered by strictly increasing `keccak256(signer)` (the canonical order the
246
255
  * registry requires). Throws on a duplicate device. Pass this as the kernel's
247
- * `cosignSig` when `cosignKey` points at a `CosignRegistry`.
256
+ * `cosignSig` when the boundary's sovereign key points at a `CosignRegistry`.
248
257
  */
249
258
  export declare function encodeRegistryCosignBlob(items: CosignDeviceItem[]): string;
250
259
  /** Relayed management action ids — part of the signed `CosignerManage` digest. */
@@ -270,12 +279,12 @@ export interface CosignerManage {
270
279
  /** EIP-712 domain separator for a `CosignRegistry` on a given chain. */
271
280
  export declare function cosignRegistryDomainSeparator(chainId: Uint, registryAddress: string): string;
272
281
  /**
273
- * The EIP-712 digest a boundary's recovery key signs to relay an enroll/remove
282
+ * The EIP-712 digest a boundary's sovereign key signs to relay an enroll/remove
274
283
  * to the registry (`addCosignerWithSig` / `removeCosignerWithSig`). Equal to
275
284
  * the registry's `manageDigest(action, boundary, signerHash, deadline)`.
276
285
  */
277
286
  export declare function cosignerManageDigest(m: CosignerManage): string;
278
- /** Sign a `CosignerManage` relay authorization with the recovery key. */
287
+ /** Sign a `CosignerManage` relay authorization with the sovereign key. */
279
288
  export declare function signCosignerManage(privateKey: string | Uint8Array, m: CosignerManage): string;
280
289
  /** Recover the signer of a `CosignerManage` relay signature. */
281
290
  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;I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