@skate-org/amm-core-v2 2.0.0-beta.0 → 2.0.0-beta.10

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/CHANGELOG.md CHANGED
@@ -1,139 +1,93 @@
1
1
  # @skate-org/amm-core-v2
2
2
 
3
- ## 2.0.0-beta.0 — 2026-05-07
3
+ ## 2.0.0-beta.10 — 2026-05-29
4
4
 
5
- First **beta**. Promoted under the `beta` dist-tag; `latest` stays at
6
- `1.0.0` (v1 line) per the policy in `CLAUDE.md`. **Loose beta** —
7
- documented breaking changes are still allowed within `2.0.0-beta.x`;
8
- `2.0.0` final is the strict surface freeze.
5
+ Closes the remaining STAGING / PRODUCTION gap left in beta.9: kernel
6
+ manager / event-emitter and EVM periphery accessors now alias DEV
7
+ instead of throwing `SdkError("not yet deployed")`.
9
8
 
10
- **Breaking — internal-leak surface pulls.** Symbols that were exported in
11
- the alpha line but never intended to be load-bearing have moved to module-
12
- private. Internal SDK callsites all have sanctioned replacements:
9
+ - `KernelManagerAddress(mode)` and `KernelEventEmitterAddress(mode)`
10
+ return the v2 MegaETH deploy for all three `EnvMode` values.
11
+ - `PeripheryDeploymentFor(chain, mode)` returns the v2 Arbitrum
12
+ periphery deploy for all three modes. New exports
13
+ `PERIPHERY_STAGING` and `PERIPHERY_PRODUCTION` (both alias
14
+ `PERIPHERY_DEV`).
15
+ - `_notDeployed.ts` is removed (no remaining callers in core).
16
+ - DEV addresses unchanged.
13
17
 
