@pafi-dev/core 0.10.0 → 0.13.1
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 +23 -70
- package/dist/abi/index.cjs +2 -2
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.d.cts +58 -106
- package/dist/abi/index.d.ts +58 -106
- package/dist/abi/index.js +3 -3
- package/dist/{chunk-J7EYOLMI.js → chunk-H3X3FYUU.js} +1 -1
- package/dist/chunk-H3X3FYUU.js.map +1 -0
- package/dist/{chunk-4NTU7XGP.cjs → chunk-NT2ZPF72.cjs} +53 -23
- package/dist/chunk-NT2ZPF72.cjs.map +1 -0
- package/dist/{chunk-BBQLGBOD.cjs → chunk-TRYGIC2I.cjs} +1 -1
- package/dist/{chunk-BBQLGBOD.cjs.map → chunk-TRYGIC2I.cjs.map} +1 -1
- package/dist/{chunk-RVSW7I6U.js → chunk-UEO4YN6T.js} +52 -22
- package/dist/chunk-UEO4YN6T.js.map +1 -0
- package/dist/{chunk-MIQA46E3.cjs → chunk-XXLIIWIF.cjs} +45 -53
- package/dist/chunk-XXLIIWIF.cjs.map +1 -0
- package/dist/{chunk-CWH4KOUW.js → chunk-ZJXXCG5P.js} +45 -53
- package/dist/chunk-ZJXXCG5P.js.map +1 -0
- package/dist/contract/index.cjs +2 -2
- package/dist/contract/index.d.cts +4 -5
- package/dist/contract/index.d.ts +4 -5
- package/dist/contract/index.js +1 -1
- package/dist/eip712/index.cjs +2 -2
- package/dist/eip712/index.d.cts +30 -5
- package/dist/eip712/index.d.ts +30 -5
- package/dist/eip712/index.js +1 -1
- package/dist/index.cjs +146 -126
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +189 -119
- package/dist/index.d.ts +189 -119
- package/dist/index.js +135 -115
- package/dist/index.js.map +1 -1
- package/dist/{types-B3UivyQ1.d.cts → types-C17pznGz.d.cts} +72 -21
- package/dist/{types-B3UivyQ1.d.ts → types-C17pznGz.d.ts} +72 -21
- package/package.json +16 -15
- package/dist/chunk-4NTU7XGP.cjs.map +0 -1
- package/dist/chunk-CWH4KOUW.js.map +0 -1
- package/dist/chunk-J7EYOLMI.js.map +0 -1
- package/dist/chunk-MIQA46E3.cjs.map +0 -1
- package/dist/chunk-RVSW7I6U.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
5
5
|
|
|
6
6
|
Pure primitives for the PAFI point-token system. EIP-712 signing,
|
|
7
|
-
contract ABIs + addresses
|
|
7
|
+
contract ABIs + addresses, ERC-4337 UserOp building, EIP-7702
|
|
8
8
|
delegation, sponsor-auth signing, perp deposit calldata, fee quoting,
|
|
9
9
|
MintFeeWrapper helpers.
|
|
10
10
|
|
|
@@ -12,29 +12,6 @@ MintFeeWrapper helpers.
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
## What's new in 0.10.0 (breaking)
|
|
16
|
-
|
|
17
|
-
| Change | Detail |
|
|
18
|
-
|---|---|
|
|
19
|
-
| `ReceiverConsent` removed | The `ReceiverConsent` EIP-712 type, helpers (`buildReceiverConsentTypedData`, `signReceiverConsent`, `verifyReceiverConsent`), constants (`receiverConsentTypes`), and contract reader (`getReceiverConsentNonce`) are all **deleted**. The deployed `PointToken` contract never had a 3rd "sponsored" mint path — that pattern is implemented at the relayer layer (sponsor-relayer pays gas for path-2 `MintForRequest` sig-gated mint). The previous fallback that read ERC-2612 `nonces(owner)` was semantically wrong and is gone. |
|
|
20
|
-
| `PafiSDK.consent` namespace removed | The convenience class no longer exposes `consent.buildTypedData / sign / verify / getNonce`. |
|
|
21
|
-
| Action required for callers | Replace any `signReceiverConsent` / `getReceiverConsentNonce` usage with the path-2 sig-gated mint flow (`MintRequest` + `getMintRequestNonce`). |
|
|
22
|
-
|
|
23
|
-
### What's new in v1.6 (since 0.9.0)
|
|
24
|
-
|
|
25
|
-
| Change | Detail |
|
|
26
|
-
|---|---|
|
|
27
|
-
| `MintFeeWrapper` (NEW) | Single global wrapper contract that skims a configurable fee on every sig-gated mint and distributes to per-PT recipients |
|
|
28
|
-
| EIP-712 typehash | `MintRequest(to, amount, nonce, deadline)` → **`MintForRequest(user, receiver, amount, nonce, deadline)`** (5 fields) |
|
|
29
|
-
| Issuer struct | Dropped `declaredTotalSupply` + `capBasisPoints` — caps moved to `MintingOracle.tokenCaps(pointToken)` (per-token, not per-issuer) |
|
|
30
|
-
| `verifyMintCap` signature | Now takes `pointToken` as first arg |
|
|
31
|
-
| New helpers | `getMintFeeBps`, `getMintFeeRecipients`, `getTokenCap` |
|
|
32
|
-
| Subgraph URL | Hardcoded to `pafi-subgraph-v3` (`getPafiServiceUrls(chainId)`) |
|
|
33
|
-
| `pafiHook` | DEPRECATED — V4 swap-time fee removed entirely in v1.6 |
|
|
34
|
-
| `getPtPerUsdt18dec` math fix (0.9.6) | Subgraph V4 returns HUMAN-readable price; old formula `10^24/raw` was off by ~10^11 |
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
15
|
## Requirements
|
|
39
16
|
|
|
40
17
|
- Node.js ≥ 18 (or modern browser with native `fetch`)
|
|
@@ -49,7 +26,7 @@ pnpm add @pafi-dev/core viem
|
|
|
49
26
|
|
|
50
27
|
---
|
|
51
28
|
|
|
52
|
-
## Package layout
|
|
29
|
+
## Package layout
|
|
53
30
|
|
|
54
31
|
Core ships **data + primitives** only. Higher-level orchestration in siblings:
|
|
55
32
|
|
|
@@ -66,53 +43,48 @@ Core ships **data + primitives** only. Higher-level orchestration in siblings:
|
|
|
66
43
|
|
|
67
44
|
| Symbol / area | Provides |
|
|
68
45
|
| --- | --- |
|
|
69
|
-
| `getContractAddresses(chainId)` | All deployed PAFI
|
|
70
|
-
| `signMintRequest`, `verifyMintRequest`, `buildMintRequestTypedData` | EIP-712 sign/recover for
|
|
46
|
+
| `getContractAddresses(chainId)` | All deployed PAFI addresses keyed by chain |
|
|
47
|
+
| `signMintRequest`, `verifyMintRequest`, `buildMintRequestTypedData` | EIP-712 sign/recover for `MintForRequest` (5 fields: user, receiver, amount, nonce, deadline) |
|
|
71
48
|
| `signBurnRequest`, `verifyBurnRequest`, `buildBurnRequestTypedData` | EIP-712 for `BurnRequest` |
|
|
72
49
|
| `signSponsorAuth`, `verifySponsorAuth`, `buildAndSignSponsorAuth` | EIP-712 for sponsor-relayer auth |
|
|
73
50
|
| `buildPartialUserOperation`, `assembleUserOperation`, `computeUserOpHash` | ERC-4337 v0.7+ UserOp builder + hash |
|
|
74
51
|
| `encodeBatchExecute`, `decodeBatchExecuteCalls` | BatchExecutor (Pimlico Simple7702Account) calldata |
|
|
75
52
|
| `buildDelegationUserOp`, `computeAuthorizationHash`, `parseEip7702DelegatedAddress`, `splitAuthorizationSig`, `buildEip7702Authorization`, `delegateDirect` | EIP-7702 helpers (build + introspect) |
|
|
76
53
|
| `buildPerpDepositViaRelay`, `buildPerpDepositWithGasDeduction`, `ORDERLY_RELAY_ABI`, `ORDERLY_VAULT_ABI`, `BROKER_HASHES`, `TOKEN_HASHES`, `computeAccountId` | Orderly perp deposit calldata + types |
|
|
77
|
-
| `quoteOperatorFeePt`, `quoteOperatorFeeUsdt` | Gas-reimbursement fee quoter (Chainlink +
|
|
78
|
-
| `getMintFeeBps`, `getMintFeeRecipients` |
|
|
79
|
-
| `getTokenCap` |
|
|
80
|
-
| `verifyMintCap`, `getPointTokenIssuer` | MintingOracle read helpers
|
|
81
|
-
| `getIssuer`, `isActiveIssuer`, `issuerRegistryGetIssuerFlatAbi` | IssuerRegistry helpers (
|
|
54
|
+
| `quoteOperatorFeePt`, `quoteOperatorFeeUsdt` | Gas-reimbursement fee quoter (Chainlink + V3 subgraph) |
|
|
55
|
+
| `getMintFeeBps`, `getMintFeeRecipients` | Read wrapper fee config per pointToken |
|
|
56
|
+
| `getTokenCap` | Read `MintingOracle.tokenCaps(pointToken)` |
|
|
57
|
+
| `verifyMintCap`, `getPointTokenIssuer` | MintingOracle read helpers |
|
|
58
|
+
| `getIssuer`, `isActiveIssuer`, `issuerRegistryGetIssuerFlatAbi` | IssuerRegistry helpers (7-field record) |
|
|
82
59
|
| `getMintRequestNonce`, `getBurnRequestNonce`, `getPointTokenBalance`, `isMinter`, `getTokenName`, `getPointTokenIssuerAddress` | PointToken read helpers |
|
|
83
|
-
| `fetchPafiPools`, `PAFI_SUBGRAPH_URL` | Pool discovery
|
|
60
|
+
| `fetchPafiPools`, `PAFI_SUBGRAPH_URL` | Pool discovery — endpoint is `…/pafi-subgraph-v4` (PAFI V3-fork DEX + extensions); parser tolerates both V3 and legacy V4 subgraph responses |
|
|
84
61
|
| `getPafiServiceUrls(chainId)` | Hardcoded PAFI service endpoints (sponsorRelayer, issuerApi) |
|
|
85
|
-
| `
|
|
62
|
+
| `PoolKey` (`{ token0, token1, fee }`), `V3Path` (`{ tokens, fees }`), `QuoteResult` | Uniswap V3 routing types used by `@pafi-dev/trading` |
|
|
63
|
+
| `encodeV3Path`, `encodeV3PathReversed`, `computeV3PoolAddress` | V3 packed-bytes path encoding + CREATE2 pool-address derivation |
|
|
64
|
+
| `V3_FACTORY_ADDRESSES`, `V3_SWAP_ROUTER_ADDRESSES`, `QUOTER_V2_ADDRESSES`, `V3_POOL_INIT_CODE_HASH` | PAFI's V3-fork deployment (Base mainnet) |
|
|
65
|
+
| `pointTokenAbi` (canonical export `POINT_TOKEN_ABI`; `POINT_TOKEN_V2_ABI` alias deprecated since 0.13.1), `issuerRegistryAbi`, `mintingOracleAbi`, `mintFeeWrapperAbi`, `pointTokenFactoryAbi`, `erc20Abi`, `permit2Abi`, `universalRouterAbi`, `v3QuoterV2Abi` | Contract ABIs (regenerated from Foundry artifacts) |
|
|
86
66
|
| `createLoginMessage` | EIP-4361 SIWE login builder |
|
|
87
67
|
|
|
88
68
|
---
|
|
89
69
|
|
|
90
|
-
## Contract addresses
|
|
70
|
+
## Contract addresses
|
|
91
71
|
|
|
92
72
|
```ts
|
|
93
73
|
import { getContractAddresses } from "@pafi-dev/core";
|
|
94
74
|
|
|
95
75
|
const addr = getContractAddresses(8453); // Base mainnet
|
|
96
|
-
// addr.issuerRegistry
|
|
97
|
-
// addr.
|
|
98
|
-
// addr.
|
|
99
|
-
// addr.usdt = 0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382
|
|
100
|
-
// addr.batchExecutor = 0xe6Cae83BdE06E4c305530e199D7217f42808555B (Pimlico Simple7702)
|
|
101
|
-
// addr.pafiFeeRecipient = ... (PAFI ops wallet)
|
|
102
|
-
// addr.chainlinkEthUsd = 0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70
|
|
103
|
-
// addr.pafiHook = 0x...dead (DEPRECATED in v1.6)
|
|
104
|
-
// addr.pointToken = dead-zero (PER-ISSUER — read from env or factory)
|
|
76
|
+
// addr.issuerRegistry, addr.mintingOracle, addr.mintFeeWrapper,
|
|
77
|
+
// addr.usdt, addr.batchExecutor, addr.pafiFeeRecipient,
|
|
78
|
+
// addr.chainlinkEthUsd, addr.orderlyRelay, addr.universalRouter
|
|
105
79
|
```
|
|
106
80
|
|
|
107
81
|
> Per-issuer `pointToken` clones are NOT in the chain-level address bag.
|
|
108
82
|
> Read from your issuer env (e.g. `POINT_TOKEN_ADDRESS`) or
|
|
109
83
|
> `PointTokenFactory.createToken()` at runtime.
|
|
110
84
|
|
|
111
|
-
Deploy block: **45683465** (canonical for all v1.6 indexers).
|
|
112
|
-
|
|
113
85
|
---
|
|
114
86
|
|
|
115
|
-
## EIP-712 — `MintForRequest`
|
|
87
|
+
## EIP-712 — `MintForRequest`
|
|
116
88
|
|
|
117
89
|
```ts
|
|
118
90
|
import { signMintRequest, verifyMintRequest } from "@pafi-dev/core";
|
|
@@ -145,7 +117,7 @@ Wrapper-mediated mint puts `receiver = wrapperAddress`; direct mint puts
|
|
|
145
117
|
|
|
146
118
|
---
|
|
147
119
|
|
|
148
|
-
## MintFeeWrapper helpers
|
|
120
|
+
## MintFeeWrapper helpers
|
|
149
121
|
|
|
150
122
|
```ts
|
|
151
123
|
import { getMintFeeBps, getMintFeeRecipients, getContractAddresses } from "@pafi-dev/core";
|
|
@@ -177,7 +149,7 @@ const gasFeeUsdt = await quoteOperatorFeeUsdt({
|
|
|
177
149
|
provider, chainId: 8453, scenario: "mint",
|
|
178
150
|
});
|
|
179
151
|
|
|
180
|
-
// PT-denominated (used by mint/burn flows). Adds
|
|
152
|
+
// PT-denominated (used by mint/burn flows). Adds V3 subgraph call.
|
|
181
153
|
const gasFeePt = await quoteOperatorFeePt({
|
|
182
154
|
provider, chainId: 8453, scenario: "mint",
|
|
183
155
|
pointTokenAddress: POINT_TOKEN,
|
|
@@ -281,11 +253,11 @@ import {
|
|
|
281
253
|
getMintRequestNonce, isMinter,
|
|
282
254
|
} from "@pafi-dev/core";
|
|
283
255
|
|
|
284
|
-
// Issuer registry record (
|
|
256
|
+
// Issuer registry record (7-field flat record)
|
|
285
257
|
const issuer = await getIssuer(provider, registry, issuerAddress);
|
|
286
258
|
// { issuerAddress, signerAddress, name, symbol, active, pointToken, mintingOracle }
|
|
287
259
|
|
|
288
|
-
// Per-token cap (
|
|
260
|
+
// Per-token cap (read from oracle, not issuer struct)
|
|
289
261
|
const cap = await getTokenCap(provider, mintingOracle, pointToken);
|
|
290
262
|
// { declaredTotalSupply, capBasisPoints }
|
|
291
263
|
|
|
@@ -299,27 +271,8 @@ const authorized = await isMinter(provider, pointToken, signerAddress);
|
|
|
299
271
|
|
|
300
272
|
---
|
|
301
273
|
|
|
302
|
-
## v1.5 → v1.6 migration
|
|
303
|
-
|
|
304
|
-
1. `pnpm add @pafi-dev/core@latest` (≥ 0.9.6)
|
|
305
|
-
2. Replace `signMintRequest({ to, amount, nonce, deadline })` →
|
|
306
|
-
`signMintRequest({ user, receiver, amount, nonce, deadline })`
|
|
307
|
-
- Direct mint: `receiver = user`
|
|
308
|
-
- Wrapper-mediated mint: `receiver = mintFeeWrapper`
|
|
309
|
-
3. Replace `verifyMintCap(client, oracle, issuer, amount)` →
|
|
310
|
-
`verifyMintCap(client, oracle, pointToken, issuer, amount)`
|
|
311
|
-
4. Remove uses of `Issuer.declaredTotalSupply` / `Issuer.capBasisPoints`
|
|
312
|
-
— read from `getTokenCap(provider, oracle, pointToken)` instead
|
|
313
|
-
5. Drop any reference to `pafiHook` for swap fees — V4 hook removed in v1.6
|
|
314
|
-
6. Update calldata to call `mintFeeWrapper.mintWithFee(...)` when fee
|
|
315
|
-
is configured. `@pafi-dev/issuer`'s `RelayService` does this
|
|
316
|
-
automatically based on `getContractAddresses(chainId).mintFeeWrapper`
|
|
317
|
-
|
|
318
|
-
---
|
|
319
|
-
|
|
320
274
|
## References
|
|
321
275
|
|
|
322
|
-
- v1.6 deploy block: **45683465** on Base mainnet (2026-05-07)
|
|
323
276
|
- Architecture: [`ARCHITECTURE.md`](../../ARCHITECTURE.md) at SDK root
|
|
324
277
|
- Fee math: [`docs/FEE_FLOW.md`](../../../docs/FEE_FLOW.md)
|
|
325
278
|
|
package/dist/abi/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXXLIIWIFcjs = require('../chunk-XXLIIWIF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -24,5 +24,5 @@ require('../chunk-JEQ2X3Z6.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
exports.erc20Abi =
|
|
27
|
+
exports.erc20Abi = _chunkXXLIIWIFcjs.erc20Abi; exports.issuerRegistryAbi = _chunkC7VB6WTLcjs.issuerRegistryAbi; exports.mintFeeWrapperAbi = _chunkC7VB6WTLcjs.mintFeeWrapperAbi; exports.mintingOracleAbi = _chunkC7VB6WTLcjs.mintingOracleAbi; exports.permit2Abi = _chunkXXLIIWIFcjs.permit2Abi; exports.pointTokenAbi = _chunkKRHGFUDIcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunkXXLIIWIFcjs.pointTokenFactoryAbi; exports.universalRouterAbi = _chunkXXLIIWIFcjs.universalRouterAbi; exports.v3QuoterV2Abi = _chunkXXLIIWIFcjs.v3QuoterV2Abi;
|
|
28
28
|
//# sourceMappingURL=index.cjs.map
|
package/dist/abi/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/abi/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/abi/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,8hBAAC","file":"/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/abi/index.cjs"}
|
package/dist/abi/index.d.cts
CHANGED
|
@@ -3042,7 +3042,7 @@ declare const permit2Abi: readonly [{
|
|
|
3042
3042
|
readonly outputs: readonly [];
|
|
3043
3043
|
}];
|
|
3044
3044
|
|
|
3045
|
-
declare const
|
|
3045
|
+
declare const v3QuoterV2Abi: readonly [{
|
|
3046
3046
|
readonly type: "function";
|
|
3047
3047
|
readonly name: "quoteExactInputSingle";
|
|
3048
3048
|
readonly stateMutability: "nonpayable";
|
|
@@ -3050,38 +3050,31 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3050
3050
|
readonly name: "params";
|
|
3051
3051
|
readonly type: "tuple";
|
|
3052
3052
|
readonly components: readonly [{
|
|
3053
|
-
readonly name: "
|
|
3054
|
-
readonly type: "
|
|
3055
|
-
readonly components: readonly [{
|
|
3056
|
-
readonly name: "currency0";
|
|
3057
|
-
readonly type: "address";
|
|
3058
|
-
}, {
|
|
3059
|
-
readonly name: "currency1";
|
|
3060
|
-
readonly type: "address";
|
|
3061
|
-
}, {
|
|
3062
|
-
readonly name: "fee";
|
|
3063
|
-
readonly type: "uint24";
|
|
3064
|
-
}, {
|
|
3065
|
-
readonly name: "tickSpacing";
|
|
3066
|
-
readonly type: "int24";
|
|
3067
|
-
}, {
|
|
3068
|
-
readonly name: "hooks";
|
|
3069
|
-
readonly type: "address";
|
|
3070
|
-
}];
|
|
3053
|
+
readonly name: "tokenIn";
|
|
3054
|
+
readonly type: "address";
|
|
3071
3055
|
}, {
|
|
3072
|
-
readonly name: "
|
|
3073
|
-
readonly type: "
|
|
3056
|
+
readonly name: "tokenOut";
|
|
3057
|
+
readonly type: "address";
|
|
3074
3058
|
}, {
|
|
3075
|
-
readonly name: "
|
|
3076
|
-
readonly type: "
|
|
3059
|
+
readonly name: "amountIn";
|
|
3060
|
+
readonly type: "uint256";
|
|
3061
|
+
}, {
|
|
3062
|
+
readonly name: "fee";
|
|
3063
|
+
readonly type: "uint24";
|
|
3077
3064
|
}, {
|
|
3078
|
-
readonly name: "
|
|
3079
|
-
readonly type: "
|
|
3065
|
+
readonly name: "sqrtPriceLimitX96";
|
|
3066
|
+
readonly type: "uint160";
|
|
3080
3067
|
}];
|
|
3081
3068
|
}];
|
|
3082
3069
|
readonly outputs: readonly [{
|
|
3083
3070
|
readonly name: "amountOut";
|
|
3084
3071
|
readonly type: "uint256";
|
|
3072
|
+
}, {
|
|
3073
|
+
readonly name: "sqrtPriceX96After";
|
|
3074
|
+
readonly type: "uint160";
|
|
3075
|
+
}, {
|
|
3076
|
+
readonly name: "initializedTicksCrossed";
|
|
3077
|
+
readonly type: "uint32";
|
|
3085
3078
|
}, {
|
|
3086
3079
|
readonly name: "gasEstimate";
|
|
3087
3080
|
readonly type: "uint256";
|
|
@@ -3091,38 +3084,21 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3091
3084
|
readonly name: "quoteExactInput";
|
|
3092
3085
|
readonly stateMutability: "nonpayable";
|
|
3093
3086
|
readonly inputs: readonly [{
|
|
3094
|
-
readonly name: "
|
|
3095
|
-
readonly type: "
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
}, {
|
|
3100
|
-
readonly name: "path";
|
|
3101
|
-
readonly type: "tuple[]";
|
|
3102
|
-
readonly components: readonly [{
|
|
3103
|
-
readonly name: "intermediateCurrency";
|
|
3104
|
-
readonly type: "address";
|
|
3105
|
-
}, {
|
|
3106
|
-
readonly name: "fee";
|
|
3107
|
-
readonly type: "uint24";
|
|
3108
|
-
}, {
|
|
3109
|
-
readonly name: "tickSpacing";
|
|
3110
|
-
readonly type: "int24";
|
|
3111
|
-
}, {
|
|
3112
|
-
readonly name: "hooks";
|
|
3113
|
-
readonly type: "address";
|
|
3114
|
-
}, {
|
|
3115
|
-
readonly name: "hookData";
|
|
3116
|
-
readonly type: "bytes";
|
|
3117
|
-
}];
|
|
3118
|
-
}, {
|
|
3119
|
-
readonly name: "exactAmount";
|
|
3120
|
-
readonly type: "uint128";
|
|
3121
|
-
}];
|
|
3087
|
+
readonly name: "path";
|
|
3088
|
+
readonly type: "bytes";
|
|
3089
|
+
}, {
|
|
3090
|
+
readonly name: "amountIn";
|
|
3091
|
+
readonly type: "uint256";
|
|
3122
3092
|
}];
|
|
3123
3093
|
readonly outputs: readonly [{
|
|
3124
3094
|
readonly name: "amountOut";
|
|
3125
3095
|
readonly type: "uint256";
|
|
3096
|
+
}, {
|
|
3097
|
+
readonly name: "sqrtPriceX96AfterList";
|
|
3098
|
+
readonly type: "uint160[]";
|
|
3099
|
+
}, {
|
|
3100
|
+
readonly name: "initializedTicksCrossedList";
|
|
3101
|
+
readonly type: "uint32[]";
|
|
3126
3102
|
}, {
|
|
3127
3103
|
readonly name: "gasEstimate";
|
|
3128
3104
|
readonly type: "uint256";
|
|
@@ -3135,38 +3111,31 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3135
3111
|
readonly name: "params";
|
|
3136
3112
|
readonly type: "tuple";
|
|
3137
3113
|
readonly components: readonly [{
|
|
3138
|
-
readonly name: "
|
|
3139
|
-
readonly type: "
|
|
3140
|
-
readonly components: readonly [{
|
|
3141
|
-
readonly name: "currency0";
|
|
3142
|
-
readonly type: "address";
|
|
3143
|
-
}, {
|
|
3144
|
-
readonly name: "currency1";
|
|
3145
|
-
readonly type: "address";
|
|
3146
|
-
}, {
|
|
3147
|
-
readonly name: "fee";
|
|
3148
|
-
readonly type: "uint24";
|
|
3149
|
-
}, {
|
|
3150
|
-
readonly name: "tickSpacing";
|
|
3151
|
-
readonly type: "int24";
|
|
3152
|
-
}, {
|
|
3153
|
-
readonly name: "hooks";
|
|
3154
|
-
readonly type: "address";
|
|
3155
|
-
}];
|
|
3114
|
+
readonly name: "tokenIn";
|
|
3115
|
+
readonly type: "address";
|
|
3156
3116
|
}, {
|
|
3157
|
-
readonly name: "
|
|
3158
|
-
readonly type: "
|
|
3117
|
+
readonly name: "tokenOut";
|
|
3118
|
+
readonly type: "address";
|
|
3159
3119
|
}, {
|
|
3160
|
-
readonly name: "
|
|
3161
|
-
readonly type: "
|
|
3120
|
+
readonly name: "amount";
|
|
3121
|
+
readonly type: "uint256";
|
|
3122
|
+
}, {
|
|
3123
|
+
readonly name: "fee";
|
|
3124
|
+
readonly type: "uint24";
|
|
3162
3125
|
}, {
|
|
3163
|
-
readonly name: "
|
|
3164
|
-
readonly type: "
|
|
3126
|
+
readonly name: "sqrtPriceLimitX96";
|
|
3127
|
+
readonly type: "uint160";
|
|
3165
3128
|
}];
|
|
3166
3129
|
}];
|
|
3167
3130
|
readonly outputs: readonly [{
|
|
3168
3131
|
readonly name: "amountIn";
|
|
3169
3132
|
readonly type: "uint256";
|
|
3133
|
+
}, {
|
|
3134
|
+
readonly name: "sqrtPriceX96After";
|
|
3135
|
+
readonly type: "uint160";
|
|
3136
|
+
}, {
|
|
3137
|
+
readonly name: "initializedTicksCrossed";
|
|
3138
|
+
readonly type: "uint32";
|
|
3170
3139
|
}, {
|
|
3171
3140
|
readonly name: "gasEstimate";
|
|
3172
3141
|
readonly type: "uint256";
|
|
@@ -3176,42 +3145,25 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3176
3145
|
readonly name: "quoteExactOutput";
|
|
3177
3146
|
readonly stateMutability: "nonpayable";
|
|
3178
3147
|
readonly inputs: readonly [{
|
|
3179
|
-
readonly name: "
|
|
3180
|
-
readonly type: "
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
}, {
|
|
3185
|
-
readonly name: "path";
|
|
3186
|
-
readonly type: "tuple[]";
|
|
3187
|
-
readonly components: readonly [{
|
|
3188
|
-
readonly name: "intermediateCurrency";
|
|
3189
|
-
readonly type: "address";
|
|
3190
|
-
}, {
|
|
3191
|
-
readonly name: "fee";
|
|
3192
|
-
readonly type: "uint24";
|
|
3193
|
-
}, {
|
|
3194
|
-
readonly name: "tickSpacing";
|
|
3195
|
-
readonly type: "int24";
|
|
3196
|
-
}, {
|
|
3197
|
-
readonly name: "hooks";
|
|
3198
|
-
readonly type: "address";
|
|
3199
|
-
}, {
|
|
3200
|
-
readonly name: "hookData";
|
|
3201
|
-
readonly type: "bytes";
|
|
3202
|
-
}];
|
|
3203
|
-
}, {
|
|
3204
|
-
readonly name: "exactAmount";
|
|
3205
|
-
readonly type: "uint128";
|
|
3206
|
-
}];
|
|
3148
|
+
readonly name: "path";
|
|
3149
|
+
readonly type: "bytes";
|
|
3150
|
+
}, {
|
|
3151
|
+
readonly name: "amountOut";
|
|
3152
|
+
readonly type: "uint256";
|
|
3207
3153
|
}];
|
|
3208
3154
|
readonly outputs: readonly [{
|
|
3209
3155
|
readonly name: "amountIn";
|
|
3210
3156
|
readonly type: "uint256";
|
|
3157
|
+
}, {
|
|
3158
|
+
readonly name: "sqrtPriceX96AfterList";
|
|
3159
|
+
readonly type: "uint160[]";
|
|
3160
|
+
}, {
|
|
3161
|
+
readonly name: "initializedTicksCrossedList";
|
|
3162
|
+
readonly type: "uint32[]";
|
|
3211
3163
|
}, {
|
|
3212
3164
|
readonly name: "gasEstimate";
|
|
3213
3165
|
readonly type: "uint256";
|
|
3214
3166
|
}];
|
|
3215
3167
|
}];
|
|
3216
3168
|
|
|
3217
|
-
export { erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi,
|
|
3169
|
+
export { erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v3QuoterV2Abi };
|
package/dist/abi/index.d.ts
CHANGED
|
@@ -3042,7 +3042,7 @@ declare const permit2Abi: readonly [{
|
|
|
3042
3042
|
readonly outputs: readonly [];
|
|
3043
3043
|
}];
|
|
3044
3044
|
|
|
3045
|
-
declare const
|
|
3045
|
+
declare const v3QuoterV2Abi: readonly [{
|
|
3046
3046
|
readonly type: "function";
|
|
3047
3047
|
readonly name: "quoteExactInputSingle";
|
|
3048
3048
|
readonly stateMutability: "nonpayable";
|
|
@@ -3050,38 +3050,31 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3050
3050
|
readonly name: "params";
|
|
3051
3051
|
readonly type: "tuple";
|
|
3052
3052
|
readonly components: readonly [{
|
|
3053
|
-
readonly name: "
|
|
3054
|
-
readonly type: "
|
|
3055
|
-
readonly components: readonly [{
|
|
3056
|
-
readonly name: "currency0";
|
|
3057
|
-
readonly type: "address";
|
|
3058
|
-
}, {
|
|
3059
|
-
readonly name: "currency1";
|
|
3060
|
-
readonly type: "address";
|
|
3061
|
-
}, {
|
|
3062
|
-
readonly name: "fee";
|
|
3063
|
-
readonly type: "uint24";
|
|
3064
|
-
}, {
|
|
3065
|
-
readonly name: "tickSpacing";
|
|
3066
|
-
readonly type: "int24";
|
|
3067
|
-
}, {
|
|
3068
|
-
readonly name: "hooks";
|
|
3069
|
-
readonly type: "address";
|
|
3070
|
-
}];
|
|
3053
|
+
readonly name: "tokenIn";
|
|
3054
|
+
readonly type: "address";
|
|
3071
3055
|
}, {
|
|
3072
|
-
readonly name: "
|
|
3073
|
-
readonly type: "
|
|
3056
|
+
readonly name: "tokenOut";
|
|
3057
|
+
readonly type: "address";
|
|
3074
3058
|
}, {
|
|
3075
|
-
readonly name: "
|
|
3076
|
-
readonly type: "
|
|
3059
|
+
readonly name: "amountIn";
|
|
3060
|
+
readonly type: "uint256";
|
|
3061
|
+
}, {
|
|
3062
|
+
readonly name: "fee";
|
|
3063
|
+
readonly type: "uint24";
|
|
3077
3064
|
}, {
|
|
3078
|
-
readonly name: "
|
|
3079
|
-
readonly type: "
|
|
3065
|
+
readonly name: "sqrtPriceLimitX96";
|
|
3066
|
+
readonly type: "uint160";
|
|
3080
3067
|
}];
|
|
3081
3068
|
}];
|
|
3082
3069
|
readonly outputs: readonly [{
|
|
3083
3070
|
readonly name: "amountOut";
|
|
3084
3071
|
readonly type: "uint256";
|
|
3072
|
+
}, {
|
|
3073
|
+
readonly name: "sqrtPriceX96After";
|
|
3074
|
+
readonly type: "uint160";
|
|
3075
|
+
}, {
|
|
3076
|
+
readonly name: "initializedTicksCrossed";
|
|
3077
|
+
readonly type: "uint32";
|
|
3085
3078
|
}, {
|
|
3086
3079
|
readonly name: "gasEstimate";
|
|
3087
3080
|
readonly type: "uint256";
|
|
@@ -3091,38 +3084,21 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3091
3084
|
readonly name: "quoteExactInput";
|
|
3092
3085
|
readonly stateMutability: "nonpayable";
|
|
3093
3086
|
readonly inputs: readonly [{
|
|
3094
|
-
readonly name: "
|
|
3095
|
-
readonly type: "
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
}, {
|
|
3100
|
-
readonly name: "path";
|
|
3101
|
-
readonly type: "tuple[]";
|
|
3102
|
-
readonly components: readonly [{
|
|
3103
|
-
readonly name: "intermediateCurrency";
|
|
3104
|
-
readonly type: "address";
|
|
3105
|
-
}, {
|
|
3106
|
-
readonly name: "fee";
|
|
3107
|
-
readonly type: "uint24";
|
|
3108
|
-
}, {
|
|
3109
|
-
readonly name: "tickSpacing";
|
|
3110
|
-
readonly type: "int24";
|
|
3111
|
-
}, {
|
|
3112
|
-
readonly name: "hooks";
|
|
3113
|
-
readonly type: "address";
|
|
3114
|
-
}, {
|
|
3115
|
-
readonly name: "hookData";
|
|
3116
|
-
readonly type: "bytes";
|
|
3117
|
-
}];
|
|
3118
|
-
}, {
|
|
3119
|
-
readonly name: "exactAmount";
|
|
3120
|
-
readonly type: "uint128";
|
|
3121
|
-
}];
|
|
3087
|
+
readonly name: "path";
|
|
3088
|
+
readonly type: "bytes";
|
|
3089
|
+
}, {
|
|
3090
|
+
readonly name: "amountIn";
|
|
3091
|
+
readonly type: "uint256";
|
|
3122
3092
|
}];
|
|
3123
3093
|
readonly outputs: readonly [{
|
|
3124
3094
|
readonly name: "amountOut";
|
|
3125
3095
|
readonly type: "uint256";
|
|
3096
|
+
}, {
|
|
3097
|
+
readonly name: "sqrtPriceX96AfterList";
|
|
3098
|
+
readonly type: "uint160[]";
|
|
3099
|
+
}, {
|
|
3100
|
+
readonly name: "initializedTicksCrossedList";
|
|
3101
|
+
readonly type: "uint32[]";
|
|
3126
3102
|
}, {
|
|
3127
3103
|
readonly name: "gasEstimate";
|
|
3128
3104
|
readonly type: "uint256";
|
|
@@ -3135,38 +3111,31 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3135
3111
|
readonly name: "params";
|
|
3136
3112
|
readonly type: "tuple";
|
|
3137
3113
|
readonly components: readonly [{
|
|
3138
|
-
readonly name: "
|
|
3139
|
-
readonly type: "
|
|
3140
|
-
readonly components: readonly [{
|
|
3141
|
-
readonly name: "currency0";
|
|
3142
|
-
readonly type: "address";
|
|
3143
|
-
}, {
|
|
3144
|
-
readonly name: "currency1";
|
|
3145
|
-
readonly type: "address";
|
|
3146
|
-
}, {
|
|
3147
|
-
readonly name: "fee";
|
|
3148
|
-
readonly type: "uint24";
|
|
3149
|
-
}, {
|
|
3150
|
-
readonly name: "tickSpacing";
|
|
3151
|
-
readonly type: "int24";
|
|
3152
|
-
}, {
|
|
3153
|
-
readonly name: "hooks";
|
|
3154
|
-
readonly type: "address";
|
|
3155
|
-
}];
|
|
3114
|
+
readonly name: "tokenIn";
|
|
3115
|
+
readonly type: "address";
|
|
3156
3116
|
}, {
|
|
3157
|
-
readonly name: "
|
|
3158
|
-
readonly type: "
|
|
3117
|
+
readonly name: "tokenOut";
|
|
3118
|
+
readonly type: "address";
|
|
3159
3119
|
}, {
|
|
3160
|
-
readonly name: "
|
|
3161
|
-
readonly type: "
|
|
3120
|
+
readonly name: "amount";
|
|
3121
|
+
readonly type: "uint256";
|
|
3122
|
+
}, {
|
|
3123
|
+
readonly name: "fee";
|
|
3124
|
+
readonly type: "uint24";
|
|
3162
3125
|
}, {
|
|
3163
|
-
readonly name: "
|
|
3164
|
-
readonly type: "
|
|
3126
|
+
readonly name: "sqrtPriceLimitX96";
|
|
3127
|
+
readonly type: "uint160";
|
|
3165
3128
|
}];
|
|
3166
3129
|
}];
|
|
3167
3130
|
readonly outputs: readonly [{
|
|
3168
3131
|
readonly name: "amountIn";
|
|
3169
3132
|
readonly type: "uint256";
|
|
3133
|
+
}, {
|
|
3134
|
+
readonly name: "sqrtPriceX96After";
|
|
3135
|
+
readonly type: "uint160";
|
|
3136
|
+
}, {
|
|
3137
|
+
readonly name: "initializedTicksCrossed";
|
|
3138
|
+
readonly type: "uint32";
|
|
3170
3139
|
}, {
|
|
3171
3140
|
readonly name: "gasEstimate";
|
|
3172
3141
|
readonly type: "uint256";
|
|
@@ -3176,42 +3145,25 @@ declare const v4QuoterAbi: readonly [{
|
|
|
3176
3145
|
readonly name: "quoteExactOutput";
|
|
3177
3146
|
readonly stateMutability: "nonpayable";
|
|
3178
3147
|
readonly inputs: readonly [{
|
|
3179
|
-
readonly name: "
|
|
3180
|
-
readonly type: "
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
}, {
|
|
3185
|
-
readonly name: "path";
|
|
3186
|
-
readonly type: "tuple[]";
|
|
3187
|
-
readonly components: readonly [{
|
|
3188
|
-
readonly name: "intermediateCurrency";
|
|
3189
|
-
readonly type: "address";
|
|
3190
|
-
}, {
|
|
3191
|
-
readonly name: "fee";
|
|
3192
|
-
readonly type: "uint24";
|
|
3193
|
-
}, {
|
|
3194
|
-
readonly name: "tickSpacing";
|
|
3195
|
-
readonly type: "int24";
|
|
3196
|
-
}, {
|
|
3197
|
-
readonly name: "hooks";
|
|
3198
|
-
readonly type: "address";
|
|
3199
|
-
}, {
|
|
3200
|
-
readonly name: "hookData";
|
|
3201
|
-
readonly type: "bytes";
|
|
3202
|
-
}];
|
|
3203
|
-
}, {
|
|
3204
|
-
readonly name: "exactAmount";
|
|
3205
|
-
readonly type: "uint128";
|
|
3206
|
-
}];
|
|
3148
|
+
readonly name: "path";
|
|
3149
|
+
readonly type: "bytes";
|
|
3150
|
+
}, {
|
|
3151
|
+
readonly name: "amountOut";
|
|
3152
|
+
readonly type: "uint256";
|
|
3207
3153
|
}];
|
|
3208
3154
|
readonly outputs: readonly [{
|
|
3209
3155
|
readonly name: "amountIn";
|
|
3210
3156
|
readonly type: "uint256";
|
|
3157
|
+
}, {
|
|
3158
|
+
readonly name: "sqrtPriceX96AfterList";
|
|
3159
|
+
readonly type: "uint160[]";
|
|
3160
|
+
}, {
|
|
3161
|
+
readonly name: "initializedTicksCrossedList";
|
|
3162
|
+
readonly type: "uint32[]";
|
|
3211
3163
|
}, {
|
|
3212
3164
|
readonly name: "gasEstimate";
|
|
3213
3165
|
readonly type: "uint256";
|
|
3214
3166
|
}];
|
|
3215
3167
|
}];
|
|
3216
3168
|
|
|
3217
|
-
export { erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi,
|
|
3169
|
+
export { erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v3QuoterV2Abi };
|
package/dist/abi/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
permit2Abi,
|
|
4
4
|
pointTokenFactoryAbi,
|
|
5
5
|
universalRouterAbi,
|
|
6
|
-
|
|
7
|
-
} from "../chunk-
|
|
6
|
+
v3QuoterV2Abi
|
|
7
|
+
} from "../chunk-ZJXXCG5P.js";
|
|
8
8
|
import {
|
|
9
9
|
issuerRegistryAbi,
|
|
10
10
|
mintFeeWrapperAbi,
|
|
@@ -23,6 +23,6 @@ export {
|
|
|
23
23
|
pointTokenAbi,
|
|
24
24
|
pointTokenFactoryAbi,
|
|
25
25
|
universalRouterAbi,
|
|
26
|
-
|
|
26
|
+
v3QuoterV2Abi
|
|
27
27
|
};
|
|
28
28
|
//# sourceMappingURL=index.js.map
|