@easy1staking/cip113-sdk-ts 0.7.0 → 0.10.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.
Files changed (35) hide show
  1. package/README.md +118 -2
  2. package/blueprints/standard/v0.5.0-alpha.3/UPSTREAM_PIN.json +35 -0
  3. package/blueprints/standard/v0.5.0-alpha.3/plutus.json +1126 -0
  4. package/blueprints/standard/v0.5.0-alpha.4/UPSTREAM_PIN.json +36 -0
  5. package/blueprints/standard/v0.5.0-alpha.4/plutus.json +1434 -0
  6. package/dist/core/evo-utils.d.ts +357 -39
  7. package/dist/core/evo-utils.d.ts.map +1 -1
  8. package/dist/core/evo-utils.js +513 -27
  9. package/dist/core/evo-utils.js.map +1 -1
  10. package/dist/core/ledger-order.d.ts +204 -18
  11. package/dist/core/ledger-order.d.ts.map +1 -1
  12. package/dist/core/ledger-order.js +385 -28
  13. package/dist/core/ledger-order.js.map +1 -1
  14. package/dist/index.d.ts +6 -6
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +15 -4
  17. package/dist/index.js.map +1 -1
  18. package/dist/standard/blueprint.d.ts +129 -29
  19. package/dist/standard/blueprint.d.ts.map +1 -1
  20. package/dist/standard/blueprint.js +245 -47
  21. package/dist/standard/blueprint.js.map +1 -1
  22. package/dist/standard/scripts.d.ts +189 -75
  23. package/dist/standard/scripts.d.ts.map +1 -1
  24. package/dist/standard/scripts.js +454 -123
  25. package/dist/standard/scripts.js.map +1 -1
  26. package/dist/substandards/dummy/index.d.ts +19 -0
  27. package/dist/substandards/dummy/index.d.ts.map +1 -1
  28. package/dist/substandards/dummy/index.js +322 -73
  29. package/dist/substandards/dummy/index.js.map +1 -1
  30. package/dist/substandards/freeze-and-seize/index.d.ts.map +1 -1
  31. package/dist/substandards/freeze-and-seize/index.js +455 -117
  32. package/dist/substandards/freeze-and-seize/index.js.map +1 -1
  33. package/dist/types.d.ts +161 -48
  34. package/dist/types.d.ts.map +1 -1
  35. package/package.json +2 -1
