@pafi-dev/core 0.7.7 → 0.8.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/abi/index.cjs +7 -3
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.d.cts +451 -2
- package/dist/abi/index.d.ts +451 -2
- package/dist/abi/index.js +7 -3
- package/dist/auth/index.cjs +6 -2
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +21 -9
- package/dist/auth/index.d.ts +21 -9
- package/dist/auth/index.js +5 -1
- package/dist/{chunk-6UX2IFA2.js → chunk-4EGXLYMM.js} +20 -2
- package/dist/chunk-4EGXLYMM.js.map +1 -0
- package/dist/chunk-644KZUKR.cjs +519 -0
- package/dist/chunk-644KZUKR.cjs.map +1 -0
- package/dist/{chunk-5254AG3Z.cjs → chunk-75JWR5SA.cjs} +21 -3
- package/dist/chunk-75JWR5SA.cjs.map +1 -0
- package/dist/{chunk-6CXTFOIH.js → chunk-ABNM6LMP.js} +266 -1
- package/dist/chunk-ABNM6LMP.js.map +1 -0
- package/dist/{chunk-M5ULOZ3A.cjs → chunk-ACQHZWHP.cjs} +55 -3
- package/dist/chunk-ACQHZWHP.cjs.map +1 -0
- package/dist/{chunk-5JZOJIBT.js → chunk-B2NDSIAI.js} +1 -1095
- package/dist/chunk-B2NDSIAI.js.map +1 -0
- package/dist/{chunk-WJSIB5GF.js → chunk-BB5YW57R.js} +53 -1
- package/dist/chunk-BB5YW57R.js.map +1 -0
- package/dist/chunk-CUVUSVWR.js +519 -0
- package/dist/chunk-CUVUSVWR.js.map +1 -0
- package/dist/chunk-JEWSN7Q3.cjs +1059 -0
- package/dist/chunk-JEWSN7Q3.cjs.map +1 -0
- package/dist/{chunk-Q6WCDZXI.cjs → chunk-RFANYF24.cjs} +267 -2
- package/dist/chunk-RFANYF24.cjs.map +1 -0
- package/dist/{chunk-YDLMVWDH.js → chunk-Y4CFC4OC.js} +5 -3
- package/dist/{chunk-YDLMVWDH.js.map → chunk-Y4CFC4OC.js.map} +1 -1
- package/dist/{chunk-CLPRSQT2.cjs → chunk-YCY7MBSJ.cjs} +14 -12
- package/dist/chunk-YCY7MBSJ.cjs.map +1 -0
- package/dist/contract/index.cjs +4 -3
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +1 -1
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.js +3 -2
- package/dist/eip712/index.cjs +7 -2
- package/dist/eip712/index.cjs.map +1 -1
- package/dist/eip712/index.d.cts +39 -4
- package/dist/eip712/index.d.ts +39 -4
- package/dist/eip712/index.js +6 -1
- package/dist/index.cjs +169 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +112 -31
- package/dist/index.d.ts +112 -31
- package/dist/index.js +132 -23
- package/dist/index.js.map +1 -1
- package/dist/{types-BAkmxgVo.d.cts → types-BS4kpO4Z.d.cts} +62 -5
- package/dist/{types-BAkmxgVo.d.ts → types-BS4kpO4Z.d.ts} +62 -5
- package/package.json +1 -1
- package/dist/chunk-5254AG3Z.cjs.map +0 -1
- package/dist/chunk-5JZOJIBT.js.map +0 -1
- package/dist/chunk-6CXTFOIH.js.map +0 -1
- package/dist/chunk-6UX2IFA2.js.map +0 -1
- package/dist/chunk-CLPRSQT2.cjs.map +0 -1
- package/dist/chunk-LRHY7GOR.cjs +0 -2153
- package/dist/chunk-LRHY7GOR.cjs.map +0 -1
- package/dist/chunk-M5ULOZ3A.cjs.map +0 -1
- package/dist/chunk-Q6WCDZXI.cjs.map +0 -1
- package/dist/chunk-WJSIB5GF.js.map +0 -1
package/dist/abi/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Full ABI for PointToken (ERC-20 + EIP-712 minting + roles + permits) —
|
|
1
|
+
/** Full ABI for PointToken (ERC-20 + EIP-712 minting + roles + permits + pause + UUPS init) — hand-pasted from SC artifact pre-push, will auto-regenerate when SC merges + `forge build` */
|
|
2
2
|
declare const pointTokenAbi: readonly [{
|
|
3
3
|
readonly type: "constructor";
|
|
4
4
|
readonly inputs: readonly [];
|
|
@@ -345,6 +345,22 @@ declare const pointTokenAbi: readonly [{
|
|
|
345
345
|
readonly internalType: "address";
|
|
346
346
|
}];
|
|
347
347
|
readonly stateMutability: "view";
|
|
348
|
+
}, {
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
readonly name: "pause";
|
|
351
|
+
readonly inputs: readonly [];
|
|
352
|
+
readonly outputs: readonly [];
|
|
353
|
+
readonly stateMutability: "nonpayable";
|
|
354
|
+
}, {
|
|
355
|
+
readonly type: "function";
|
|
356
|
+
readonly name: "paused";
|
|
357
|
+
readonly inputs: readonly [];
|
|
358
|
+
readonly outputs: readonly [{
|
|
359
|
+
readonly name: "";
|
|
360
|
+
readonly type: "bool";
|
|
361
|
+
readonly internalType: "bool";
|
|
362
|
+
}];
|
|
363
|
+
readonly stateMutability: "view";
|
|
348
364
|
}, {
|
|
349
365
|
readonly type: "function";
|
|
350
366
|
readonly name: "pendingOwner";
|
|
@@ -495,6 +511,12 @@ declare const pointTokenAbi: readonly [{
|
|
|
495
511
|
}];
|
|
496
512
|
readonly outputs: readonly [];
|
|
497
513
|
readonly stateMutability: "nonpayable";
|
|
514
|
+
}, {
|
|
515
|
+
readonly type: "function";
|
|
516
|
+
readonly name: "unpause";
|
|
517
|
+
readonly inputs: readonly [];
|
|
518
|
+
readonly outputs: readonly [];
|
|
519
|
+
readonly stateMutability: "nonpayable";
|
|
498
520
|
}, {
|
|
499
521
|
readonly type: "event";
|
|
500
522
|
readonly name: "Approval";
|
|
@@ -610,6 +632,16 @@ declare const pointTokenAbi: readonly [{
|
|
|
610
632
|
readonly internalType: "address";
|
|
611
633
|
}];
|
|
612
634
|
readonly anonymous: false;
|
|
635
|
+
}, {
|
|
636
|
+
readonly type: "event";
|
|
637
|
+
readonly name: "Paused";
|
|
638
|
+
readonly inputs: readonly [{
|
|
639
|
+
readonly name: "account";
|
|
640
|
+
readonly type: "address";
|
|
641
|
+
readonly indexed: false;
|
|
642
|
+
readonly internalType: "address";
|
|
643
|
+
}];
|
|
644
|
+
readonly anonymous: false;
|
|
613
645
|
}, {
|
|
614
646
|
readonly type: "event";
|
|
615
647
|
readonly name: "Transfer";
|
|
@@ -630,6 +662,16 @@ declare const pointTokenAbi: readonly [{
|
|
|
630
662
|
readonly internalType: "uint256";
|
|
631
663
|
}];
|
|
632
664
|
readonly anonymous: false;
|
|
665
|
+
}, {
|
|
666
|
+
readonly type: "event";
|
|
667
|
+
readonly name: "Unpaused";
|
|
668
|
+
readonly inputs: readonly [{
|
|
669
|
+
readonly name: "account";
|
|
670
|
+
readonly type: "address";
|
|
671
|
+
readonly indexed: false;
|
|
672
|
+
readonly internalType: "address";
|
|
673
|
+
}];
|
|
674
|
+
readonly anonymous: false;
|
|
633
675
|
}, {
|
|
634
676
|
readonly type: "error";
|
|
635
677
|
readonly name: "BurnerAlreadyAdded";
|
|
@@ -750,6 +792,14 @@ declare const pointTokenAbi: readonly [{
|
|
|
750
792
|
readonly type: "address";
|
|
751
793
|
readonly internalType: "address";
|
|
752
794
|
}];
|
|
795
|
+
}, {
|
|
796
|
+
readonly type: "error";
|
|
797
|
+
readonly name: "EnforcedPause";
|
|
798
|
+
readonly inputs: readonly [];
|
|
799
|
+
}, {
|
|
800
|
+
readonly type: "error";
|
|
801
|
+
readonly name: "ExpectedPause";
|
|
802
|
+
readonly inputs: readonly [];
|
|
753
803
|
}, {
|
|
754
804
|
readonly type: "error";
|
|
755
805
|
readonly name: "InvalidAccountNonce";
|
|
@@ -2015,6 +2065,405 @@ declare const mintingOracleAbi: readonly [{
|
|
|
2015
2065
|
readonly inputs: readonly [];
|
|
2016
2066
|
}];
|
|
2017
2067
|
|
|
2068
|
+
/** ABI for MintFeeWrapper (mint-time fee split between user + N recipients) — hand-pasted from SC artifact pre-push, will auto-regenerate when SC merges + `forge build` */
|
|
2069
|
+
declare const mintFeeWrapperAbi: readonly [{
|
|
2070
|
+
readonly type: "constructor";
|
|
2071
|
+
readonly inputs: readonly [];
|
|
2072
|
+
readonly stateMutability: "nonpayable";
|
|
2073
|
+
}, {
|
|
2074
|
+
readonly type: "function";
|
|
2075
|
+
readonly name: "MAX_BASIS_POINTS";
|
|
2076
|
+
readonly inputs: readonly [];
|
|
2077
|
+
readonly outputs: readonly [{
|
|
2078
|
+
readonly name: "";
|
|
2079
|
+
readonly type: "uint16";
|
|
2080
|
+
readonly internalType: "uint16";
|
|
2081
|
+
}];
|
|
2082
|
+
readonly stateMutability: "view";
|
|
2083
|
+
}, {
|
|
2084
|
+
readonly type: "function";
|
|
2085
|
+
readonly name: "MAX_TOTAL_FEE_BPS";
|
|
2086
|
+
readonly inputs: readonly [];
|
|
2087
|
+
readonly outputs: readonly [{
|
|
2088
|
+
readonly name: "";
|
|
2089
|
+
readonly type: "uint16";
|
|
2090
|
+
readonly internalType: "uint16";
|
|
2091
|
+
}];
|
|
2092
|
+
readonly stateMutability: "view";
|
|
2093
|
+
}, {
|
|
2094
|
+
readonly type: "function";
|
|
2095
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
2096
|
+
readonly inputs: readonly [];
|
|
2097
|
+
readonly outputs: readonly [{
|
|
2098
|
+
readonly name: "";
|
|
2099
|
+
readonly type: "string";
|
|
2100
|
+
readonly internalType: "string";
|
|
2101
|
+
}];
|
|
2102
|
+
readonly stateMutability: "view";
|
|
2103
|
+
}, {
|
|
2104
|
+
readonly type: "function";
|
|
2105
|
+
readonly name: "acceptOwnership";
|
|
2106
|
+
readonly inputs: readonly [];
|
|
2107
|
+
readonly outputs: readonly [];
|
|
2108
|
+
readonly stateMutability: "nonpayable";
|
|
2109
|
+
}, {
|
|
2110
|
+
readonly type: "function";
|
|
2111
|
+
readonly name: "getRecipients";
|
|
2112
|
+
readonly inputs: readonly [];
|
|
2113
|
+
readonly outputs: readonly [{
|
|
2114
|
+
readonly name: "";
|
|
2115
|
+
readonly type: "tuple[]";
|
|
2116
|
+
readonly internalType: "struct IMintFeeWrapper.Recipient[]";
|
|
2117
|
+
readonly components: readonly [{
|
|
2118
|
+
readonly name: "account";
|
|
2119
|
+
readonly type: "address";
|
|
2120
|
+
readonly internalType: "address";
|
|
2121
|
+
}, {
|
|
2122
|
+
readonly name: "basisPoints";
|
|
2123
|
+
readonly type: "uint16";
|
|
2124
|
+
readonly internalType: "uint16";
|
|
2125
|
+
}];
|
|
2126
|
+
}];
|
|
2127
|
+
readonly stateMutability: "view";
|
|
2128
|
+
}, {
|
|
2129
|
+
readonly type: "function";
|
|
2130
|
+
readonly name: "initialize";
|
|
2131
|
+
readonly inputs: readonly [{
|
|
2132
|
+
readonly name: "initialOwner";
|
|
2133
|
+
readonly type: "address";
|
|
2134
|
+
readonly internalType: "address";
|
|
2135
|
+
}, {
|
|
2136
|
+
readonly name: "_pointToken";
|
|
2137
|
+
readonly type: "address";
|
|
2138
|
+
readonly internalType: "address";
|
|
2139
|
+
}, {
|
|
2140
|
+
readonly name: "initialRecipients";
|
|
2141
|
+
readonly type: "tuple[]";
|
|
2142
|
+
readonly internalType: "struct IMintFeeWrapper.Recipient[]";
|
|
2143
|
+
readonly components: readonly [{
|
|
2144
|
+
readonly name: "account";
|
|
2145
|
+
readonly type: "address";
|
|
2146
|
+
readonly internalType: "address";
|
|
2147
|
+
}, {
|
|
2148
|
+
readonly name: "basisPoints";
|
|
2149
|
+
readonly type: "uint16";
|
|
2150
|
+
readonly internalType: "uint16";
|
|
2151
|
+
}];
|
|
2152
|
+
}];
|
|
2153
|
+
readonly outputs: readonly [];
|
|
2154
|
+
readonly stateMutability: "nonpayable";
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly type: "function";
|
|
2157
|
+
readonly name: "mintWithFee";
|
|
2158
|
+
readonly inputs: readonly [{
|
|
2159
|
+
readonly name: "to";
|
|
2160
|
+
readonly type: "address";
|
|
2161
|
+
readonly internalType: "address";
|
|
2162
|
+
}, {
|
|
2163
|
+
readonly name: "grossAmount";
|
|
2164
|
+
readonly type: "uint256";
|
|
2165
|
+
readonly internalType: "uint256";
|
|
2166
|
+
}, {
|
|
2167
|
+
readonly name: "deadline";
|
|
2168
|
+
readonly type: "uint256";
|
|
2169
|
+
readonly internalType: "uint256";
|
|
2170
|
+
}, {
|
|
2171
|
+
readonly name: "minterSig";
|
|
2172
|
+
readonly type: "bytes";
|
|
2173
|
+
readonly internalType: "bytes";
|
|
2174
|
+
}];
|
|
2175
|
+
readonly outputs: readonly [];
|
|
2176
|
+
readonly stateMutability: "nonpayable";
|
|
2177
|
+
}, {
|
|
2178
|
+
readonly type: "function";
|
|
2179
|
+
readonly name: "owner";
|
|
2180
|
+
readonly inputs: readonly [];
|
|
2181
|
+
readonly outputs: readonly [{
|
|
2182
|
+
readonly name: "";
|
|
2183
|
+
readonly type: "address";
|
|
2184
|
+
readonly internalType: "address";
|
|
2185
|
+
}];
|
|
2186
|
+
readonly stateMutability: "view";
|
|
2187
|
+
}, {
|
|
2188
|
+
readonly type: "function";
|
|
2189
|
+
readonly name: "pendingOwner";
|
|
2190
|
+
readonly inputs: readonly [];
|
|
2191
|
+
readonly outputs: readonly [{
|
|
2192
|
+
readonly name: "";
|
|
2193
|
+
readonly type: "address";
|
|
2194
|
+
readonly internalType: "address";
|
|
2195
|
+
}];
|
|
2196
|
+
readonly stateMutability: "view";
|
|
2197
|
+
}, {
|
|
2198
|
+
readonly type: "function";
|
|
2199
|
+
readonly name: "pointToken";
|
|
2200
|
+
readonly inputs: readonly [];
|
|
2201
|
+
readonly outputs: readonly [{
|
|
2202
|
+
readonly name: "";
|
|
2203
|
+
readonly type: "address";
|
|
2204
|
+
readonly internalType: "address";
|
|
2205
|
+
}];
|
|
2206
|
+
readonly stateMutability: "view";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly type: "function";
|
|
2209
|
+
readonly name: "proxiableUUID";
|
|
2210
|
+
readonly inputs: readonly [];
|
|
2211
|
+
readonly outputs: readonly [{
|
|
2212
|
+
readonly name: "";
|
|
2213
|
+
readonly type: "bytes32";
|
|
2214
|
+
readonly internalType: "bytes32";
|
|
2215
|
+
}];
|
|
2216
|
+
readonly stateMutability: "view";
|
|
2217
|
+
}, {
|
|
2218
|
+
readonly type: "function";
|
|
2219
|
+
readonly name: "renounceOwnership";
|
|
2220
|
+
readonly inputs: readonly [];
|
|
2221
|
+
readonly outputs: readonly [];
|
|
2222
|
+
readonly stateMutability: "nonpayable";
|
|
2223
|
+
}, {
|
|
2224
|
+
readonly type: "function";
|
|
2225
|
+
readonly name: "setRecipients";
|
|
2226
|
+
readonly inputs: readonly [{
|
|
2227
|
+
readonly name: "newRecipients";
|
|
2228
|
+
readonly type: "tuple[]";
|
|
2229
|
+
readonly internalType: "struct IMintFeeWrapper.Recipient[]";
|
|
2230
|
+
readonly components: readonly [{
|
|
2231
|
+
readonly name: "account";
|
|
2232
|
+
readonly type: "address";
|
|
2233
|
+
readonly internalType: "address";
|
|
2234
|
+
}, {
|
|
2235
|
+
readonly name: "basisPoints";
|
|
2236
|
+
readonly type: "uint16";
|
|
2237
|
+
readonly internalType: "uint16";
|
|
2238
|
+
}];
|
|
2239
|
+
}];
|
|
2240
|
+
readonly outputs: readonly [];
|
|
2241
|
+
readonly stateMutability: "nonpayable";
|
|
2242
|
+
}, {
|
|
2243
|
+
readonly type: "function";
|
|
2244
|
+
readonly name: "totalFeeBps";
|
|
2245
|
+
readonly inputs: readonly [];
|
|
2246
|
+
readonly outputs: readonly [{
|
|
2247
|
+
readonly name: "";
|
|
2248
|
+
readonly type: "uint16";
|
|
2249
|
+
readonly internalType: "uint16";
|
|
2250
|
+
}];
|
|
2251
|
+
readonly stateMutability: "view";
|
|
2252
|
+
}, {
|
|
2253
|
+
readonly type: "function";
|
|
2254
|
+
readonly name: "transferOwnership";
|
|
2255
|
+
readonly inputs: readonly [{
|
|
2256
|
+
readonly name: "newOwner";
|
|
2257
|
+
readonly type: "address";
|
|
2258
|
+
readonly internalType: "address";
|
|
2259
|
+
}];
|
|
2260
|
+
readonly outputs: readonly [];
|
|
2261
|
+
readonly stateMutability: "nonpayable";
|
|
2262
|
+
}, {
|
|
2263
|
+
readonly type: "function";
|
|
2264
|
+
readonly name: "upgradeToAndCall";
|
|
2265
|
+
readonly inputs: readonly [{
|
|
2266
|
+
readonly name: "newImplementation";
|
|
2267
|
+
readonly type: "address";
|
|
2268
|
+
readonly internalType: "address";
|
|
2269
|
+
}, {
|
|
2270
|
+
readonly name: "data";
|
|
2271
|
+
readonly type: "bytes";
|
|
2272
|
+
readonly internalType: "bytes";
|
|
2273
|
+
}];
|
|
2274
|
+
readonly outputs: readonly [];
|
|
2275
|
+
readonly stateMutability: "payable";
|
|
2276
|
+
}, {
|
|
2277
|
+
readonly type: "event";
|
|
2278
|
+
readonly name: "FeeDistributed";
|
|
2279
|
+
readonly inputs: readonly [{
|
|
2280
|
+
readonly name: "recipient";
|
|
2281
|
+
readonly type: "address";
|
|
2282
|
+
readonly indexed: true;
|
|
2283
|
+
readonly internalType: "address";
|
|
2284
|
+
}, {
|
|
2285
|
+
readonly name: "amount";
|
|
2286
|
+
readonly type: "uint256";
|
|
2287
|
+
readonly indexed: false;
|
|
2288
|
+
readonly internalType: "uint256";
|
|
2289
|
+
}];
|
|
2290
|
+
readonly anonymous: false;
|
|
2291
|
+
}, {
|
|
2292
|
+
readonly type: "event";
|
|
2293
|
+
readonly name: "Initialized";
|
|
2294
|
+
readonly inputs: readonly [{
|
|
2295
|
+
readonly name: "version";
|
|
2296
|
+
readonly type: "uint64";
|
|
2297
|
+
readonly indexed: false;
|
|
2298
|
+
readonly internalType: "uint64";
|
|
2299
|
+
}];
|
|
2300
|
+
readonly anonymous: false;
|
|
2301
|
+
}, {
|
|
2302
|
+
readonly type: "event";
|
|
2303
|
+
readonly name: "MintWithFee";
|
|
2304
|
+
readonly inputs: readonly [{
|
|
2305
|
+
readonly name: "to";
|
|
2306
|
+
readonly type: "address";
|
|
2307
|
+
readonly indexed: true;
|
|
2308
|
+
readonly internalType: "address";
|
|
2309
|
+
}, {
|
|
2310
|
+
readonly name: "grossAmount";
|
|
2311
|
+
readonly type: "uint256";
|
|
2312
|
+
readonly indexed: false;
|
|
2313
|
+
readonly internalType: "uint256";
|
|
2314
|
+
}, {
|
|
2315
|
+
readonly name: "netAmount";
|
|
2316
|
+
readonly type: "uint256";
|
|
2317
|
+
readonly indexed: false;
|
|
2318
|
+
readonly internalType: "uint256";
|
|
2319
|
+
}, {
|
|
2320
|
+
readonly name: "feeAmount";
|
|
2321
|
+
readonly type: "uint256";
|
|
2322
|
+
readonly indexed: false;
|
|
2323
|
+
readonly internalType: "uint256";
|
|
2324
|
+
}];
|
|
2325
|
+
readonly anonymous: false;
|
|
2326
|
+
}, {
|
|
2327
|
+
readonly type: "event";
|
|
2328
|
+
readonly name: "OwnershipTransferStarted";
|
|
2329
|
+
readonly inputs: readonly [{
|
|
2330
|
+
readonly name: "previousOwner";
|
|
2331
|
+
readonly type: "address";
|
|
2332
|
+
readonly indexed: true;
|
|
2333
|
+
readonly internalType: "address";
|
|
2334
|
+
}, {
|
|
2335
|
+
readonly name: "newOwner";
|
|
2336
|
+
readonly type: "address";
|
|
2337
|
+
readonly indexed: true;
|
|
2338
|
+
readonly internalType: "address";
|
|
2339
|
+
}];
|
|
2340
|
+
readonly anonymous: false;
|
|
2341
|
+
}, {
|
|
2342
|
+
readonly type: "event";
|
|
2343
|
+
readonly name: "OwnershipTransferred";
|
|
2344
|
+
readonly inputs: readonly [{
|
|
2345
|
+
readonly name: "previousOwner";
|
|
2346
|
+
readonly type: "address";
|
|
2347
|
+
readonly indexed: true;
|
|
2348
|
+
readonly internalType: "address";
|
|
2349
|
+
}, {
|
|
2350
|
+
readonly name: "newOwner";
|
|
2351
|
+
readonly type: "address";
|
|
2352
|
+
readonly indexed: true;
|
|
2353
|
+
readonly internalType: "address";
|
|
2354
|
+
}];
|
|
2355
|
+
readonly anonymous: false;
|
|
2356
|
+
}, {
|
|
2357
|
+
readonly type: "event";
|
|
2358
|
+
readonly name: "RecipientsUpdated";
|
|
2359
|
+
readonly inputs: readonly [{
|
|
2360
|
+
readonly name: "recipients";
|
|
2361
|
+
readonly type: "tuple[]";
|
|
2362
|
+
readonly indexed: false;
|
|
2363
|
+
readonly internalType: "struct IMintFeeWrapper.Recipient[]";
|
|
2364
|
+
readonly components: readonly [{
|
|
2365
|
+
readonly name: "account";
|
|
2366
|
+
readonly type: "address";
|
|
2367
|
+
readonly internalType: "address";
|
|
2368
|
+
}, {
|
|
2369
|
+
readonly name: "basisPoints";
|
|
2370
|
+
readonly type: "uint16";
|
|
2371
|
+
readonly internalType: "uint16";
|
|
2372
|
+
}];
|
|
2373
|
+
}];
|
|
2374
|
+
readonly anonymous: false;
|
|
2375
|
+
}, {
|
|
2376
|
+
readonly type: "event";
|
|
2377
|
+
readonly name: "Upgraded";
|
|
2378
|
+
readonly inputs: readonly [{
|
|
2379
|
+
readonly name: "implementation";
|
|
2380
|
+
readonly type: "address";
|
|
2381
|
+
readonly indexed: true;
|
|
2382
|
+
readonly internalType: "address";
|
|
2383
|
+
}];
|
|
2384
|
+
readonly anonymous: false;
|
|
2385
|
+
}, {
|
|
2386
|
+
readonly type: "error";
|
|
2387
|
+
readonly name: "AddressEmptyCode";
|
|
2388
|
+
readonly inputs: readonly [{
|
|
2389
|
+
readonly name: "target";
|
|
2390
|
+
readonly type: "address";
|
|
2391
|
+
readonly internalType: "address";
|
|
2392
|
+
}];
|
|
2393
|
+
}, {
|
|
2394
|
+
readonly type: "error";
|
|
2395
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
2396
|
+
readonly inputs: readonly [{
|
|
2397
|
+
readonly name: "implementation";
|
|
2398
|
+
readonly type: "address";
|
|
2399
|
+
readonly internalType: "address";
|
|
2400
|
+
}];
|
|
2401
|
+
}, {
|
|
2402
|
+
readonly type: "error";
|
|
2403
|
+
readonly name: "ERC1967NonPayable";
|
|
2404
|
+
readonly inputs: readonly [];
|
|
2405
|
+
}, {
|
|
2406
|
+
readonly type: "error";
|
|
2407
|
+
readonly name: "FailedCall";
|
|
2408
|
+
readonly inputs: readonly [];
|
|
2409
|
+
}, {
|
|
2410
|
+
readonly type: "error";
|
|
2411
|
+
readonly name: "InvalidInitialization";
|
|
2412
|
+
readonly inputs: readonly [];
|
|
2413
|
+
}, {
|
|
2414
|
+
readonly type: "error";
|
|
2415
|
+
readonly name: "NotInitializing";
|
|
2416
|
+
readonly inputs: readonly [];
|
|
2417
|
+
}, {
|
|
2418
|
+
readonly type: "error";
|
|
2419
|
+
readonly name: "NotReceiver";
|
|
2420
|
+
readonly inputs: readonly [];
|
|
2421
|
+
}, {
|
|
2422
|
+
readonly type: "error";
|
|
2423
|
+
readonly name: "OwnableInvalidOwner";
|
|
2424
|
+
readonly inputs: readonly [{
|
|
2425
|
+
readonly name: "owner";
|
|
2426
|
+
readonly type: "address";
|
|
2427
|
+
readonly internalType: "address";
|
|
2428
|
+
}];
|
|
2429
|
+
}, {
|
|
2430
|
+
readonly type: "error";
|
|
2431
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
2432
|
+
readonly inputs: readonly [{
|
|
2433
|
+
readonly name: "account";
|
|
2434
|
+
readonly type: "address";
|
|
2435
|
+
readonly internalType: "address";
|
|
2436
|
+
}];
|
|
2437
|
+
}, {
|
|
2438
|
+
readonly type: "error";
|
|
2439
|
+
readonly name: "TotalFeeTooHigh";
|
|
2440
|
+
readonly inputs: readonly [{
|
|
2441
|
+
readonly name: "totalBps";
|
|
2442
|
+
readonly type: "uint16";
|
|
2443
|
+
readonly internalType: "uint16";
|
|
2444
|
+
}];
|
|
2445
|
+
}, {
|
|
2446
|
+
readonly type: "error";
|
|
2447
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
2448
|
+
readonly inputs: readonly [];
|
|
2449
|
+
}, {
|
|
2450
|
+
readonly type: "error";
|
|
2451
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
2452
|
+
readonly inputs: readonly [{
|
|
2453
|
+
readonly name: "slot";
|
|
2454
|
+
readonly type: "bytes32";
|
|
2455
|
+
readonly internalType: "bytes32";
|
|
2456
|
+
}];
|
|
2457
|
+
}, {
|
|
2458
|
+
readonly type: "error";
|
|
2459
|
+
readonly name: "ZeroAddress";
|
|
2460
|
+
readonly inputs: readonly [];
|
|
2461
|
+
}, {
|
|
2462
|
+
readonly type: "error";
|
|
2463
|
+
readonly name: "ZeroAmount";
|
|
2464
|
+
readonly inputs: readonly [];
|
|
2465
|
+
}];
|
|
2466
|
+
|
|
2018
2467
|
declare const erc20Abi: readonly [{
|
|
2019
2468
|
readonly type: "function";
|
|
2020
2469
|
readonly name: "name";
|
|
@@ -2284,4 +2733,4 @@ declare const v4QuoterAbi: readonly [{
|
|
|
2284
2733
|
}];
|
|
2285
2734
|
}];
|
|
2286
2735
|
|
|
2287
|
-
export { erc20Abi, issuerRegistryAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v4QuoterAbi };
|
|
2736
|
+
export { erc20Abi, issuerRegistryAbi, mintFeeWrapperAbi, mintingOracleAbi, permit2Abi, pointTokenAbi, pointTokenFactoryAbi, universalRouterAbi, v4QuoterAbi };
|
package/dist/abi/index.js
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
erc20Abi,
|
|
3
|
+
mintFeeWrapperAbi,
|
|
3
4
|
permit2Abi,
|
|
4
5
|
pointTokenFactoryAbi,
|
|
5
6
|
universalRouterAbi,
|
|
6
7
|
v4QuoterAbi
|
|
7
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ABNM6LMP.js";
|
|
8
9
|
import {
|
|
9
10
|
issuerRegistryAbi,
|
|
10
|
-
mintingOracleAbi
|
|
11
|
+
mintingOracleAbi
|
|
12
|
+
} from "../chunk-B2NDSIAI.js";
|
|
13
|
+
import {
|
|
11
14
|
pointTokenAbi
|
|
12
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-CUVUSVWR.js";
|
|
13
16
|
import "../chunk-DGUM43GV.js";
|
|
14
17
|
export {
|
|
15
18
|
erc20Abi,
|
|
16
19
|
issuerRegistryAbi,
|
|
20
|
+
mintFeeWrapperAbi,
|
|
17
21
|
mintingOracleAbi,
|
|
18
22
|
permit2Abi,
|
|
19
23
|
pointTokenAbi,
|
package/dist/auth/index.cjs
CHANGED
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _chunk75JWR5SAcjs = require('../chunk-75JWR5SA.cjs');
|
|
15
17
|
require('../chunk-JEQ2X3Z6.cjs');
|
|
16
18
|
|
|
17
19
|
|
|
@@ -26,5 +28,7 @@ require('../chunk-JEQ2X3Z6.cjs');
|
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
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.buildAndSignSponsorAuth = _chunk75JWR5SAcjs.buildAndSignSponsorAuth; exports.buildSponsorAuthDomain = _chunk75JWR5SAcjs.buildSponsorAuthDomain; exports.buildSponsorAuthTypedData = _chunk75JWR5SAcjs.buildSponsorAuthTypedData; exports.computeCallDataHash = _chunk75JWR5SAcjs.computeCallDataHash; exports.createLoginMessage = _chunk75JWR5SAcjs.createLoginMessage; exports.generateSponsorAuthNonce = _chunk75JWR5SAcjs.generateSponsorAuthNonce; exports.getSponsorAuthDomainAnchor = _chunk75JWR5SAcjs.getSponsorAuthDomainAnchor; exports.parseLoginMessage = _chunk75JWR5SAcjs.parseLoginMessage; exports.signSponsorAuth = _chunk75JWR5SAcjs.signSponsorAuth; exports.verifyLoginMessage = _chunk75JWR5SAcjs.verifyLoginMessage; exports.verifySponsorAuth = _chunk75JWR5SAcjs.verifySponsorAuth;
|
|
30
34
|
//# sourceMappingURL=index.cjs.map
|
package/dist/auth/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/auth/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/auth/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,mhCAAC","file":"/Users/phitran/Pacific-Finance/pafi-backend/pafi-sdk/packages/core/dist/auth/index.cjs"}
|
package/dist/auth/index.d.cts
CHANGED
|
@@ -58,12 +58,10 @@ declare function parseLoginMessage(message: string): LoginMessageParams;
|
|
|
58
58
|
declare function verifyLoginMessage(message: string, signature: Hex): Promise<VerifyLoginResult>;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Generate a high-entropy nonce for SponsorAuth.
|
|
62
|
-
* `
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* timestamp — sponsor-relayer's single-use nonce gate stays clean even at
|
|
66
|
-
* scale. See SDK_CORE_TRADING_AUDIT.md H5.
|
|
61
|
+
* Generate a high-entropy nonce for SponsorAuth. Uses 64 bits of CSPRNG
|
|
62
|
+
* (`crypto.randomBytes` Node, `crypto.getRandomValues` browser) in the low
|
|
63
|
+
* half plus a millisecond timestamp prefix in the high half — keeps
|
|
64
|
+
* sponsor-relayer's single-use nonce gate clean at scale.
|
|
67
65
|
*/
|
|
68
66
|
declare function generateSponsorAuthNonce(): bigint;
|
|
69
67
|
declare const SPONSOR_AUTH_DOMAIN_NAME = "PafiSponsorAuth";
|
|
@@ -105,18 +103,32 @@ interface SponsorAuthVerifyResult {
|
|
|
105
103
|
recoveredAddress?: Address;
|
|
106
104
|
reason?: "EXPIRED" | "INVALID_SIGNER" | "INVALID_SIGNATURE_FORMAT";
|
|
107
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Domain anchor for SponsorAuth EIP-712 signatures. The relayer service
|
|
108
|
+
* is off-chain (no on-chain SponsorRelayer contract), so we bind to a
|
|
109
|
+
* stable PAFI-controlled marker registered as `SPONSOR_AUTH_DOMAIN_ANCHOR`
|
|
110
|
+
* in the relayer config. This rules out cross-system replay (a sibling
|
|
111
|
+
* EIP-712 payload with the same field names cannot validate against
|
|
112
|
+
* this domain) and gives wallets a meaningful "verifying contract"
|
|
113
|
+
* preview instead of `0x0`.
|
|
114
|
+
*
|
|
115
|
+
* If you ever deploy an on-chain `SponsorRelayer` contract, switch this
|
|
116
|
+
* to its address.
|
|
117
|
+
*/
|
|
118
|
+
declare const SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET: Address;
|
|
119
|
+
declare function getSponsorAuthDomainAnchor(chainId: number): Address;
|
|
108
120
|
declare function buildSponsorAuthDomain(chainId: number): {
|
|
109
121
|
name: string;
|
|
110
122
|
version: string;
|
|
111
123
|
chainId: number;
|
|
112
|
-
verifyingContract:
|
|
124
|
+
verifyingContract: `0x${string}`;
|
|
113
125
|
};
|
|
114
126
|
declare function buildSponsorAuthTypedData(payload: SponsorAuthPayload): {
|
|
115
127
|
domain: {
|
|
116
128
|
name: string;
|
|
117
129
|
version: string;
|
|
118
130
|
chainId: number;
|
|
119
|
-
verifyingContract:
|
|
131
|
+
verifyingContract: `0x${string}`;
|
|
120
132
|
};
|
|
121
133
|
types: {
|
|
122
134
|
readonly SponsorAuth: readonly [{
|
|
@@ -214,4 +226,4 @@ interface BuildSponsorAuthParams {
|
|
|
214
226
|
declare function buildAndSignSponsorAuth(params: BuildSponsorAuthParams): Promise<BuiltSponsorAuth>;
|
|
215
227
|
declare function verifySponsorAuth(payload: SponsorAuthPayload, signature: Hex, expectedSigner: Address): Promise<SponsorAuthVerifyResult>;
|
|
216
228
|
|
|
217
|
-
export { type BuildSponsorAuthParams, type BuiltSponsorAuth, type LoginMessageParams, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, type SponsorAuthPayload, type SponsorAuthVerifyResult, type VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth };
|
|
229
|
+
export { type BuildSponsorAuthParams, type BuiltSponsorAuth, type LoginMessageParams, SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, type SponsorAuthPayload, type SponsorAuthVerifyResult, type VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, getSponsorAuthDomainAnchor, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -58,12 +58,10 @@ declare function parseLoginMessage(message: string): LoginMessageParams;
|
|
|
58
58
|
declare function verifyLoginMessage(message: string, signature: Hex): Promise<VerifyLoginResult>;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Generate a high-entropy nonce for SponsorAuth.
|
|
62
|
-
* `
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* timestamp — sponsor-relayer's single-use nonce gate stays clean even at
|
|
66
|
-
* scale. See SDK_CORE_TRADING_AUDIT.md H5.
|
|
61
|
+
* Generate a high-entropy nonce for SponsorAuth. Uses 64 bits of CSPRNG
|
|
62
|
+
* (`crypto.randomBytes` Node, `crypto.getRandomValues` browser) in the low
|
|
63
|
+
* half plus a millisecond timestamp prefix in the high half — keeps
|
|
64
|
+
* sponsor-relayer's single-use nonce gate clean at scale.
|
|
67
65
|
*/
|
|
68
66
|
declare function generateSponsorAuthNonce(): bigint;
|
|
69
67
|
declare const SPONSOR_AUTH_DOMAIN_NAME = "PafiSponsorAuth";
|
|
@@ -105,18 +103,32 @@ interface SponsorAuthVerifyResult {
|
|
|
105
103
|
recoveredAddress?: Address;
|
|
106
104
|
reason?: "EXPIRED" | "INVALID_SIGNER" | "INVALID_SIGNATURE_FORMAT";
|
|
107
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Domain anchor for SponsorAuth EIP-712 signatures. The relayer service
|
|
108
|
+
* is off-chain (no on-chain SponsorRelayer contract), so we bind to a
|
|
109
|
+
* stable PAFI-controlled marker registered as `SPONSOR_AUTH_DOMAIN_ANCHOR`
|
|
110
|
+
* in the relayer config. This rules out cross-system replay (a sibling
|
|
111
|
+
* EIP-712 payload with the same field names cannot validate against
|
|
112
|
+
* this domain) and gives wallets a meaningful "verifying contract"
|
|
113
|
+
* preview instead of `0x0`.
|
|
114
|
+
*
|
|
115
|
+
* If you ever deploy an on-chain `SponsorRelayer` contract, switch this
|
|
116
|
+
* to its address.
|
|
117
|
+
*/
|
|
118
|
+
declare const SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET: Address;
|
|
119
|
+
declare function getSponsorAuthDomainAnchor(chainId: number): Address;
|
|
108
120
|
declare function buildSponsorAuthDomain(chainId: number): {
|
|
109
121
|
name: string;
|
|
110
122
|
version: string;
|
|
111
123
|
chainId: number;
|
|
112
|
-
verifyingContract:
|
|
124
|
+
verifyingContract: `0x${string}`;
|
|
113
125
|
};
|
|
114
126
|
declare function buildSponsorAuthTypedData(payload: SponsorAuthPayload): {
|
|
115
127
|
domain: {
|
|
116
128
|
name: string;
|
|
117
129
|
version: string;
|
|
118
130
|
chainId: number;
|
|
119
|
-
verifyingContract:
|
|
131
|
+
verifyingContract: `0x${string}`;
|
|
120
132
|
};
|
|
121
133
|
types: {
|
|
122
134
|
readonly SponsorAuth: readonly [{
|
|
@@ -214,4 +226,4 @@ interface BuildSponsorAuthParams {
|
|
|
214
226
|
declare function buildAndSignSponsorAuth(params: BuildSponsorAuthParams): Promise<BuiltSponsorAuth>;
|
|
215
227
|
declare function verifySponsorAuth(payload: SponsorAuthPayload, signature: Hex, expectedSigner: Address): Promise<SponsorAuthVerifyResult>;
|
|
216
228
|
|
|
217
|
-
export { type BuildSponsorAuthParams, type BuiltSponsorAuth, type LoginMessageParams, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, type SponsorAuthPayload, type SponsorAuthVerifyResult, type VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth };
|
|
229
|
+
export { type BuildSponsorAuthParams, type BuiltSponsorAuth, type LoginMessageParams, SPONSOR_AUTH_DOMAIN_ANCHOR_BASE_MAINNET, SPONSOR_AUTH_DOMAIN_NAME, SPONSOR_AUTH_TYPES, type SponsorAuthPayload, type SponsorAuthVerifyResult, type VerifyLoginResult, buildAndSignSponsorAuth, buildSponsorAuthDomain, buildSponsorAuthTypedData, computeCallDataHash, createLoginMessage, generateSponsorAuthNonce, getSponsorAuthDomainAnchor, parseLoginMessage, signSponsorAuth, verifyLoginMessage, verifySponsorAuth };
|