@pafi-dev/trading 0.11.1 → 0.12.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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1257,8 +1257,7 @@ import {
|
|
|
1257
1257
|
getContractAddresses as getContractAddresses2,
|
|
1258
1258
|
parseEip7702DelegatedAddress,
|
|
1259
1259
|
detectDelegateImpl,
|
|
1260
|
-
|
|
1261
|
-
BATCH_EXECUTOR_7702_IMPL
|
|
1260
|
+
KERNEL_V3_3_IMPL
|
|
1262
1261
|
} from "@pafi-dev/core";
|
|
1263
1262
|
async function swapDirect(params) {
|
|
1264
1263
|
const universalRouter = UNIVERSAL_ROUTER_ADDRESSES2[params.chainId];
|
|
@@ -1296,7 +1295,7 @@ async function swapDirect(params) {
|
|
|
1296
1295
|
const impl = detectDelegateImpl(delegate);
|
|
1297
1296
|
if (impl === "unknown") {
|
|
1298
1297
|
params.onWarning?.(
|
|
1299
|
-
`swapDirect: user delegated to ${delegate} which is not a PAFI-recognised impl (expected ${
|
|
1298
|
+
`swapDirect: user delegated to ${delegate} which is not a PAFI-recognised impl (expected ${KERNEL_V3_3_IMPL}). Continuing \u2014 execute will revert if the impl doesn't expose the Kernel execute() entrypoint.`
|
|
1300
1299
|
);
|
|
1301
1300
|
}
|
|
1302
1301
|
let quoteResult;
|
|
@@ -1377,8 +1376,7 @@ import {
|
|
|
1377
1376
|
getContractAddresses as getContractAddresses3,
|
|
1378
1377
|
parseEip7702DelegatedAddress as parseEip7702DelegatedAddress2,
|
|
1379
1378
|
detectDelegateImpl as detectDelegateImpl2,
|
|
1380
|
-
|
|
1381
|
-
BATCH_EXECUTOR_7702_IMPL as BATCH_EXECUTOR_7702_IMPL2
|
|
1379
|
+
KERNEL_V3_3_IMPL as KERNEL_V3_3_IMPL2
|
|
1382
1380
|
} from "@pafi-dev/core";
|
|
1383
1381
|
async function swapDirectExactOut(params) {
|
|
1384
1382
|
const universalRouter = UNIVERSAL_ROUTER_ADDRESSES3[params.chainId];
|
|
@@ -1418,7 +1416,7 @@ async function swapDirectExactOut(params) {
|
|
|
1418
1416
|
const impl = detectDelegateImpl2(delegate);
|
|
1419
1417
|
if (impl === "unknown") {
|
|
1420
1418
|
params.onWarning?.(
|
|
1421
|
-
`swapDirectExactOut: user delegated to ${delegate} which is not a PAFI-recognised impl (expected ${
|
|
1419
|
+
`swapDirectExactOut: user delegated to ${delegate} which is not a PAFI-recognised impl (expected ${KERNEL_V3_3_IMPL2}). Continuing \u2014 execute will revert if the impl doesn't expose the Kernel execute() entrypoint.`
|
|
1422
1420
|
);
|
|
1423
1421
|
}
|
|
1424
1422
|
let quoteResult;
|
|
@@ -1502,8 +1500,7 @@ import {
|
|
|
1502
1500
|
detectDelegateImpl as detectDelegateImpl3,
|
|
1503
1501
|
getContractAddresses as getContractAddresses4,
|
|
1504
1502
|
parseEip7702DelegatedAddress as parseEip7702DelegatedAddress3,
|
|
1505
|
-
|
|
1506
|
-
SIMPLE_7702_IMPL_BASE_MAINNET as SIMPLE_7702_IMPL_BASE_MAINNET3
|
|
1503
|
+
KERNEL_V3_3_IMPL as KERNEL_V3_3_IMPL3
|
|
1507
1504
|
} from "@pafi-dev/core";
|
|
1508
1505
|
async function perpDepositDirect(params) {
|
|
1509
1506
|
if (params.amount <= 0n) {
|
|
@@ -1521,7 +1518,7 @@ async function perpDepositDirect(params) {
|
|
|
1521
1518
|
const impl = detectDelegateImpl3(delegate);
|
|
1522
1519
|
if (impl === "unknown") {
|
|
1523
1520
|
params.onWarning?.(
|
|
1524
|
-
`perpDepositDirect: user delegated to ${delegate} (not a PAFI-recognised impl ${
|
|
1521
|
+
`perpDepositDirect: user delegated to ${delegate} (not a PAFI-recognised impl ${KERNEL_V3_3_IMPL3}). Continuing \u2014 execute will revert if the impl doesn't expose the Kernel execute() entrypoint.`
|
|
1525
1522
|
);
|
|
1526
1523
|
}
|
|
1527
1524
|
const vault = ORDERLY_VAULT_ADDRESSES2[params.chainId];
|
|
@@ -1641,8 +1638,7 @@ import {
|
|
|
1641
1638
|
getContractAddresses as getContractAddresses5,
|
|
1642
1639
|
parseEip7702DelegatedAddress as parseEip7702DelegatedAddress4,
|
|
1643
1640
|
detectDelegateImpl as detectDelegateImpl4,
|
|
1644
|
-
|
|
1645
|
-
SIMPLE_7702_IMPL_BASE_MAINNET as SIMPLE_7702_IMPL_BASE_MAINNET4
|
|
1641
|
+
KERNEL_V3_3_IMPL as KERNEL_V3_3_IMPL4
|
|
1646
1642
|
} from "@pafi-dev/core";
|
|
1647
1643
|
|
|
1648
1644
|
// src/direct/addLiquidityDirect.ts
|