@@ -1,58 +1,147 @@
1
1
  /**
2
- * Standard script parameterization — CIP-113 0.5.0-alpha.2 (upstream 9db7e06).
2
+ * Standard script parameterization — CIP-113 0.5.0-alpha.4
3
+ * (upstream 7e8a63198c5b240135f1aa2f043ce5d7c046b2c4).
3
4
  *
4
5
  * Uses Evolution SDK directly for UPLC.applyParamsToScript and ScriptHash.
5
6
  *
6
- * Dependency graph. Note it is NO LONGER a single chain: upstream #110 removed
7
- * programmable_logic_global, and PLB is now parameterised by the params-NFT
8
- * policy rather than by PLG's credential, so everything downstream hangs off
9
- * `params_policy` in parallel instead of in series.
7
+ * Dependency graph. It is NOT a single chain: `programmable_logic_base` hangs
8
+ * off the params-NFT policy, so everything downstream of it fans out in
9
+ * parallel rather than in series.
10
10
  *
11
- * always_fail(nonce) -> hash (issuance side only now)
12
- * coordination_spend(nonce) -> hash NEW: the lock target
13
- * protocol_params_mint(utxo_ref, coord_hash) -> policy == params_policy
11
+ * always_fail(nonce) -> hash (issuance side only)
12
+ * protocol_params(utxo_ref) -> policy == params_policy
14
13
  * |
15
- * +-- programmable_logic_base(params_policy) -> hash
16
- * +-- transfer(params_policy) -> hash (PLG's transfer arm, renamed)
17
- * +-- third_party(params_policy) -> hash NEW: seize / clawback
18
- * +-- unfracking(params_policy) -> hash
19
- * +-- registry_spend(params_policy) -> hash
14
+ * +-- programmable_logic_base(params_policy) -> hash == plb
15
+ * | |
16
+ * | +-- transfer(Script(plb), registry_node_cs, max_inline) -> hash
17
+ * | +-- third_party(Script(plb), registry_node_cs, max_inline) -> hash
18
+ * | +-- unfracking(Script(plb), registry_node_cs, max_inline) -> hash
19
+ * | +-- issuance_logic(Script(plb), registry_node_cs,
20
+ * | params_policy, max_inline) -> hash NEW in alpha.4
21
+ * |
22
+ * +-- issuance_mint(Script(minting_logic), params_policy) -> policy
23
+ *
24
+ * programmable_logic_global(transfer_hash, third_party_hash, unfracking_hash)
25
+ * -> hash (built LAST)
26
+ *
27
+ * issuance_cbor_hex_mint(utxo_ref, always_fail_hash) -> policy
28
+ * registry(utxo_ref, issuance_cbor_hex_cs) -> policy
20
29
  *
21
- * issuance_cbor_hex_mint(utxo_ref, always_fail_hash) -> policy
22
- * registry_mint(utxo_ref, issuance_cbor_hex_cs, registry_spend_cred) -> policy
23
- * issuance_mint(PLB_cred, registry_node_cs, minting_logic_cred, params_policy)
24
- * upgrade_multisig(signers, threshold) -> hash (independent)
30
+ * upgrade_multisig(utxo_ref) -> hash (independent one-shot)
25
31
  *
26
32
  * ⚠ PARAMETER TYPES ARE NOT INTERCHANGEABLE and TypeScript cannot tell them
27
33
  * apart — every one of these is a hex string at the call site. `params_policy`
28
- * is a PolicyId (a bare ByteArray); `minting_logic_cred` and friends are
29
- * Credentials (a constructor-wrapped Script/VerificationKey). Passing a policy
30
- * where a credential belongs produces a valid script with the wrong hash. The
31
- * types below come from the blueprint's own parameter schemas, not from
34
+ * and `registry_node_cs` are PolicyIds (bare ByteArrays); `minting_logic_cred`
35
+ * and `programmable_logic_base` are Credentials (constructor-wrapped
36
+ * Script/VerificationKey). `scriptCredential()` wraps; `Data.bytearray()` does
37
+ * not. Passing a policy where a credential belongs produces a valid script with
38
+ * the wrong hash.
39
+ *
40
+ * ⛔ alpha.4 makes that sharper: `issuance_logic` takes TWO ADJACENT PolicyId
41
+ * parameters — `registry_node_cs` then `params_policy`. They are the same type,
42
+ * the same length, and both are `string` here. Swapping them yields a script
43
+ * that builds, hashes and deploys, and nothing before the ledger will say so.
44
+ *
45
+ * The types below come from the blueprint's own parameter schemas, not from
32
46
  * upstream's prose docs — see the hazard note in blueprint.ts.
33
47
  */
34
48
  import { Data } from "@evolution-sdk/evolution";
35
49
  import type { DeploymentParams, HexString, PlutusBlueprint, PlutusScript, PolicyId, ScriptHash, TxInput } from "../types.js";