14
- - `KERNEL_EXECUTOR_REGISTRY_Dev`, `KERNEL_MESSAGE_BOX_Dev`,
15
- `KERNEL_ACCOUNT_REGISTRY_Dev`, `KERNEL_MANAGER_Dev`,
16
- `KERNEL_EVENT_EMITTER_Dev`, `KERNEL_POOL_IMPL_Dev` removed. Use
17
- `KernelManagerAddress(mode)` / `KernelEventEmitterAddress(mode)` /
18
- `POOL_INFO_Dev`. `KERNEL_POOL_USDC_USDT_Dev` stays exported as a
19
- smoke-test cross-check.
20
- - `PERIPHERY_PROD`, `PERIPHERY_STAGING` removed (were empty `{}`
21
- placeholders). `PeripheryDeploymentFor(chain, mode)` now throws
22
- `SdkError("…not yet deployed…")` for STAGING / PRODUCTION,
23
- mirroring the kernel-side posture introduced in alpha.6.
24
- - `bytes32HexRegex`, `isHexString`, `isHexStringLoose` removed. Use
25
- `evmAddressToBytes32` / `toBytes32Address`.
26
- - `PeripheryDeploymentFor` / `PeripheryManagerAddress` /
27
- `PeripheryEventEmitterAddress` / `SkateGatewayAddress` /
28
- `ActionBoxAddress` lost their default `mode = "PRODUCTION"` argument
29
- — `mode` is now mandatory.
30
-
31
- Surface count: 73 → 62. See `STABILITY.md` (repo root) for the full
32
- per-package classification.
33
-
34
- ## 2.0.0-alpha.8 — 2026-05-07
35
-
36
- Lockstep bump — paired with the api `streamSwapQuote` going live as a
37
- polling stub for the deferred WebSocket. This package's source is
38
- unchanged versus `2.0.0-alpha.7`.
39
-
40
- ## 2.0.0-alpha.7 — 2026-05-07
41
-
42
- Lockstep bump — paired with the api action-by-user clients, polling
43
- `subscribeSwapQuote` helper, and svm browser-bundle build fix.
44
- This package's source is unchanged versus `2.0.0-alpha.6`.
45
-
46
- ## 2.0.0-alpha.6 — 2026-05-07
47
-
48
- - **Per-env kernel chain config.** New `KERNEL_CHAIN_BY_MODE: Record<EnvMode, CHAIN>`
49
- + `KernelChain(mode)` accessor. Defaults every env to `CHAIN.MEGAETH` today;
50
- pointing a future env at a different kernel chain is a one-line edit.
51
- - **Breaking — `KernelManagerAddress` / `KernelEventEmitterAddress` throw on
52
- STAGING / PRODUCTION.** Previously returned v1 Skate-chain placeholder
53
- addresses (`0xB328…`, `0x4688…`) that don't exist on MegaETH; combined with
54
- the kernel-chain hardcode, this caused silent reads from non-existent
55
- contracts. Now both throw `SdkError("…not yet deployed to {mode}…")`. The
56
- default `mode = "PRODUCTION"` argument is removed — callers must be explicit.
57
-
58
- ## 2.0.0-alpha.5 — 2026-05-06
59
-
60
- Lockstep bump — paired with the kernel lens helpers ported into
61
- `@skate-org/amm-evm-v2`. This package's source is unchanged versus
62
- `2.0.0-alpha.4`.
63
-
64
- ## 2.0.0-alpha.4 — 2026-05-06
65
-
66
- Lockstep bump — paired with the `SwapQuote` schema fix in
67
- `@skate-org/amm-api-v2`. This package's source is unchanged versus
68
- `2.0.0-alpha.3`.
69
-
70
- ## 2.0.0-alpha.3 — 2026-05-06
71
-
72
- Lockstep bump — paired with the SVM/Sui efficiency pass in
73
- `@skate-org/amm-svm-v2` and `@skate-org/amm-sui-v2`. This package's
74
- source is unchanged versus `2.0.0-alpha.2`.
75
-
76
- ## 2.0.0-alpha.2 — 2026-05-05
77
-
78
- Plan C of the SVM/Sui integration. Adds `@skate-org/amm-sui-v2` to
79
- the workspace; this package's source is unchanged versus
80
- `2.0.0-alpha.1` (re-versioned in lockstep).
81
-
82
- ## 2.0.0-alpha.1 — 2026-05-05
83
-
84
- Plan B of the SVM/Sui integration. Adds `@skate-org/amm-svm-v2` to
85
- the workspace; this package's source is unchanged versus
86
- `2.0.0-alpha.0` (re-versioned in lockstep).
87
-
88
- ## 2.0.0-alpha.0 — 2026-05-05
89
-
90
- Plan A of the SVM/Sui integration (see
91
- docs/superpowers/specs/2026-05-04-svm-sui-integration-design.md).
92
-
93
- - Add uniswap-v3 math module (`tickMath`, `sqrtPriceMath`,
94
- `liquidityMath`, `fullMath`). Relocated from
95
- `@skate-org/amm-evm-v2`.
96
- - Add `EvmChain` / `SvmChain` / `SuiChain` literal-union sub-types of
97
- `CHAIN`.
98
- - **Breaking:** `PoolInfoType.peripheryInfo` is now a chain-id-
99
- discriminated mapped type. EVM chain entries narrow to
100
- `EvmPeripheryInfo`; SVM chain entries to `SvmPeripheryInfo`; Sui
101
- to `SuiPeripheryInfo`. Code that read
102
- `pool.peripheryInfo[chain].address` as `0x${string}` unconditionally
103
- now type-narrows by chain.
104
- - New named types `EvmPeripheryInfo`, `SvmPeripheryInfo`,
105
- `SuiPeripheryInfo`, `PeripheryInfoFor<K>`.
106
- - Cross-VM utilities (`base58ToBytes32`, `evmAddressToBytes32`,
107
- `bytes32ToBase58`, `toBytes32Address`, `fromBytes32Address`)
108
- unchanged in this release — already in core under
109
- `adapter/skate.ts`.
110
-
111
- ## 1.0.0 — 2026-05-04
112
-
113
- Realigning all four `@skate-org/amm-*-v2` packages at a single version
114
- for the coherent v1 SDK release. No source changes vs 0.4.0 — this is
115
- purely a versioning realignment so consumers can install
116
- `@skate-org/amm-core-v2@1`, `@skate-org/amm-api-v2@1`, `@skate-org/amm-evm-v2@1`,
117
- `@skate-org/amm-v2@1` and know they belong to the same release.
18
+ Behavioural caveat: consumers that caught the prior
19
+ `SdkError("not yet deployed")` as a STAGING/PRODUCTION guard will
20
+ silently start succeeding — review any such try/catch.
21
+
22
+ ## 2.0.0-beta.9 2026-05-26
23
+
24
+ Added STAGING + PRODUCTION env support to SVM + Sui deployment maps.
25
+ `SvmDeploymentFor(chain, mode)` and `SuiDeploymentFor(chain, mode)`
26
+ now return data for all three `EnvMode` values (previously threw
27
+ `notDeployed` for anything other than `DEV`); STAGING and PRODUCTION
28
+ alias DEV until the deploys actually diverge. `POOL_INFO_Staging` and
29
+ `POOL_INFO_Production` likewise point at `POOL_INFO_Dev` instead of
30
+ `{}`. DEV data itself is byte-identical to beta.8 verify with
31
+ `git diff 2.0.0-beta.8..HEAD -- packages/core/src/deployment/svm.ts`.
118
32
 
