lcx-liberty-sdk 1.5.0 → 1.7.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/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  TypeScript client for the [LCX Liberty DEX](https://dex.lcx.com/business)
4
4
  DEX aggregator. Best-execution routing across Ethereum, Base, Arbitrum,
5
5
  OP Mainnet, BNB Chain, Polygon, Avalanche, Robinhood Chain, Unichain, Monad,
6
- HyperEVM, Arc, World Chain and Cronos, priced from our own pool index.
6
+ HyperEVM, Arc, World Chain, Cronos, Ink, Linea, Soneium, Plasma, MegaETH,
7
+ Gnosis and Sonic, priced from our own pool index.
7
8
 
8
9
  Zero dependencies. Node 18+, Deno, Bun, Workers, browser.
9
10
 
@@ -161,7 +162,7 @@ records:
161
162
  | Contract | Chains | Address |
162
163
  |---|---|---|
163
164
  | Router proxy (the `spender`: swaps, cross-chain and the multi token swap) | Ethereum, Base, Arbitrum, OP Mainnet | `0x0000000000b1ae06c96aB73FF4360d7AeAaB56F0` |
164
- | Router 2 (the same role) | BNB Chain, Polygon, Avalanche, Robinhood Chain, Unichain, Monad, HyperEVM, Arc, World Chain, Cronos | `0x0000000000654902B6Ed6cC240cc81CB4c4a3dff` |
165
+ | Router 2 (the same role) | BNB Chain, Polygon, Avalanche, Robinhood Chain, Unichain, Monad, HyperEVM, Arc, World Chain, Cronos, Ink, Linea, Soneium, Plasma, MegaETH, Gnosis, Sonic | `0x0000000000654902B6Ed6cC240cc81CB4c4a3dff` |
165
166
  | Fee router (deployed, reserved for integrator-fee traffic) | Ethereum, Base, Arbitrum, OP Mainnet | `0xd67aADF902d15890cb11DfB4DA3d3D90b1953Dee` |
166
167
 
167
168
  An approval is per chain and per router: a wallet that trades on a chain of
@@ -1,5 +1,5 @@
1
1
  /** Version, hosts and chain constants. Imported by every resource. */
2
- export declare const VERSION = "1.5.0";
2
+ export declare const VERSION = "1.7.0";
3
3
  /**
4
4
  * The API, where every call needs a key. Get a free one (150k calls/month, no
5
5
  * card) at https://dex.lcx.com/dashboard.
@@ -34,6 +34,13 @@ export declare const CHAINS: {
34
34
  readonly arc: 5042;
35
35
  readonly worldchain: 480;
36
36
  readonly cronos: 25;
37
+ readonly ink: 57073;
38
+ readonly linea: 59144;
39
+ readonly soneium: 1868;
40
+ readonly plasma: 9745;
41
+ readonly megaeth: 4326;
42
+ readonly gnosis: 100;
43
+ readonly sonic: 146;
37
44
  };
38
45
  /** The zero address, which every endpoint treats as the chain's native asset. */
39
46
  export declare const NATIVE = "0x0000000000000000000000000000000000000000";
package/dist/constants.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Version, hosts and chain constants. Imported by every resource. */
2
- export const VERSION = "1.5.0";
2
+ export const VERSION = "1.7.0";
3
3
  /**
4
4
  * The API, where every call needs a key. Get a free one (150k calls/month, no
5
5
  * card) at https://dex.lcx.com/dashboard.
@@ -34,6 +34,13 @@ export const CHAINS = {
34
34
  arc: 5042,
35
35
  worldchain: 480,
36
36
  cronos: 25,
37
+ ink: 57073,
38
+ linea: 59144,
39
+ soneium: 1868,
40
+ plasma: 9745,
41
+ megaeth: 4326,
42
+ gnosis: 100,
43
+ sonic: 146,
37
44
  };
38
45
  /** The zero address, which every endpoint treats as the chain's native asset. */
39
46
  export const NATIVE = "0x0000000000000000000000000000000000000000";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lcx-liberty-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "TypeScript SDK for the LCX Liberty DEX aggregator. Best-execution routing across Ethereum, Base, Arbitrum, OP Mainnet, BNB Chain, Polygon, Avalanche, Robinhood Chain, Unichain, Monad, HyperEVM and Arc.",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",