36
50
  export interface StandardScripts {
37
51
  alwaysFail(nonce: HexString): PlutusScript;
38
- /** NEW in 0.5.x — the coordination UTxO's spender; nonce is arbitrary, per deployment. */
39
- coordinationSpend(nonce: HexString): PlutusScript;
40
- /** 2nd param is coordination_spend's hash in 0.5.x, always_fail's in 0.3.x. */
41
- protocolParamsMint(utxoRef: TxInput, coordinationHash: ScriptHash): PlutusScript;
42
- /** Takes the params-NFT POLICY now, not PLG's credential. */
52
+ /**
53
+ * `protocol_params` — mint AND spend in one validator (#118).
54
+ *
55
+ * ⚑ ITS HASH IS BOTH THE PARAMS-NFT POLICY ID AND THE PARAMS ADDRESS'S
56
+ * PAYMENT CREDENTIAL. The mint handler locks the NFT at `Script(own_policy)`
57
+ * — the minting policy naming itself. Callers that used to derive the policy
58
+ * from `protocol_params_mint` and the address from `protocol_params_spend`
59
+ * must collapse to this one derivation.
60
+ *
61
+ * ⚠ NO NONCE, and no lock-target parameter. `protocol_params_mint` took
62
+ * `(utxo_ref, coordination_hash)` and `coordination_spend` took `(nonce)`;
63
+ * both are gone. The ordering cycle they created is dissolved with them.
64
+ */
65
+ protocolParams(utxoRef: TxInput): PlutusScript;
66
+ /** Takes the params-NFT POLICY — which is now also the params address. */
43
67
  programmableLogicBase(paramsPolicy: PolicyId): PlutusScript;
44
- /** PLG's transfer arm, renamed by #110. */
45
- transfer(paramsPolicy: PolicyId): PlutusScript;
46
- /** Seize / clawback, split out of PLG by #110. */
47
- thirdParty(paramsPolicy: PolicyId): PlutusScript;
48
- unfracking(paramsPolicy: PolicyId): PlutusScript;
49
- upgradeMultisig(signers: HexString[], threshold: number | bigint): PlutusScript;
68
+ /**
69
+ * The three withdraw-0 delegates. Arity 1 -> 3 in alpha.3, SAME TITLES.
70
+ *
71
+ * ⚠ `progLogicCred` is programmable_logic_base's hash, NOT the dispatcher's.
72
+ * The dispatcher is parameterised BY these three, so pointing them at it
73
+ * would be a parameter cycle: a value derived from your own script hash can
74
+ * never be your own parameter.
75
+ */
76
+ transfer(progLogicCred: ScriptHash, registryPolicy: PolicyId, maxInlineDatumBytes: number | bigint): PlutusScript;
77
+ thirdParty(progLogicCred: ScriptHash, registryPolicy: PolicyId, maxInlineDatumBytes: number | bigint): PlutusScript;
78
+ unfracking(progLogicCred: ScriptHash, registryPolicy: PolicyId, maxInlineDatumBytes: number | bigint): PlutusScript;
79
+ /**
80
+ * `programmable_logic_global` — the dispatcher, reintroduced by #117.
81
+ *
82
+ * Carries the three delegate hashes as compile-time parameters, so replacing
83
+ * ONE delegate requires deploying a new dispatcher too. Must be built AFTER
84
+ * all three delegates.
85
+ *
86
+ * ⚠ Its parameters are bare ScriptHashes, not Credentials — unlike
87
+ * `issuance_mint`'s, which wrap the same 28 bytes in a Credential
88
+ * constructor. Same bytes, different encoding, no type to tell them apart.
89
+ */
90
+ programmableLogicGlobal(transferHash: ScriptHash, thirdPartyHash: ScriptHash, unfrackingHash: ScriptHash): PlutusScript;
91
+ /**
92
+ * `upgrade_multisig` — a ONE-SHOT in alpha.4: `(signers, threshold)` are gone
93
+ * and a single `utxo_ref` takes their place.
94
+ *
95
+ * ⚑ ONE VALUE, THREE ROLES. Its hash is the config NFT's POLICY ID, the
96
+ * config UTxO's ADDRESS payment credential, AND the withdraw-0 CREDENTIAL the
97
+ * upgrade authority is satisfied by. Do not derive any of the three
98
+ * separately — that is the dual-hash collapse of `protocol_params` and
99
+ * `registry` again, with one more role attached.
100
+ *
101
+ * The signer set moved OFF the parameters and INTO a `MultisigScript` tree in
102
+ * the config UTxO's datum, so rotating signers no longer changes the hash.
103
+ * Build those trees with `multisigScriptDatum` in `src/core/evo-utils.ts`
104
+ * (T-F02-1), which enforces upstream's `well_formed`.
105
+ */
106
+ upgradeMultisig(utxoRef: TxInput): PlutusScript;
50
107
  issuanceCborHexMint(utxoRef: TxInput, alwaysFailHash: ScriptHash): PlutusScript;
51
- /** Arity 2 -> 3: gained registry_spend's credential. */
52
- registryMint(utxoRef: TxInput, issuanceCborHexPolicy: PolicyId, registrySpendHash: ScriptHash): PlutusScript;
53
- registrySpend(paramsPolicy: PolicyId): PlutusScript;
54
- /** Arity 3 -> 4: gained params_policy. */
55
- issuanceMint(plbHash: ScriptHash, registryNodePolicy: PolicyId, mintingLogicHash: ScriptHash, paramsPolicy: PolicyId): PlutusScript;
108
+ /**
109
+ * `registry` — mint AND spend in one validator (#117).
110
+ *
111
+ * ⚑ ONE HASH FOR POLICY AND ADDRESS, exactly as `protocolParams`. Arity
112
+ * dropped 3 -> 2: `registry_spend_cred` is gone, and so is the params-policy
113
+ * parameter the old spend side took — the registry no longer depends on the
114
+ * protocol-params chain at all and can be built immediately after
115
+ * `issuanceCborHexMint`.
116
+ */
117
+ registry(utxoRef: TxInput, issuanceCborHexPolicy: PolicyId): PlutusScript;
118
+ /**
119
+ * `issuance_mint` — arity 4 -> 2 in alpha.4.
120
+ *
121
+ * ⚠ `programmable_logic_base` and `registry_node_cs` are GONE from its
122
+ * parameters. It reads the delegate credentials out of the params datum at
123
+ * runtime instead, which is why `params_policy` survives and the other two do
124
+ * not. Its POLICY ID therefore CHANGES for the same minting logic — see
125
+ * {@link ResolvedStandardScripts.buildIssuanceMint}.
126
+ */
127
+ issuanceMint(mintingLogicHash: ScriptHash, paramsPolicy: PolicyId): PlutusScript;
128
+ /**
129
+ * `issuance_logic` — NEW in alpha.4. The replaceable half of issuance: the
130
+ * params datum's field 1 names its credential, and its withdraw-0 rides on
131
+ * EVERY mint and burn.
132
+ *
133
+ * ⛔ ONE CREDENTIAL, THEN TWO BARE POLICIES, AND THE TWO POLICIES ARE NOT
134
+ * INTERCHANGEABLE. `progLogicCred` is constructor-wrapped by
135
+ * `scriptCredential()`; `registryPolicy` and `paramsPolicy` are bare
136
+ * ByteArrays applied in THAT ORDER (`registry_node_cs`, then
137
+ * `params_policy`). Both are `string` at the call site and nothing — not the
138
+ * compiler, not the parameteriser, not the hash — can tell a swap from the
139
+ * intended order.
140
+ *
141
+ * ⚠ `progLogicCred` is programmable_logic_base's hash, NOT the dispatcher's,
142
+ * exactly as for the three delegates.
143
+ */
144
+ issuanceLogic(progLogicCred: ScriptHash, registryPolicy: PolicyId, paramsPolicy: PolicyId, maxInlineDatumBytes: number | bigint): PlutusScript;
56
145
  }