119
- ## 0.4.0 2026-04-29
33
+ New exports: `SVM_DEPLOYMENT_STAGING`, `SVM_DEPLOYMENT_PRODUCTION`,
34
+ `SVM_POOLS_STAGING`, `SVM_POOLS_PRODUCTION`,
35
+ `SUI_DEPLOYMENT_STAGING`, `SUI_DEPLOYMENT_PRODUCTION`,
36
+ `SUI_POOLS_STAGING`, `SUI_POOLS_PRODUCTION`.
120
37
 
121
- - Add full DEV deployment table for Arbitrum periphery (`PERIPHERY_DEV`,
122
- `PeripheryManagerAddress`, `PeripheryEventEmitterAddress`, `SkateGatewayAddress`,
123
- `ActionBoxAddress`).
124
- - Add `KERNEL_EVENT_EMITTER_Dev` and tighten `KernelEventEmitterAddress` return
125
- type from `| null` to `0x${string}`.
126
- - Wire `KERNEL_POOL_USDC_USDT_Dev` and the rest of the DEV kernel address constants.
38
+ Behavioural caveat: consumers that caught the previous `notDeployed`
39
+ throw as a guard will silently start succeeding. Kernel manager /
40
+ event-emitter surfaces still throw for non-DEV (see `kernel.ts`).
127
41
 
128
- ## 0.3.0 — 2026-04-25
42
+ ## 2.0.0-beta.8 — 2026-05-21
129
43
 
130
- - Phase 4: shared `SdkError` base; cross-package error hierarchy.
44
+ Lockstep no source changes. Paired with `@skate-org/amm-sui-v2@2.0.0-beta.8`
45
+ moving Sui contracts from `SUI_ENV.PRODUCTION` to `SUI_ENV.DEV`.
131
46
 
132
- ## 0.2.0 — 2026-04-22
47
+ ## 2.0.0-beta.7 — 2026-05-21
133
48
 
134
- - Phase 3: full chain table + VM enum (`AptosVM` removed; `TEMPO 4217` added).
49
+ Trimmed retired `0x9D62b2b6…` USDC_USDT entry from
50
+ `deployment/aggregated/production.ts`. Doc baselines refreshed
51
+ (`STABILITY.md`, `MIGRATION.md`, `CLAUDE.md`). No public surface
52
+ change versus beta.6.
135
53
 
136
- ## 0.1.0 2026-04-20
54
+ ## 2.0.0-beta (cumulative, 2026-05-07 → 2026-05-21)
137
55
 
