@arca-network/sdk 1.23.0 → 1.24.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/arca.d.ts +57 -1
- package/dist/arca.d.ts.map +1 -1
- package/dist/arca.js +131 -0
- package/dist/arca.js.map +1 -1
- package/dist/cosign.d.ts +226 -15
- package/dist/cosign.d.ts.map +1 -1
- package/dist/cosign.js +296 -16
- package/dist/cosign.js.map +1 -1
- package/dist/errors.d.ts +44 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +56 -1
- package/dist/errors.js.map +1 -1
- package/dist/fixtures/cosign-vectors.json +102 -24
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +126 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/cosign.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { type Uint } from './eip712.js';
|
|
|
13
13
|
*
|
|
14
14
|
* This module builds the exact digest the kernel verifies in
|
|
15
15
|
* `ArcaCustodyKernel._verifyCosign` / `hashOperatorAction`:
|
|
16
|
-
* domain = EIP712Domain(name="ArcaCustodyKernel", version="
|
|
16
|
+
* domain = EIP712Domain(name="ArcaCustodyKernel", version="2",
|
|
17
17
|
* chainId, verifyingContract=kernel)
|
|
18
18
|
* struct = OperatorAction(uint8 actionType, bytes32 boundary,
|
|
19
19
|
* bytes32 paramsHash, uint256 nonce,
|
|
@@ -55,7 +55,71 @@ export declare enum CosignAction {
|
|
|
55
55
|
TransferToKernel = 7,
|
|
56
56
|
/** HL venue: re-home an account to another boundary. Appended; never
|
|
57
57
|
* renumber 0–7. paramsHash = keccak256(abi.encode(arcaId, newBoundary)). */
|
|
58
|
-
ReassignAccountBoundary = 8
|
|
58
|
+
ReassignAccountBoundary = 8,
|
|
59
|
+
/**
|
|
60
|
+
* kernel.allocateToVenue, CAPPED — a venue deposit consented BEFORE the
|
|
61
|
+
* amount is known. paramsHash = keccak256(abi.encode(token, venue,
|
|
62
|
+
* maxAmount, ref, venueAccountId)); the kernel admits any actual amount
|
|
63
|
+
* `<= maxAmount` for the one arrival named by `ref`.
|
|
64
|
+
*
|
|
65
|
+
* Why it exists: money arriving from outside never knows its own size in
|
|
66
|
+
* advance (a bridge takes a fee; a managed-address arrival is read out of
|
|
67
|
+
* the Transfer log when it lands), so an exact-amount consent can only be
|
|
68
|
+
* collected AFTER arrival — a second trip on every funding rail. This shape
|
|
69
|
+
* is signed once at tap time.
|
|
70
|
+
*
|
|
71
|
+
* It is NOT a standing approval. It is bounded by the ceiling, single-use
|
|
72
|
+
* (its nonce is burned on consumption), pinned to one arrival by `ref`, and
|
|
73
|
+
* pinned to the signer's own venue sub-account by a non-zero
|
|
74
|
+
* `venueAccountId` — the kernel refuses a pre-auth with a zero context.
|
|
75
|
+
*/
|
|
76
|
+
VenueDepositPreAuth = 9,
|
|
77
|
+
/**
|
|
78
|
+
* kernel.depositWithLien — acceptance of a COVERED encumbrance: the credit
|
|
79
|
+
* and the lien arrive together in one atomic grant (the platform-funded
|
|
80
|
+
* "trade with this $X" on-ramp). paramsHash = keccak256(abi.encode(
|
|
81
|
+
* boundary, token, amount, beneficiaryBoundary)) — the SAME tuple as
|
|
82
|
+
* `RaiseLien`, under a distinct action byte on purpose: receiving
|
|
83
|
+
* encumbered funds and encumbering funds you already hold are different
|
|
84
|
+
* agreements, and the signed digest names which one was made (a signature
|
|
85
|
+
* for one can never spend as the other).
|
|
86
|
+
*
|
|
87
|
+
* Why consent at all, when the credit covers the lien: pay-first semantics
|
|
88
|
+
* freeze the WHOLE boundary's plain value-out while any lien is active — a
|
|
89
|
+
* burden on value the signer already held. Consumed only on co-sign-armed
|
|
90
|
+
* boundaries; unarmed grants stay signature-free. Appended; never renumber
|
|
91
|
+
* 0–9.
|
|
92
|
+
*/
|
|
93
|
+
DepositWithLien = 10,
|
|
94
|
+
/**
|
|
95
|
+
* kernel.transferBetweenVenues — the venue-to-venue HOP: value moving from
|
|
96
|
+
* one venue straight to an account on another, never resting at a
|
|
97
|
+
* boundary. paramsHash = keccak256(abi.encode(fromVenue, fromBoundary,
|
|
98
|
+
* toBoundary, toVenue, toVenueAccountId, token, amount, ref)). Signed by
|
|
99
|
+
* the DEBITED boundary; the credited side never signs, because value-in is
|
|
100
|
+
* consent-free.
|
|
101
|
+
*
|
|
102
|
+
* Why this takes a signature when `depositToVenue` — structurally the same
|
|
103
|
+
* balance-free frame — does not: a deposit is INBOUND and cannot extract,
|
|
104
|
+
* while a hop names a DESTINATION, and the kernel has no venue taxonomy.
|
|
105
|
+
* It cannot tell a trading venue from the CCTP withdraw venue, which burns
|
|
106
|
+
* value off-platform through the same interface. Appended; never renumber
|
|
107
|
+
* 0–10.
|
|
108
|
+
*/
|
|
109
|
+
TransferBetweenVenues = 11,
|
|
110
|
+
/**
|
|
111
|
+
* kernel.transferBetweenVenues, CAPPED — the venue-side sibling of
|
|
112
|
+
* {@link CosignAction.VenueDepositPreAuth}. Same tuple with the CEILING in
|
|
113
|
+
* the amount slot; the kernel admits any actual amount `<= maxAmount` for
|
|
114
|
+
* the one hop named by `ref`.
|
|
115
|
+
*
|
|
116
|
+
* Exists because a hop's size is only known once the source venue's value
|
|
117
|
+
* physically arrives — an L1 drain nets funding and bridge fees — and the
|
|
118
|
+
* user signs at initiation, before that. Bounded, single-use (its nonce is
|
|
119
|
+
* burned on consumption), and pinned to one hop by `ref`. Appended; never
|
|
120
|
+
* renumber 0–11.
|
|
121
|
+
*/
|
|
122
|
+
TransferBetweenVenuesPreAuth = 12
|
|
59
123
|
}
|
|
60
124
|
/**
|
|
61
125
|
* FROZEN wire numbering of the DEPLOYED v4 kernel line (`src/v4`). v4
|
|
@@ -93,7 +157,14 @@ export interface OperatorAction {
|
|
|
93
157
|
boundary: string;
|
|
94
158
|
/** keccak256 over the action's ABI-encoded parameters (32-byte hex). */
|
|
95
159
|
paramsHash: string;
|
|
96
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* The co-sign nonce this envelope commits to. TAKE IT FROM THE `propose`
|
|
162
|
+
* RESPONSE — on a v7 kernel it is a platform-minted burn-set slot, and
|
|
163
|
+
* `getBoundary().cosignNonce` is the frozen pre-upgrade counter (a dead
|
|
164
|
+
* field that reads stale or 0; signing over it produces an envelope the
|
|
165
|
+
* kernel refuses). Only frozen pre-v7 kernels still use the counter, and
|
|
166
|
+
* the propose response returns the right value for those too.
|
|
167
|
+
*/
|
|
97
168
|
nonce: Uint;
|
|
98
169
|
/** Unix-seconds expiry. */
|
|
99
170
|
deadline: Uint;
|
|
@@ -152,6 +223,23 @@ export declare function crossTransferParamsHash(fromB: string, toB: string, amou
|
|
|
152
223
|
* `keccak256(abi.encode(token, venue, amount, ref, venueAccountId))`.
|
|
153
224
|
*/
|
|
154
225
|
export declare function allocateToVenueParamsHash(token: string, venue: string, venueAccountId: string, amount: Uint, ref: string): string;
|
|
226
|
+
/**
|
|
227
|
+
* The CAPPED venue-deposit pre-consent — `CosignAction.VenueDepositPreAuth`.
|
|
228
|
+
* Structurally identical to {@link allocateToVenueParamsHash} except the
|
|
229
|
+
* amount word is a CEILING rather than the exact figure:
|
|
230
|
+
* `keccak256(abi.encode(token, venue, maxAmount, ref, venueAccountId))`.
|
|
231
|
+
*
|
|
232
|
+
* Sign this before the money lands, when only the ceiling is knowable. The
|
|
233
|
+
* kernel then routes whatever arrives up to `maxAmount` for the single
|
|
234
|
+
* arrival named by `ref`, and refuses (`PreAuthCapExceeded`) above it — an
|
|
235
|
+
* over-cap arrival falls back to an exact-amount signature.
|
|
236
|
+
*
|
|
237
|
+
* `venueAccountId` MUST be non-zero: it is what keeps a capped consent
|
|
238
|
+
* pointed at the signer's own venue account rather than an
|
|
239
|
+
* operator-chosen address, and the kernel rejects a zero context here
|
|
240
|
+
* (`PreAuthRequiresVenueContext`).
|
|
241
|
+
*/
|
|
242
|
+
export declare function venueDepositPreAuthParamsHash(token: string, venue: string, venueAccountId: string, maxAmount: Uint, ref: string): string;
|
|
155
243
|
/**
|
|
156
244
|
* The routing instruction a BRIDGED withdrawal carries — the payload the
|
|
157
245
|
* realm's `CctpWithdrawVenue` decodes to learn where the money goes:
|
|
@@ -218,22 +306,58 @@ export declare function rotateSovereignKeyParamsHash(newKey: string): string;
|
|
|
218
306
|
*/
|
|
219
307
|
export declare function accountApproveBuilderFeeParamsHash(arcaId: string, maxFeeRate: Uint, builder: string): string;
|
|
220
308
|
/**
|
|
221
|
-
* kernel.raiseLien: keccak256(abi.encode(boundary, amount,
|
|
222
|
-
* The user's explicit acceptance of a lien — an
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
309
|
+
* kernel.raiseLien: keccak256(abi.encode(boundary, token, amount,
|
|
310
|
+
* beneficiaryBoundary)). The user's explicit acceptance of a lien — an
|
|
311
|
+
* operator-raised encumbrance. Under the token-agnostic kernel's PAY-FIRST
|
|
312
|
+
* semantics, any active lien freezes the boundary's plain value-out paths
|
|
313
|
+
* (withdraw context 0, cross-transfer, kernel hop) in EVERY token until
|
|
314
|
+
* settled; venue routes stay open, so granted funds remain tradable.
|
|
226
315
|
*
|
|
227
|
-
* All
|
|
228
|
-
* again as the `OperatorAction.boundary` field), the
|
|
229
|
-
* the beneficiary boundary the operator may
|
|
230
|
-
* `settleLien` — so a consented lien can be neither
|
|
231
|
-
* a different collection
|
|
316
|
+
* All four parameters are inside the consented preimage: the boundary (bound
|
|
317
|
+
* again as the `OperatorAction.boundary` field), the lien's DENOMINATION
|
|
318
|
+
* token, the exact lien amount, and the beneficiary boundary the operator may
|
|
319
|
+
* later collect into via `settleLien` — so a consented lien can be neither
|
|
320
|
+
* resized, re-denominated, nor re-pointed at a different collection
|
|
321
|
+
* destination. (Token-resynced for the token-agnostic kernel line; the
|
|
322
|
+
* frozen pre-token shape lives only in `test/v4/vectors/`.)
|
|
232
323
|
*
|
|
233
324
|
* UNITS: `amount` is the RAW token uint256 (6dp USDC micro-units), matching
|
|
234
325
|
* the on-chain preimage — the same contract as {@link withdrawParamsHash}.
|
|
235
326
|
*/
|
|
236
|
-
export declare function raiseLienParamsHash(boundary: string, amount: Uint, beneficiaryBoundary: string): string;
|
|
327
|
+
export declare function raiseLienParamsHash(boundary: string, token: string, amount: Uint, beneficiaryBoundary: string): string;
|
|
328
|
+
/**
|
|
329
|
+
* kernel.depositWithLien (v7, `CosignAction.DepositWithLien` = 10):
|
|
330
|
+
* keccak256(abi.encode(boundary, token, amount, beneficiaryBoundary)) — the
|
|
331
|
+
* SAME tuple as {@link raiseLienParamsHash}, deliberately under a distinct
|
|
332
|
+
* action byte. What the user accepts here is a COVERED encumbrance: the
|
|
333
|
+
* credit and the lien arrive together in one atomic grant (the
|
|
334
|
+
* platform-funded "trade with this $X" on-ramp). Receiving encumbered funds
|
|
335
|
+
* and encumbering funds you already hold are different agreements, and the
|
|
336
|
+
* action discriminator in the signed digest names which one was made — a
|
|
337
|
+
* signature for one can never spend as the other.
|
|
338
|
+
*
|
|
339
|
+
* Consumed only on co-sign-armed boundaries (an unarmed grant passes an
|
|
340
|
+
* empty consent tail on-chain and needs no signature).
|
|
341
|
+
*/
|
|
342
|
+
export declare function depositWithLienParamsHash(boundary: string, token: string, amount: Uint, beneficiaryBoundary: string): string;
|
|
343
|
+
/**
|
|
344
|
+
* kernel.transferBetweenVenues (v7): keccak256(abi.encode(fromVenue,
|
|
345
|
+
* fromBoundary, toBoundary, toVenue, toVenueAccountId, token, amount, ref))
|
|
346
|
+
* — the venue-to-venue HOP, signed by the DEBITED boundary.
|
|
347
|
+
*
|
|
348
|
+
* Every routing decision is inside the preimage, which is what makes a hop
|
|
349
|
+
* envelope safe to hand to an operator: the source venue asserting whose
|
|
350
|
+
* value this is, BOTH boundaries (so a consented same-user rebalance cannot
|
|
351
|
+
* be re-aimed across boundaries), the destination venue AND its sub-account
|
|
352
|
+
* (so it cannot be redirected into someone else's account), the token, the
|
|
353
|
+
* amount, and the ref. The credited side signs nothing.
|
|
354
|
+
*
|
|
355
|
+
* UNITS: `amount` is the RAW token uint256 (6dp USDC micro-units), matching
|
|
356
|
+
* the on-chain preimage. Under the CAPPED shape
|
|
357
|
+
* ({@link CosignAction.TransferBetweenVenuesPreAuth}) pass the CEILING here
|
|
358
|
+
* instead of the actual amount — the kernel admits anything at or under it.
|
|
359
|
+
*/
|
|
360
|
+
export declare function transferBetweenVenuesParamsHash(fromVenue: string, fromBoundary: string, toBoundary: string, toVenue: string, toVenueAccountId: string, token: string, amount: Uint, ref: string): string;
|
|
237
361
|
export interface CosignContext {
|
|
238
362
|
chainId: Uint;
|
|
239
363
|
kernelAddress: string;
|
|
@@ -244,6 +368,85 @@ export interface CosignContext {
|
|
|
244
368
|
export declare function signWithdraw(privateKey: string | Uint8Array, ctx: CosignContext, token: string, amount: Uint, recipient: string, ref: string): string;
|
|
245
369
|
export declare function signCrossTransfer(privateKey: string | Uint8Array, ctx: CosignContext, toBoundary: string, amount: Uint): string;
|
|
246
370
|
export declare function signAllocateToVenue(privateKey: string | Uint8Array, ctx: CosignContext, token: string, venue: string, venueAccountId: string, amount: Uint, ref: string): string;
|
|
371
|
+
/**
|
|
372
|
+
* Sign the capped venue-deposit pre-consent: "route whatever this specific
|
|
373
|
+
* arrival (`ref`) delivers, up to `maxAmount`, into my venue account".
|
|
374
|
+
*
|
|
375
|
+
* Use this when the amount cannot be known at signing time — a bridged
|
|
376
|
+
* arrival net of fees, or a managed deposit address. When the amount IS known,
|
|
377
|
+
* use {@link signAllocateToVenue}, which commits it exactly.
|
|
378
|
+
*
|
|
379
|
+
* Give `ctx.deadline` real room here (hours or days, not the ~45s a tap-time
|
|
380
|
+
* envelope uses): the whole point is that the user signs before a slow rail
|
|
381
|
+
* completes. The deadline is still the outer bound on the consent, and it is
|
|
382
|
+
* the one bound that does not depend on the platform behaving.
|
|
383
|
+
*/
|
|
384
|
+
export declare function signVenueDepositPreAuth(privateKey: string | Uint8Array, ctx: CosignContext, token: string, venue: string, venueAccountId: string, maxAmount: Uint, ref: string): string;
|
|
385
|
+
/**
|
|
386
|
+
* Sign a venue-to-venue HOP — moving value from one venue straight to an
|
|
387
|
+
* account on another, without it resting at a boundary. `ctx.boundary` is the
|
|
388
|
+
* DEBITED (source) boundary, which is the side that signs; pass the same id
|
|
389
|
+
* as `toBoundary` for the ordinary rebalance between two of your own venue
|
|
390
|
+
* accounts, or a different one for a cross-boundary hop.
|
|
391
|
+
*
|
|
392
|
+
* `amount` is exact. When the size is not yet known at signing time — the
|
|
393
|
+
* usual case for a hop out of Hyperliquid, where an L1 drain nets funding and
|
|
394
|
+
* bridge fees — use {@link signTransferBetweenVenuesPreAuth} instead.
|
|
395
|
+
*/
|
|
396
|
+
export declare function signTransferBetweenVenues(privateKey: string | Uint8Array, ctx: CosignContext, fromVenue: string, toBoundary: string, toVenue: string, toVenueAccountId: string, token: string, amount: Uint, ref: string): string;
|
|
397
|
+
/**
|
|
398
|
+
* Sign the CAPPED venue hop: "move whatever this specific hop (`ref`) turns
|
|
399
|
+
* out to be, up to `maxAmount`, from my venue account to that one".
|
|
400
|
+
*
|
|
401
|
+
* The ceiling is what keeps this a bounded, per-action consent rather than a
|
|
402
|
+
* standing approval, and it is enforced on chain — the kernel refuses an
|
|
403
|
+
* amount above it outright rather than clamping, so an over-cap hop needs a
|
|
404
|
+
* fresh signature over what actually turned up. Same tuple as
|
|
405
|
+
* {@link signTransferBetweenVenues}, distinguished only by the action byte,
|
|
406
|
+
* so neither shape's signature can ever spend as the other.
|
|
407
|
+
*/
|
|
408
|
+
export declare function signTransferBetweenVenuesPreAuth(privateKey: string | Uint8Array, ctx: CosignContext, fromVenue: string, toBoundary: string, toVenue: string, toVenueAccountId: string, token: string, maxAmount: Uint, ref: string): string;
|
|
409
|
+
/**
|
|
410
|
+
* The subset of a venue-hop proposal that is re-derivable locally. Declared
|
|
411
|
+
* structurally so this module stays free of the API types.
|
|
412
|
+
*/
|
|
413
|
+
export interface VerifiableVenueHopProposal {
|
|
414
|
+
action: number;
|
|
415
|
+
boundaryKey: string;
|
|
416
|
+
targetBoundaryKey: string;
|
|
417
|
+
fromVenue: string;
|
|
418
|
+
toVenue: string;
|
|
419
|
+
toVenueAccountKey: string;
|
|
420
|
+
token: string;
|
|
421
|
+
domain: {
|
|
422
|
+
name: string;
|
|
423
|
+
version: string;
|
|
424
|
+
chainId: Uint;
|
|
425
|
+
verifyingContract: string;
|
|
426
|
+
};
|
|
427
|
+
amountRaw: Uint;
|
|
428
|
+
ref: string;
|
|
429
|
+
nonce: Uint;
|
|
430
|
+
deadline: Uint;
|
|
431
|
+
paramsHash: string;
|
|
432
|
+
digest: string;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Re-derive a venue-hop proposal's `paramsHash` and `digest` from its own
|
|
436
|
+
* fields and throw unless both match what the server returned.
|
|
437
|
+
*
|
|
438
|
+
* A digest is 32 opaque bytes: a key asked to sign one cannot tell a hop to
|
|
439
|
+
* your own paper account from a hop to someone else's, and neither can the
|
|
440
|
+
* user approving it on a device. Re-deriving is what turns the returned
|
|
441
|
+
* fields — which a human CAN read — into the thing actually being consented
|
|
442
|
+
* to. {@link Arca.hopVenues} calls this before every signature; call it
|
|
443
|
+
* yourself if you drive propose/sign/submit by hand.
|
|
444
|
+
*
|
|
445
|
+
* The domain name and version are checked against this SDK's own constants
|
|
446
|
+
* rather than trusted from the response, so a server cannot move the
|
|
447
|
+
* signature onto a kernel whose semantics this SDK has never seen.
|
|
448
|
+
*/
|
|
449
|
+
export declare function verifyVenueHopProposal(p: VerifiableVenueHopProposal): void;
|
|
247
450
|
export declare function signReassignAccountBoundary(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, newBoundary: string): string;
|
|
248
451
|
export declare function signAccountAddAgent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, agent: string, name: string): string;
|
|
249
452
|
export declare function signAccountMigrateParent(privateKey: string | Uint8Array, ctx: CosignContext, arcaId: string, newModule: string): string;
|
|
@@ -260,7 +463,15 @@ export declare function signAccountApproveBuilderFee(privateKey: string | Uint8A
|
|
|
260
463
|
* `amount` is the RAW token uint256; `beneficiaryBoundary` is the recorded
|
|
261
464
|
* collection destination.
|
|
262
465
|
*/
|
|
263
|
-
export declare function signRaiseLien(privateKey: string | Uint8Array, ctx: CosignContext, amount: Uint, beneficiaryBoundary: string): string;
|
|
466
|
+
export declare function signRaiseLien(privateKey: string | Uint8Array, ctx: CosignContext, token: string, amount: Uint, beneficiaryBoundary: string): string;
|
|
467
|
+
/**
|
|
468
|
+
* Sign acceptance of a COVERED lien grant (`kernel.depositWithLien`, action
|
|
469
|
+
* 10): the credit and the encumbrance arrive together. Distinct from
|
|
470
|
+
* {@link signRaiseLien} by action byte — the digest names WHICH agreement
|
|
471
|
+
* was made, so neither signature can spend as the other. Only needed on
|
|
472
|
+
* co-sign-armed boundaries; unarmed grants are signature-free.
|
|
473
|
+
*/
|
|
474
|
+
export declare function signDepositWithLien(privateKey: string | Uint8Array, ctx: CosignContext, token: string, amount: Uint, beneficiaryBoundary: string): string;
|
|
264
475
|
/** ERC-7913 device signer types enrolled in a `CosignRegistry`. */
|
|
265
476
|
export interface CosignDeviceItem {
|
|
266
477
|
/** The enrolled ERC-7913 device blob (20-byte address, or `verifier || key`). */
|
package/dist/cosign.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosign.d.ts","sourceRoot":"","sources":["../src/cosign.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAYV,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH;;;;;;;;;;;;;GAaG;AACH,oBAAY,YAAY;IACtB,QAAQ,IAAI;IACZ,aAAa,IAAI;IACjB,eAAe,IAAI;IACnB,oBAAoB,IAAI;IACxB,kBAAkB,IAAI;IACtB,wBAAwB,IAAI;IAC5B,SAAS,IAAI;IACb;4EACwE;IACxE,gBAAgB,IAAI;IAC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