57
146
  /**
58
147
  * Create standard script builders from a blueprint.
@@ -109,44 +198,56 @@ export interface ScriptHashCheck {
109
198
  /** Hash recorded in DeploymentParams */
110
199
  deployed: ScriptHash;
111
200
  }
112
- /** Thrown when a blueprint does not reproduce its deployment's script hashes. */
201
+ /**
202
+ * Thrown when a deployment record and the blueprint do not describe the same
203
+ * protocol instance.
204
+ *
205
+ * ⛔ IT IS THE CLASS CONSUMERS CATCH, so every refusal from this module must
206
+ * be one. The documented consumer shape is
207
+ * `catch (e) { if (e instanceof DeploymentMismatchError) … }`; a bare `Error`
208
+ * thrown beside it drops silently into whatever generic handler comes next,
209
+ * which is how a refusal that names a field ends up reported as "something went
210
+ * wrong".
211
+ *
212
+ * ⚠ `mismatches` IS EMPTY FOR REFUSALS THAT ARE NOT HASH COMPARISONS, and the
213
+ * emptiness is the signal rather than an oversight: nothing derived disagreed
214
+ * with anything recorded — the record was malformed, or held a value that was
215
+ * never a legal choice. Those pass their own `detail` message, because the
216
+ * composed "N script hash(es) differ" text would describe a comparison that
217
+ * never happened.
218
+ */
113
219
  export declare class DeploymentMismatchError extends Error {
114
220
  readonly mismatches: ScriptHashCheck[];
115
- constructor(mismatches: ScriptHashCheck[], blueprintTitle: string);
221
+ constructor(mismatches: ScriptHashCheck[], blueprintTitle: string, detail?: string);
116
222
  }
