@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/dist/eip712/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicClient, WalletClient, Hex, Address } from 'viem';
|
|
2
|
-
import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerification,
|
|
2
|
+
import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerifyOptions, c as SignatureVerification, e as BurnRequest } from '../types-C17pznGz.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Build the EIP-712 domain struct from a PointToken config. Uses
|
|
@@ -49,7 +49,7 @@ declare class Eip712DomainMismatchError extends Error {
|
|
|
49
49
|
declare function assertDomainMatchesContract(client: PublicClient, expected: ReturnType<typeof buildDomain>): Promise<void>;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Build the EIP-712 typed data object for a
|
|
52
|
+
* Build the EIP-712 typed data object for a MintForRequest.
|
|
53
53
|
* Returns the standard `{ domain, types, primaryType, message }` structure
|
|
54
54
|
* that any EIP-712 signer (viem, ethers, Privy, WalletConnect) can consume.
|
|
55
55
|
*/
|
|
@@ -82,7 +82,7 @@ declare function buildMintRequestTypedData(domain: PointTokenDomainConfig, messa
|
|
|
82
82
|
message: MintRequest;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
|
-
* Sign a
|
|
85
|
+
* Sign a MintForRequest. Caller passes the full 5-field message:
|
|
86
86
|
* - user = off-chain spender (drives nonce stream)
|
|
87
87
|
* - receiver = on-chain caller (= msg.sender of `mint()`; wrapper or user)
|
|
88
88
|
* - amount = PT amount
|
|
@@ -90,7 +90,27 @@ declare function buildMintRequestTypedData(domain: PointTokenDomainConfig, messa
|
|
|
90
90
|
* - deadline = unix seconds
|
|
91
91
|
*/
|
|
92
92
|
declare function signMintRequest(walletClient: WalletClient, domain: PointTokenDomainConfig, message: MintRequest): Promise<EIP712Signature>;
|
|
93
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Verify a MintForRequest signature. Always recovers the signer and
|
|
95
|
+
* compares against `expectedMinter`. Pass `options.currentTimeSec`
|
|
96
|
+
* (unix seconds) to additionally enforce the request's `deadline` —
|
|
97
|
+
* the on-chain contract enforces `block.timestamp <= deadline`, so
|
|
98
|
+
* a stale-but-cryptographically-valid sig will only revert
|
|
99
|
+
* on-submission unless the caller pre-flights here.
|
|
100
|
+
*
|
|
101
|
+
* Result shape:
|
|
102
|
+
* - `{ isValid: true, recoveredAddress }` — sig matches and (if
|
|
103
|
+
* deadline check requested) deadline has not elapsed.
|
|
104
|
+
* - `{ isValid: false, recoveredAddress, reason: 'INVALID_SIGNER' }`
|
|
105
|
+
* — sig does not recover to `expectedMinter`.
|
|
106
|
+
* - `{ isValid: false, recoveredAddress, reason: 'DEADLINE_PASSED' }`
|
|
107
|
+
* — sig is valid but `deadline < currentTimeSec`.
|
|
108
|
+
*
|
|
109
|
+
* Throws (synchronous Promise rejection):
|
|
110
|
+
* - When `options.currentTimeSec` is provided but not a finite,
|
|
111
|
+
* non-negative number. Misusing the API should fail loudly.
|
|
112
|
+
*/
|
|
113
|
+
declare function verifyMintRequest(domain: PointTokenDomainConfig, message: MintRequest, signature: Hex, expectedMinter: Address, options?: SignatureVerifyOptions): Promise<SignatureVerification>;
|
|
94
114
|
|
|
95
115
|
/**
|
|
96
116
|
* EIP-712 helpers for `BurnRequest` — consumed by the sig-gated burn
|
|
@@ -132,6 +152,11 @@ declare function buildBurnRequestTypedData(domain: PointTokenDomainConfig, messa
|
|
|
132
152
|
message: BurnRequest;
|
|
133
153
|
};
|
|
134
154
|
declare function signBurnRequest(walletClient: WalletClient, domain: PointTokenDomainConfig, message: BurnRequest): Promise<EIP712Signature>;
|
|
135
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Verify a BurnRequest signature. Symmetric with `verifyMintRequest`:
|
|
157
|
+
* always recovers the signer; opt-in deadline check via
|
|
158
|
+
* `options.currentTimeSec`. See that helper for the full contract.
|
|
159
|
+
*/
|
|
160
|
+
declare function verifyBurnRequest(domain: PointTokenDomainConfig, message: BurnRequest, signature: Hex, expectedBurner: Address, options?: SignatureVerifyOptions): Promise<SignatureVerification>;
|
|
136
161
|
|
|
137
162
|
export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, signBurnRequest, signMintRequest, verifyBurnRequest, verifyMintRequest };
|
package/dist/eip712/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PublicClient, WalletClient, Hex, Address } from 'viem';
|
|
2
|
-
import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerification,
|
|
2
|
+
import { b as PointTokenDomainConfig, M as MintRequest, E as EIP712Signature, S as SignatureVerifyOptions, c as SignatureVerification, e as BurnRequest } from '../types-C17pznGz.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Build the EIP-712 domain struct from a PointToken config. Uses
|
|
@@ -49,7 +49,7 @@ declare class Eip712DomainMismatchError extends Error {
|
|
|
49
49
|
declare function assertDomainMatchesContract(client: PublicClient, expected: ReturnType<typeof buildDomain>): Promise<void>;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Build the EIP-712 typed data object for a
|
|
52
|
+
* Build the EIP-712 typed data object for a MintForRequest.
|
|
53
53
|
* Returns the standard `{ domain, types, primaryType, message }` structure
|
|
54
54
|
* that any EIP-712 signer (viem, ethers, Privy, WalletConnect) can consume.
|
|
55
55
|
*/
|
|
@@ -82,7 +82,7 @@ declare function buildMintRequestTypedData(domain: PointTokenDomainConfig, messa
|
|
|
82
82
|
message: MintRequest;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
|
-
* Sign a
|
|
85
|
+
* Sign a MintForRequest. Caller passes the full 5-field message:
|
|
86
86
|
* - user = off-chain spender (drives nonce stream)
|
|
87
87
|
* - receiver = on-chain caller (= msg.sender of `mint()`; wrapper or user)
|
|
88
88
|
* - amount = PT amount
|
|
@@ -90,7 +90,27 @@ declare function buildMintRequestTypedData(domain: PointTokenDomainConfig, messa
|
|
|
90
90
|
* - deadline = unix seconds
|
|
91
91
|
*/
|
|
92
92
|
declare function signMintRequest(walletClient: WalletClient, domain: PointTokenDomainConfig, message: MintRequest): Promise<EIP712Signature>;
|
|
93
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Verify a MintForRequest signature. Always recovers the signer and
|
|
95
|
+
* compares against `expectedMinter`. Pass `options.currentTimeSec`
|
|
96
|
+
* (unix seconds) to additionally enforce the request's `deadline` —
|
|
97
|
+
* the on-chain contract enforces `block.timestamp <= deadline`, so
|
|
98
|
+
* a stale-but-cryptographically-valid sig will only revert
|
|
99
|
+
* on-submission unless the caller pre-flights here.
|
|
100
|
+
*
|
|
101
|
+
* Result shape:
|
|
102
|
+
* - `{ isValid: true, recoveredAddress }` — sig matches and (if
|
|
103
|
+
* deadline check requested) deadline has not elapsed.
|
|
104
|
+
* - `{ isValid: false, recoveredAddress, reason: 'INVALID_SIGNER' }`
|
|
105
|
+
* — sig does not recover to `expectedMinter`.
|
|
106
|
+
* - `{ isValid: false, recoveredAddress, reason: 'DEADLINE_PASSED' }`
|
|
107
|
+
* — sig is valid but `deadline < currentTimeSec`.
|
|
108
|
+
*
|
|
109
|
+
* Throws (synchronous Promise rejection):
|
|
110
|
+
* - When `options.currentTimeSec` is provided but not a finite,
|
|
111
|
+
* non-negative number. Misusing the API should fail loudly.
|
|
112
|
+
*/
|
|
113
|
+
declare function verifyMintRequest(domain: PointTokenDomainConfig, message: MintRequest, signature: Hex, expectedMinter: Address, options?: SignatureVerifyOptions): Promise<SignatureVerification>;
|
|
94
114
|
|
|
95
115
|
/**
|
|
96
116
|
* EIP-712 helpers for `BurnRequest` — consumed by the sig-gated burn
|
|
@@ -132,6 +152,11 @@ declare function buildBurnRequestTypedData(domain: PointTokenDomainConfig, messa
|
|
|
132
152
|
message: BurnRequest;
|
|
133
153
|
};
|
|
134
154
|
declare function signBurnRequest(walletClient: WalletClient, domain: PointTokenDomainConfig, message: BurnRequest): Promise<EIP712Signature>;
|
|
135
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Verify a BurnRequest signature. Symmetric with `verifyMintRequest`:
|
|
157
|
+
* always recovers the signer; opt-in deadline check via
|
|
158
|
+
* `options.currentTimeSec`. See that helper for the full contract.
|
|
159
|
+
*/
|
|
160
|
+
declare function verifyBurnRequest(domain: PointTokenDomainConfig, message: BurnRequest, signature: Hex, expectedBurner: Address, options?: SignatureVerifyOptions): Promise<SignatureVerification>;
|
|
136
161
|
|
|
137
162
|
export { Eip712DomainMismatchError, assertDomainMatchesContract, buildBurnRequestTypedData, buildDomain, buildMintRequestTypedData, signBurnRequest, signMintRequest, verifyBurnRequest, verifyMintRequest };
|
package/dist/eip712/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3;
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7;
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkXXLIIWIFcjs = require('./chunk-XXLIIWIF.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
@@ -13,14 +14,13 @@
|
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
16
|
-
var _chunk75JWR5SAcjs = require('./chunk-75JWR5SA.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk75JWR5SAcjs = require('./chunk-75JWR5SA.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -36,7 +36,7 @@ var _chunkMIQA46E3cjs = require('./chunk-MIQA46E3.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkTRYGIC2Icjs = require('./chunk-TRYGIC2I.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
@@ -63,7 +63,10 @@ var _chunkC7VB6WTLcjs = require('./chunk-C7VB6WTL.cjs');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
var _chunkNT2ZPF72cjs = require('./chunk-NT2ZPF72.cjs');
|
|
67
70
|
|
|
68
71
|
|
|
69
72
|
var _chunkKRHGFUDIcjs = require('./chunk-KRHGFUDI.cjs');
|
|
@@ -119,59 +122,61 @@ var PafiSdkError = (_class = class extends Error {
|
|
|
119
122
|
this.name = new.target.name;
|
|
120
123
|
}
|
|
121
124
|
}, _class);
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
var ConfigurationError = class extends PafiSDKError {
|
|
125
|
+
var ConfigurationError = (_class2 = class extends PafiSdkError {
|
|
126
|
+
__init2() {this.httpStatus = "service_unavailable"}
|
|
127
|
+
__init3() {this.code = "CONFIGURATION_ERROR"}
|
|
128
|
+
__init4() {this.type = "server_error"}
|
|
129
129
|
constructor(message) {
|
|
130
|
-
super(message);
|
|
131
|
-
this.name = "ConfigurationError";
|
|
130
|
+
super(message);_class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this);_class2.prototype.__init4.call(this);;
|
|
132
131
|
}
|
|
133
|
-
};
|
|
134
|
-
var SigningError = class extends
|
|
132
|
+
}, _class2);
|
|
133
|
+
var SigningError = (_class3 = class extends PafiSdkError {
|
|
134
|
+
__init5() {this.httpStatus = "service_unavailable"}
|
|
135
|
+
__init6() {this.code = "SIGNING_FAILED"}
|
|
136
|
+
__init7() {this.type = "server_error"}
|
|
135
137
|
constructor(message) {
|
|
136
|
-
super(message);
|
|
137
|
-
this.name = "SigningError";
|
|
138
|
+
super(message);_class3.prototype.__init5.call(this);_class3.prototype.__init6.call(this);_class3.prototype.__init7.call(this);;
|
|
138
139
|
}
|
|
139
|
-
};
|
|
140
|
-
var SimulationError = class extends
|
|
140
|
+
}, _class3);
|
|
141
|
+
var SimulationError = (_class4 = class extends PafiSdkError {
|
|
142
|
+
__init8() {this.httpStatus = "unprocessable"}
|
|
143
|
+
__init9() {this.code = "SIMULATION_FAILED"}
|
|
144
|
+
__init10() {this.type = "business_logic_error"}
|
|
145
|
+
|
|
146
|
+
|
|
141
147
|
constructor(operation, reason) {
|
|
142
|
-
super(`Simulation failed for ${operation}: ${reason}`);
|
|
148
|
+
super(`Simulation failed for ${operation}: ${reason}`);_class4.prototype.__init8.call(this);_class4.prototype.__init9.call(this);_class4.prototype.__init10.call(this);;
|
|
143
149
|
this.operation = operation;
|
|
144
150
|
this.reason = reason;
|
|
145
|
-
this.name = "SimulationError";
|
|
146
151
|
}
|
|
152
|
+
}, _class4);
|
|
153
|
+
var ApiError = (_class5 = class extends PafiSdkError {
|
|
154
|
+
__init11() {this.httpStatus = "service_unavailable"}
|
|
155
|
+
__init12() {this.code = "API_ERROR"}
|
|
156
|
+
__init13() {this.type = "service_unavailable_error"}
|
|
147
157
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
var OracleStaleError = (_class2 = class extends PafiSdkError {
|
|
159
|
-
__init2() {this.httpStatus = "service_unavailable"}
|
|
160
|
-
__init3() {this.code = "ORACLE_STALE"}
|
|
158
|
+
constructor(message, upstreamStatus) {
|
|
159
|
+
super(message);_class5.prototype.__init11.call(this);_class5.prototype.__init12.call(this);_class5.prototype.__init13.call(this);;
|
|
160
|
+
this.upstreamStatus = upstreamStatus;
|
|
161
|
+
}
|
|
162
|
+
}, _class5);
|
|
163
|
+
var OracleStaleError = (_class6 = class extends PafiSdkError {
|
|
164
|
+
__init14() {this.httpStatus = "service_unavailable"}
|
|
165
|
+
__init15() {this.code = "ORACLE_STALE"}
|
|
161
166
|
|
|
162
167
|
|
|
163
168
|
constructor(source, reason) {
|
|
164
|
-
super(`Oracle ${source} unavailable: ${reason}`);
|
|
169
|
+
super(`Oracle ${source} unavailable: ${reason}`);_class6.prototype.__init14.call(this);_class6.prototype.__init15.call(this);;
|
|
165
170
|
this.source = source;
|
|
166
171
|
this.reason = reason;
|
|
167
172
|
}
|
|
168
|
-
},
|
|
169
|
-
var ValidationError = (
|
|
170
|
-
|
|
171
|
-
|
|
173
|
+
}, _class6);
|
|
174
|
+
var ValidationError = (_class7 = class extends PafiSdkError {
|
|
175
|
+
__init16() {this.httpStatus = "unprocessable"}
|
|
176
|
+
__init17() {this.type = "validation_error"}
|
|
172
177
|
|
|
173
178
|
constructor(code, message, details, options) {
|
|
174
|
-
super(message);
|
|
179
|
+
super(message);_class7.prototype.__init16.call(this);_class7.prototype.__init17.call(this);;
|
|
175
180
|
this.code = code;
|
|
176
181
|
this.details = details;
|
|
177
182
|
if (_optionalChain([options, 'optionalAccess', _ => _.param])) {
|
|
@@ -181,7 +186,7 @@ var ValidationError = (_class3 = class extends PafiSdkError {
|
|
|
181
186
|
this.metadata = options.metadata;
|
|
182
187
|
}
|
|
183
188
|
}
|
|
184
|
-
},
|
|
189
|
+
}, _class7);
|
|
185
190
|
|
|
186
191
|
// src/perp/buildPerpDepositWithGasDeduction.ts
|
|
187
192
|
|
|
@@ -584,7 +589,7 @@ function buildUserOpTypedData(userOp, chainId) {
|
|
|
584
589
|
name: "ERC4337",
|
|
585
590
|
version: "1",
|
|
586
591
|
chainId,
|
|
587
|
-
verifyingContract:
|
|
592
|
+
verifyingContract: _chunkNT2ZPF72cjs.ENTRY_POINT_V08
|
|
588
593
|
},
|
|
589
594
|
types: PACKED_USER_OPERATION_TYPES,
|
|
590
595
|
primaryType: "PackedUserOperation",
|
|
@@ -625,48 +630,6 @@ function getDummySignatureFor7702(impl) {
|
|
|
625
630
|
return DUMMY_SIGNATURE_V07;
|
|
626
631
|
}
|
|
627
632
|
|
|
628
|
-
// src/paymaster/config.ts
|
|
629
|
-
var _config = null;
|
|
630
|
-
var _deprecationWarned = false;
|
|
631
|
-
function warnDeprecated(fn) {
|
|
632
|
-
if (_deprecationWarned) return;
|
|
633
|
-
_deprecationWarned = true;
|
|
634
|
-
console.warn(
|
|
635
|
-
`[PAFI] DEPRECATION: \`${fn}\` from @pafi-dev/core/paymaster has been deprecated since v0.7.1 and will be removed in the next major bump (v1.0). Use \`PafiBackendClient\` from @pafi-dev/issuer/pafi-backend instead.`
|
|
636
|
-
);
|
|
637
|
-
}
|
|
638
|
-
function setPaymasterConfig(config) {
|
|
639
|
-
warnDeprecated("setPaymasterConfig");
|
|
640
|
-
if (!config.pafiBackendUrl) {
|
|
641
|
-
throw new Error("setPaymasterConfig: pafiBackendUrl is required");
|
|
642
|
-
}
|
|
643
|
-
if (!config.issuerId) {
|
|
644
|
-
throw new Error("setPaymasterConfig: issuerId is required");
|
|
645
|
-
}
|
|
646
|
-
if (!config.apiKey) {
|
|
647
|
-
throw new Error("setPaymasterConfig: apiKey is required");
|
|
648
|
-
}
|
|
649
|
-
if (!config.feeRecipient) {
|
|
650
|
-
throw new Error("setPaymasterConfig: feeRecipient is required");
|
|
651
|
-
}
|
|
652
|
-
_config = { ...config };
|
|
653
|
-
}
|
|
654
|
-
function getPaymasterConfig() {
|
|
655
|
-
warnDeprecated("getPaymasterConfig");
|
|
656
|
-
if (!_config) {
|
|
657
|
-
throw new Error(
|
|
658
|
-
"PaymasterConfig not initialized \u2014 call setPaymasterConfig() at application boot before invoking any batch builder"
|
|
659
|
-
);
|
|
660
|
-
}
|
|
661
|
-
return _config;
|
|
662
|
-
}
|
|
663
|
-
function _resetPaymasterConfigForTests() {
|
|
664
|
-
_config = null;
|
|
665
|
-
}
|
|
666
|
-
function isPaymasterConfigured() {
|
|
667
|
-
return _config !== null;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
633
|
// src/utils/checkEthAndBranch.ts
|
|
671
634
|
var DEFAULT_MARGIN_BPS = 11e3;
|
|
672
635
|
async function checkEthAndBranch(params) {
|
|
@@ -678,6 +641,70 @@ async function checkEthAndBranch(params) {
|
|
|
678
641
|
return balance >= required ? "normal" : "paymaster";
|
|
679
642
|
}
|
|
680
643
|
|
|
644
|
+
// src/utils/v3Path.ts
|
|
645
|
+
|
|
646
|
+
function encodeV3Path(path) {
|
|
647
|
+
const { tokens, fees } = path;
|
|
648
|
+
if (tokens.length < 2) {
|
|
649
|
+
throw new Error(
|
|
650
|
+
`encodeV3Path: tokens must contain at least 2 addresses, got ${tokens.length}`
|
|
651
|
+
);
|
|
652
|
+
}
|
|
653
|
+
if (tokens.length !== fees.length + 1) {
|
|
654
|
+
throw new Error(
|
|
655
|
+
`encodeV3Path: tokens.length must equal fees.length + 1, got tokens=${tokens.length} fees=${fees.length}`
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
const parts = [];
|
|
659
|
+
for (let i = 0; i < fees.length; i++) {
|
|
660
|
+
parts.push(tokens[i].toLowerCase());
|
|
661
|
+
const fee = fees[i];
|
|
662
|
+
if (!Number.isInteger(fee) || fee < 0 || fee > 16777215) {
|
|
663
|
+
throw new Error(
|
|
664
|
+
`encodeV3Path: fees[${i}] must be a uint24 (0..16777215), got ${fee}`
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
parts.push(_viem.pad.call(void 0, _viem.toHex.call(void 0, fee), { size: 3 }));
|
|
668
|
+
}
|
|
669
|
+
parts.push(tokens[tokens.length - 1].toLowerCase());
|
|
670
|
+
return _viem.concatHex.call(void 0, parts);
|
|
671
|
+
}
|
|
672
|
+
function encodeV3PathReversed(path) {
|
|
673
|
+
return encodeV3Path({
|
|
674
|
+
tokens: [...path.tokens].reverse(),
|
|
675
|
+
fees: [...path.fees].reverse()
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
function computeV3PoolAddress(params) {
|
|
679
|
+
const { factory, tokenA, tokenB, fee, initCodeHash } = params;
|
|
680
|
+
if (!Number.isInteger(fee) || fee < 0 || fee > 16777215) {
|
|
681
|
+
throw new Error(
|
|
682
|
+
`computeV3PoolAddress: fee must be a uint24, got ${fee}`
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
const a = _viem.getAddress.call(void 0, tokenA).toLowerCase();
|
|
686
|
+
const b = _viem.getAddress.call(void 0, tokenB).toLowerCase();
|
|
687
|
+
if (a === b) {
|
|
688
|
+
throw new Error(
|
|
689
|
+
`computeV3PoolAddress: tokenA and tokenB must differ, got ${a}`
|
|
690
|
+
);
|
|
691
|
+
}
|
|
692
|
+
const [token0, token1] = a < b ? [tokenA, tokenB] : [tokenB, tokenA];
|
|
693
|
+
const salt = _viem.keccak256.call(void 0,
|
|
694
|
+
_viem.concatHex.call(void 0, [
|
|
695
|
+
_viem.pad.call(void 0, _viem.getAddress.call(void 0, token0), { size: 32 }),
|
|
696
|
+
_viem.pad.call(void 0, _viem.getAddress.call(void 0, token1), { size: 32 }),
|
|
697
|
+
_viem.pad.call(void 0, _viem.toHex.call(void 0, fee), { size: 32 })
|
|
698
|
+
])
|
|
699
|
+
);
|
|
700
|
+
return _viem.getContractAddress.call(void 0, {
|
|
701
|
+
opcode: "CREATE2",
|
|
702
|
+
from: factory,
|
|
703
|
+
bytecodeHash: initCodeHash,
|
|
704
|
+
salt
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
|
|
681
708
|
// src/delegation/checkDelegation.ts
|
|
682
709
|
var EIP7702_MAGIC = "0xef0100";
|
|
683
710
|
function parseEip7702DelegatedAddress(code) {
|
|
@@ -735,7 +762,7 @@ async function getAaNonce(client, userAddress) {
|
|
|
735
762
|
}
|
|
736
763
|
];
|
|
737
764
|
return client.readContract({
|
|
738
|
-
address:
|
|
765
|
+
address: _chunkNT2ZPF72cjs.ENTRY_POINT_V08,
|
|
739
766
|
abi: NONCE_ABI,
|
|
740
767
|
functionName: "getNonce",
|
|
741
768
|
args: [userAddress, 0n]
|
|
@@ -797,31 +824,13 @@ function buildEip7702Authorization(params) {
|
|
|
797
824
|
// src/contracts/real/addresses.ts
|
|
798
825
|
var PLACEHOLDER_DEAD = (suffix) => `0x000000000000000000000000000000000000${suffix.toLowerCase().padStart(4, "0")}`;
|
|
799
826
|
var CONTRACT_ADDRESSES = {
|
|
800
|
-
// Base mainnet —
|
|
801
|
-
// registry: IssuerRegistry 0xAB1d1e117c41636f30bb10194Fe6B774B6Da9E01
|
|
802
|
-
// factory: PointTokenFactory 0xA08274458b43E7D6F4ff61ddFe8A9852c6531085
|
|
803
|
-
// oracle: MintingOracle 0x2f4cf8C5F8b41efC970c5b46a5d905CeA1f871a0
|
|
804
|
-
// tokenImpl: PointToken (impl) 0xc41c3F8A0380c7760Ee1209d6d19C4b81dE994e4
|
|
805
|
-
// mintFeeWrapper: MintFeeWrapper 0xD324EE2e3220B23d1b1BfbB85f5bC1EF2E917B93
|
|
806
|
-
// mockUsdt: MockERC20 0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382
|
|
807
|
-
// batchExecutor: Pimlico Simple7702 0xe6Cae83BdE06E4c305530e199D7217f42808555B (unchanged from v1.5)
|
|
808
|
-
//
|
|
809
|
-
// pointToken: PER-ISSUER, not chain-level. Each issuer deploys their
|
|
810
|
-
// own clone via PointTokenFactory.createToken() and tracks the address
|
|
811
|
-
// separately (env var, DB, or factory readout). This field is a
|
|
812
|
-
// historical leftover from v1.4 single-issuer days and has no SDK
|
|
813
|
-
// consumer — kept as dead-zero so any code that mistakenly reads it
|
|
814
|
-
// fails loudly instead of silently routing to a stale token.
|
|
815
|
-
// Known clones (informational, NOT to be used as a default):
|
|
816
|
-
// gg56 (Test Point / TPT) — 0x855c2046AD49AcF9B3B32557176FfCB1a1A38A22
|
|
827
|
+
// Base mainnet — live deployment
|
|
817
828
|
8453: {
|
|
818
|
-
pointToken: PLACEHOLDER_DEAD("dead"),
|
|
819
829
|
batchExecutor: "0xe6Cae83BdE06E4c305530e199D7217f42808555B",
|
|
820
830
|
usdt: "0x3F7e71B150e97316Bb9f363A32c19CcD36ac2382",
|
|
821
831
|
issuerRegistry: "0xAB1d1e117c41636f30bb10194Fe6B774B6Da9E01",
|
|
822
832
|
mintingOracle: "0x2f4cf8C5F8b41efC970c5b46a5d905CeA1f871a0",
|
|
823
833
|
mintFeeWrapper: "0xD324EE2e3220B23d1b1BfbB85f5bC1EF2E917B93",
|
|
824
|
-
pafiHook: PLACEHOLDER_DEAD("dead"),
|
|
825
834
|
chainlinkEthUsd: "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70",
|
|
826
835
|
orderlyRelay: "0xDA082DAce1522c185aeB5A713FcA6fa6B6E99e7f",
|
|
827
836
|
pafiFeeRecipient: "0xa3F71eadEd101513a0151007590020dCFD7C495e",
|
|
@@ -830,13 +839,11 @@ var CONTRACT_ADDRESSES = {
|
|
|
830
839
|
// Base Sepolia — not in active use; placeholders kept so the map
|
|
831
840
|
// compiles for tooling that enumerates chains.
|
|
832
841
|
84532: {
|
|
833
|
-
pointToken: PLACEHOLDER_DEAD("dead"),
|
|
834
842
|
batchExecutor: PLACEHOLDER_DEAD("de01"),
|
|
835
843
|
usdt: PLACEHOLDER_DEAD("dead"),
|
|
836
844
|
issuerRegistry: PLACEHOLDER_DEAD("dead"),
|
|
837
845
|
mintingOracle: PLACEHOLDER_DEAD("dead"),
|
|
838
846
|
mintFeeWrapper: PLACEHOLDER_DEAD("dead"),
|
|
839
|
-
pafiHook: PLACEHOLDER_DEAD("dead"),
|
|
840
847
|
chainlinkEthUsd: PLACEHOLDER_DEAD("de02"),
|
|
841
848
|
orderlyRelay: PLACEHOLDER_DEAD("de03"),
|
|
842
849
|
pafiFeeRecipient: PLACEHOLDER_DEAD("de04"),
|
|
@@ -1004,7 +1011,7 @@ async function sendWithPaymasterFallback(params) {
|
|
|
1004
1011
|
|
|
1005
1012
|
// src/subgraph/pools.ts
|
|
1006
1013
|
|
|
1007
|
-
var PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-
|
|
1014
|
+
var PAFI_SUBGRAPH_URL = "https://graph-base-mainnet.pacificfinance.org/subgraphs/name/pafi-subgraph-v4";
|
|
1008
1015
|
var POOL_QUERY = `
|
|
1009
1016
|
query GetPoolForPointToken($id: ID!) {
|
|
1010
1017
|
pafiToken(id: $id) {
|
|
@@ -1012,15 +1019,13 @@ var POOL_QUERY = `
|
|
|
1012
1019
|
pool {
|
|
1013
1020
|
id
|
|
1014
1021
|
feeTier
|
|
1015
|
-
tickSpacing
|
|
1016
|
-
hooks
|
|
1017
1022
|
token0 { id }
|
|
1018
1023
|
token1 { id }
|
|
1019
1024
|
}
|
|
1020
1025
|
}
|
|
1021
1026
|
}
|
|
1022
1027
|
`;
|
|
1023
|
-
function
|
|
1028
|
+
function sortTokens(a, b) {
|
|
1024
1029
|
return a.toLowerCase() < b.toLowerCase() ? [a, b] : [b, a];
|
|
1025
1030
|
}
|
|
1026
1031
|
async function fetchPafiPools(_chainId, pointTokenAddress, subgraphUrl = PAFI_SUBGRAPH_URL) {
|
|
@@ -1042,7 +1047,16 @@ async function fetchPafiPools(_chainId, pointTokenAddress, subgraphUrl = PAFI_SU
|
|
|
1042
1047
|
console.warn(`[fetchPafiPools] subgraph returned ${response.status}`);
|
|
1043
1048
|
return [];
|
|
1044
1049
|
}
|
|
1045
|
-
|
|
1050
|
+
let json;
|
|
1051
|
+
try {
|
|
1052
|
+
json = await response.json();
|
|
1053
|
+
} catch (err) {
|
|
1054
|
+
console.warn(
|
|
1055
|
+
"[fetchPafiPools] subgraph returned non-JSON:",
|
|
1056
|
+
err.message
|
|
1057
|
+
);
|
|
1058
|
+
return [];
|
|
1059
|
+
}
|
|
1046
1060
|
if (json.errors && json.errors.length > 0) {
|
|
1047
1061
|
console.warn(
|
|
1048
1062
|
"[fetchPafiPools] subgraph errors:",
|
|
@@ -1052,20 +1066,18 @@ async function fetchPafiPools(_chainId, pointTokenAddress, subgraphUrl = PAFI_SU
|
|
|
1052
1066
|
}
|
|
1053
1067
|
const pool = _optionalChain([json, 'access', _40 => _40.data, 'optionalAccess', _41 => _41.pafiToken, 'optionalAccess', _42 => _42.pool]);
|
|
1054
1068
|
if (!pool) return [];
|
|
1055
|
-
if (!_viem.isAddress.call(void 0, pool.
|
|
1069
|
+
if (!_viem.isAddress.call(void 0, pool.token0.id) || !_viem.isAddress.call(void 0, pool.token1.id) || !Number.isFinite(Number(pool.feeTier))) {
|
|
1056
1070
|
console.error("[fetchPafiPools] invalid pool data in subgraph response \u2014 skipping");
|
|
1057
1071
|
return [];
|
|
1058
1072
|
}
|
|
1059
|
-
const [
|
|
1073
|
+
const [token0, token1] = sortTokens(
|
|
1060
1074
|
pool.token0.id,
|
|
1061
1075
|
pool.token1.id
|
|
1062
1076
|
);
|
|
1063
1077
|
return [{
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
fee: Number(pool.feeTier)
|
|
1067
|
-
tickSpacing: Number(pool.tickSpacing),
|
|
1068
|
-
hooks: pool.hooks
|
|
1078
|
+
token0,
|
|
1079
|
+
token1,
|
|
1080
|
+
fee: Number(pool.feeTier)
|
|
1069
1081
|
}];
|
|
1070
1082
|
}
|
|
1071
1083
|
|
|
@@ -1485,7 +1497,7 @@ var PafiSDK = class {
|
|
|
1485
1497
|
const provider = this.requireProvider();
|
|
1486
1498
|
const pointToken = this.requirePointToken();
|
|
1487
1499
|
const chainId = this.requireChainId();
|
|
1488
|
-
const name = await
|
|
1500
|
+
const name = await _chunkTRYGIC2Icjs.getTokenName.call(void 0, provider, pointToken);
|
|
1489
1501
|
return { name, verifyingContract: pointToken, chainId };
|
|
1490
1502
|
}
|
|
1491
1503
|
// -------------------------------------------------------------------------
|
|
@@ -1493,21 +1505,27 @@ var PafiSDK = class {
|
|
|
1493
1505
|
// -------------------------------------------------------------------------
|
|
1494
1506
|
async buildMintRequestTypedData(message) {
|
|
1495
1507
|
const domain = await this.getDomain();
|
|
1496
|
-
return
|
|
1508
|
+
return _chunkNT2ZPF72cjs.buildMintRequestTypedData.call(void 0, domain, message);
|
|
1497
1509
|
}
|
|
1498
1510
|
async signMintRequest(message) {
|
|
1499
1511
|
const domain = await this.getDomain();
|
|
1500
|
-
return
|
|
1512
|
+
return _chunkNT2ZPF72cjs.signMintRequest.call(void 0, this.requireSigner(), domain, message);
|
|
1501
1513
|
}
|
|
1502
|
-
async verifyMintRequest(message, signature, expectedMinter) {
|
|
1514
|
+
async verifyMintRequest(message, signature, expectedMinter, options) {
|
|
1503
1515
|
const domain = await this.getDomain();
|
|
1504
|
-
return
|
|
1516
|
+
return _chunkNT2ZPF72cjs.verifyMintRequest.call(void 0,
|
|
1517
|
+
domain,
|
|
1518
|
+
message,
|
|
1519
|
+
signature,
|
|
1520
|
+
expectedMinter,
|
|
1521
|
+
options
|
|
1522
|
+
);
|
|
1505
1523
|
}
|
|
1506
1524
|
// -------------------------------------------------------------------------
|
|
1507
1525
|
// Contract reads
|
|
1508
1526
|
// -------------------------------------------------------------------------
|
|
1509
1527
|
async getMintRequestNonce(receiver) {
|
|
1510
|
-
return
|
|
1528
|
+
return _chunkTRYGIC2Icjs.getMintRequestNonce.call(void 0,
|
|
1511
1529
|
this.requireProvider(),
|
|
1512
1530
|
this.requirePointToken(),
|
|
1513
1531
|
receiver
|
|
@@ -1667,5 +1685,7 @@ var PafiSDK = class {
|
|
|
1667
1685
|
|
|
1668
1686
|
|
|
1669
1687
|
|
|
1670
|
-
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
exports.ApiError = ApiError; exports.BATCH_EXECUTOR_7702_IMPL = BATCH_EXECUTOR_7702_IMPL; exports.BATCH_EXECUTOR_ABI = BATCH_EXECUTOR_ABI; exports.BATCH_EXECUTOR_ADDRESS_BASE_MAINNET = BATCH_EXECUTOR_ADDRESS_BASE_MAINNET; exports.BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA = BATCH_EXECUTOR_ADDRESS_BASE_SEPOLIA; exports.BROKER_HASHES = BROKER_HASHES; exports.COMMON_POOLS = _chunkNT2ZPF72cjs.COMMON_POOLS; exports.COMMON_TOKENS = _chunkNT2ZPF72cjs.COMMON_TOKENS; exports.CONTRACT_ADDRESSES = CONTRACT_ADDRESSES; exports.ConfigurationError = ConfigurationError; exports.DUMMY_SIGNATURE_V07 = DUMMY_SIGNATURE_V07; exports.ENTRY_POINT_V07 = _chunkNT2ZPF72cjs.ENTRY_POINT_V07; exports.ENTRY_POINT_V08 = _chunkNT2ZPF72cjs.ENTRY_POINT_V08; exports.Eip712DomainMismatchError = _chunkNT2ZPF72cjs.Eip712DomainMismatchError; exports.ORDERLY_RELAY_ABI = ORDERLY_RELAY_ABI; exports.ORDERLY_VAULT_ABI = ORDERLY_VAULT_ABI; exports.ORDERLY_VAULT_ADDRESSES = ORDERLY_VAULT_ADDRESSES; exports.ORDERLY_VAULT_BASE_MAINNET = ORDERLY_VAULT_BASE_MAINNET; exports.OracleStaleError = OracleStaleError; exports.PAFI_SERVICE_URLS = PAFI_SERVICE_URLS; exports.PAFI_SUBGRAPH_URL = PAFI_SUBGRAPH_URL; exports.PERMIT2_ADDRESS = _chunkNT2ZPF72cjs.PERMIT2_ADDRESS; exports.POINT_TOKEN_ABI = _chunkKRHGFUDIcjs.pointTokenAbi; exports.POINT_TOKEN_FACTORY_ADDRESSES = POINT_TOKEN_FACTORY_ADDRESSES; exports.POINT_TOKEN_IMPL_ADDRESSES = POINT_TOKEN_IMPL_ADDRESSES; exports.POINT_TOKEN_POOLS = _chunkNT2ZPF72cjs.POINT_TOKEN_POOLS; exports.POINT_TOKEN_V2_ABI = _chunkKRHGFUDIcjs.pointTokenAbi; exports.PafiSDK = PafiSDK; exports.PafiSdkError = PafiSdkError; exports.QUOTER_V2_ADDRESSES = _chunkNT2ZPF72cjs.QUOTER_V2_ADDRESSES; exports.SDK_ERROR_HTTP_STATUS_CODE = SDK_ERROR_HTTP_STATUS_CODE; exports.SIMPLE_7702_IMPL_BASE_MAINNET = SIMPLE_7702_IMPL_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET = _chunk75JWR5SAcjs.SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET; exports.SPONSOR_AUTH_DOMAIN_NAME = _chunk75JWR5SAcjs.SPONSOR_AUTH_DOMAIN_NAME; exports.SPONSOR_AUTH_TYPES = _chunk75JWR5SAcjs.SPONSOR_AUTH_TYPES; exports.SUPPORTED_CHAINS = _chunkNT2ZPF72cjs.SUPPORTED_CHAINS; exports.SigningError = SigningError; exports.SimulationError = SimulationError; exports.TOKEN_HASHES = TOKEN_HASHES; exports.UNIVERSAL_ROUTER_ADDRESSES = _chunkNT2ZPF72cjs.UNIVERSAL_ROUTER_ADDRESSES; exports.V3_FACTORY_ADDRESSES = _chunkNT2ZPF72cjs.V3_FACTORY_ADDRESSES; exports.V3_POOL_INIT_CODE_HASH = _chunkNT2ZPF72cjs.V3_POOL_INIT_CODE_HASH; exports.V3_SWAP_ROUTER_ADDRESSES = _chunkNT2ZPF72cjs.V3_SWAP_ROUTER_ADDRESSES; exports.ValidationError = ValidationError; exports.ZERO_VALUE = ZERO_VALUE; exports.assembleUserOperation = assembleUserOperation; exports.assertDomainMatchesContract = _chunkNT2ZPF72cjs.assertDomainMatchesContract; exports.buildAndSignSponsorAuth = _chunk75JWR5SAcjs.buildAndSignSponsorAuth; exports.buildBurnRequestTypedData = _chunkNT2ZPF72cjs.buildBurnRequestTypedData; exports.buildDelegationUserOp = buildDelegationUserOp; exports.buildDomain = _chunkNT2ZPF72cjs.buildDomain; exports.buildEip7702Authorization = buildEip7702Authorization; exports.buildMintRequestTypedData = _chunkNT2ZPF72cjs.buildMintRequestTypedData; exports.buildPartialUserOperation = buildPartialUserOperation; exports.buildPerpDepositViaRelay = buildPerpDepositViaRelay; exports.buildPerpDepositWithGasDeduction = buildPerpDepositWithGasDeduction; exports.buildSponsorAuthDomain = _chunk75JWR5SAcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunk75JWR5SAcjs.buildSponsorAuthTypedData; exports.buildUserOpTypedData = buildUserOpTypedData; exports.burnRequestTypes = _chunkNT2ZPF72cjs.burnRequestTypes; exports.checkDelegation = checkDelegation; exports.checkEthAndBranch = checkEthAndBranch; exports.computeAccountId = computeAccountId; exports.computeAuthorizationHash = computeAuthorizationHash; exports.computeCallDataHash = _chunk75JWR5SAcjs.computeCallDataHash; exports.computeUserOpHash = computeUserOpHash; exports.computeV3PoolAddress = computeV3PoolAddress; exports.createLoginMessage = _chunk75JWR5SAcjs.createLoginMessage; exports.createPafiProxyTransport = createPafiProxyTransport; exports.decodeBatchExecuteCalls = decodeBatchExecuteCalls; exports.defaultErrorTypeForStatus = defaultErrorTypeForStatus; exports.delegateDirect = delegateDirect; exports.detectDelegateImpl = detectDelegateImpl; exports.encodeBatchExecute = encodeBatchExecute; exports.encodeV3Path = encodeV3Path; exports.encodeV3PathReversed = encodeV3PathReversed; exports.erc20Abi = _chunkXXLIIWIFcjs.erc20Abi; exports.erc20ApproveOp = erc20ApproveOp; exports.erc20BurnOp = erc20BurnOp; exports.erc20TransferOp = erc20TransferOp; exports.fetchPafiPools = fetchPafiPools; exports.generateSponsorAuthNonce = _chunk75JWR5SAcjs.generateSponsorAuthNonce; exports.getAaNonce = getAaNonce; exports.getBurnRequestNonce = _chunkTRYGIC2Icjs.getBurnRequestNonce; exports.getContractAddresses = getContractAddresses; exports.getDummySignatureFor7702 = getDummySignatureFor7702; exports.getIssuer = _chunkTRYGIC2Icjs.getIssuer2; exports.getMintFeeBps = _chunkTRYGIC2Icjs.getMintFeeBps; exports.getMintFeeRecipients = _chunkTRYGIC2Icjs.getMintFeeRecipients; exports.getMintRequestNonce = _chunkTRYGIC2Icjs.getMintRequestNonce; exports.getPafiServiceUrls = getPafiServiceUrls; exports.getPafiWebModalAdapter = getPafiWebModalAdapter; exports.getPointTokenBalance = _chunkTRYGIC2Icjs.getPointTokenBalance; exports.getPointTokenIssuer = _chunkTRYGIC2Icjs.getPointTokenIssuer; exports.getPointTokenIssuerAddress = _chunkTRYGIC2Icjs.getIssuer; exports.getSponsorAuthDomainAnchor = _chunk75JWR5SAcjs.getSponsorAuthDomainAnchor; exports.getTokenCap = _chunkTRYGIC2Icjs.getTokenCap; exports.getTokenName = _chunkTRYGIC2Icjs.getTokenName; exports.isActiveIssuer = _chunkTRYGIC2Icjs.isActiveIssuer; exports.isDelegatedTo = isDelegatedTo; exports.isDelegatedToTarget = isDelegatedToTarget; exports.isMinter = _chunkTRYGIC2Icjs.isMinter; exports.isPaymasterError = isPaymasterError; exports.issuerRegistryAbi = _chunkC7VB6WTLcjs.issuerRegistryAbi; exports.issuerRegistryGetIssuerFlatAbi = _chunkTRYGIC2Icjs.issuerRegistryGetIssuerFlatAbi; exports.mintFeeWrapperAbi = _chunkC7VB6WTLcjs.mintFeeWrapperAbi; exports.mintRequestTypes = _chunkNT2ZPF72cjs.mintRequestTypes; exports.mintingOracleAbi = _chunkC7VB6WTLcjs.mintingOracleAbi; exports.openPafiWebModal = openPafiWebModal; exports.openWebPopup = openWebPopup; exports.parseEip7702DelegatedAddress = parseEip7702DelegatedAddress; exports.parseLoginMessage = _chunk75JWR5SAcjs.parseLoginMessage; exports.permit2Abi = _chunkXXLIIWIFcjs.permit2Abi; exports.pointTokenAbi = _chunkKRHGFUDIcjs.pointTokenAbi; exports.pointTokenFactoryAbi = _chunkXXLIIWIFcjs.pointTokenFactoryAbi; exports.quoteOperatorFeePt = quoteOperatorFeePt; exports.quoteOperatorFeeUsdt = quoteOperatorFeeUsdt; exports.rawCallOp = rawCallOp; exports.sendWithPaymasterFallback = sendWithPaymasterFallback; exports.serializeUserOpToJsonRpc = serializeUserOpToJsonRpc; exports.setPafiWebModalAdapter = setPafiWebModalAdapter; exports.signBurnRequest = _chunkNT2ZPF72cjs.signBurnRequest; exports.signMintRequest = _chunkNT2ZPF72cjs.signMintRequest; exports.signSponsorAuth = _chunk75JWR5SAcjs.signSponsorAuth; exports.splitAuthorizationSig = splitAuthorizationSig; exports.universalRouterAbi = _chunkXXLIIWIFcjs.universalRouterAbi; exports.v3QuoterV2Abi = _chunkXXLIIWIFcjs.v3QuoterV2Abi; exports.verifyBurnRequest = _chunkNT2ZPF72cjs.verifyBurnRequest; exports.verifyLoginMessage = _chunk75JWR5SAcjs.verifyLoginMessage; exports.verifyMintCap = _chunkTRYGIC2Icjs.verifyMintCap; exports.verifyMintRequest = _chunkNT2ZPF72cjs.verifyMintRequest; exports.verifySponsorAuth = _chunk75JWR5SAcjs.verifySponsorAuth; exports.webPopupAdapter = webPopupAdapter;
|
|
1671
1691
|
//# sourceMappingURL=index.cjs.map
|