liquid-sdk 1.3.2 → 1.4.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/index.d.mts +29 -4
- package/dist/index.d.ts +29 -4
- package/dist/index.js +17 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -304,17 +304,18 @@ declare const ADDRESSES: {
|
|
|
304
304
|
readonly FACTORY: Address;
|
|
305
305
|
readonly POOL_EXTENSION_ALLOWLIST: Address;
|
|
306
306
|
readonly FEE_LOCKER: Address;
|
|
307
|
-
readonly LP_LOCKER: Address;
|
|
308
307
|
readonly LP_LOCKER_FEE_CONVERSION: Address;
|
|
309
308
|
readonly VAULT: Address;
|
|
310
309
|
readonly HOOK_DYNAMIC_FEE_V2: Address;
|
|
311
310
|
readonly HOOK_STATIC_FEE_V2: Address;
|
|
312
311
|
readonly SNIPER_AUCTION_V2: Address;
|
|
313
312
|
readonly SNIPER_UTIL_V2: Address;
|
|
314
|
-
readonly
|
|
313
|
+
readonly MEV_DESCENDING_FEES: Address;
|
|
315
314
|
readonly AIRDROP_V2: Address;
|
|
316
315
|
readonly UNIV4_ETH_DEV_BUY: Address;
|
|
317
|
-
readonly
|
|
316
|
+
readonly UNIV3_ETH_DEV_BUY: Address;
|
|
317
|
+
readonly PRESALE_ETH_TO_CREATOR: Address;
|
|
318
|
+
readonly PRESALE_ALLOWLIST: Address;
|
|
318
319
|
};
|
|
319
320
|
declare const EXTERNAL: {
|
|
320
321
|
readonly POOL_MANAGER: Address;
|
|
@@ -469,7 +470,31 @@ declare const DEFAULT_CHAIN: {
|
|
|
469
470
|
formatters: {
|
|
470
471
|
readonly block: {
|
|
471
472
|
exclude: [] | undefined;
|
|
472
|
-
format: (args: viem_chains.OpStackRpcBlock, action
|
|
473
|
+
format: (args: viem_chains.OpStackRpcBlock, action
|
|
474
|
+
/**
|
|
475
|
+
* Pre-built position configurations.
|
|
476
|
+
*
|
|
477
|
+
* - **Standard**: Single position covering full range (~$20K → $1.5B).
|
|
478
|
+
* Default starting tick -230400 (≈10 ETH market cap).
|
|
479
|
+
*
|
|
480
|
+
* - **Liquid**: 3-tranche default for Liquid Protocol.
|
|
481
|
+
* Hardcoded for ≈10 ETH start at ~$2070/ETH.
|
|
482
|
+
* For dynamic market cap targets, use `createPositionsUSD()` instead.
|
|
483
|
+
*
|
|
484
|
+
* Note: positionBps must sum to 10,000 (100%).
|
|
485
|
+
*/
|
|
486
|
+
? /**
|
|
487
|
+
* Pre-built position configurations.
|
|
488
|
+
*
|
|
489
|
+
* - **Standard**: Single position covering full range (~$20K → $1.5B).
|
|
490
|
+
* Default starting tick -230400 (≈10 ETH market cap).
|
|
491
|
+
*
|
|
492
|
+
* - **Liquid**: 3-tranche default for Liquid Protocol.
|
|
493
|
+
* Hardcoded for ≈10 ETH start at ~$2070/ETH.
|
|
494
|
+
* For dynamic market cap targets, use `createPositionsUSD()` instead.
|
|
495
|
+
*
|
|
496
|
+
* Note: positionBps must sum to 10,000 (100%).
|
|
497
|
+
*/: string | undefined) => {
|
|
473
498
|
baseFeePerGas: bigint | null;
|
|
474
499
|
blobGasUsed: bigint;
|
|
475
500
|
difficulty: bigint;
|
package/dist/index.d.ts
CHANGED
|
@@ -304,17 +304,18 @@ declare const ADDRESSES: {
|
|
|
304
304
|
readonly FACTORY: Address;
|
|
305
305
|
readonly POOL_EXTENSION_ALLOWLIST: Address;
|
|
306
306
|
readonly FEE_LOCKER: Address;
|
|
307
|
-
readonly LP_LOCKER: Address;
|
|
308
307
|
readonly LP_LOCKER_FEE_CONVERSION: Address;
|
|
309
308
|
readonly VAULT: Address;
|
|
310
309
|
readonly HOOK_DYNAMIC_FEE_V2: Address;
|
|
311
310
|
readonly HOOK_STATIC_FEE_V2: Address;
|
|
312
311
|
readonly SNIPER_AUCTION_V2: Address;
|
|
313
312
|
readonly SNIPER_UTIL_V2: Address;
|
|
314
|
-
readonly
|
|
313
|
+
readonly MEV_DESCENDING_FEES: Address;
|
|
315
314
|
readonly AIRDROP_V2: Address;
|
|
316
315
|
readonly UNIV4_ETH_DEV_BUY: Address;
|
|
317
|
-
readonly
|
|
316
|
+
readonly UNIV3_ETH_DEV_BUY: Address;
|
|
317
|
+
readonly PRESALE_ETH_TO_CREATOR: Address;
|
|
318
|
+
readonly PRESALE_ALLOWLIST: Address;
|
|
318
319
|
};
|
|
319
320
|
declare const EXTERNAL: {
|
|
320
321
|
readonly POOL_MANAGER: Address;
|
|
@@ -469,7 +470,31 @@ declare const DEFAULT_CHAIN: {
|
|
|
469
470
|
formatters: {
|
|
470
471
|
readonly block: {
|
|
471
472
|
exclude: [] | undefined;
|
|
472
|
-
format: (args: viem_chains.OpStackRpcBlock, action
|
|
473
|
+
format: (args: viem_chains.OpStackRpcBlock, action
|
|
474
|
+
/**
|
|
475
|
+
* Pre-built position configurations.
|
|
476
|
+
*
|
|
477
|
+
* - **Standard**: Single position covering full range (~$20K → $1.5B).
|
|
478
|
+
* Default starting tick -230400 (≈10 ETH market cap).
|
|
479
|
+
*
|
|
480
|
+
* - **Liquid**: 3-tranche default for Liquid Protocol.
|
|
481
|
+
* Hardcoded for ≈10 ETH start at ~$2070/ETH.
|
|
482
|
+
* For dynamic market cap targets, use `createPositionsUSD()` instead.
|
|
483
|
+
*
|
|
484
|
+
* Note: positionBps must sum to 10,000 (100%).
|
|
485
|
+
*/
|
|
486
|
+
? /**
|
|
487
|
+
* Pre-built position configurations.
|
|
488
|
+
*
|
|
489
|
+
* - **Standard**: Single position covering full range (~$20K → $1.5B).
|
|
490
|
+
* Default starting tick -230400 (≈10 ETH market cap).
|
|
491
|
+
*
|
|
492
|
+
* - **Liquid**: 3-tranche default for Liquid Protocol.
|
|
493
|
+
* Hardcoded for ≈10 ETH start at ~$2070/ETH.
|
|
494
|
+
* For dynamic market cap targets, use `createPositionsUSD()` instead.
|
|
495
|
+
*
|
|
496
|
+
* Note: positionBps must sum to 10,000 (100%).
|
|
497
|
+
*/: string | undefined) => {
|
|
473
498
|
baseFeePerGas: bigint | null;
|
|
474
499
|
blobGasUsed: bigint;
|
|
475
500
|
difficulty: bigint;
|
package/dist/index.js
CHANGED
|
@@ -72,20 +72,21 @@ var import_chains2 = require("viem/chains");
|
|
|
72
72
|
// src/constants.ts
|
|
73
73
|
var import_chains = require("viem/chains");
|
|
74
74
|
var ADDRESSES = {
|
|
75
|
-
FACTORY: "
|
|
76
|
-
POOL_EXTENSION_ALLOWLIST: "
|
|
77
|
-
FEE_LOCKER: "
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
75
|
+
FACTORY: "0x04F1a284168743759BE6554f607a10CEBdB77760",
|
|
76
|
+
POOL_EXTENSION_ALLOWLIST: "0xb614167d79aDBaA9BA35d05fE1d5542d7316Ccaa",
|
|
77
|
+
FEE_LOCKER: "0xF7d3BE3FC0de76fA5550C29A8F6fa53667B876FF",
|
|
78
|
+
LP_LOCKER_FEE_CONVERSION: "0x77247fCD1d5e34A3703AcA898A591Dc7422435f3",
|
|
79
|
+
VAULT: "0xdFCCC93257c20519A9005A2281CFBdF84836d50E",
|
|
80
|
+
HOOK_DYNAMIC_FEE_V2: "0x80E2F7dC8C2C880BbC4BDF80A5Fb0eB8B1DB68CC",
|
|
81
|
+
HOOK_STATIC_FEE_V2: "0x9811f10Cd549c754Fa9E5785989c422A762c28cc",
|
|
82
|
+
SNIPER_AUCTION_V2: "0x187e8627c02c58F31831953C1268e157d3BfCefd",
|
|
83
|
+
SNIPER_UTIL_V2: "0x2B6cd5Be183c388Dd0074d53c52317df1414cd9f",
|
|
84
|
+
MEV_DESCENDING_FEES: "0x8D6B080e48756A99F3893491D556B5d6907b6910",
|
|
85
|
+
AIRDROP_V2: "0x1423974d48f525462f1c087cBFdCC20BDBc33CdD",
|
|
86
|
+
UNIV4_ETH_DEV_BUY: "0x5934097864dC487D21A7B4e4EEe201A39ceF728D",
|
|
87
|
+
UNIV3_ETH_DEV_BUY: "0x376028cfb6b9A120E24Aa14c3FAc4205179c0025",
|
|
88
|
+
PRESALE_ETH_TO_CREATOR: "0x3bca63EcB49d5f917092d10fA879Fdb422740163",
|
|
89
|
+
PRESALE_ALLOWLIST: "0xCBb4ccC4B94E23233c14759f4F9629F7dD01f10B"
|
|
89
90
|
};
|
|
90
91
|
var EXTERNAL = {
|
|
91
92
|
POOL_MANAGER: "0x498581fF718922c3f8e6A244956aF099B2652b2b",
|
|
@@ -1737,14 +1738,14 @@ var LiquidSDK = class {
|
|
|
1737
1738
|
// ── MEV Block Delay ─────────────────────────────────────────────────
|
|
1738
1739
|
async getMevBlockDelay() {
|
|
1739
1740
|
return await this.publicClient.readContract({
|
|
1740
|
-
address: ADDRESSES.
|
|
1741
|
+
address: ADDRESSES.MEV_DESCENDING_FEES,
|
|
1741
1742
|
abi: LiquidMevBlockDelayAbi,
|
|
1742
1743
|
functionName: "blockDelay"
|
|
1743
1744
|
});
|
|
1744
1745
|
}
|
|
1745
1746
|
async getPoolUnlockTime(poolId) {
|
|
1746
1747
|
return await this.publicClient.readContract({
|
|
1747
|
-
address: ADDRESSES.
|
|
1748
|
+
address: ADDRESSES.MEV_DESCENDING_FEES,
|
|
1748
1749
|
abi: LiquidMevBlockDelayAbi,
|
|
1749
1750
|
functionName: "poolUnlockTime",
|
|
1750
1751
|
args: [poolId]
|