117
223
  /**
118
- * Derive every parameterizable standard script hash from the blueprint and
119
- * check it against DeploymentParams. Throws DeploymentMismatchError on any
120
- * difference; returns the full check list on success.
121
- *
122
- * Why this exists: parameterization changes are not always visible to the
123
- * compiler. Upstream has changed a parameter's *meaning* while keeping its
124
- * arity and type (protocol_params_mint's `always_fail_hash` became
125
- * `coordination_addr_hash` in 0.5.0-alpha.1), so a wrong value typechecks,
126
- * builds, and only fails when the ledger rejects the transaction. This is the
127
- * check that catches it, and it is why buildDeploymentScripts no longer
128
- * overwrites derived hashes with deployment values.
129
- *
130
- * Not covered: always_fail (its nonce is not carried in DeploymentParams),
131
- * issuance_mint (parameterized per minting logic), and upgrade_multisig (its
132
- * signers/threshold are an authority choice, not a derived protocol value).
133
- * coordination_spend IS covered — DeploymentParams carries its nonce precisely
134
- * so the lock target can be re-derived rather than trusted.
135
- *
136
- * WHERE THIS CHECK HAS VALUE — and where it has none.
137
- *
138
- * It is only meaningful when the blueprint and the deployment come from
139
- * INDEPENDENT sources, so that they can actually disagree: a deployment loaded
140
- * from disk, a database, or the chain, checked against the blueprint currently
141
- * bundled. That is the case it catches, and the failure it catches is real —
142
- * this repo shipped a blueprint swapped in place under an unchanged directory
143
- * name, with 4 of 8 validator hashes moved.
144
- *
145
- * It proves NOTHING at bootstrap time. A deployment script derives the hashes,
146
- * populates DeploymentParams from those same values, and then asserts against
147
- * them — a tautology that cannot fail. Do not read a passing assertion inside a
148
- * bootstrap as evidence that the deployment is correct; assert on LOAD instead.
224
+ * The `unfracking_hash` a dispatcher is compiled against when the deployment
225
+ * wants unfracking DEPLOYED BUT UNREACHABLE: 28 zero bytes.
226
+ *
227
+ * ⚠ IT IS BAKED INTO THE DISPATCHER'S HASH, so two deployments that chose
228
+ * differently are DIFFERENT PROTOCOLS. Same category as `maxInlineDatumBytes`
229
+ * (see `types.ts`): a deployment CHOICE, recoverable from no hash, which is why
230
+ * `DeploymentParams.programmableLogicGlobal.unfrackingParameter` records the
231
+ * value itself rather than a flag.
232
+ *
233
+ * ⚠ WHY 28 BYTES AND NOT `#""`. The Aiken parameter is a bare `ScriptHash`
234
+ * — a `ByteArray` with no length constraint, not an `Option`, so there is no
235
+ * "none" to reach for. `#""` is type-legal, but NOBODY HERE CAN READ THE
236
+ * COMPILED VALIDATOR'S BODY: whether it asserts a length, or builds an address
237
+ * out of this parameter, is unknown. A 28-byte value is structurally identical
238
+ * to a real script hash, so every path behaves normally.
239
+ * ⇒ Choose a value that cannot reach code we cannot read, rather than reason
240
+ * about what that code probably does.
241
+ *
242
+ * ⚠ NOTHING HASHES TO IT. At 2^224 that is an impossibility, not a low risk,
243
+ * so the sentinel can never collide with a real `unfracking` deployment. Zeros
244
+ * rather than `FF…FF`, which reads as a mask or a placeholder.
245
+ *
246
+ * ⛔ IT LIVES HERE AND NOWHERE ELSE. The platform must IMPORT it. A
247
+ * platform-side copy is a second place to disagree about a value that
248
+ * determines a script hash.
149
249
  */