138
- - Initial: `CHAIN`, `VM`, `EnvMode*`, `Token`, `TokenPair`, `ActionStatus`,
139
- `TaskPhase`, `KernelManagerAddress`, `POOL_INFO_{Dev,Staging,Production}`.
56
+ Sum of beta.0 beta.6. Surface set against which `2.0.0` final will
57
+ be frozen.
58
+
59
+ - **Surface pulls (beta.0):** removed alpha-era leaks
60
+ `KERNEL_EXECUTOR_REGISTRY_Dev`, `KERNEL_MESSAGE_BOX_Dev`,
61
+ `KERNEL_ACCOUNT_REGISTRY_Dev`, `KERNEL_MANAGER_Dev`,
62
+ `KERNEL_EVENT_EMITTER_Dev`, `KERNEL_POOL_IMPL_Dev`,
63
+ `PERIPHERY_PROD`, `PERIPHERY_STAGING`, `bytes32HexRegex`,
64
+ `isHexString`, `isHexStringLoose`. Consumers move to
65
+ `KernelManagerAddress(mode)` / `PeripheryDeploymentFor(chain,
66
+ mode)` accessors.
67
+ - **`findTokensBySymbol` / `getTokenSymbol` (beta.1, beta.6):**
68
+ added in beta.1 with positional args, switched to object input
69
+ `findTokensBySymbol({ symbol, chainIds?, mode? })` in beta.6 to
70
+ remove the awkward `findTokensBySymbol("USDC", undefined, "DEV")`
71
+ call shape. Loose-beta breaking change.
72
+ - **SVM deployment catalog (beta.2, beta.3):** new
73
+ `SVM_DEPLOYMENT_DEV`, per-pool `SVM_POOLS_DEV`,
74
+ `SvmDeploymentFor(chain, mode)`. Solana mainnet
75
+ `usdc-usdt-1bps` periphery LIVE in DEV. Eclipse / STAGING /
76
+ PRODUCTION throw `SdkError("not yet deployed")`. New helper
77
+ `svmBytes32Base58ToEvmAddress` for decoding on-chain kernel-address
78
+ fields.
79
+ - **Sui deployment catalog (beta.6):** new `SUI_POOLS_DEV` +
80
+ `SUI_DEPLOYMENT_DEV` + `SuiDeploymentFor(chain, mode)`. Sui
81
+ USDC/USDT periphery (`0xc014f7cb…`) wired to DEV kernel pool
82
+ `0x2c23334e…`.
83
+ - **API ActionFields (beta.4):** v2-pure shape — flat `destChainId`
84
+ / `destVmType`, `peripheryFunctionMeta`, `poolInfo`; dropped v1
85
+ emulation fields (`legacyStatus`, flat tx-hash denorms, `tokens`,
86
+ `amounts`).
87
+ - **Typed argument shapes (beta.5):** sibling exports `SwapArgs`,
88
+ `MintArgs`, `BurnArgs`, `DecreaseLiquidityArgs`.
89
+ `peripheryFunctionMeta.args` for `mint` / `increaseLiquidity` now
90
+ carries `liquidity` + `amount{0,1}Unused`.
91
+
92
+ Surface count: 25 → 23 (one-time pull at beta.0). See
93
+ `STABILITY.md` for the per-symbol classification.
@@ -5,6 +5,21 @@ export declare function hexToBase58(hexString: `0x${string}`): string;
5
5
  export declare function bytes32ToBase58(hexStr: string): string;
6
6
  export declare function evmAddressToBytes32(address: string): `0x${string}`;
7
7
  export declare function bytes32ToEvmAddress(bytes32: string): `0x${string}`;
8
+ /**
9
+ * Decode the canonical SVM-side encoding of an EVM address back to its
10
+ * 0x-prefixed lowercase EVM form.
11
+ *
12
+ * SVM periphery contracts store cross-VM addresses (kernel pool, kernel
13
+ * factory, etc.) as base58 of the address left-padded to bytes32 — the
14
+ * "bytes32-base58" form produced at deploy time by
15
+ * `evmAddressToBytes32Base58`. SDK readers reverse it: base58-decode to
16
+ * 32 bytes, then truncate to the trailing 20-byte EVM address.
17
+ *
18
+ * Composition of two existing primitives, named for the common case so
19
+ * readers don't reinvent it. Any reader pulling an EVM address out of an
20
+ * SVM Anchor account should call this.
21
+ */
22
+ export declare function svmBytes32Base58ToEvmAddress(value: string): `0x${string}`;
8
23
  export declare function toBase58(buffer: Buffer): string;