250
+ export declare const UNFRACKING_DISABLED: string;
150
251
  export declare function assertDeploymentScripts(blueprint: PlutusBlueprint, deployment: DeploymentParams): ScriptHashCheck[];
151
252
  /**
152
253
  * Build resolved standard scripts from deployment params.
@@ -158,17 +259,30 @@ export declare function assertDeploymentScripts(blueprint: PlutusBlueprint, depl
158
259
  */
159
260
  export declare function buildDeploymentScripts(blueprint: PlutusBlueprint, deployment: DeploymentParams): ResolvedStandardScripts;
160
261
  export interface ResolvedStandardScripts {
161
- coordinationSpend: PlutusScript;
162
- protocolParamsMint: PlutusScript;
262
+ /** Mint AND spend in one script; its hash is both policy and address. */
263
+ protocolParams: PlutusScript;
163
264
  programmableLogicBase: PlutusScript;
164
- /** PLG's transfer arm, renamed by #110. */
265
+ /** Withdraw-0 delegates. Parameterised (plb, registryPolicy, maxInlineDatumBytes). */
165
266
  transfer: PlutusScript;
166
267
  /** Seize / clawback. */
167
268
  thirdParty: PlutusScript;
168
269
  unfracking: PlutusScript;
270
+ /** The dispatcher every programmable transaction withdraws through. */
271
+ programmableLogicGlobal: PlutusScript;
169
272
  issuanceCborHexMint: PlutusScript;
170
- registryMint: PlutusScript;
171
- registrySpend: PlutusScript;
273
+ /** Mint AND spend in one script; its hash is both policy and address. */
274
+ registry: PlutusScript;
275
+ /**
276
+ * The replaceable half of issuance (alpha.4). Its withdraw-0 rides on every
277
+ * mint and burn, and its credential must be REGISTERED to do so.
278
+ */
279
+ issuanceLogic: PlutusScript;
280
+ /**
281
+ * The reference upgrade authority. ⚑ Its hash is the config NFT policy, the
282
+ * config UTxO's address payment credential, AND the withdraw-0 credential —
283
+ * one value, three roles.
284
+ */
285
+ upgradeMultisig: PlutusScript;
172
286
  /** Build issuance_mint for a specific minting logic — NOT cached */
173
287
  buildIssuanceMint(mintingLogicHash: ScriptHash): PlutusScript;
174
288
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scripts.d.ts","sourceRoot":"","sources":["../../src/standard/scripts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,OAAO,EACR,MAAM,aAAa,CAAC;AAarB,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,CAAC;IAC3C,0FAA0F;IAC1F,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,CAAC;IAClD,+EAA+E;IAC/E,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,UAAU,GAAG,YAAY,CAAC;IACjF,6DAA6D;IAC7D,qBAAqB,CAAC,YAAY,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC5D,2CAA2C;IAC3C,QAAQ,CAAC,YAAY,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC/C,kDAAkD;IAClD,UAAU,CAAC,YAAY,EAAE,QAAQ,GAAG,YAAY,CAAC;IACjD,UAAU,CAAC,YAAY,EAAE,QAAQ,GAAG,YAAY,CAAC;IACjD,eAAe,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;IAChF,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,GAAG,YAAY,CAAC;IAChF,wDAAwD;IACxD,YAAY,CACV,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,QAAQ,EAC/B,iBAAiB,EAAE,UAAU,GAC5B,YAAY,CAAC;IACh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