9
24
  export declare function bufferFromBase58(base58String: string): Buffer;
10
25
  export declare function toBytes32Address(rawAddress: string, vmType: VM): `0x${string}`;
@@ -1 +1 @@
1
- {"version":3,"file":"skate.d.ts","sourceRoot":"","sources":["../../src/adapter/skate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAMhE;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAG5D;AAED,wBAAgB,WAAW,CAAC,SAAS,EAAE,KAAK,MAAM,EAAE,GAAG,MAAM,CAE5D;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMtD;AAmBD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAKlE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,MAAM,EAAE,CAIlE;AAED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wBAAgB,kBAAkB,CAAC,cAAc,EAAE,KAAK,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CAWpF"}
@@ -11,9 +11,17 @@ export interface EvmPeripheryInfo {
11
11
  chain: string;
12
12
  }
13
13
  export interface SvmPeripheryInfo {
14
- /** Periphery pool PDA (base58 string). */
14
+ /** Periphery pool state PDA (base58). */
15
15
  peripheryPool: string;
16
- /** Periphery manager program address (base58 string). */
16
+ /** Pool-authority PDA (base58, signer-only — has no on-chain account). */
17
+ poolAuthority: string;
18
+ /** Dust PDA (base58). */
19
+ dust: string;
20
+ /** Pool token0 vault PDA (base58). */
21
+ poolToken0Vault: string;
22
+ /** Pool token1 vault PDA (base58). */
23
+ poolToken1Vault: string;
24
+ /** Periphery manager pubkey (base58). Matches the deploy-wide manager. */
17
25
  manager: string;
18
26
  /** SPL or Token-2022 program id for token0. */
19
27
  tokenProgramId0: string;
@@ -1 +1 @@
1
- {"version":3,"file":"_type_.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/_type_.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;IACvB,MAAM,EAAE,KAAK,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;IACd,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+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AE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE;SAAG,CAAC,IAAI,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC;KAAE,CAAC;CACvD,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/dev.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,YA2B3B,CAAC"}
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/dev.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,YA6B3B,CAAC"}
@@ -1,3 +1,6 @@
1
1
  import { PoolInfoType } from "./_type_";
2
+ /** v2 PRODUCTION currently points at the same on-chain deploy as DEV until
3
+ * production forks off. Kernel manager / event emitter / EVM periphery
4
+ * surfaces also alias DEV (see kernel.ts and periphery.ts). */
2
5
  export declare const POOL_INFO_Production: PoolInfoType;
3
6
  //# sourceMappingURL=production.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/production.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,eAAO,MAAM,oBAAoB,EAAE,YAAiB,CAAC"}
1
+ {"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/production.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;gEAEgE;AAChE,eAAO,MAAM,oBAAoB,EAAE,YAA4B,CAAC"}
@@ -19,4 +19,27 @@ export declare function getOtherTokensInPairs(chainId: CHAIN, tokenAddress: stri
19
19
  export declare function kernelPoolToPoolKey(kernelPool: `0x${string}`, mode?: EnvMode): PoolKey;
20
20
  export declare function getPeripheryDetailsByKernelPoolAndChainId<K extends CHAIN>(kernelPool: `0x${string}`, chainId: K, mode?: EnvMode): PeripheryInfoFor<K> | null;
21
21
  export declare function getPeripheryDetailsByKernelPoolAndChainId(kernelPool: `0x${string}`, chainId: number, mode?: EnvMode): PeripheryInfoFor<CHAIN> | null;
22
+ /**
23
+ * Find tokens by case-insensitive symbol across one or more chains.
24
+ *
25
+ * Same token symbol on different chains has different addresses, so the
26
+ * return type is `Array<Token>` (not a single record) — the same
27
+ * `(symbol, chainId)` pair always points at one token, but
28
+ * `(symbol, chainIds[])` may produce many.
29
+ *
30
+ * Omit `chainIds` to search every supported chain.
31
+ */
32
+ export declare function findTokensBySymbol(args: {
33
+ symbol: string;
34
+ chainIds?: readonly CHAIN[];
35
+ mode?: EnvMode;
36
+ }): Token[];
37
+ /**
38
+ * Reverse lookup: return the symbol of the token at `address` on
39
+ * `chainId`, or `null` if no supported token matches that pair.
40
+ *
41
+ * Address comparison is case-insensitive; symbol is returned in the
42
+ * casing the deployment table records.
43
+ */
44
+ export declare function getTokenSymbol(address: string, chainId: CHAIN, mode?: EnvMode): string | null;
22
45
  //# sourceMappingURL=retrieval.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieval.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/retrieval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIjD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,cAAc,CAAC,IAAI,GAAE,OAAsB,GAAG,YAAY,CAMzE;AAED,wBAAgB,cAAc,CAAC,IAAI,GAAE,OAAsB,GAAG,OAAO,EAAE,CAE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AAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,KAAK,EAAE,CAAC;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,KAAK,EAAE,CAgBV;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,KAAK,EACd,IAAI,GAAE,OAAsB,GAC3B,MAAM,GAAG,IAAI,CAMf"}
@@ -1,3 +1,6 @@
1
1
  import { PoolInfoType } from "./_type_";
2
+ /** v2 STAGING currently points at the same on-chain deploy as DEV (Solana
3
+ * mainnet SAB…/SPP… + Sui mainnet package 0x96e1d3…); split into a
4
+ * separate map only when staging and dev actually diverge. */
2
5
  export declare const POOL_INFO_Staging: PoolInfoType;
3
6
  //# sourceMappingURL=staging.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"staging.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/staging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,eAAO,MAAM,iBAAiB,EAAE,YAAiB,CAAC"}
1
+ {"version":3,"file":"staging.d.ts","sourceRoot":"","sources":["../../../src/deployment/aggregated/staging.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;+DAE+D;AAC/D,eAAO,MAAM,iBAAiB,EAAE,YAA4B,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export * from "./kernel";
2
2
  export * from "./periphery";
3
+ export * from "./svm";
4
+ export * from "./sui";
3
5
  export * from "./aggregated";
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deployment/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deployment/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
@@ -4,18 +4,10 @@ export declare const KERNEL_POOL_USDC_USDT_Dev = "0x2c23334eE3b030e6bacEDEDf7C51
4
4
  export declare const KERNEL_CHAIN_BY_MODE: Readonly<Record<EnvMode, CHAIN>>;
5
5
  /** Return the kernel CHAIN id for a given env mode. */
6
6
  export declare function KernelChain(mode: EnvMode): CHAIN;
7
- /**
8
- * Address of the Skate Kernel Manager for the given env mode.
9
- *
10
- * Today only DEV resolves; STAGING / PRODUCTION throw an `SdkError` to
11
- * surface the unwired state instead of silently returning a v1-era
12
- * placeholder that would cause RPC reads to misfire on MegaETH.
13
- */
14
- export declare function KernelManagerAddress(mode: EnvMode): `0x${string}`;
15
- /**
16
- * Address of the Skate Kernel Event Emitter for the given env mode.
17
- *
18
- * Same alpha posture as `KernelManagerAddress` — only DEV is wired.
19
- */
20
- export declare function KernelEventEmitterAddress(mode: EnvMode): `0x${string}`;
7
+ /** Address of the Skate Kernel Manager for the given env mode. All three
8
+ * modes alias the same DEV deploy until STAGING / PRODUCTION fork off. */
9
+ export declare function KernelManagerAddress(_mode: EnvMode): `0x${string}`;
10
+ /** Address of the Skate Kernel Event Emitter for the given env mode.
11
+ * Same aliasing posture as `KernelManagerAddress`. */
12
+ export declare function KernelEventEmitterAddress(_mode: EnvMode): `0x${string}`;
21
13
  //# sourceMappingURL=kernel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../src/deployment/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAkBjC,eAAO,MAAM,yBAAyB,+CAA+C,CAAC;AAoBtF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAIjE,CAAC;AAEF,uDAAuD;AACvD,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,CAEhD;AASD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,MAAM,EAAE,CAGjE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,MAAM,EAAE,CAGtE"}
1
+ {"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../src/deployment/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAmBjC,eAAO,MAAM,yBAAyB,+CAA+C,CAAC;AAkBtF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAIjE,CAAC;AAEF,uDAAuD;AACvD,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,CAEhD;AAED;2EAC2E;AAC3E,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,MAAM,EAAE,CAElE;AAED;uDACuD;AACvD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,MAAM,EAAE,CAEvE"}
@@ -10,11 +10,15 @@ export interface PeripheryDeployment {
10
10
  peripheryPoolImpl: `0x${string}`;
11
11
  }
12
12
  export declare const PERIPHERY_DEV: Partial<Record<CHAIN, PeripheryDeployment>>;
13
+ /** STAGING + PRODUCTION currently alias DEV — the v2 EVM periphery deploy
14
+ * lives on Arbitrum at the addresses above, and all three envs point at it
15
+ * until staging/prod ever fork off. Swap the right side for a literal map
16
+ * when that day comes. */
17
+ export declare const PERIPHERY_STAGING: Partial<Record<CHAIN, PeripheryDeployment>>;
18
+ export declare const PERIPHERY_PRODUCTION: Partial<Record<CHAIN, PeripheryDeployment>>;
13
19
  /**
14
20
  * Look up the periphery deployment record for a given chain in a given env.
15
- * Returns `null` when the chain has no DEV entry; throws `SdkError` for
16
- * STAGING / PRODUCTION since v2 isn't deployed there yet (mirrors the
17
- * kernel-side `KernelManagerAddress` posture).
21
+ * Returns `null` when the chain has no entry for the chosen env.
18
22
  */
19
23
  export declare function PeripheryDeploymentFor(chain: CHAIN, mode: EnvMode): PeripheryDeployment | null;
20
24
  export declare function PeripheryManagerAddress(chain: CHAIN, mode: EnvMode): `0x${string}` | null;
@@ -1 +1 @@
1
- {"version":3,"file":"periphery.d.ts","sourceRoot":"","sources":["../../src/deployment/periphery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAO1C,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,gBAAgB,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,gBAAgB,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,oBAAoB,EAAE,KAAK,MAAM,EAAE,CAAC;IACpC,YAAY,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,KAAK,MAAM,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAWrE,CAAC;AASF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,OAAO,GACZ,mBAAmB,GAAG,IAAI,CAG5B;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,OAAO,GACZ,KAAK,MAAM,EAAE,GAA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AK,EACZ,IAAI,EAAE,OAAO,GACZ,KAAK,MAAM,EAAE,GAAG,IAAI,CAEtB;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,OAAO,GACZ,KAAK,MAAM,EAAE,GAAG,IAAI,CAEtB;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,OAAO,GACZ,KAAK,MAAM,EAAE,GAAG,IAAI,CAEtB;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,OAAO,GACZ,KAAK,MAAM,EAAE,GAAG,IAAI,CAEtB"}
@@ -0,0 +1,96 @@
1
+ import { CHAIN, EnvMode } from "../types";
2
+ import type { SuiChain } from "../types/chain-vm";
3
+ /** Deploy-wide Sui addresses. Per-pool object ids live in `SUI_POOLS_<mode>`
4
+ * below; this struct holds the deploy-wide pieces shared across pools. */
5
+ export interface SuiDeployment {
6
+ /** Sui package id that owns the periphery module. */
7
+ peripheryPackage: string;
8
+ }
9
+ export declare const SUI_DEPLOYMENT_DEV: Partial<Record<SuiChain, SuiDeployment>>;
10
+ /** STAGING + PRODUCTION currently alias DEV — the v2 Sui deploy lives on
11
+ * Sui mainnet at the package above, and all three envs point at it until
12
+ * staging/prod ever fork off into separate deploys. */
13
+ export declare const SUI_DEPLOYMENT_STAGING: Partial<Record<CHAIN.SUI, SuiDeployment>>;
14
+ export declare const SUI_DEPLOYMENT_PRODUCTION: Partial<Record<CHAIN.SUI, SuiDeployment>>;
15
+ /** Returns `null` for an unregistered SuiChain in the chosen mode. */
16
+ export declare function SuiDeploymentFor(chain: SuiChain, mode: EnvMode): SuiDeployment | null;
17
+ /** Per-pool Sui addresses, keyed by `[poolKey][SuiChain]`. `poolKey` matches
18
+ * the key used by `POOL_INFO_Dev` (e.g. "USDC_USDT"). Mirrors `SVM_POOLS_DEV`.
19
+ * - Adding a brand-new pool requires a new key here AND a new pool object
20
+ * in `aggregated/dev.ts` with `...SUI_POOLS_DEV.<key>` in its
21
+ * `peripheryInfo`. */
22
+ export declare const SUI_POOLS_DEV: {
23
+ USDC_USDT: {
24
+ 1001: {
25
+ poolId: string;
26
+ managerCapId: string;
27
+ peripheryPackage: string;
28
+ token0: {
29
+ address: string;
30
+ symbol: string;
31
+ isNative: false;
32
+ decimal: number;
33
+ chainId: CHAIN.SUI;
34
+ };
35
+ token1: {
36
+ address: string;
37
+ symbol: string;
38
+ isNative: false;
39
+ decimal: number;
40
+ chainId: CHAIN.SUI;
41
+ };
42
+ chain: string;
43
+ };
44
+ };
45
+ };
46
+ /** STAGING + PRODUCTION pool maps alias DEV. Replace with literal objects
47
+ * when an env diverges. */
48
+ export declare const SUI_POOLS_STAGING: {
49
+ USDC_USDT: {
50
+ 1001: {
51
+ poolId: string;
52
+ managerCapId: string;
53
+ peripheryPackage: string;
54
+ token0: {
55
+ address: string;
56
+ symbol: string;
57
+ isNative: false;
58
+ decimal: number;
59
+ chainId: CHAIN.SUI;
60
+ };
61
+ token1: {
62
+ address: string;
63
+ symbol: string;
64
+ isNative: false;
65
+ decimal: number;
66
+ chainId: CHAIN.SUI;
67
+ };
68
+ chain: string;
69
+ };
70
+ };
71
+ };
72
+ export declare const SUI_POOLS_PRODUCTION: {
73
+ USDC_USDT: {
74
+ 1001: {
75
+ poolId: string;
76
+ managerCapId: string;
77
+ peripheryPackage: string;
78
+ token0: {
79
+ address: string;
80
+ symbol: string;
81
+ isNative: false;
82
+ decimal: number;
83
+ chainId: CHAIN.SUI;
84
+ };
85
+ token1: {
86
+ address: string;
87
+ symbol: string;
88
+ isNative: false;
89
+ decimal: number;
90
+ chainId: CHAIN.SUI;
91
+ };
92
+ chain: string;
93
+ };
94
+ };
95
+ };
96
+ //# sourceMappingURL=sui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sui.d.ts","sourceRoot":"","sources":["../../src/deployment/sui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD;2EAC2E;AAC3E,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAKvE,CAAC;AAEF;;wDAEwD;AACxD,eAAO,MAAM,sBAAsB,2CAAqB,CAAC;AACzD,eAAO,MAAM,yBAAyB,2CAAqB,CAAC;AAE5D,sEAAsE;AACtE,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,QAAQ,EACf,IAAI,EAAE,OAAO,GACZ,aAAa,GAAG,IAAI,CAStB;AAED;;;;yBAIyB;AACzB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CA4B6C,CAAC;AAExE;4BAC4B;AAC5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC;AAC/C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;CAAgB,CAAC"}