@logswap/sdk 0.5.91 → 0.5.92
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 +61 -18
- package/dist/admin.d.ts +48 -871
- package/dist/admin.js +55 -110
- package/dist/chains.d.ts +4 -4
- package/dist/chains.js +2 -3
- package/dist/client.d.ts +6 -7
- package/dist/client.js +12 -1
- package/dist/fpool.d.ts +298 -801
- package/dist/fpool.js +312 -336
- package/dist/generated.d.ts +1707 -3843
- package/dist/generated.js +982 -2248
- package/dist/history.js +7 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/write.js +2 -2
- package/package.json +1 -1
- package/src/admin.ts +66 -169
- package/src/chains.ts +6 -7
- package/src/client.ts +17 -7
- package/src/fpool.ts +449 -510
- package/src/generated.ts +938 -2210
- package/src/history.ts +5 -7
- package/src/index.ts +1 -1
- package/src/write.ts +2 -2
package/src/generated.ts
CHANGED
|
@@ -1545,13 +1545,6 @@ export const managerFAbi = [
|
|
|
1545
1545
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1546
1546
|
stateMutability: 'view',
|
|
1547
1547
|
},
|
|
1548
|
-
{
|
|
1549
|
-
type: 'function',
|
|
1550
|
-
inputs: [],
|
|
1551
|
-
name: 'PAYEE_CUT_MAX',
|
|
1552
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1553
|
-
stateMutability: 'view',
|
|
1554
|
-
},
|
|
1555
1548
|
{
|
|
1556
1549
|
type: 'function',
|
|
1557
1550
|
inputs: [],
|
|
@@ -1681,7 +1674,6 @@ export const managerFAbi = [
|
|
|
1681
1674
|
},
|
|
1682
1675
|
{ name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
|
|
1683
1676
|
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
1684
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1685
1677
|
],
|
|
1686
1678
|
name: 'deployLiquidity',
|
|
1687
1679
|
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1722,17 +1714,7 @@ export const managerFAbi = [
|
|
|
1722
1714
|
type: 'function',
|
|
1723
1715
|
inputs: [
|
|
1724
1716
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1725
|
-
{ name: '
|
|
1726
|
-
],
|
|
1727
|
-
name: 'harvest',
|
|
1728
|
-
outputs: [],
|
|
1729
|
-
stateMutability: 'nonpayable',
|
|
1730
|
-
},
|
|
1731
|
-
{
|
|
1732
|
-
type: 'function',
|
|
1733
|
-
inputs: [
|
|
1734
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1735
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1717
|
+
{ name: 'extra', internalType: 'uint256', type: 'uint256' },
|
|
1736
1718
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1737
1719
|
],
|
|
1738
1720
|
name: 'harvest',
|
|
@@ -1756,11 +1738,9 @@ export const managerFAbi = [
|
|
|
1756
1738
|
components: [
|
|
1757
1739
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1758
1740
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1759
|
-
{ name: '
|
|
1741
|
+
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
1760
1742
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1761
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1762
1743
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1763
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
1764
1744
|
],
|
|
1765
1745
|
},
|
|
1766
1746
|
],
|
|
@@ -1878,16 +1858,6 @@ export const managerFAbi = [
|
|
|
1878
1858
|
outputs: [{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' }],
|
|
1879
1859
|
stateMutability: 'nonpayable',
|
|
1880
1860
|
},
|
|
1881
|
-
{
|
|
1882
|
-
type: 'function',
|
|
1883
|
-
inputs: [
|
|
1884
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1885
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1886
|
-
],
|
|
1887
|
-
name: 'regenerate',
|
|
1888
|
-
outputs: [],
|
|
1889
|
-
stateMutability: 'nonpayable',
|
|
1890
|
-
},
|
|
1891
1861
|
{
|
|
1892
1862
|
type: 'function',
|
|
1893
1863
|
inputs: [],
|
|
@@ -1916,17 +1886,6 @@ export const managerFAbi = [
|
|
|
1916
1886
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1917
1887
|
stateMutability: 'payable',
|
|
1918
1888
|
},
|
|
1919
|
-
{
|
|
1920
|
-
type: 'function',
|
|
1921
|
-
inputs: [
|
|
1922
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1923
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1924
|
-
{ name: 'gates', internalType: 'uint8', type: 'uint8' },
|
|
1925
|
-
],
|
|
1926
|
-
name: 'setPolicy',
|
|
1927
|
-
outputs: [],
|
|
1928
|
-
stateMutability: 'nonpayable',
|
|
1929
|
-
},
|
|
1930
1889
|
{
|
|
1931
1890
|
type: 'function',
|
|
1932
1891
|
inputs: [],
|
|
@@ -2185,33 +2144,6 @@ export const managerFAbi = [
|
|
|
2185
2144
|
},
|
|
2186
2145
|
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2187
2146
|
{ name: 'gen', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2188
|
-
{
|
|
2189
|
-
name: 'amount',
|
|
2190
|
-
internalType: 'uint256',
|
|
2191
|
-
type: 'uint256',
|
|
2192
|
-
indexed: false,
|
|
2193
|
-
},
|
|
2194
|
-
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2195
|
-
{
|
|
2196
|
-
name: 'toCaller',
|
|
2197
|
-
internalType: 'uint256',
|
|
2198
|
-
type: 'uint256',
|
|
2199
|
-
indexed: false,
|
|
2200
|
-
},
|
|
2201
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2202
|
-
],
|
|
2203
|
-
name: 'IncomeHarvested',
|
|
2204
|
-
},
|
|
2205
|
-
{
|
|
2206
|
-
type: 'event',
|
|
2207
|
-
anonymous: false,
|
|
2208
|
-
inputs: [
|
|
2209
|
-
{
|
|
2210
|
-
name: 'poolId',
|
|
2211
|
-
internalType: 'bytes32',
|
|
2212
|
-
type: 'bytes32',
|
|
2213
|
-
indexed: true,
|
|
2214
|
-
},
|
|
2215
2147
|
{
|
|
2216
2148
|
name: 'income',
|
|
2217
2149
|
internalType: 'uint256',
|
|
@@ -2219,25 +2151,21 @@ export const managerFAbi = [
|
|
|
2219
2151
|
indexed: false,
|
|
2220
2152
|
},
|
|
2221
2153
|
{
|
|
2222
|
-
name: '
|
|
2223
|
-
internalType: 'address',
|
|
2224
|
-
type: 'address',
|
|
2225
|
-
indexed: false,
|
|
2226
|
-
},
|
|
2227
|
-
{
|
|
2228
|
-
name: 'toPayee',
|
|
2154
|
+
name: 'capital',
|
|
2229
2155
|
internalType: 'uint256',
|
|
2230
2156
|
type: 'uint256',
|
|
2231
2157
|
indexed: false,
|
|
2232
2158
|
},
|
|
2159
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2233
2160
|
{
|
|
2234
|
-
name: '
|
|
2161
|
+
name: 'toOperator',
|
|
2235
2162
|
internalType: 'uint256',
|
|
2236
2163
|
type: 'uint256',
|
|
2237
2164
|
indexed: false,
|
|
2238
2165
|
},
|
|
2166
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2239
2167
|
],
|
|
2240
|
-
name: '
|
|
2168
|
+
name: 'IncomeHarvested',
|
|
2241
2169
|
},
|
|
2242
2170
|
{
|
|
2243
2171
|
type: 'event',
|
|
@@ -2361,22 +2289,6 @@ export const managerFAbi = [
|
|
|
2361
2289
|
],
|
|
2362
2290
|
name: 'OperatorSet',
|
|
2363
2291
|
},
|
|
2364
|
-
{
|
|
2365
|
-
type: 'event',
|
|
2366
|
-
anonymous: false,
|
|
2367
|
-
inputs: [
|
|
2368
|
-
{
|
|
2369
|
-
name: 'poolId',
|
|
2370
|
-
internalType: 'bytes32',
|
|
2371
|
-
type: 'bytes32',
|
|
2372
|
-
indexed: true,
|
|
2373
|
-
},
|
|
2374
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
2375
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
2376
|
-
{ name: 'gates', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
2377
|
-
],
|
|
2378
|
-
name: 'PolicyMigrated',
|
|
2379
|
-
},
|
|
2380
2292
|
{
|
|
2381
2293
|
type: 'event',
|
|
2382
2294
|
anonymous: false,
|
|
@@ -2394,7 +2306,7 @@ export const managerFAbi = [
|
|
|
2394
2306
|
indexed: true,
|
|
2395
2307
|
},
|
|
2396
2308
|
{
|
|
2397
|
-
name: '
|
|
2309
|
+
name: 'policy',
|
|
2398
2310
|
internalType: 'address',
|
|
2399
2311
|
type: 'address',
|
|
2400
2312
|
indexed: true,
|
|
@@ -2406,21 +2318,15 @@ export const managerFAbi = [
|
|
|
2406
2318
|
indexed: false,
|
|
2407
2319
|
},
|
|
2408
2320
|
{
|
|
2409
|
-
name: '
|
|
2410
|
-
internalType: '
|
|
2411
|
-
type: '
|
|
2412
|
-
indexed: false,
|
|
2413
|
-
},
|
|
2414
|
-
{
|
|
2415
|
-
name: 'policy',
|
|
2416
|
-
internalType: 'address',
|
|
2417
|
-
type: 'address',
|
|
2321
|
+
name: 'swapFeeIdx',
|
|
2322
|
+
internalType: 'uint8',
|
|
2323
|
+
type: 'uint8',
|
|
2418
2324
|
indexed: false,
|
|
2419
2325
|
},
|
|
2420
2326
|
{
|
|
2421
|
-
name: '
|
|
2422
|
-
internalType: '
|
|
2423
|
-
type: '
|
|
2327
|
+
name: 'salt',
|
|
2328
|
+
internalType: 'bytes32',
|
|
2329
|
+
type: 'bytes32',
|
|
2424
2330
|
indexed: false,
|
|
2425
2331
|
},
|
|
2426
2332
|
],
|
|
@@ -2724,7 +2630,6 @@ export const managerFAbi = [
|
|
|
2724
2630
|
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2725
2631
|
{ type: 'error', inputs: [], name: 'BadTerms' },
|
|
2726
2632
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2727
|
-
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2728
2633
|
{ type: 'error', inputs: [], name: 'CapReached' },
|
|
2729
2634
|
{ type: 'error', inputs: [], name: 'HarvestLimit' },
|
|
2730
2635
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
@@ -2741,12 +2646,13 @@ export const managerFAbi = [
|
|
|
2741
2646
|
{ type: 'error', inputs: [], name: 'NotCreator' },
|
|
2742
2647
|
{ type: 'error', inputs: [], name: 'NotFrozen' },
|
|
2743
2648
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
2649
|
+
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
2744
2650
|
{ type: 'error', inputs: [], name: 'NotPolicy' },
|
|
2745
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
2746
2651
|
{ type: 'error', inputs: [], name: 'NotSeeded' },
|
|
2747
2652
|
{ type: 'error', inputs: [], name: 'NotTreasury' },
|
|
2748
|
-
{ type: 'error', inputs: [], name: 'PadForwardOnly' },
|
|
2749
2653
|
{ type: 'error', inputs: [], name: 'PadNeverCloses' },
|
|
2654
|
+
{ type: 'error', inputs: [], name: 'PolicyNotApproved' },
|
|
2655
|
+
{ type: 'error', inputs: [], name: 'PoolActive' },
|
|
2750
2656
|
{ type: 'error', inputs: [], name: 'PoolAlreadyInitialized' },
|
|
2751
2657
|
{ type: 'error', inputs: [], name: 'PoolLocked' },
|
|
2752
2658
|
{ type: 'error', inputs: [], name: 'PoolNotInitialized' },
|
|
@@ -2768,31 +2674,107 @@ export const managerFAbi = [
|
|
|
2768
2674
|
] as const
|
|
2769
2675
|
|
|
2770
2676
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2771
|
-
//
|
|
2677
|
+
// PolicyF
|
|
2772
2678
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2773
2679
|
|
|
2774
|
-
export const
|
|
2680
|
+
export const policyFAbi = [
|
|
2775
2681
|
{
|
|
2776
2682
|
type: 'constructor',
|
|
2777
|
-
inputs: [
|
|
2683
|
+
inputs: [
|
|
2684
|
+
{ name: 'manager_', internalType: 'address', type: 'address' },
|
|
2685
|
+
{
|
|
2686
|
+
name: 'p',
|
|
2687
|
+
internalType: 'struct PolicyParams',
|
|
2688
|
+
type: 'tuple',
|
|
2689
|
+
components: [
|
|
2690
|
+
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
2691
|
+
{ name: 'open', internalType: 'bool', type: 'bool' },
|
|
2692
|
+
{ name: 'seedToDead', internalType: 'bool', type: 'bool' },
|
|
2693
|
+
{ name: 'incomeHarvestOnly', internalType: 'bool', type: 'bool' },
|
|
2694
|
+
{ name: 'incomeTaxRate', internalType: 'uint256', type: 'uint256' },
|
|
2695
|
+
{ name: 'feeMask', internalType: 'uint8', type: 'uint8' },
|
|
2696
|
+
{ name: 'lenMax', internalType: 'uint8', type: 'uint8' },
|
|
2697
|
+
{ name: 'lnCapMin', internalType: 'uint24', type: 'uint24' },
|
|
2698
|
+
{ name: 'quoteBuffer', internalType: 'uint256', type: 'uint256' },
|
|
2699
|
+
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
2700
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
2701
|
+
],
|
|
2702
|
+
},
|
|
2703
|
+
],
|
|
2778
2704
|
stateMutability: 'nonpayable',
|
|
2779
2705
|
},
|
|
2780
2706
|
{
|
|
2781
2707
|
type: 'function',
|
|
2782
|
-
inputs: [
|
|
2708
|
+
inputs: [],
|
|
2709
|
+
name: 'MINT',
|
|
2710
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2711
|
+
stateMutability: 'view',
|
|
2712
|
+
},
|
|
2713
|
+
{
|
|
2714
|
+
type: 'function',
|
|
2715
|
+
inputs: [],
|
|
2716
|
+
name: 'SWAP',
|
|
2717
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2718
|
+
stateMutability: 'view',
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
type: 'function',
|
|
2722
|
+
inputs: [
|
|
2723
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2724
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2725
|
+
],
|
|
2726
|
+
name: 'appointOperator',
|
|
2727
|
+
outputs: [],
|
|
2728
|
+
stateMutability: 'nonpayable',
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
type: 'function',
|
|
2732
|
+
inputs: [],
|
|
2783
2733
|
name: 'authority',
|
|
2784
2734
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2785
|
-
stateMutability: '
|
|
2735
|
+
stateMutability: 'view',
|
|
2786
2736
|
},
|
|
2787
2737
|
{
|
|
2788
2738
|
type: 'function',
|
|
2789
|
-
inputs: [
|
|
2790
|
-
name: '
|
|
2791
|
-
outputs: [
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2739
|
+
inputs: [],
|
|
2740
|
+
name: 'baseCurated',
|
|
2741
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2742
|
+
stateMutability: 'view',
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
type: 'function',
|
|
2746
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2747
|
+
name: 'baseListed',
|
|
2748
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2749
|
+
stateMutability: 'view',
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
type: 'function',
|
|
2753
|
+
inputs: [],
|
|
2754
|
+
name: 'feeMask',
|
|
2755
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2756
|
+
stateMutability: 'view',
|
|
2757
|
+
},
|
|
2758
|
+
{
|
|
2759
|
+
type: 'function',
|
|
2760
|
+
inputs: [],
|
|
2761
|
+
name: 'fixedAuthority',
|
|
2762
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2763
|
+
stateMutability: 'view',
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
type: 'function',
|
|
2767
|
+
inputs: [],
|
|
2768
|
+
name: 'incomeHarvestOnly',
|
|
2769
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2770
|
+
stateMutability: 'view',
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
type: 'function',
|
|
2774
|
+
inputs: [],
|
|
2775
|
+
name: 'incomeTaxRate',
|
|
2776
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2777
|
+
stateMutability: 'view',
|
|
2796
2778
|
},
|
|
2797
2779
|
{
|
|
2798
2780
|
type: 'function',
|
|
@@ -2801,6 +2783,20 @@ export const orphanPolicyFAbi = [
|
|
|
2801
2783
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2802
2784
|
stateMutability: 'pure',
|
|
2803
2785
|
},
|
|
2786
|
+
{
|
|
2787
|
+
type: 'function',
|
|
2788
|
+
inputs: [],
|
|
2789
|
+
name: 'lenMax',
|
|
2790
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
2791
|
+
stateMutability: 'view',
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
type: 'function',
|
|
2795
|
+
inputs: [],
|
|
2796
|
+
name: 'lnCapMin',
|
|
2797
|
+
outputs: [{ name: '', internalType: 'uint24', type: 'uint24' }],
|
|
2798
|
+
stateMutability: 'view',
|
|
2799
|
+
},
|
|
2804
2800
|
{
|
|
2805
2801
|
type: 'function',
|
|
2806
2802
|
inputs: [],
|
|
@@ -2811,474 +2807,211 @@ export const orphanPolicyFAbi = [
|
|
|
2811
2807
|
{
|
|
2812
2808
|
type: 'function',
|
|
2813
2809
|
inputs: [
|
|
2814
|
-
{
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
type: 'tuple',
|
|
2818
|
-
components: [
|
|
2819
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2820
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2821
|
-
{
|
|
2822
|
-
name: 'action',
|
|
2823
|
-
internalType: 'enum IPolicy.Action',
|
|
2824
|
-
type: 'uint8',
|
|
2825
|
-
},
|
|
2826
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2827
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2828
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
2829
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
2830
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2831
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
2832
|
-
],
|
|
2833
|
-
},
|
|
2810
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2811
|
+
{ name: 'action', internalType: 'enum IPolicyF.Action', type: 'uint8' },
|
|
2812
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2834
2813
|
],
|
|
2835
2814
|
name: 'may',
|
|
2836
2815
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2837
|
-
stateMutability: '
|
|
2838
|
-
},
|
|
2839
|
-
{
|
|
2840
|
-
type: 'function',
|
|
2841
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2842
|
-
name: 'nameOf',
|
|
2843
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2844
|
-
stateMutability: 'pure',
|
|
2816
|
+
stateMutability: 'view',
|
|
2845
2817
|
},
|
|
2846
2818
|
{
|
|
2847
2819
|
type: 'function',
|
|
2848
2820
|
inputs: [
|
|
2849
2821
|
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2850
|
-
{ name: '', internalType: '
|
|
2851
|
-
{
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
type: 'tuple',
|
|
2855
|
-
components: [
|
|
2856
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2857
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2858
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2859
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2860
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
2861
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
2862
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2863
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2864
|
-
],
|
|
2865
|
-
},
|
|
2866
|
-
],
|
|
2867
|
-
name: 'onInitialize',
|
|
2868
|
-
outputs: [
|
|
2869
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
2870
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
2871
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2822
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
2823
|
+
{ name: 'quoteAmount', internalType: 'uint256', type: 'uint256' },
|
|
2824
|
+
{ name: 'lnCapOverSeed', internalType: 'uint24', type: 'uint24' },
|
|
2825
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2872
2826
|
],
|
|
2873
|
-
|
|
2827
|
+
name: 'mayDeploy',
|
|
2828
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2829
|
+
stateMutability: 'view',
|
|
2874
2830
|
},
|
|
2875
2831
|
{
|
|
2876
2832
|
type: 'function',
|
|
2877
2833
|
inputs: [
|
|
2878
2834
|
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2879
|
-
{ name: '', internalType: '
|
|
2880
|
-
{
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
type: 'tuple',
|
|
2884
|
-
components: [
|
|
2885
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2886
|
-
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
2887
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2888
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2889
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
2890
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
2891
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2892
|
-
],
|
|
2893
|
-
},
|
|
2894
|
-
],
|
|
2895
|
-
name: 'onInitialize',
|
|
2896
|
-
outputs: [
|
|
2897
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
2898
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
2899
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2900
|
-
],
|
|
2901
|
-
stateMutability: 'pure',
|
|
2902
|
-
},
|
|
2903
|
-
{
|
|
2904
|
-
type: 'function',
|
|
2905
|
-
inputs: [
|
|
2906
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2907
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2908
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2909
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2910
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
2835
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
2836
|
+
{ name: 'extra', internalType: 'uint256', type: 'uint256' },
|
|
2837
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
2838
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2911
2839
|
],
|
|
2912
|
-
name: '
|
|
2913
|
-
outputs: [{ name: '', internalType: '
|
|
2840
|
+
name: 'mayHarvest',
|
|
2841
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
2914
2842
|
stateMutability: 'view',
|
|
2915
2843
|
},
|
|
2916
2844
|
{
|
|
2917
2845
|
type: 'function',
|
|
2918
2846
|
inputs: [
|
|
2919
|
-
{
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2926
|
-
{
|
|
2927
|
-
name: 'action',
|
|
2928
|
-
internalType: 'enum IPolicy.Action',
|
|
2929
|
-
type: 'uint8',
|
|
2930
|
-
},
|
|
2931
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
2932
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2933
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
2934
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
2935
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2936
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
2937
|
-
],
|
|
2938
|
-
},
|
|
2847
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2848
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
2849
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2850
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
2851
|
+
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
2852
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
2939
2853
|
],
|
|
2940
|
-
name: '
|
|
2854
|
+
name: 'mayInit',
|
|
2941
2855
|
outputs: [
|
|
2942
|
-
{
|
|
2943
|
-
|
|
2944
|
-
internalType: 'struct IPolicy.Terms',
|
|
2945
|
-
type: 'tuple',
|
|
2946
|
-
components: [
|
|
2947
|
-
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
2948
|
-
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
2949
|
-
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
2950
|
-
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
2951
|
-
],
|
|
2952
|
-
},
|
|
2856
|
+
{ name: 'flags', internalType: 'uint8', type: 'uint8' },
|
|
2857
|
+
{ name: 'op', internalType: 'address', type: 'address' },
|
|
2953
2858
|
],
|
|
2954
|
-
stateMutability: '
|
|
2859
|
+
stateMutability: 'nonpayable',
|
|
2955
2860
|
},
|
|
2956
2861
|
{
|
|
2957
2862
|
type: 'function',
|
|
2958
|
-
inputs: [],
|
|
2959
|
-
name: '
|
|
2960
|
-
outputs: [{ name: '', internalType: '
|
|
2863
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2864
|
+
name: 'mintMode',
|
|
2865
|
+
outputs: [{ name: '', internalType: 'enum IPolicyF.Mode', type: 'uint8' }],
|
|
2961
2866
|
stateMutability: 'view',
|
|
2962
2867
|
},
|
|
2963
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
2964
|
-
{ type: 'error', inputs: [], name: 'Refused' },
|
|
2965
|
-
] as const
|
|
2966
|
-
|
|
2967
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2968
|
-
// PadPolicy
|
|
2969
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2970
|
-
|
|
2971
|
-
export const padPolicyAbi = [
|
|
2972
2868
|
{
|
|
2973
|
-
type: '
|
|
2974
|
-
inputs: [
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
{ name: 'thresholdGrowth_', internalType: 'uint256', type: 'uint256' },
|
|
2979
|
-
{ name: 'creatorShareMin_', internalType: 'uint256', type: 'uint256' },
|
|
2980
|
-
{ name: 'creatorShareMax_', internalType: 'uint256', type: 'uint256' },
|
|
2981
|
-
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
2982
|
-
{ name: 'bases', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2983
|
-
],
|
|
2984
|
-
stateMutability: 'nonpayable',
|
|
2869
|
+
type: 'function',
|
|
2870
|
+
inputs: [],
|
|
2871
|
+
name: 'open',
|
|
2872
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2873
|
+
stateMutability: 'view',
|
|
2985
2874
|
},
|
|
2986
2875
|
{
|
|
2987
2876
|
type: 'function',
|
|
2988
2877
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2989
|
-
name: '
|
|
2878
|
+
name: 'operator',
|
|
2990
2879
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2991
2880
|
stateMutability: 'view',
|
|
2992
2881
|
},
|
|
2993
2882
|
{
|
|
2994
2883
|
type: 'function',
|
|
2995
2884
|
inputs: [],
|
|
2996
|
-
name: '
|
|
2885
|
+
name: 'quoteBuffer',
|
|
2997
2886
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2998
2887
|
stateMutability: 'view',
|
|
2999
2888
|
},
|
|
3000
2889
|
{
|
|
3001
2890
|
type: 'function',
|
|
3002
2891
|
inputs: [],
|
|
3003
|
-
name: '
|
|
3004
|
-
outputs: [{ name: '', internalType: '
|
|
2892
|
+
name: 'quoteCurated',
|
|
2893
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3005
2894
|
stateMutability: 'view',
|
|
3006
2895
|
},
|
|
3007
2896
|
{
|
|
3008
2897
|
type: 'function',
|
|
3009
|
-
inputs: [{ name: '', internalType: '
|
|
3010
|
-
name: '
|
|
3011
|
-
outputs: [{ name: '', internalType: '
|
|
2898
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2899
|
+
name: 'quoteListed',
|
|
2900
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3012
2901
|
stateMutability: 'view',
|
|
3013
2902
|
},
|
|
3014
2903
|
{
|
|
3015
2904
|
type: 'function',
|
|
3016
|
-
inputs: [{ name: '', internalType: '
|
|
3017
|
-
name: '
|
|
3018
|
-
outputs: [
|
|
3019
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3020
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3021
|
-
],
|
|
2905
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2906
|
+
name: 'rights',
|
|
2907
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3022
2908
|
stateMutability: 'view',
|
|
3023
2909
|
},
|
|
3024
2910
|
{
|
|
3025
2911
|
type: 'function',
|
|
3026
2912
|
inputs: [],
|
|
3027
|
-
name: '
|
|
3028
|
-
outputs: [{ name: '', internalType: '
|
|
2913
|
+
name: 'seedToDead',
|
|
2914
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3029
2915
|
stateMutability: 'view',
|
|
3030
2916
|
},
|
|
3031
2917
|
{
|
|
3032
2918
|
type: 'function',
|
|
3033
|
-
inputs: [
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
2919
|
+
inputs: [
|
|
2920
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2921
|
+
{ name: 'mode', internalType: 'enum IPolicyF.Mode', type: 'uint8' },
|
|
2922
|
+
],
|
|
2923
|
+
name: 'setMintMode',
|
|
2924
|
+
outputs: [],
|
|
2925
|
+
stateMutability: 'nonpayable',
|
|
3037
2926
|
},
|
|
3038
2927
|
{
|
|
3039
2928
|
type: 'function',
|
|
3040
|
-
inputs: [
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
2929
|
+
inputs: [
|
|
2930
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2931
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
2932
|
+
],
|
|
2933
|
+
name: 'setName',
|
|
2934
|
+
outputs: [],
|
|
2935
|
+
stateMutability: 'nonpayable',
|
|
3044
2936
|
},
|
|
3045
2937
|
{
|
|
3046
2938
|
type: 'function',
|
|
3047
|
-
inputs: [
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
2939
|
+
inputs: [
|
|
2940
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
2941
|
+
{ name: 'bits', internalType: 'uint8', type: 'uint8' },
|
|
2942
|
+
],
|
|
2943
|
+
name: 'setRights',
|
|
2944
|
+
outputs: [],
|
|
2945
|
+
stateMutability: 'nonpayable',
|
|
3051
2946
|
},
|
|
3052
2947
|
{
|
|
3053
2948
|
type: 'function',
|
|
3054
2949
|
inputs: [
|
|
3055
|
-
{
|
|
3056
|
-
|
|
3057
|
-
internalType: 'struct IPolicy.Ask',
|
|
3058
|
-
type: 'tuple',
|
|
3059
|
-
components: [
|
|
3060
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3061
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3062
|
-
{
|
|
3063
|
-
name: 'action',
|
|
3064
|
-
internalType: 'enum IPolicy.Action',
|
|
3065
|
-
type: 'uint8',
|
|
3066
|
-
},
|
|
3067
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3068
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3069
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3070
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3071
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3072
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3073
|
-
],
|
|
3074
|
-
},
|
|
2950
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2951
|
+
{ name: 'mode', internalType: 'enum IPolicyF.Mode', type: 'uint8' },
|
|
3075
2952
|
],
|
|
3076
|
-
name: '
|
|
3077
|
-
outputs: [
|
|
3078
|
-
stateMutability: '
|
|
2953
|
+
name: 'setSwapMode',
|
|
2954
|
+
outputs: [],
|
|
2955
|
+
stateMutability: 'nonpayable',
|
|
3079
2956
|
},
|
|
3080
2957
|
{
|
|
3081
2958
|
type: 'function',
|
|
3082
2959
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3083
|
-
name: '
|
|
3084
|
-
outputs: [{ name: '', internalType: '
|
|
2960
|
+
name: 'swapMode',
|
|
2961
|
+
outputs: [{ name: '', internalType: 'enum IPolicyF.Mode', type: 'uint8' }],
|
|
3085
2962
|
stateMutability: 'view',
|
|
3086
2963
|
},
|
|
3087
2964
|
{
|
|
3088
2965
|
type: 'function',
|
|
3089
|
-
inputs: [
|
|
3090
|
-
|
|
3091
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3092
|
-
{
|
|
3093
|
-
name: '',
|
|
3094
|
-
internalType: 'struct PoolKeyC',
|
|
3095
|
-
type: 'tuple',
|
|
3096
|
-
components: [
|
|
3097
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3098
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3099
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3100
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3101
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3102
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3103
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3104
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3105
|
-
],
|
|
3106
|
-
},
|
|
3107
|
-
],
|
|
3108
|
-
name: 'onInitialize',
|
|
2966
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2967
|
+
name: 'taxOf',
|
|
3109
2968
|
outputs: [
|
|
3110
|
-
{ name: '', internalType: '
|
|
3111
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3112
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2969
|
+
{ name: 'payer', internalType: 'address', type: 'address' },
|
|
2970
|
+
{ name: 'rate', internalType: 'uint256', type: 'uint256' },
|
|
3113
2971
|
],
|
|
3114
|
-
stateMutability: '
|
|
2972
|
+
stateMutability: 'view',
|
|
3115
2973
|
},
|
|
3116
2974
|
{
|
|
3117
|
-
type: '
|
|
2975
|
+
type: 'event',
|
|
2976
|
+
anonymous: false,
|
|
3118
2977
|
inputs: [
|
|
3119
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3120
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3121
2978
|
{
|
|
3122
|
-
name: '
|
|
3123
|
-
internalType: '
|
|
3124
|
-
type: '
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3133
|
-
],
|
|
2979
|
+
name: 'poolId',
|
|
2980
|
+
internalType: 'bytes32',
|
|
2981
|
+
type: 'bytes32',
|
|
2982
|
+
indexed: true,
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
name: 'mode',
|
|
2986
|
+
internalType: 'enum IPolicyF.Mode',
|
|
2987
|
+
type: 'uint8',
|
|
2988
|
+
indexed: false,
|
|
3134
2989
|
},
|
|
3135
2990
|
],
|
|
3136
|
-
name: '
|
|
3137
|
-
outputs: [
|
|
3138
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
3139
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3140
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3141
|
-
],
|
|
3142
|
-
stateMutability: 'nonpayable',
|
|
2991
|
+
name: 'MintModeSet',
|
|
3143
2992
|
},
|
|
3144
2993
|
{
|
|
3145
|
-
type: '
|
|
2994
|
+
type: 'event',
|
|
2995
|
+
anonymous: false,
|
|
3146
2996
|
inputs: [
|
|
3147
|
-
{
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
2997
|
+
{
|
|
2998
|
+
name: 'poolId',
|
|
2999
|
+
internalType: 'bytes32',
|
|
3000
|
+
type: 'bytes32',
|
|
3001
|
+
indexed: true,
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
name: 'name',
|
|
3005
|
+
internalType: 'bytes32',
|
|
3006
|
+
type: 'bytes32',
|
|
3007
|
+
indexed: false,
|
|
3008
|
+
},
|
|
3152
3009
|
],
|
|
3153
|
-
name: '
|
|
3154
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3155
|
-
stateMutability: 'nonpayable',
|
|
3010
|
+
name: 'NameSet',
|
|
3156
3011
|
},
|
|
3157
3012
|
{
|
|
3158
|
-
type: '
|
|
3159
|
-
|
|
3160
|
-
{
|
|
3161
|
-
name: 'a',
|
|
3162
|
-
internalType: 'struct IPolicy.Ask',
|
|
3163
|
-
type: 'tuple',
|
|
3164
|
-
components: [
|
|
3165
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3166
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3167
|
-
{
|
|
3168
|
-
name: 'action',
|
|
3169
|
-
internalType: 'enum IPolicy.Action',
|
|
3170
|
-
type: 'uint8',
|
|
3171
|
-
},
|
|
3172
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3173
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3174
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3175
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3176
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3177
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3178
|
-
],
|
|
3179
|
-
},
|
|
3180
|
-
],
|
|
3181
|
-
name: 'onRegenerate',
|
|
3182
|
-
outputs: [
|
|
3183
|
-
{
|
|
3184
|
-
name: 't',
|
|
3185
|
-
internalType: 'struct IPolicy.Terms',
|
|
3186
|
-
type: 'tuple',
|
|
3187
|
-
components: [
|
|
3188
|
-
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
3189
|
-
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
3190
|
-
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
3191
|
-
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
3192
|
-
],
|
|
3193
|
-
},
|
|
3194
|
-
],
|
|
3195
|
-
stateMutability: 'nonpayable',
|
|
3196
|
-
},
|
|
3197
|
-
{
|
|
3198
|
-
type: 'function',
|
|
3199
|
-
inputs: [
|
|
3200
|
-
{ name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3201
|
-
{ name: 'nonce', internalType: 'uint128', type: 'uint128' },
|
|
3202
|
-
],
|
|
3203
|
-
name: 'pack',
|
|
3204
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3205
|
-
stateMutability: 'pure',
|
|
3206
|
-
},
|
|
3207
|
-
{
|
|
3208
|
-
type: 'function',
|
|
3209
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3210
|
-
name: 'padOf',
|
|
3211
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3212
|
-
stateMutability: 'view',
|
|
3213
|
-
},
|
|
3214
|
-
{
|
|
3215
|
-
type: 'function',
|
|
3216
|
-
inputs: [],
|
|
3217
|
-
name: 'registry',
|
|
3218
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3219
|
-
stateMutability: 'view',
|
|
3220
|
-
},
|
|
3221
|
-
{
|
|
3222
|
-
type: 'function',
|
|
3223
|
-
inputs: [
|
|
3224
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3225
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
3226
|
-
],
|
|
3227
|
-
name: 'setName',
|
|
3228
|
-
outputs: [],
|
|
3229
|
-
stateMutability: 'nonpayable',
|
|
3230
|
-
},
|
|
3231
|
-
{
|
|
3232
|
-
type: 'function',
|
|
3233
|
-
inputs: [],
|
|
3234
|
-
name: 'sponsor',
|
|
3235
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3236
|
-
stateMutability: 'view',
|
|
3237
|
-
},
|
|
3238
|
-
{
|
|
3239
|
-
type: 'function',
|
|
3240
|
-
inputs: [
|
|
3241
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3242
|
-
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
3243
|
-
],
|
|
3244
|
-
name: 'threshold',
|
|
3245
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3246
|
-
stateMutability: 'view',
|
|
3247
|
-
},
|
|
3248
|
-
{
|
|
3249
|
-
type: 'function',
|
|
3250
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3251
|
-
name: 'thresholdBaseOf',
|
|
3252
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3253
|
-
stateMutability: 'view',
|
|
3254
|
-
},
|
|
3255
|
-
{
|
|
3256
|
-
type: 'function',
|
|
3257
|
-
inputs: [],
|
|
3258
|
-
name: 'thresholdGrowth',
|
|
3259
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3260
|
-
stateMutability: 'view',
|
|
3261
|
-
},
|
|
3262
|
-
{
|
|
3263
|
-
type: 'function',
|
|
3264
|
-
inputs: [
|
|
3265
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3266
|
-
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
3267
|
-
],
|
|
3268
|
-
name: 'thresholdOf',
|
|
3269
|
-
outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
|
|
3270
|
-
stateMutability: 'view',
|
|
3271
|
-
},
|
|
3272
|
-
{
|
|
3273
|
-
type: 'function',
|
|
3274
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3275
|
-
name: 'thresholdSet',
|
|
3276
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3277
|
-
stateMutability: 'view',
|
|
3278
|
-
},
|
|
3279
|
-
{
|
|
3280
|
-
type: 'event',
|
|
3281
|
-
anonymous: false,
|
|
3013
|
+
type: 'event',
|
|
3014
|
+
anonymous: false,
|
|
3282
3015
|
inputs: [
|
|
3283
3016
|
{
|
|
3284
3017
|
name: 'poolId',
|
|
@@ -3289,46 +3022,16 @@ export const padPolicyAbi = [
|
|
|
3289
3022
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3290
3023
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3291
3024
|
],
|
|
3292
|
-
name: '
|
|
3293
|
-
},
|
|
3294
|
-
{
|
|
3295
|
-
type: 'event',
|
|
3296
|
-
anonymous: false,
|
|
3297
|
-
inputs: [
|
|
3298
|
-
{
|
|
3299
|
-
name: 'poolId',
|
|
3300
|
-
internalType: 'bytes32',
|
|
3301
|
-
type: 'bytes32',
|
|
3302
|
-
indexed: true,
|
|
3303
|
-
},
|
|
3304
|
-
{ name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3305
|
-
{
|
|
3306
|
-
name: 'income',
|
|
3307
|
-
internalType: 'uint256',
|
|
3308
|
-
type: 'uint256',
|
|
3309
|
-
indexed: false,
|
|
3310
|
-
},
|
|
3311
|
-
],
|
|
3312
|
-
name: 'Graduated',
|
|
3025
|
+
name: 'OperatorAppointed',
|
|
3313
3026
|
},
|
|
3314
3027
|
{
|
|
3315
3028
|
type: 'event',
|
|
3316
3029
|
anonymous: false,
|
|
3317
3030
|
inputs: [
|
|
3318
|
-
{
|
|
3319
|
-
|
|
3320
|
-
internalType: 'bytes32',
|
|
3321
|
-
type: 'bytes32',
|
|
3322
|
-
indexed: true,
|
|
3323
|
-
},
|
|
3324
|
-
{
|
|
3325
|
-
name: 'name',
|
|
3326
|
-
internalType: 'bytes32',
|
|
3327
|
-
type: 'bytes32',
|
|
3328
|
-
indexed: false,
|
|
3329
|
-
},
|
|
3031
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
3032
|
+
{ name: 'bits', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
3330
3033
|
],
|
|
3331
|
-
name: '
|
|
3034
|
+
name: 'RightsSet',
|
|
3332
3035
|
},
|
|
3333
3036
|
{
|
|
3334
3037
|
type: 'event',
|
|
@@ -3341,292 +3044,229 @@ export const padPolicyAbi = [
|
|
|
3341
3044
|
indexed: true,
|
|
3342
3045
|
},
|
|
3343
3046
|
{
|
|
3344
|
-
name: '
|
|
3345
|
-
internalType: '
|
|
3346
|
-
type: '
|
|
3047
|
+
name: 'mode',
|
|
3048
|
+
internalType: 'enum IPolicyF.Mode',
|
|
3049
|
+
type: 'uint8',
|
|
3347
3050
|
indexed: false,
|
|
3348
3051
|
},
|
|
3349
3052
|
],
|
|
3350
|
-
name: '
|
|
3053
|
+
name: 'SwapModeSet',
|
|
3351
3054
|
},
|
|
3055
|
+
{ type: 'error', inputs: [], name: 'AlreadyHeld' },
|
|
3056
|
+
{ type: 'error', inputs: [], name: 'BadParams' },
|
|
3057
|
+
{ type: 'error', inputs: [], name: 'BadRights' },
|
|
3352
3058
|
{
|
|
3353
|
-
type: '
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
{
|
|
3357
|
-
name: 'quote',
|
|
3358
|
-
internalType: 'address',
|
|
3359
|
-
type: 'address',
|
|
3360
|
-
indexed: true,
|
|
3361
|
-
},
|
|
3362
|
-
{
|
|
3363
|
-
name: 'thresholdBase',
|
|
3364
|
-
internalType: 'uint256',
|
|
3365
|
-
type: 'uint256',
|
|
3366
|
-
indexed: false,
|
|
3367
|
-
},
|
|
3368
|
-
],
|
|
3369
|
-
name: 'ThresholdBaseSet',
|
|
3059
|
+
type: 'error',
|
|
3060
|
+
inputs: [{ name: 'base', internalType: 'address', type: 'address' }],
|
|
3061
|
+
name: 'BaseNotListed',
|
|
3370
3062
|
},
|
|
3371
|
-
{ type: 'error', inputs: [], name: '
|
|
3372
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
3373
|
-
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
3063
|
+
{ type: 'error', inputs: [], name: 'CapTooClose' },
|
|
3374
3064
|
{
|
|
3375
3065
|
type: 'error',
|
|
3376
|
-
inputs: [{ name: '
|
|
3377
|
-
name: '
|
|
3066
|
+
inputs: [{ name: 'idx', internalType: 'uint256', type: 'uint256' }],
|
|
3067
|
+
name: 'FeeNotListed',
|
|
3378
3068
|
},
|
|
3069
|
+
{ type: 'error', inputs: [], name: 'GatesUnavailable' },
|
|
3070
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
3071
|
+
{ type: 'error', inputs: [], name: 'IncomeOnly' },
|
|
3072
|
+
{ type: 'error', inputs: [], name: 'ModeOrder' },
|
|
3379
3073
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
3380
|
-
{ type: 'error', inputs: [], name: '
|
|
3074
|
+
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
3381
3075
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3382
|
-
{ type: 'error', inputs: [], name: '
|
|
3383
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
3384
|
-
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
3076
|
+
{ type: 'error', inputs: [], name: 'NotOperator' },
|
|
3385
3077
|
{
|
|
3386
3078
|
type: 'error',
|
|
3387
|
-
inputs: [
|
|
3388
|
-
|
|
3389
|
-
{ name: 'pad', internalType: 'bytes32', type: 'bytes32' },
|
|
3390
|
-
],
|
|
3391
|
-
name: 'PadExists',
|
|
3079
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
3080
|
+
name: 'QuoteNotListed',
|
|
3392
3081
|
},
|
|
3393
|
-
{ type: 'error', inputs: [], name: '
|
|
3082
|
+
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
3394
3083
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
3084
|
+
{ type: 'error', inputs: [], name: 'TooManyLegs' },
|
|
3395
3085
|
] as const
|
|
3396
3086
|
|
|
3397
3087
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3398
|
-
//
|
|
3088
|
+
// PolicyRegistry
|
|
3399
3089
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3400
3090
|
|
|
3401
|
-
export const
|
|
3091
|
+
export const policyRegistryAbi = [
|
|
3402
3092
|
{
|
|
3403
3093
|
type: 'constructor',
|
|
3404
3094
|
inputs: [
|
|
3405
|
-
{ name: '
|
|
3406
|
-
{ name: 'sponsor_', internalType: 'address', type: 'address' },
|
|
3407
|
-
{ name: 'incomeTaxRate_', internalType: 'uint256', type: 'uint256' },
|
|
3408
|
-
{ name: 'minQuoteRatio_', internalType: 'uint256', type: 'uint256' },
|
|
3095
|
+
{ name: '_logAuthority', internalType: 'address', type: 'address' },
|
|
3409
3096
|
],
|
|
3410
3097
|
stateMutability: 'nonpayable',
|
|
3411
3098
|
},
|
|
3412
3099
|
{
|
|
3413
3100
|
type: 'function',
|
|
3414
|
-
inputs: [
|
|
3415
|
-
name: '
|
|
3416
|
-
outputs: [
|
|
3101
|
+
inputs: [],
|
|
3102
|
+
name: 'acceptLogAuthority',
|
|
3103
|
+
outputs: [],
|
|
3104
|
+
stateMutability: 'nonpayable',
|
|
3105
|
+
},
|
|
3106
|
+
{
|
|
3107
|
+
type: 'function',
|
|
3108
|
+
inputs: [
|
|
3109
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3110
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
3111
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3112
|
+
],
|
|
3113
|
+
name: 'admit',
|
|
3114
|
+
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
3417
3115
|
stateMutability: 'view',
|
|
3418
3116
|
},
|
|
3419
3117
|
{
|
|
3420
3118
|
type: 'function',
|
|
3421
|
-
inputs: [
|
|
3422
|
-
|
|
3119
|
+
inputs: [
|
|
3120
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3121
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3122
|
+
],
|
|
3123
|
+
name: 'approve',
|
|
3124
|
+
outputs: [],
|
|
3125
|
+
stateMutability: 'nonpayable',
|
|
3126
|
+
},
|
|
3127
|
+
{
|
|
3128
|
+
type: 'function',
|
|
3129
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3130
|
+
name: 'creationMode',
|
|
3423
3131
|
outputs: [
|
|
3424
|
-
{
|
|
3425
|
-
|
|
3132
|
+
{
|
|
3133
|
+
name: '',
|
|
3134
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
3135
|
+
type: 'uint8',
|
|
3136
|
+
},
|
|
3426
3137
|
],
|
|
3427
3138
|
stateMutability: 'view',
|
|
3428
3139
|
},
|
|
3429
3140
|
{
|
|
3430
3141
|
type: 'function',
|
|
3431
|
-
inputs: [],
|
|
3432
|
-
name: '
|
|
3433
|
-
outputs: [
|
|
3142
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3143
|
+
name: 'entries',
|
|
3144
|
+
outputs: [
|
|
3145
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3146
|
+
{ name: 'until', internalType: 'uint64', type: 'uint64' },
|
|
3147
|
+
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
3148
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3149
|
+
],
|
|
3434
3150
|
stateMutability: 'view',
|
|
3435
3151
|
},
|
|
3436
3152
|
{
|
|
3437
3153
|
type: 'function',
|
|
3438
|
-
inputs: [],
|
|
3439
|
-
name: '
|
|
3440
|
-
outputs: [{ name: '', internalType: '
|
|
3441
|
-
stateMutability: '
|
|
3154
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3155
|
+
name: 'forwarderTrusted',
|
|
3156
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3157
|
+
stateMutability: 'view',
|
|
3442
3158
|
},
|
|
3443
3159
|
{
|
|
3444
3160
|
type: 'function',
|
|
3445
|
-
inputs: [],
|
|
3446
|
-
name: '
|
|
3447
|
-
outputs: [{ name: '', internalType: '
|
|
3161
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3162
|
+
name: 'isApproved',
|
|
3163
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3448
3164
|
stateMutability: 'view',
|
|
3449
3165
|
},
|
|
3450
3166
|
{
|
|
3451
3167
|
type: 'function',
|
|
3452
|
-
inputs: [{ name: '
|
|
3453
|
-
name: '
|
|
3454
|
-
outputs: [{ name: '', internalType: '
|
|
3168
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3169
|
+
name: 'kindOf',
|
|
3170
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3455
3171
|
stateMutability: 'view',
|
|
3456
3172
|
},
|
|
3457
3173
|
{
|
|
3458
3174
|
type: 'function',
|
|
3459
|
-
inputs: [
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
internalType: 'struct IPolicy.Ask',
|
|
3463
|
-
type: 'tuple',
|
|
3464
|
-
components: [
|
|
3465
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3466
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3467
|
-
{
|
|
3468
|
-
name: 'action',
|
|
3469
|
-
internalType: 'enum IPolicy.Action',
|
|
3470
|
-
type: 'uint8',
|
|
3471
|
-
},
|
|
3472
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3473
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3474
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3475
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3476
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3477
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3478
|
-
],
|
|
3479
|
-
},
|
|
3480
|
-
],
|
|
3481
|
-
name: 'may',
|
|
3482
|
-
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3175
|
+
inputs: [],
|
|
3176
|
+
name: 'logAuthority',
|
|
3177
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3483
3178
|
stateMutability: 'view',
|
|
3484
3179
|
},
|
|
3485
3180
|
{
|
|
3486
3181
|
type: 'function',
|
|
3487
3182
|
inputs: [],
|
|
3488
|
-
name: '
|
|
3489
|
-
outputs: [{ name: '', internalType: '
|
|
3183
|
+
name: 'pendingLogAuthority',
|
|
3184
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3490
3185
|
stateMutability: 'view',
|
|
3491
3186
|
},
|
|
3492
3187
|
{
|
|
3493
3188
|
type: 'function',
|
|
3494
|
-
inputs: [
|
|
3495
|
-
name: '
|
|
3496
|
-
outputs: [{ name: '', internalType: '
|
|
3189
|
+
inputs: [],
|
|
3190
|
+
name: 'policies',
|
|
3191
|
+
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
3497
3192
|
stateMutability: 'view',
|
|
3498
3193
|
},
|
|
3499
3194
|
{
|
|
3500
3195
|
type: 'function',
|
|
3501
|
-
inputs: [
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3512
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3513
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3514
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3515
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3516
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3517
|
-
],
|
|
3518
|
-
},
|
|
3519
|
-
],
|
|
3520
|
-
name: 'onInitialize',
|
|
3521
|
-
outputs: [
|
|
3522
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
3523
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3524
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3525
|
-
],
|
|
3196
|
+
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
3197
|
+
name: 'proposeLogAuthority',
|
|
3198
|
+
outputs: [],
|
|
3199
|
+
stateMutability: 'nonpayable',
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
type: 'function',
|
|
3203
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3204
|
+
name: 'revoke',
|
|
3205
|
+
outputs: [],
|
|
3526
3206
|
stateMutability: 'nonpayable',
|
|
3527
3207
|
},
|
|
3528
3208
|
{
|
|
3529
3209
|
type: 'function',
|
|
3530
3210
|
inputs: [
|
|
3531
|
-
{ name: '
|
|
3532
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3211
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3533
3212
|
{
|
|
3534
|
-
name: '
|
|
3535
|
-
internalType: '
|
|
3536
|
-
type: '
|
|
3537
|
-
components: [
|
|
3538
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3539
|
-
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3540
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3541
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3542
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3543
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3544
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3545
|
-
],
|
|
3213
|
+
name: 'mode',
|
|
3214
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
3215
|
+
type: 'uint8',
|
|
3546
3216
|
},
|
|
3547
3217
|
],
|
|
3548
|
-
name: '
|
|
3549
|
-
outputs: [
|
|
3550
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
3551
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3552
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3553
|
-
],
|
|
3218
|
+
name: 'setCreationMode',
|
|
3219
|
+
outputs: [],
|
|
3554
3220
|
stateMutability: 'nonpayable',
|
|
3555
3221
|
},
|
|
3556
3222
|
{
|
|
3557
3223
|
type: 'function',
|
|
3558
3224
|
inputs: [
|
|
3559
|
-
{ name: '
|
|
3560
|
-
{ name: '
|
|
3561
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3562
|
-
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
3563
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
3225
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
3226
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
3564
3227
|
],
|
|
3565
|
-
name: '
|
|
3566
|
-
outputs: [
|
|
3228
|
+
name: 'setForwarderTrusted',
|
|
3229
|
+
outputs: [],
|
|
3567
3230
|
stateMutability: 'nonpayable',
|
|
3568
3231
|
},
|
|
3569
3232
|
{
|
|
3570
3233
|
type: 'function',
|
|
3571
3234
|
inputs: [
|
|
3572
|
-
{
|
|
3573
|
-
|
|
3574
|
-
internalType: 'struct IPolicy.Ask',
|
|
3575
|
-
type: 'tuple',
|
|
3576
|
-
components: [
|
|
3577
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3578
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3579
|
-
{
|
|
3580
|
-
name: 'action',
|
|
3581
|
-
internalType: 'enum IPolicy.Action',
|
|
3582
|
-
type: 'uint8',
|
|
3583
|
-
},
|
|
3584
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3585
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3586
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3587
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3588
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3589
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3590
|
-
],
|
|
3591
|
-
},
|
|
3592
|
-
],
|
|
3593
|
-
name: 'onRegenerate',
|
|
3594
|
-
outputs: [
|
|
3595
|
-
{
|
|
3596
|
-
name: 't',
|
|
3597
|
-
internalType: 'struct IPolicy.Terms',
|
|
3598
|
-
type: 'tuple',
|
|
3599
|
-
components: [
|
|
3600
|
-
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
3601
|
-
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
3602
|
-
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
3603
|
-
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
3604
|
-
],
|
|
3605
|
-
},
|
|
3235
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3236
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3606
3237
|
],
|
|
3238
|
+
name: 'setSponsorName',
|
|
3239
|
+
outputs: [],
|
|
3607
3240
|
stateMutability: 'nonpayable',
|
|
3608
3241
|
},
|
|
3609
3242
|
{
|
|
3610
3243
|
type: 'function',
|
|
3611
|
-
inputs: [],
|
|
3612
|
-
name: '
|
|
3244
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3245
|
+
name: 'sponsorName',
|
|
3246
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3247
|
+
stateMutability: 'view',
|
|
3248
|
+
},
|
|
3249
|
+
{
|
|
3250
|
+
type: 'function',
|
|
3251
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3252
|
+
name: 'sponsorOf',
|
|
3613
3253
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3614
3254
|
stateMutability: 'view',
|
|
3615
3255
|
},
|
|
3616
3256
|
{
|
|
3617
3257
|
type: 'function',
|
|
3618
3258
|
inputs: [
|
|
3619
|
-
{ name: '
|
|
3620
|
-
{ name: '
|
|
3259
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3260
|
+
{ name: 'untilTime', internalType: 'uint64', type: 'uint64' },
|
|
3621
3261
|
],
|
|
3622
|
-
name: '
|
|
3262
|
+
name: 'sunset',
|
|
3623
3263
|
outputs: [],
|
|
3624
3264
|
stateMutability: 'nonpayable',
|
|
3625
3265
|
},
|
|
3626
3266
|
{
|
|
3627
3267
|
type: 'function',
|
|
3628
|
-
inputs: [],
|
|
3629
|
-
name: '
|
|
3268
|
+
inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
|
|
3269
|
+
name: 'userOf',
|
|
3630
3270
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3631
3271
|
stateMutability: 'view',
|
|
3632
3272
|
},
|
|
@@ -3635,1748 +3275,809 @@ export const polPolicyAbi = [
|
|
|
3635
3275
|
anonymous: false,
|
|
3636
3276
|
inputs: [
|
|
3637
3277
|
{
|
|
3638
|
-
name: '
|
|
3278
|
+
name: 'policy',
|
|
3279
|
+
internalType: 'address',
|
|
3280
|
+
type: 'address',
|
|
3281
|
+
indexed: true,
|
|
3282
|
+
},
|
|
3283
|
+
{
|
|
3284
|
+
name: 'name',
|
|
3639
3285
|
internalType: 'bytes32',
|
|
3640
3286
|
type: 'bytes32',
|
|
3641
|
-
indexed:
|
|
3287
|
+
indexed: false,
|
|
3642
3288
|
},
|
|
3643
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3644
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3645
3289
|
],
|
|
3646
|
-
name: '
|
|
3290
|
+
name: 'Approved',
|
|
3647
3291
|
},
|
|
3648
3292
|
{
|
|
3649
3293
|
type: 'event',
|
|
3650
3294
|
anonymous: false,
|
|
3651
3295
|
inputs: [
|
|
3652
3296
|
{
|
|
3653
|
-
name: '
|
|
3654
|
-
internalType: '
|
|
3655
|
-
type: '
|
|
3297
|
+
name: 'policy',
|
|
3298
|
+
internalType: 'address',
|
|
3299
|
+
type: 'address',
|
|
3656
3300
|
indexed: true,
|
|
3657
3301
|
},
|
|
3658
3302
|
{
|
|
3659
|
-
name: '
|
|
3660
|
-
internalType: '
|
|
3661
|
-
type: '
|
|
3303
|
+
name: 'mode',
|
|
3304
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
3305
|
+
type: 'uint8',
|
|
3662
3306
|
indexed: false,
|
|
3663
3307
|
},
|
|
3664
3308
|
],
|
|
3665
|
-
name: '
|
|
3309
|
+
name: 'CreationModeSet',
|
|
3666
3310
|
},
|
|
3667
|
-
{ type: 'error', inputs: [], name: 'AlreadyHeld' },
|
|
3668
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
3669
|
-
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
3670
|
-
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
3671
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3672
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
3673
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
3674
|
-
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
3675
|
-
{ type: 'error', inputs: [], name: 'Refused' },
|
|
3676
|
-
] as const
|
|
3677
|
-
|
|
3678
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3679
|
-
// PolicyRegistry
|
|
3680
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3681
|
-
|
|
3682
|
-
export const policyRegistryAbi = [
|
|
3683
3311
|
{
|
|
3684
|
-
type: '
|
|
3312
|
+
type: 'event',
|
|
3313
|
+
anonymous: false,
|
|
3685
3314
|
inputs: [
|
|
3686
|
-
{
|
|
3315
|
+
{
|
|
3316
|
+
name: 'forwarder',
|
|
3317
|
+
internalType: 'address',
|
|
3318
|
+
type: 'address',
|
|
3319
|
+
indexed: true,
|
|
3320
|
+
},
|
|
3321
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
3687
3322
|
],
|
|
3688
|
-
|
|
3689
|
-
},
|
|
3690
|
-
{
|
|
3691
|
-
type: 'function',
|
|
3692
|
-
inputs: [],
|
|
3693
|
-
name: 'acceptLogAuthority',
|
|
3694
|
-
outputs: [],
|
|
3695
|
-
stateMutability: 'nonpayable',
|
|
3323
|
+
name: 'ForwarderTrusted',
|
|
3696
3324
|
},
|
|
3697
3325
|
{
|
|
3698
|
-
type: '
|
|
3326
|
+
type: 'event',
|
|
3327
|
+
anonymous: false,
|
|
3699
3328
|
inputs: [
|
|
3700
|
-
{ name: '
|
|
3701
|
-
{ name: '
|
|
3702
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3329
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3330
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3703
3331
|
],
|
|
3704
|
-
name: '
|
|
3705
|
-
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
3706
|
-
stateMutability: 'view',
|
|
3332
|
+
name: 'LogAuthorityAccepted',
|
|
3707
3333
|
},
|
|
3708
3334
|
{
|
|
3709
|
-
type: '
|
|
3335
|
+
type: 'event',
|
|
3336
|
+
anonymous: false,
|
|
3710
3337
|
inputs: [
|
|
3711
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3712
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3713
|
-
],
|
|
3714
|
-
name: 'approve',
|
|
3715
|
-
outputs: [],
|
|
3716
|
-
stateMutability: 'nonpayable',
|
|
3717
|
-
},
|
|
3718
|
-
{
|
|
3719
|
-
type: 'function',
|
|
3720
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3721
|
-
name: 'creationMode',
|
|
3722
|
-
outputs: [
|
|
3723
3338
|
{
|
|
3724
|
-
name: '',
|
|
3725
|
-
internalType: '
|
|
3726
|
-
type: '
|
|
3339
|
+
name: 'current',
|
|
3340
|
+
internalType: 'address',
|
|
3341
|
+
type: 'address',
|
|
3342
|
+
indexed: true,
|
|
3343
|
+
},
|
|
3344
|
+
{
|
|
3345
|
+
name: 'proposed',
|
|
3346
|
+
internalType: 'address',
|
|
3347
|
+
type: 'address',
|
|
3348
|
+
indexed: true,
|
|
3727
3349
|
},
|
|
3728
3350
|
],
|
|
3729
|
-
|
|
3351
|
+
name: 'LogAuthorityProposed',
|
|
3730
3352
|
},
|
|
3731
3353
|
{
|
|
3732
|
-
type: '
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3354
|
+
type: 'event',
|
|
3355
|
+
anonymous: false,
|
|
3356
|
+
inputs: [
|
|
3357
|
+
{
|
|
3358
|
+
name: 'policy',
|
|
3359
|
+
internalType: 'address',
|
|
3360
|
+
type: 'address',
|
|
3361
|
+
indexed: true,
|
|
3362
|
+
},
|
|
3740
3363
|
],
|
|
3741
|
-
|
|
3742
|
-
},
|
|
3743
|
-
{
|
|
3744
|
-
type: 'function',
|
|
3745
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3746
|
-
name: 'forwarderTrusted',
|
|
3747
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3748
|
-
stateMutability: 'view',
|
|
3749
|
-
},
|
|
3750
|
-
{
|
|
3751
|
-
type: 'function',
|
|
3752
|
-
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3753
|
-
name: 'isApproved',
|
|
3754
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3755
|
-
stateMutability: 'view',
|
|
3364
|
+
name: 'Revoked',
|
|
3756
3365
|
},
|
|
3757
3366
|
{
|
|
3758
|
-
type: '
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3367
|
+
type: 'event',
|
|
3368
|
+
anonymous: false,
|
|
3369
|
+
inputs: [
|
|
3370
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
3371
|
+
{
|
|
3372
|
+
name: 'name',
|
|
3373
|
+
internalType: 'bytes32',
|
|
3374
|
+
type: 'bytes32',
|
|
3375
|
+
indexed: false,
|
|
3376
|
+
},
|
|
3377
|
+
],
|
|
3378
|
+
name: 'SponsorNamed',
|
|
3763
3379
|
},
|
|
3764
3380
|
{
|
|
3765
|
-
type: '
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3381
|
+
type: 'event',
|
|
3382
|
+
anonymous: false,
|
|
3383
|
+
inputs: [
|
|
3384
|
+
{
|
|
3385
|
+
name: 'policy',
|
|
3386
|
+
internalType: 'address',
|
|
3387
|
+
type: 'address',
|
|
3388
|
+
indexed: true,
|
|
3389
|
+
},
|
|
3390
|
+
{
|
|
3391
|
+
name: 'untilTime',
|
|
3392
|
+
internalType: 'uint64',
|
|
3393
|
+
type: 'uint64',
|
|
3394
|
+
indexed: false,
|
|
3395
|
+
},
|
|
3396
|
+
],
|
|
3397
|
+
name: 'SunsetSet',
|
|
3770
3398
|
},
|
|
3399
|
+
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
3400
|
+
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
3401
|
+
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
3402
|
+
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
3403
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
3404
|
+
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
3405
|
+
] as const
|
|
3406
|
+
|
|
3407
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3408
|
+
// RouterActions
|
|
3409
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3410
|
+
|
|
3411
|
+
export const routerActionsAbi = [
|
|
3771
3412
|
{
|
|
3772
3413
|
type: 'function',
|
|
3773
3414
|
inputs: [
|
|
3774
|
-
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
3775
3415
|
{
|
|
3776
|
-
name: '
|
|
3777
|
-
internalType: 'struct
|
|
3416
|
+
name: 'a',
|
|
3417
|
+
internalType: 'struct BurnAct',
|
|
3778
3418
|
type: 'tuple',
|
|
3779
3419
|
components: [
|
|
3780
|
-
{ name: '
|
|
3781
|
-
{ name: '
|
|
3782
|
-
{ name: '
|
|
3783
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3784
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3785
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3786
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3420
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3421
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3422
|
+
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3787
3423
|
],
|
|
3788
3424
|
},
|
|
3789
|
-
|
|
3425
|
+
],
|
|
3426
|
+
name: 'encodeBurn',
|
|
3427
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3428
|
+
stateMutability: 'pure',
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
type: 'function',
|
|
3432
|
+
inputs: [
|
|
3790
3433
|
{
|
|
3791
|
-
name: '
|
|
3792
|
-
internalType: 'struct
|
|
3434
|
+
name: 'a',
|
|
3435
|
+
internalType: 'struct ClaimAct',
|
|
3793
3436
|
type: 'tuple',
|
|
3794
3437
|
components: [
|
|
3795
|
-
{ name: '
|
|
3796
|
-
{ name: '
|
|
3797
|
-
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
3798
|
-
{ name: 'listed', internalType: 'address[]', type: 'address[]' },
|
|
3438
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3439
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3799
3440
|
],
|
|
3800
3441
|
},
|
|
3801
3442
|
],
|
|
3802
|
-
name: '
|
|
3803
|
-
outputs: [],
|
|
3804
|
-
stateMutability: '
|
|
3443
|
+
name: 'encodeClaim',
|
|
3444
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3445
|
+
stateMutability: 'pure',
|
|
3805
3446
|
},
|
|
3806
3447
|
{
|
|
3807
3448
|
type: 'function',
|
|
3808
3449
|
inputs: [
|
|
3809
|
-
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
3810
3450
|
{
|
|
3811
|
-
name: '
|
|
3812
|
-
internalType: 'struct
|
|
3451
|
+
name: 'a',
|
|
3452
|
+
internalType: 'struct MintAct',
|
|
3813
3453
|
type: 'tuple',
|
|
3814
3454
|
components: [
|
|
3815
|
-
{ name: '
|
|
3816
|
-
{ name: '
|
|
3817
|
-
{ name: '
|
|
3818
|
-
{ name: '
|
|
3819
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3820
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3821
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3455
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3456
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3457
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3458
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3822
3459
|
],
|
|
3823
3460
|
},
|
|
3824
3461
|
],
|
|
3825
|
-
name: '
|
|
3826
|
-
outputs: [],
|
|
3827
|
-
stateMutability: '
|
|
3828
|
-
},
|
|
3829
|
-
{
|
|
3830
|
-
type: 'function',
|
|
3831
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3832
|
-
name: 'orphanPolicy',
|
|
3833
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3834
|
-
stateMutability: 'view',
|
|
3835
|
-
},
|
|
3836
|
-
{
|
|
3837
|
-
type: 'function',
|
|
3838
|
-
inputs: [],
|
|
3839
|
-
name: 'pendingLogAuthority',
|
|
3840
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3841
|
-
stateMutability: 'view',
|
|
3842
|
-
},
|
|
3843
|
-
{
|
|
3844
|
-
type: 'function',
|
|
3845
|
-
inputs: [],
|
|
3846
|
-
name: 'policies',
|
|
3847
|
-
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
3848
|
-
stateMutability: 'view',
|
|
3849
|
-
},
|
|
3850
|
-
{
|
|
3851
|
-
type: 'function',
|
|
3852
|
-
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
3853
|
-
name: 'proposeLogAuthority',
|
|
3854
|
-
outputs: [],
|
|
3855
|
-
stateMutability: 'nonpayable',
|
|
3856
|
-
},
|
|
3857
|
-
{
|
|
3858
|
-
type: 'function',
|
|
3859
|
-
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3860
|
-
name: 'revoke',
|
|
3861
|
-
outputs: [],
|
|
3862
|
-
stateMutability: 'nonpayable',
|
|
3462
|
+
name: 'encodeMint',
|
|
3463
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3464
|
+
stateMutability: 'pure',
|
|
3863
3465
|
},
|
|
3864
3466
|
{
|
|
3865
3467
|
type: 'function',
|
|
3866
3468
|
inputs: [
|
|
3867
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3868
3469
|
{
|
|
3869
|
-
name: '
|
|
3870
|
-
internalType: '
|
|
3871
|
-
type: '
|
|
3470
|
+
name: 'a',
|
|
3471
|
+
internalType: 'struct PathAct',
|
|
3472
|
+
type: 'tuple',
|
|
3473
|
+
components: [
|
|
3474
|
+
{
|
|
3475
|
+
name: 'hops',
|
|
3476
|
+
internalType: 'struct Hop[]',
|
|
3477
|
+
type: 'tuple[]',
|
|
3478
|
+
components: [
|
|
3479
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3480
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3481
|
+
],
|
|
3482
|
+
},
|
|
3483
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3484
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3485
|
+
],
|
|
3872
3486
|
},
|
|
3873
3487
|
],
|
|
3874
|
-
name: '
|
|
3875
|
-
outputs: [],
|
|
3876
|
-
stateMutability: '
|
|
3488
|
+
name: 'encodePath',
|
|
3489
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3490
|
+
stateMutability: 'pure',
|
|
3877
3491
|
},
|
|
3878
3492
|
{
|
|
3879
3493
|
type: 'function',
|
|
3880
3494
|
inputs: [
|
|
3881
|
-
{
|
|
3882
|
-
|
|
3495
|
+
{
|
|
3496
|
+
name: 'a',
|
|
3497
|
+
internalType: 'struct SwapAct',
|
|
3498
|
+
type: 'tuple',
|
|
3499
|
+
components: [
|
|
3500
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3501
|
+
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
3502
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3503
|
+
{ name: 'limit', internalType: 'uint256', type: 'uint256' },
|
|
3504
|
+
],
|
|
3505
|
+
},
|
|
3883
3506
|
],
|
|
3884
|
-
name: '
|
|
3885
|
-
outputs: [],
|
|
3886
|
-
stateMutability: '
|
|
3507
|
+
name: 'encodeSwap',
|
|
3508
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3509
|
+
stateMutability: 'pure',
|
|
3887
3510
|
},
|
|
3888
3511
|
{
|
|
3889
3512
|
type: 'function',
|
|
3890
3513
|
inputs: [
|
|
3891
|
-
{
|
|
3892
|
-
|
|
3514
|
+
{
|
|
3515
|
+
name: 'a',
|
|
3516
|
+
internalType: 'struct UpdateAct',
|
|
3517
|
+
type: 'tuple',
|
|
3518
|
+
components: [
|
|
3519
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3520
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
3521
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3522
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
3523
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
3524
|
+
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
3525
|
+
],
|
|
3526
|
+
},
|
|
3893
3527
|
],
|
|
3894
|
-
name: '
|
|
3895
|
-
outputs: [],
|
|
3896
|
-
stateMutability: '
|
|
3528
|
+
name: 'encodeUpdate',
|
|
3529
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3530
|
+
stateMutability: 'pure',
|
|
3897
3531
|
},
|
|
3898
|
-
{
|
|
3899
|
-
type: 'function',
|
|
3900
|
-
inputs: [
|
|
3901
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3902
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
3903
|
-
],
|
|
3904
|
-
name: 'setSponsorName',
|
|
3905
|
-
outputs: [],
|
|
3906
|
-
stateMutability: 'nonpayable',
|
|
3907
|
-
},
|
|
3908
|
-
{
|
|
3909
|
-
type: 'function',
|
|
3910
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3911
|
-
name: 'sponsorName',
|
|
3912
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3913
|
-
stateMutability: 'view',
|
|
3914
|
-
},
|
|
3915
|
-
{
|
|
3916
|
-
type: 'function',
|
|
3917
|
-
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
3918
|
-
name: 'sponsorOf',
|
|
3919
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3920
|
-
stateMutability: 'view',
|
|
3921
|
-
},
|
|
3922
|
-
{
|
|
3923
|
-
type: 'function',
|
|
3924
|
-
inputs: [
|
|
3925
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3926
|
-
{ name: 'untilTime', internalType: 'uint64', type: 'uint64' },
|
|
3927
|
-
],
|
|
3928
|
-
name: 'sunset',
|
|
3929
|
-
outputs: [],
|
|
3930
|
-
stateMutability: 'nonpayable',
|
|
3931
|
-
},
|
|
3932
|
-
{
|
|
3933
|
-
type: 'function',
|
|
3934
|
-
inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
|
|
3935
|
-
name: 'userOf',
|
|
3936
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3937
|
-
stateMutability: 'view',
|
|
3938
|
-
},
|
|
3939
|
-
{
|
|
3940
|
-
type: 'event',
|
|
3941
|
-
anonymous: false,
|
|
3942
|
-
inputs: [
|
|
3943
|
-
{
|
|
3944
|
-
name: 'policy',
|
|
3945
|
-
internalType: 'address',
|
|
3946
|
-
type: 'address',
|
|
3947
|
-
indexed: true,
|
|
3948
|
-
},
|
|
3949
|
-
{
|
|
3950
|
-
name: 'name',
|
|
3951
|
-
internalType: 'bytes32',
|
|
3952
|
-
type: 'bytes32',
|
|
3953
|
-
indexed: false,
|
|
3954
|
-
},
|
|
3955
|
-
],
|
|
3956
|
-
name: 'Approved',
|
|
3957
|
-
},
|
|
3958
|
-
{
|
|
3959
|
-
type: 'event',
|
|
3960
|
-
anonymous: false,
|
|
3961
|
-
inputs: [
|
|
3962
|
-
{
|
|
3963
|
-
name: 'policy',
|
|
3964
|
-
internalType: 'address',
|
|
3965
|
-
type: 'address',
|
|
3966
|
-
indexed: true,
|
|
3967
|
-
},
|
|
3968
|
-
{
|
|
3969
|
-
name: 'mode',
|
|
3970
|
-
internalType: 'enum PolicyRegistry.CreationMode',
|
|
3971
|
-
type: 'uint8',
|
|
3972
|
-
indexed: false,
|
|
3973
|
-
},
|
|
3974
|
-
],
|
|
3975
|
-
name: 'CreationModeSet',
|
|
3976
|
-
},
|
|
3977
|
-
{
|
|
3978
|
-
type: 'event',
|
|
3979
|
-
anonymous: false,
|
|
3980
|
-
inputs: [
|
|
3981
|
-
{
|
|
3982
|
-
name: 'forwarder',
|
|
3983
|
-
internalType: 'address',
|
|
3984
|
-
type: 'address',
|
|
3985
|
-
indexed: true,
|
|
3986
|
-
},
|
|
3987
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
3988
|
-
],
|
|
3989
|
-
name: 'ForwarderTrusted',
|
|
3990
|
-
},
|
|
3991
|
-
{
|
|
3992
|
-
type: 'event',
|
|
3993
|
-
anonymous: false,
|
|
3994
|
-
inputs: [
|
|
3995
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3996
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3997
|
-
],
|
|
3998
|
-
name: 'LogAuthorityAccepted',
|
|
3999
|
-
},
|
|
4000
|
-
{
|
|
4001
|
-
type: 'event',
|
|
4002
|
-
anonymous: false,
|
|
4003
|
-
inputs: [
|
|
4004
|
-
{
|
|
4005
|
-
name: 'current',
|
|
4006
|
-
internalType: 'address',
|
|
4007
|
-
type: 'address',
|
|
4008
|
-
indexed: true,
|
|
4009
|
-
},
|
|
4010
|
-
{
|
|
4011
|
-
name: 'proposed',
|
|
4012
|
-
internalType: 'address',
|
|
4013
|
-
type: 'address',
|
|
4014
|
-
indexed: true,
|
|
4015
|
-
},
|
|
4016
|
-
],
|
|
4017
|
-
name: 'LogAuthorityProposed',
|
|
4018
|
-
},
|
|
4019
|
-
{
|
|
4020
|
-
type: 'event',
|
|
4021
|
-
anonymous: false,
|
|
4022
|
-
inputs: [
|
|
4023
|
-
{
|
|
4024
|
-
name: 'manager',
|
|
4025
|
-
internalType: 'address',
|
|
4026
|
-
type: 'address',
|
|
4027
|
-
indexed: true,
|
|
4028
|
-
},
|
|
4029
|
-
{
|
|
4030
|
-
name: 'poolId',
|
|
4031
|
-
internalType: 'bytes32',
|
|
4032
|
-
type: 'bytes32',
|
|
4033
|
-
indexed: true,
|
|
4034
|
-
},
|
|
4035
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
4036
|
-
{
|
|
4037
|
-
name: 'from',
|
|
4038
|
-
internalType: 'address',
|
|
4039
|
-
type: 'address',
|
|
4040
|
-
indexed: false,
|
|
4041
|
-
},
|
|
4042
|
-
{
|
|
4043
|
-
name: 'authority',
|
|
4044
|
-
internalType: 'address',
|
|
4045
|
-
type: 'address',
|
|
4046
|
-
indexed: false,
|
|
4047
|
-
},
|
|
4048
|
-
],
|
|
4049
|
-
name: 'Migrated',
|
|
4050
|
-
},
|
|
4051
|
-
{
|
|
4052
|
-
type: 'event',
|
|
4053
|
-
anonymous: false,
|
|
4054
|
-
inputs: [
|
|
4055
|
-
{
|
|
4056
|
-
name: 'manager',
|
|
4057
|
-
internalType: 'address',
|
|
4058
|
-
type: 'address',
|
|
4059
|
-
indexed: true,
|
|
4060
|
-
},
|
|
4061
|
-
{
|
|
4062
|
-
name: 'policy',
|
|
4063
|
-
internalType: 'address',
|
|
4064
|
-
type: 'address',
|
|
4065
|
-
indexed: true,
|
|
4066
|
-
},
|
|
4067
|
-
],
|
|
4068
|
-
name: 'OrphanPolicySet',
|
|
4069
|
-
},
|
|
4070
|
-
{
|
|
4071
|
-
type: 'event',
|
|
4072
|
-
anonymous: false,
|
|
4073
|
-
inputs: [
|
|
4074
|
-
{
|
|
4075
|
-
name: 'manager',
|
|
4076
|
-
internalType: 'address',
|
|
4077
|
-
type: 'address',
|
|
4078
|
-
indexed: true,
|
|
4079
|
-
},
|
|
4080
|
-
{
|
|
4081
|
-
name: 'poolId',
|
|
4082
|
-
internalType: 'bytes32',
|
|
4083
|
-
type: 'bytes32',
|
|
4084
|
-
indexed: true,
|
|
4085
|
-
},
|
|
4086
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
|
4087
|
-
],
|
|
4088
|
-
name: 'PoolOrphaned',
|
|
4089
|
-
},
|
|
4090
|
-
{
|
|
4091
|
-
type: 'event',
|
|
4092
|
-
anonymous: false,
|
|
4093
|
-
inputs: [
|
|
4094
|
-
{
|
|
4095
|
-
name: 'policy',
|
|
4096
|
-
internalType: 'address',
|
|
4097
|
-
type: 'address',
|
|
4098
|
-
indexed: true,
|
|
4099
|
-
},
|
|
4100
|
-
],
|
|
4101
|
-
name: 'Revoked',
|
|
4102
|
-
},
|
|
4103
|
-
{
|
|
4104
|
-
type: 'event',
|
|
4105
|
-
anonymous: false,
|
|
4106
|
-
inputs: [
|
|
4107
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4108
|
-
{
|
|
4109
|
-
name: 'name',
|
|
4110
|
-
internalType: 'bytes32',
|
|
4111
|
-
type: 'bytes32',
|
|
4112
|
-
indexed: false,
|
|
4113
|
-
},
|
|
4114
|
-
],
|
|
4115
|
-
name: 'SponsorNamed',
|
|
4116
|
-
},
|
|
4117
|
-
{
|
|
4118
|
-
type: 'event',
|
|
4119
|
-
anonymous: false,
|
|
4120
|
-
inputs: [
|
|
4121
|
-
{
|
|
4122
|
-
name: 'policy',
|
|
4123
|
-
internalType: 'address',
|
|
4124
|
-
type: 'address',
|
|
4125
|
-
indexed: true,
|
|
4126
|
-
},
|
|
4127
|
-
{
|
|
4128
|
-
name: 'untilTime',
|
|
4129
|
-
internalType: 'uint64',
|
|
4130
|
-
type: 'uint64',
|
|
4131
|
-
indexed: false,
|
|
4132
|
-
},
|
|
4133
|
-
],
|
|
4134
|
-
name: 'SunsetSet',
|
|
4135
|
-
},
|
|
4136
|
-
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
4137
|
-
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
4138
|
-
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
4139
|
-
{ type: 'error', inputs: [], name: 'NoOrphanPolicy' },
|
|
4140
|
-
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
4141
|
-
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
4142
|
-
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
4143
|
-
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4144
|
-
{ type: 'error', inputs: [], name: 'NotOrphanPolicy' },
|
|
4145
|
-
{ type: 'error', inputs: [], name: 'Orphaned' },
|
|
4146
|
-
{ type: 'error', inputs: [], name: 'PermissionsNotApplicable' },
|
|
4147
|
-
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
4148
|
-
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
4149
|
-
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
4150
|
-
] as const
|
|
4151
|
-
|
|
4152
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4153
|
-
// RouterActions
|
|
4154
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4155
|
-
|
|
4156
|
-
export const routerActionsAbi = [
|
|
4157
|
-
{
|
|
4158
|
-
type: 'function',
|
|
4159
|
-
inputs: [
|
|
4160
|
-
{
|
|
4161
|
-
name: 'a',
|
|
4162
|
-
internalType: 'struct BurnAct',
|
|
4163
|
-
type: 'tuple',
|
|
4164
|
-
components: [
|
|
4165
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4166
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4167
|
-
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4168
|
-
],
|
|
4169
|
-
},
|
|
4170
|
-
],
|
|
4171
|
-
name: 'encodeBurn',
|
|
4172
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4173
|
-
stateMutability: 'pure',
|
|
4174
|
-
},
|
|
4175
|
-
{
|
|
4176
|
-
type: 'function',
|
|
4177
|
-
inputs: [
|
|
4178
|
-
{
|
|
4179
|
-
name: 'a',
|
|
4180
|
-
internalType: 'struct ClaimAct',
|
|
4181
|
-
type: 'tuple',
|
|
4182
|
-
components: [
|
|
4183
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4184
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4185
|
-
],
|
|
4186
|
-
},
|
|
4187
|
-
],
|
|
4188
|
-
name: 'encodeClaim',
|
|
4189
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4190
|
-
stateMutability: 'pure',
|
|
4191
|
-
},
|
|
4192
|
-
{
|
|
4193
|
-
type: 'function',
|
|
4194
|
-
inputs: [
|
|
4195
|
-
{
|
|
4196
|
-
name: 'a',
|
|
4197
|
-
internalType: 'struct MintAct',
|
|
4198
|
-
type: 'tuple',
|
|
4199
|
-
components: [
|
|
4200
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4201
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
4202
|
-
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
4203
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4204
|
-
],
|
|
4205
|
-
},
|
|
4206
|
-
],
|
|
4207
|
-
name: 'encodeMint',
|
|
4208
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4209
|
-
stateMutability: 'pure',
|
|
4210
|
-
},
|
|
4211
|
-
{
|
|
4212
|
-
type: 'function',
|
|
4213
|
-
inputs: [
|
|
4214
|
-
{
|
|
4215
|
-
name: 'a',
|
|
4216
|
-
internalType: 'struct PathAct',
|
|
4217
|
-
type: 'tuple',
|
|
4218
|
-
components: [
|
|
4219
|
-
{
|
|
4220
|
-
name: 'hops',
|
|
4221
|
-
internalType: 'struct Hop[]',
|
|
4222
|
-
type: 'tuple[]',
|
|
4223
|
-
components: [
|
|
4224
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4225
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
4226
|
-
],
|
|
4227
|
-
},
|
|
4228
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4229
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4230
|
-
],
|
|
4231
|
-
},
|
|
4232
|
-
],
|
|
4233
|
-
name: 'encodePath',
|
|
4234
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4235
|
-
stateMutability: 'pure',
|
|
4236
|
-
},
|
|
4237
|
-
{
|
|
4238
|
-
type: 'function',
|
|
4239
|
-
inputs: [
|
|
4240
|
-
{
|
|
4241
|
-
name: 'a',
|
|
4242
|
-
internalType: 'struct SwapAct',
|
|
4243
|
-
type: 'tuple',
|
|
4244
|
-
components: [
|
|
4245
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4246
|
-
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
4247
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4248
|
-
{ name: 'limit', internalType: 'uint256', type: 'uint256' },
|
|
4249
|
-
],
|
|
4250
|
-
},
|
|
4251
|
-
],
|
|
4252
|
-
name: 'encodeSwap',
|
|
4253
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4254
|
-
stateMutability: 'pure',
|
|
4255
|
-
},
|
|
4256
|
-
{
|
|
4257
|
-
type: 'function',
|
|
4258
|
-
inputs: [
|
|
4259
|
-
{
|
|
4260
|
-
name: 'a',
|
|
4261
|
-
internalType: 'struct UpdateAct',
|
|
4262
|
-
type: 'tuple',
|
|
4263
|
-
components: [
|
|
4264
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4265
|
-
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
4266
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4267
|
-
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
4268
|
-
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
4269
|
-
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
4270
|
-
],
|
|
4271
|
-
},
|
|
4272
|
-
],
|
|
4273
|
-
name: 'encodeUpdate',
|
|
4274
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4275
|
-
stateMutability: 'pure',
|
|
4276
|
-
},
|
|
4277
|
-
] as const
|
|
4278
|
-
|
|
4279
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4280
|
-
// RouterC
|
|
4281
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4282
|
-
|
|
4283
|
-
export const routerCAbi = [
|
|
4284
|
-
{
|
|
4285
|
-
type: 'constructor',
|
|
4286
|
-
inputs: [
|
|
4287
|
-
{ name: '_mgr', internalType: 'contract ManagerC', type: 'address' },
|
|
4288
|
-
{ name: '_permit2', internalType: 'address', type: 'address' },
|
|
4289
|
-
],
|
|
4290
|
-
stateMutability: 'nonpayable',
|
|
4291
|
-
},
|
|
4292
|
-
{
|
|
4293
|
-
type: 'function',
|
|
4294
|
-
inputs: [],
|
|
4295
|
-
name: 'NO_CAP',
|
|
4296
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
4297
|
-
stateMutability: 'view',
|
|
4298
|
-
},
|
|
4299
|
-
{
|
|
4300
|
-
type: 'function',
|
|
4301
|
-
inputs: [
|
|
4302
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
4303
|
-
{
|
|
4304
|
-
name: 'permitSingle',
|
|
4305
|
-
internalType: 'struct IPermit2.PermitSingle',
|
|
4306
|
-
type: 'tuple',
|
|
4307
|
-
components: [
|
|
4308
|
-
{
|
|
4309
|
-
name: 'details',
|
|
4310
|
-
internalType: 'struct IPermit2.PermitDetails',
|
|
4311
|
-
type: 'tuple',
|
|
4312
|
-
components: [
|
|
4313
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
4314
|
-
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
4315
|
-
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
4316
|
-
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
4317
|
-
],
|
|
4318
|
-
},
|
|
4319
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
4320
|
-
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
4321
|
-
],
|
|
4322
|
-
},
|
|
4323
|
-
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
4324
|
-
],
|
|
4325
|
-
name: 'applyPermit2',
|
|
4326
|
-
outputs: [],
|
|
4327
|
-
stateMutability: 'nonpayable',
|
|
4328
|
-
},
|
|
4329
|
-
{
|
|
4330
|
-
type: 'function',
|
|
4331
|
-
inputs: [
|
|
4332
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4333
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4334
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4335
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4336
|
-
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4337
|
-
{ name: 'minBaseOut', internalType: 'uint256', type: 'uint256' },
|
|
4338
|
-
{ name: 'minQuoteOut', internalType: 'uint256', type: 'uint256' },
|
|
4339
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4340
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4341
|
-
],
|
|
4342
|
-
name: 'burn',
|
|
4343
|
-
outputs: [
|
|
4344
|
-
{ name: 'baseOut', internalType: 'uint256', type: 'uint256' },
|
|
4345
|
-
{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' },
|
|
4346
|
-
],
|
|
4347
|
-
stateMutability: 'nonpayable',
|
|
4348
|
-
},
|
|
4349
|
-
{
|
|
4350
|
-
type: 'function',
|
|
4351
|
-
inputs: [
|
|
4352
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4353
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4354
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4355
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4356
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4357
|
-
],
|
|
4358
|
-
name: 'claim',
|
|
4359
|
-
outputs: [{ name: 'total', internalType: 'uint256', type: 'uint256' }],
|
|
4360
|
-
stateMutability: 'nonpayable',
|
|
4361
|
-
},
|
|
4362
|
-
{
|
|
4363
|
-
type: 'function',
|
|
4364
|
-
inputs: [
|
|
4365
|
-
{
|
|
4366
|
-
name: 'key',
|
|
4367
|
-
internalType: 'struct PoolKeyC',
|
|
4368
|
-
type: 'tuple',
|
|
4369
|
-
components: [
|
|
4370
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4371
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4372
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4373
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4374
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4375
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4376
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4377
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4378
|
-
],
|
|
4379
|
-
},
|
|
4380
|
-
{ name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
|
|
4381
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
4382
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4383
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
4384
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4385
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4386
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4387
|
-
],
|
|
4388
|
-
name: 'createMarket',
|
|
4389
|
-
outputs: [
|
|
4390
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4391
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
4392
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4393
|
-
],
|
|
4394
|
-
stateMutability: 'nonpayable',
|
|
4395
|
-
},
|
|
4396
|
-
{
|
|
4397
|
-
type: 'function',
|
|
4398
|
-
inputs: [
|
|
4399
|
-
{
|
|
4400
|
-
name: 'actions',
|
|
4401
|
-
internalType: 'struct Action[]',
|
|
4402
|
-
type: 'tuple[]',
|
|
4403
|
-
components: [
|
|
4404
|
-
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
4405
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
4406
|
-
],
|
|
4407
|
-
},
|
|
4408
|
-
{
|
|
4409
|
-
name: 'settle',
|
|
4410
|
-
internalType: 'struct Settle',
|
|
4411
|
-
type: 'tuple',
|
|
4412
|
-
components: [
|
|
4413
|
-
{ name: 'tokens', internalType: 'address[]', type: 'address[]' },
|
|
4414
|
-
{ name: 'maxIn', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4415
|
-
{ name: 'minOut', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4416
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4417
|
-
],
|
|
4418
|
-
},
|
|
4419
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4420
|
-
],
|
|
4421
|
-
name: 'execute',
|
|
4422
|
-
outputs: [
|
|
4423
|
-
{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' },
|
|
4424
|
-
{ name: 'flows', internalType: 'int256[]', type: 'int256[]' },
|
|
4425
|
-
],
|
|
4426
|
-
stateMutability: 'nonpayable',
|
|
4427
|
-
},
|
|
4428
|
-
{
|
|
4429
|
-
type: 'function',
|
|
4430
|
-
inputs: [],
|
|
4431
|
-
name: 'mgr',
|
|
4432
|
-
outputs: [{ name: '', internalType: 'contract ManagerC', type: 'address' }],
|
|
4433
|
-
stateMutability: 'view',
|
|
4434
|
-
},
|
|
4435
|
-
{
|
|
4436
|
-
type: 'function',
|
|
4437
|
-
inputs: [
|
|
4438
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4439
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4440
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4441
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
4442
|
-
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
4443
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4444
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
4445
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4446
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4447
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4448
|
-
],
|
|
4449
|
-
name: 'mintBlended',
|
|
4450
|
-
outputs: [
|
|
4451
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
4452
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4453
|
-
],
|
|
4454
|
-
stateMutability: 'nonpayable',
|
|
4455
|
-
},
|
|
4456
|
-
{
|
|
4457
|
-
type: 'function',
|
|
4458
|
-
inputs: [
|
|
4459
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4460
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4461
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4462
|
-
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
4463
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4464
|
-
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
4465
|
-
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
4466
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
4467
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4468
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4469
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4470
|
-
],
|
|
4471
|
-
name: 'move',
|
|
4472
|
-
outputs: [
|
|
4473
|
-
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
4474
|
-
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
4475
|
-
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
4476
|
-
],
|
|
4477
|
-
stateMutability: 'nonpayable',
|
|
4478
|
-
},
|
|
4479
|
-
{
|
|
4480
|
-
type: 'function',
|
|
4481
|
-
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4482
|
-
name: 'multicall',
|
|
4483
|
-
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4484
|
-
stateMutability: 'nonpayable',
|
|
4485
|
-
},
|
|
4486
|
-
{
|
|
4487
|
-
type: 'function',
|
|
4488
|
-
inputs: [],
|
|
4489
|
-
name: 'permit2',
|
|
4490
|
-
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
4491
|
-
stateMutability: 'view',
|
|
4492
|
-
},
|
|
4493
|
-
{
|
|
4494
|
-
type: 'function',
|
|
4495
|
-
inputs: [
|
|
4496
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4497
|
-
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
4498
|
-
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
4499
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4500
|
-
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
4501
|
-
],
|
|
4502
|
-
name: 'quoteSwap',
|
|
4503
|
-
outputs: [],
|
|
4504
|
-
stateMutability: 'nonpayable',
|
|
4505
|
-
},
|
|
4506
|
-
{
|
|
4507
|
-
type: 'function',
|
|
4508
|
-
inputs: [
|
|
4509
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4510
|
-
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
4511
|
-
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4512
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
4513
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4514
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4515
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4516
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4517
|
-
],
|
|
4518
|
-
name: 'swapExactIn',
|
|
4519
|
-
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4520
|
-
stateMutability: 'nonpayable',
|
|
4521
|
-
},
|
|
4522
|
-
{
|
|
4523
|
-
type: 'function',
|
|
4524
|
-
inputs: [
|
|
4525
|
-
{
|
|
4526
|
-
name: 'hops',
|
|
4527
|
-
internalType: 'struct Hop[]',
|
|
4528
|
-
type: 'tuple[]',
|
|
4529
|
-
components: [
|
|
4530
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4531
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
4532
|
-
],
|
|
4533
|
-
},
|
|
4534
|
-
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
4535
|
-
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4536
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4537
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4538
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4539
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4540
|
-
],
|
|
4541
|
-
name: 'swapExactInPath',
|
|
4542
|
-
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4543
|
-
stateMutability: 'nonpayable',
|
|
4544
|
-
},
|
|
4545
|
-
{
|
|
4546
|
-
type: 'function',
|
|
4547
|
-
inputs: [
|
|
4548
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4549
|
-
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
4550
|
-
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4551
|
-
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
4552
|
-
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
4553
|
-
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
4554
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4555
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4556
|
-
],
|
|
4557
|
-
name: 'swapExactOut',
|
|
4558
|
-
outputs: [{ name: 'amountIn', internalType: 'uint256', type: 'uint256' }],
|
|
4559
|
-
stateMutability: 'nonpayable',
|
|
4560
|
-
},
|
|
4561
|
-
{
|
|
4562
|
-
type: 'function',
|
|
4563
|
-
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
4564
|
-
name: 'unlockCallback',
|
|
4565
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4566
|
-
stateMutability: 'nonpayable',
|
|
4567
|
-
},
|
|
4568
|
-
{
|
|
4569
|
-
type: 'function',
|
|
4570
|
-
inputs: [
|
|
4571
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4572
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4573
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4574
|
-
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
4575
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4576
|
-
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
4577
|
-
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
4578
|
-
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
4579
|
-
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
4580
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4581
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4582
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4583
|
-
],
|
|
4584
|
-
name: 'update',
|
|
4585
|
-
outputs: [
|
|
4586
|
-
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
4587
|
-
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
4588
|
-
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
4589
|
-
],
|
|
4590
|
-
stateMutability: 'nonpayable',
|
|
4591
|
-
},
|
|
4592
|
-
{
|
|
4593
|
-
type: 'function',
|
|
4594
|
-
inputs: [],
|
|
4595
|
-
name: 'user',
|
|
4596
|
-
outputs: [{ name: 'u', internalType: 'address', type: 'address' }],
|
|
4597
|
-
stateMutability: 'view',
|
|
4598
|
-
},
|
|
4599
|
-
{
|
|
4600
|
-
type: 'function',
|
|
4601
|
-
inputs: [
|
|
4602
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4603
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4604
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4605
|
-
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
4606
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4607
|
-
{ name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
|
|
4608
|
-
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
4609
|
-
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
4610
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4611
|
-
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
4612
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
4613
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4614
|
-
],
|
|
4615
|
-
name: 'zapIn',
|
|
4616
|
-
outputs: [
|
|
4617
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
4618
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4619
|
-
],
|
|
4620
|
-
stateMutability: 'nonpayable',
|
|
4621
|
-
},
|
|
4622
|
-
{
|
|
4623
|
-
type: 'event',
|
|
4624
|
-
anonymous: false,
|
|
4625
|
-
inputs: [
|
|
4626
|
-
{ name: 'user', internalType: 'address', type: 'address', indexed: true },
|
|
4627
|
-
],
|
|
4628
|
-
name: 'RouterCall',
|
|
4629
|
-
},
|
|
4630
|
-
{ type: 'error', inputs: [], name: 'BadFloor' },
|
|
4631
|
-
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
4632
|
-
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
4633
|
-
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
4634
|
-
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
4635
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4636
|
-
{
|
|
4637
|
-
type: 'error',
|
|
4638
|
-
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
4639
|
-
name: 'QuoteResult',
|
|
4640
|
-
},
|
|
4641
|
-
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
4642
|
-
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
4643
|
-
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
4644
|
-
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
4645
|
-
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
4646
3532
|
] as const
|
|
4647
3533
|
|
|
4648
3534
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4649
|
-
//
|
|
3535
|
+
// RouterC
|
|
4650
3536
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4651
3537
|
|
|
4652
|
-
export const
|
|
3538
|
+
export const routerCAbi = [
|
|
4653
3539
|
{
|
|
4654
3540
|
type: 'constructor',
|
|
4655
3541
|
inputs: [
|
|
4656
|
-
{ name: '_mgr', internalType: 'contract
|
|
3542
|
+
{ name: '_mgr', internalType: 'contract ManagerC', type: 'address' },
|
|
4657
3543
|
{ name: '_permit2', internalType: 'address', type: 'address' },
|
|
4658
3544
|
],
|
|
4659
3545
|
stateMutability: 'nonpayable',
|
|
4660
3546
|
},
|
|
4661
|
-
{
|
|
4662
|
-
type: 'function',
|
|
4663
|
-
inputs: [
|
|
4664
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
4665
|
-
{
|
|
4666
|
-
name: 'permitSingle',
|
|
4667
|
-
internalType: 'struct IPermit2.PermitSingle',
|
|
4668
|
-
type: 'tuple',
|
|
4669
|
-
components: [
|
|
4670
|
-
{
|
|
4671
|
-
name: 'details',
|
|
4672
|
-
internalType: 'struct IPermit2.PermitDetails',
|
|
4673
|
-
type: 'tuple',
|
|
4674
|
-
components: [
|
|
4675
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
4676
|
-
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
4677
|
-
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
4678
|
-
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
4679
|
-
],
|
|
4680
|
-
},
|
|
4681
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
4682
|
-
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
4683
|
-
],
|
|
4684
|
-
},
|
|
4685
|
-
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
4686
|
-
],
|
|
4687
|
-
name: 'applyPermit2',
|
|
4688
|
-
outputs: [],
|
|
4689
|
-
stateMutability: 'nonpayable',
|
|
4690
|
-
},
|
|
4691
|
-
{
|
|
4692
|
-
type: 'function',
|
|
4693
|
-
inputs: [],
|
|
4694
|
-
name: 'mgr',
|
|
4695
|
-
outputs: [{ name: '', internalType: 'contract ManagerF', type: 'address' }],
|
|
4696
|
-
stateMutability: 'view',
|
|
4697
|
-
},
|
|
4698
|
-
{
|
|
4699
|
-
type: 'function',
|
|
4700
|
-
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4701
|
-
name: 'multicall',
|
|
4702
|
-
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
4703
|
-
stateMutability: 'nonpayable',
|
|
4704
|
-
},
|
|
4705
|
-
{
|
|
4706
|
-
type: 'function',
|
|
4707
|
-
inputs: [],
|
|
4708
|
-
name: 'permit2',
|
|
4709
|
-
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
4710
|
-
stateMutability: 'view',
|
|
4711
|
-
},
|
|
4712
|
-
{
|
|
4713
|
-
type: 'function',
|
|
4714
|
-
inputs: [
|
|
4715
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4716
|
-
{ name: 'kind', internalType: 'enum QuoteKind', type: 'uint8' },
|
|
4717
|
-
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
4718
|
-
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
4719
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4720
|
-
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
4721
|
-
],
|
|
4722
|
-
name: 'quoteSwap',
|
|
4723
|
-
outputs: [],
|
|
4724
|
-
stateMutability: 'nonpayable',
|
|
4725
|
-
},
|
|
4726
|
-
{
|
|
4727
|
-
type: 'function',
|
|
4728
|
-
inputs: [
|
|
4729
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4730
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4731
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4732
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4733
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4734
|
-
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
4735
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4736
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4737
|
-
],
|
|
4738
|
-
name: 'rollIn',
|
|
4739
|
-
outputs: [{ name: 'sharesOut', internalType: 'uint256', type: 'uint256' }],
|
|
4740
|
-
stateMutability: 'nonpayable',
|
|
4741
|
-
},
|
|
4742
|
-
{
|
|
4743
|
-
type: 'function',
|
|
4744
|
-
inputs: [
|
|
4745
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4746
|
-
{ name: 'kind', internalType: 'enum QuoteKind', type: 'uint8' },
|
|
4747
|
-
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
4748
|
-
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
4749
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4750
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4751
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4752
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4753
|
-
],
|
|
4754
|
-
name: 'swapExactIn',
|
|
4755
|
-
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4756
|
-
stateMutability: 'nonpayable',
|
|
4757
|
-
},
|
|
4758
|
-
{
|
|
4759
|
-
type: 'function',
|
|
4760
|
-
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
4761
|
-
name: 'unlockCallback',
|
|
4762
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4763
|
-
stateMutability: 'nonpayable',
|
|
4764
|
-
},
|
|
4765
|
-
{
|
|
4766
|
-
type: 'function',
|
|
4767
|
-
inputs: [
|
|
4768
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4769
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4770
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4771
|
-
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
4772
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4773
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4774
|
-
],
|
|
4775
|
-
name: 'zapIn',
|
|
4776
|
-
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
4777
|
-
stateMutability: 'nonpayable',
|
|
4778
|
-
},
|
|
4779
|
-
{
|
|
4780
|
-
type: 'function',
|
|
4781
|
-
inputs: [
|
|
4782
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4783
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4784
|
-
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4785
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4786
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4787
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4788
|
-
],
|
|
4789
|
-
name: 'zapOut',
|
|
4790
|
-
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4791
|
-
stateMutability: 'nonpayable',
|
|
4792
|
-
},
|
|
4793
|
-
{
|
|
4794
|
-
type: 'event',
|
|
4795
|
-
anonymous: false,
|
|
4796
|
-
inputs: [
|
|
4797
|
-
{ name: 'user', internalType: 'address', type: 'address', indexed: true },
|
|
4798
|
-
],
|
|
4799
|
-
name: 'RouterCall',
|
|
4800
|
-
},
|
|
4801
|
-
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
4802
|
-
{ type: 'error', inputs: [], name: 'BadToken' },
|
|
4803
|
-
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
4804
|
-
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
4805
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4806
|
-
{
|
|
4807
|
-
type: 'error',
|
|
4808
|
-
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
4809
|
-
name: 'QuoteResult',
|
|
4810
|
-
},
|
|
4811
|
-
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
4812
|
-
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
4813
|
-
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
4814
|
-
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
4815
|
-
] as const
|
|
4816
|
-
|
|
4817
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4818
|
-
// SponsorPolicyC
|
|
4819
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4820
|
-
|
|
4821
|
-
export const sponsorPolicyCAbi = [
|
|
4822
|
-
{
|
|
4823
|
-
type: 'constructor',
|
|
4824
|
-
inputs: [
|
|
4825
|
-
{ name: 'manager_', internalType: 'contract ManagerC', type: 'address' },
|
|
4826
|
-
{
|
|
4827
|
-
name: 'p',
|
|
4828
|
-
internalType: 'struct SponsorParams',
|
|
4829
|
-
type: 'tuple',
|
|
4830
|
-
components: [
|
|
4831
|
-
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
4832
|
-
{ name: 'swapTiers', internalType: 'uint256', type: 'uint256' },
|
|
4833
|
-
{ name: 'mintTiers', internalType: 'uint256', type: 'uint256' },
|
|
4834
|
-
{ name: 'canonical', internalType: 'bool', type: 'bool' },
|
|
4835
|
-
{ name: 'gatesAvailable', internalType: 'bool', type: 'bool' },
|
|
4836
|
-
{ name: 'bornGated', internalType: 'bool', type: 'bool' },
|
|
4837
|
-
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
4838
|
-
],
|
|
4839
|
-
},
|
|
4840
|
-
{ name: 'swapFeeTax_', internalType: 'uint256', type: 'uint256' },
|
|
4841
|
-
{ name: 'spacings', internalType: 'int256[]', type: 'int256[]' },
|
|
4842
|
-
],
|
|
4843
|
-
stateMutability: 'nonpayable',
|
|
4844
|
-
},
|
|
4845
|
-
{
|
|
4846
|
-
type: 'function',
|
|
4847
|
-
inputs: [],
|
|
4848
|
-
name: 'SWAP_FEE_TAX_MAX',
|
|
4849
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4850
|
-
stateMutability: 'view',
|
|
4851
|
-
},
|
|
4852
|
-
{
|
|
4853
|
-
type: 'function',
|
|
4854
|
-
inputs: [
|
|
4855
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4856
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4857
|
-
],
|
|
4858
|
-
name: 'appointOperator',
|
|
4859
|
-
outputs: [],
|
|
4860
|
-
stateMutability: 'nonpayable',
|
|
4861
|
-
},
|
|
4862
|
-
{
|
|
4863
|
-
type: 'function',
|
|
4864
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4865
|
-
name: 'authority',
|
|
4866
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4867
|
-
stateMutability: 'view',
|
|
4868
|
-
},
|
|
4869
|
-
{
|
|
4870
|
-
type: 'function',
|
|
4871
|
-
inputs: [],
|
|
4872
|
-
name: 'bornGated',
|
|
4873
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4874
|
-
stateMutability: 'view',
|
|
4875
|
-
},
|
|
4876
3547
|
{
|
|
4877
3548
|
type: 'function',
|
|
4878
3549
|
inputs: [],
|
|
4879
|
-
name: '
|
|
4880
|
-
outputs: [{ name: '', internalType: '
|
|
3550
|
+
name: 'NO_CAP',
|
|
3551
|
+
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
4881
3552
|
stateMutability: 'view',
|
|
4882
3553
|
},
|
|
4883
3554
|
{
|
|
4884
3555
|
type: 'function',
|
|
4885
3556
|
inputs: [
|
|
4886
|
-
{ name: '
|
|
3557
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
4887
3558
|
{
|
|
4888
|
-
name: '
|
|
4889
|
-
internalType: 'struct
|
|
3559
|
+
name: 'permitSingle',
|
|
3560
|
+
internalType: 'struct IPermit2.PermitSingle',
|
|
4890
3561
|
type: 'tuple',
|
|
4891
3562
|
components: [
|
|
4892
|
-
{
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
3563
|
+
{
|
|
3564
|
+
name: 'details',
|
|
3565
|
+
internalType: 'struct IPermit2.PermitDetails',
|
|
3566
|
+
type: 'tuple',
|
|
3567
|
+
components: [
|
|
3568
|
+
{ name: 'token', internalType: 'address', type: 'address' },
|
|
3569
|
+
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
3570
|
+
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
3571
|
+
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
3572
|
+
],
|
|
3573
|
+
},
|
|
3574
|
+
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
3575
|
+
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
4896
3576
|
],
|
|
4897
3577
|
},
|
|
3578
|
+
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
4898
3579
|
],
|
|
4899
|
-
name: '
|
|
3580
|
+
name: 'applyPermit2',
|
|
4900
3581
|
outputs: [],
|
|
4901
3582
|
stateMutability: 'nonpayable',
|
|
4902
3583
|
},
|
|
4903
3584
|
{
|
|
4904
3585
|
type: 'function',
|
|
4905
|
-
inputs: [
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
{
|
|
4918
|
-
type: 'function',
|
|
4919
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4920
|
-
name: 'incomeTax',
|
|
3586
|
+
inputs: [
|
|
3587
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3588
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3589
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3590
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3591
|
+
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3592
|
+
{ name: 'minBaseOut', internalType: 'uint256', type: 'uint256' },
|
|
3593
|
+
{ name: 'minQuoteOut', internalType: 'uint256', type: 'uint256' },
|
|
3594
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3595
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3596
|
+
],
|
|
3597
|
+
name: 'burn',
|
|
4921
3598
|
outputs: [
|
|
4922
|
-
{ name: '', internalType: '
|
|
4923
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3599
|
+
{ name: 'baseOut', internalType: 'uint256', type: 'uint256' },
|
|
3600
|
+
{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' },
|
|
4924
3601
|
],
|
|
4925
|
-
stateMutability: '
|
|
4926
|
-
},
|
|
4927
|
-
{
|
|
4928
|
-
type: 'function',
|
|
4929
|
-
inputs: [],
|
|
4930
|
-
name: 'kind',
|
|
4931
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4932
|
-
stateMutability: 'pure',
|
|
3602
|
+
stateMutability: 'nonpayable',
|
|
4933
3603
|
},
|
|
4934
3604
|
{
|
|
4935
3605
|
type: 'function',
|
|
4936
3606
|
inputs: [
|
|
4937
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
4938
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3607
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3608
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3609
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3610
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3611
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4939
3612
|
],
|
|
4940
|
-
name: '
|
|
4941
|
-
outputs: [{ name: '', internalType: '
|
|
4942
|
-
stateMutability: '
|
|
4943
|
-
},
|
|
4944
|
-
{
|
|
4945
|
-
type: 'function',
|
|
4946
|
-
inputs: [],
|
|
4947
|
-
name: 'manager',
|
|
4948
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4949
|
-
stateMutability: 'view',
|
|
3613
|
+
name: 'claim',
|
|
3614
|
+
outputs: [{ name: 'total', internalType: 'uint256', type: 'uint256' }],
|
|
3615
|
+
stateMutability: 'nonpayable',
|
|
4950
3616
|
},
|
|
4951
3617
|
{
|
|
4952
3618
|
type: 'function',
|
|
4953
3619
|
inputs: [
|
|
4954
3620
|
{
|
|
4955
|
-
name: '
|
|
4956
|
-
internalType: 'struct
|
|
3621
|
+
name: 'key',
|
|
3622
|
+
internalType: 'struct PoolKeyC',
|
|
4957
3623
|
type: 'tuple',
|
|
4958
3624
|
components: [
|
|
4959
|
-
{ name: '
|
|
4960
|
-
{ name: '
|
|
4961
|
-
{
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
},
|
|
4966
|
-
{ name: '
|
|
4967
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4968
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4969
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4970
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4971
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3625
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3626
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3627
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3628
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3629
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3630
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3631
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3632
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4972
3633
|
],
|
|
4973
3634
|
},
|
|
3635
|
+
{ name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
|
|
3636
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3637
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3638
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3639
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3640
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3641
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
4974
3642
|
],
|
|
4975
|
-
name: '
|
|
4976
|
-
outputs: [
|
|
4977
|
-
|
|
3643
|
+
name: 'createMarket',
|
|
3644
|
+
outputs: [
|
|
3645
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3646
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3647
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3648
|
+
],
|
|
3649
|
+
stateMutability: 'nonpayable',
|
|
4978
3650
|
},
|
|
4979
3651
|
{
|
|
4980
3652
|
type: 'function',
|
|
4981
|
-
inputs: [
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
3653
|
+
inputs: [
|
|
3654
|
+
{
|
|
3655
|
+
name: 'actions',
|
|
3656
|
+
internalType: 'struct Action[]',
|
|
3657
|
+
type: 'tuple[]',
|
|
3658
|
+
components: [
|
|
3659
|
+
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
3660
|
+
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
3661
|
+
],
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
name: 'settle',
|
|
3665
|
+
internalType: 'struct Settle',
|
|
3666
|
+
type: 'tuple',
|
|
3667
|
+
components: [
|
|
3668
|
+
{ name: 'tokens', internalType: 'address[]', type: 'address[]' },
|
|
3669
|
+
{ name: 'maxIn', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3670
|
+
{ name: 'minOut', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3671
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3672
|
+
],
|
|
3673
|
+
},
|
|
3674
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3675
|
+
],
|
|
3676
|
+
name: 'execute',
|
|
3677
|
+
outputs: [
|
|
3678
|
+
{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' },
|
|
3679
|
+
{ name: 'flows', internalType: 'int256[]', type: 'int256[]' },
|
|
3680
|
+
],
|
|
3681
|
+
stateMutability: 'nonpayable',
|
|
4985
3682
|
},
|
|
4986
3683
|
{
|
|
4987
3684
|
type: 'function',
|
|
4988
3685
|
inputs: [],
|
|
4989
|
-
name: '
|
|
4990
|
-
outputs: [{ name: '', internalType: '
|
|
3686
|
+
name: 'mgr',
|
|
3687
|
+
outputs: [{ name: '', internalType: 'contract ManagerC', type: 'address' }],
|
|
4991
3688
|
stateMutability: 'view',
|
|
4992
3689
|
},
|
|
4993
3690
|
{
|
|
4994
3691
|
type: 'function',
|
|
4995
|
-
inputs: [
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
3692
|
+
inputs: [
|
|
3693
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3694
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3695
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3696
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3697
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3698
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3699
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3700
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3701
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3702
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3703
|
+
],
|
|
3704
|
+
name: 'mintBlended',
|
|
3705
|
+
outputs: [
|
|
3706
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3707
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3708
|
+
],
|
|
3709
|
+
stateMutability: 'nonpayable',
|
|
4999
3710
|
},
|
|
5000
3711
|
{
|
|
5001
3712
|
type: 'function',
|
|
5002
3713
|
inputs: [
|
|
5003
3714
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5004
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
5005
|
-
{
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5015
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5016
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5017
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5018
|
-
],
|
|
5019
|
-
},
|
|
3715
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3716
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3717
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
3718
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3719
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
3720
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
3721
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3722
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3723
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3724
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5020
3725
|
],
|
|
5021
|
-
name: '
|
|
3726
|
+
name: 'move',
|
|
5022
3727
|
outputs: [
|
|
5023
|
-
{ name: '', internalType: '
|
|
5024
|
-
{ name: '', internalType: '
|
|
5025
|
-
{ name: '', internalType: '
|
|
3728
|
+
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
3729
|
+
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
3730
|
+
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
5026
3731
|
],
|
|
5027
3732
|
stateMutability: 'nonpayable',
|
|
5028
3733
|
},
|
|
3734
|
+
{
|
|
3735
|
+
type: 'function',
|
|
3736
|
+
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
3737
|
+
name: 'multicall',
|
|
3738
|
+
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
3739
|
+
stateMutability: 'nonpayable',
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
type: 'function',
|
|
3743
|
+
inputs: [],
|
|
3744
|
+
name: 'permit2',
|
|
3745
|
+
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
3746
|
+
stateMutability: 'view',
|
|
3747
|
+
},
|
|
5029
3748
|
{
|
|
5030
3749
|
type: 'function',
|
|
5031
3750
|
inputs: [
|
|
5032
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
5033
|
-
{ name: '', internalType: '
|
|
5034
|
-
{
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
type: 'tuple',
|
|
5038
|
-
components: [
|
|
5039
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5040
|
-
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5041
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5042
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5043
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5044
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5045
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5046
|
-
],
|
|
5047
|
-
},
|
|
5048
|
-
],
|
|
5049
|
-
name: 'onInitialize',
|
|
5050
|
-
outputs: [
|
|
5051
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
5052
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5053
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3751
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3752
|
+
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
3753
|
+
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
3754
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3755
|
+
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
5054
3756
|
],
|
|
5055
|
-
|
|
3757
|
+
name: 'quoteSwap',
|
|
3758
|
+
outputs: [],
|
|
3759
|
+
stateMutability: 'nonpayable',
|
|
5056
3760
|
},
|
|
5057
3761
|
{
|
|
5058
3762
|
type: 'function',
|
|
5059
3763
|
inputs: [
|
|
5060
3764
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5061
|
-
{ name: '
|
|
5062
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
5063
|
-
{ name: '
|
|
5064
|
-
{ name: '
|
|
3765
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
3766
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
3767
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3768
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3769
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3770
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3771
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5065
3772
|
],
|
|
5066
|
-
name: '
|
|
5067
|
-
outputs: [{ name: '', internalType: '
|
|
3773
|
+
name: 'swapExactIn',
|
|
3774
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
5068
3775
|
stateMutability: 'nonpayable',
|
|
5069
3776
|
},
|
|
5070
3777
|
{
|
|
5071
3778
|
type: 'function',
|
|
5072
3779
|
inputs: [
|
|
5073
3780
|
{
|
|
5074
|
-
name: '
|
|
5075
|
-
internalType: 'struct
|
|
5076
|
-
type: 'tuple',
|
|
3781
|
+
name: 'hops',
|
|
3782
|
+
internalType: 'struct Hop[]',
|
|
3783
|
+
type: 'tuple[]',
|
|
5077
3784
|
components: [
|
|
5078
3785
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5079
|
-
{ name: '
|
|
5080
|
-
{
|
|
5081
|
-
name: 'action',
|
|
5082
|
-
internalType: 'enum IPolicy.Action',
|
|
5083
|
-
type: 'uint8',
|
|
5084
|
-
},
|
|
5085
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5086
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
5087
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
5088
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
5089
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
5090
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
5091
|
-
],
|
|
5092
|
-
},
|
|
5093
|
-
],
|
|
5094
|
-
name: 'onRegenerate',
|
|
5095
|
-
outputs: [
|
|
5096
|
-
{
|
|
5097
|
-
name: 't',
|
|
5098
|
-
internalType: 'struct IPolicy.Terms',
|
|
5099
|
-
type: 'tuple',
|
|
5100
|
-
components: [
|
|
5101
|
-
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
5102
|
-
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
5103
|
-
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
5104
|
-
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
3786
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
5105
3787
|
],
|
|
5106
3788
|
},
|
|
3789
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
3790
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
3791
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3792
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3793
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3794
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5107
3795
|
],
|
|
3796
|
+
name: 'swapExactInPath',
|
|
3797
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
5108
3798
|
stateMutability: 'nonpayable',
|
|
5109
3799
|
},
|
|
5110
3800
|
{
|
|
5111
3801
|
type: 'function',
|
|
5112
|
-
inputs: [
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
3802
|
+
inputs: [
|
|
3803
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3804
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
3805
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
3806
|
+
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
3807
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
3808
|
+
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
3809
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3810
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3811
|
+
],
|
|
3812
|
+
name: 'swapExactOut',
|
|
3813
|
+
outputs: [{ name: 'amountIn', internalType: 'uint256', type: 'uint256' }],
|
|
3814
|
+
stateMutability: 'nonpayable',
|
|
5116
3815
|
},
|
|
5117
3816
|
{
|
|
5118
3817
|
type: 'function',
|
|
5119
|
-
inputs: [],
|
|
5120
|
-
name: '
|
|
5121
|
-
outputs: [{ name: '', internalType: '
|
|
5122
|
-
stateMutability: '
|
|
3818
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
3819
|
+
name: 'unlockCallback',
|
|
3820
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3821
|
+
stateMutability: 'nonpayable',
|
|
5123
3822
|
},
|
|
5124
3823
|
{
|
|
5125
3824
|
type: 'function',
|
|
5126
|
-
inputs: [
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
3825
|
+
inputs: [
|
|
3826
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3827
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3828
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3829
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
3830
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3831
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
3832
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
3833
|
+
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
3834
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
3835
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3836
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3837
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3838
|
+
],
|
|
3839
|
+
name: 'update',
|
|
3840
|
+
outputs: [
|
|
3841
|
+
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
3842
|
+
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
3843
|
+
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
3844
|
+
],
|
|
3845
|
+
stateMutability: 'nonpayable',
|
|
5130
3846
|
},
|
|
5131
3847
|
{
|
|
5132
3848
|
type: 'function',
|
|
5133
3849
|
inputs: [],
|
|
5134
|
-
name: '
|
|
5135
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3850
|
+
name: 'user',
|
|
3851
|
+
outputs: [{ name: 'u', internalType: 'address', type: 'address' }],
|
|
5136
3852
|
stateMutability: 'view',
|
|
5137
3853
|
},
|
|
5138
3854
|
{
|
|
5139
3855
|
type: 'function',
|
|
5140
3856
|
inputs: [
|
|
5141
3857
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5142
|
-
{ name: '
|
|
5143
|
-
{ name: '
|
|
3858
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3859
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3860
|
+
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
3861
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3862
|
+
{ name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
|
|
3863
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
3864
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
3865
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3866
|
+
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
3867
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3868
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3869
|
+
],
|
|
3870
|
+
name: 'zapIn',
|
|
3871
|
+
outputs: [
|
|
3872
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3873
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
5144
3874
|
],
|
|
5145
|
-
name: 'setListed',
|
|
5146
|
-
outputs: [],
|
|
5147
3875
|
stateMutability: 'nonpayable',
|
|
5148
3876
|
},
|
|
5149
3877
|
{
|
|
5150
|
-
type: '
|
|
3878
|
+
type: 'event',
|
|
3879
|
+
anonymous: false,
|
|
5151
3880
|
inputs: [
|
|
5152
|
-
{ name: '
|
|
5153
|
-
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
3881
|
+
{ name: 'user', internalType: 'address', type: 'address', indexed: true },
|
|
5154
3882
|
],
|
|
5155
|
-
name: '
|
|
5156
|
-
outputs: [],
|
|
5157
|
-
stateMutability: 'nonpayable',
|
|
3883
|
+
name: 'RouterCall',
|
|
5158
3884
|
},
|
|
3885
|
+
{ type: 'error', inputs: [], name: 'BadFloor' },
|
|
3886
|
+
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
3887
|
+
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
3888
|
+
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
3889
|
+
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
3890
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5159
3891
|
{
|
|
5160
|
-
type: '
|
|
3892
|
+
type: 'error',
|
|
3893
|
+
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
3894
|
+
name: 'QuoteResult',
|
|
3895
|
+
},
|
|
3896
|
+
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
3897
|
+
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
3898
|
+
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
3899
|
+
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
3900
|
+
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
3901
|
+
] as const
|
|
3902
|
+
|
|
3903
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3904
|
+
// RouterF
|
|
3905
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3906
|
+
|
|
3907
|
+
export const routerFAbi = [
|
|
3908
|
+
{
|
|
3909
|
+
type: 'constructor',
|
|
5161
3910
|
inputs: [
|
|
5162
|
-
{ name: '
|
|
5163
|
-
{ name: '
|
|
3911
|
+
{ name: '_mgr', internalType: 'contract ManagerF', type: 'address' },
|
|
3912
|
+
{ name: '_permit2', internalType: 'address', type: 'address' },
|
|
5164
3913
|
],
|
|
5165
|
-
name: 'setName',
|
|
5166
|
-
outputs: [],
|
|
5167
3914
|
stateMutability: 'nonpayable',
|
|
5168
3915
|
},
|
|
5169
3916
|
{
|
|
5170
3917
|
type: 'function',
|
|
5171
3918
|
inputs: [
|
|
5172
|
-
{ name: '
|
|
3919
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
5173
3920
|
{
|
|
5174
|
-
name: '
|
|
5175
|
-
internalType: '
|
|
5176
|
-
type: '
|
|
3921
|
+
name: 'permitSingle',
|
|
3922
|
+
internalType: 'struct IPermit2.PermitSingle',
|
|
3923
|
+
type: 'tuple',
|
|
3924
|
+
components: [
|
|
3925
|
+
{
|
|
3926
|
+
name: 'details',
|
|
3927
|
+
internalType: 'struct IPermit2.PermitDetails',
|
|
3928
|
+
type: 'tuple',
|
|
3929
|
+
components: [
|
|
3930
|
+
{ name: 'token', internalType: 'address', type: 'address' },
|
|
3931
|
+
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
3932
|
+
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
3933
|
+
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
3934
|
+
],
|
|
3935
|
+
},
|
|
3936
|
+
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
3937
|
+
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
3938
|
+
],
|
|
5177
3939
|
},
|
|
3940
|
+
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
5178
3941
|
],
|
|
5179
|
-
name: '
|
|
3942
|
+
name: 'applyPermit2',
|
|
5180
3943
|
outputs: [],
|
|
5181
3944
|
stateMutability: 'nonpayable',
|
|
5182
3945
|
},
|
|
5183
3946
|
{
|
|
5184
3947
|
type: 'function',
|
|
5185
3948
|
inputs: [],
|
|
5186
|
-
name: '
|
|
5187
|
-
outputs: [{ name: '', internalType: '
|
|
5188
|
-
stateMutability: 'view',
|
|
5189
|
-
},
|
|
5190
|
-
{
|
|
5191
|
-
type: 'function',
|
|
5192
|
-
inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
5193
|
-
name: 'spacingListed',
|
|
5194
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5195
|
-
stateMutability: 'view',
|
|
5196
|
-
},
|
|
5197
|
-
{
|
|
5198
|
-
type: 'function',
|
|
5199
|
-
inputs: [],
|
|
5200
|
-
name: 'sponsor',
|
|
5201
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5202
|
-
stateMutability: 'view',
|
|
5203
|
-
},
|
|
5204
|
-
{
|
|
5205
|
-
type: 'function',
|
|
5206
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5207
|
-
name: 'swapFeeListed',
|
|
5208
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5209
|
-
stateMutability: 'view',
|
|
5210
|
-
},
|
|
5211
|
-
{
|
|
5212
|
-
type: 'function',
|
|
5213
|
-
inputs: [],
|
|
5214
|
-
name: 'swapFeeTax',
|
|
5215
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3949
|
+
name: 'mgr',
|
|
3950
|
+
outputs: [{ name: '', internalType: 'contract ManagerF', type: 'address' }],
|
|
5216
3951
|
stateMutability: 'view',
|
|
5217
3952
|
},
|
|
5218
3953
|
{
|
|
5219
3954
|
type: 'function',
|
|
5220
|
-
inputs: [{ name: '', internalType: '
|
|
5221
|
-
name: '
|
|
5222
|
-
outputs: [
|
|
5223
|
-
|
|
5224
|
-
name: '',
|
|
5225
|
-
internalType: 'enum SponsorPolicyBase.SwapMode',
|
|
5226
|
-
type: 'uint8',
|
|
5227
|
-
},
|
|
5228
|
-
],
|
|
5229
|
-
stateMutability: 'view',
|
|
3955
|
+
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
3956
|
+
name: 'multicall',
|
|
3957
|
+
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
3958
|
+
stateMutability: 'nonpayable',
|
|
5230
3959
|
},
|
|
5231
3960
|
{
|
|
5232
3961
|
type: 'function',
|
|
5233
3962
|
inputs: [],
|
|
5234
|
-
name: '
|
|
5235
|
-
outputs: [{ name: '', internalType: '
|
|
3963
|
+
name: 'permit2',
|
|
3964
|
+
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
5236
3965
|
stateMutability: 'view',
|
|
5237
3966
|
},
|
|
5238
3967
|
{
|
|
5239
|
-
type: '
|
|
5240
|
-
anonymous: false,
|
|
3968
|
+
type: 'function',
|
|
5241
3969
|
inputs: [
|
|
5242
|
-
{
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
},
|
|
5248
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5249
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3970
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3971
|
+
{ name: 'kind', internalType: 'enum QuoteKind', type: 'uint8' },
|
|
3972
|
+
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
3973
|
+
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
3974
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3975
|
+
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
5250
3976
|
],
|
|
5251
|
-
name: '
|
|
3977
|
+
name: 'quoteSwap',
|
|
3978
|
+
outputs: [],
|
|
3979
|
+
stateMutability: 'nonpayable',
|
|
5252
3980
|
},
|
|
5253
3981
|
{
|
|
5254
|
-
type: '
|
|
5255
|
-
anonymous: false,
|
|
3982
|
+
type: 'function',
|
|
5256
3983
|
inputs: [
|
|
5257
|
-
{
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
},
|
|
5263
|
-
{ name: '
|
|
5264
|
-
{ name: '
|
|
3984
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3985
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3986
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3987
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3988
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3989
|
+
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
3990
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3991
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5265
3992
|
],
|
|
5266
|
-
name: '
|
|
3993
|
+
name: 'rollIn',
|
|
3994
|
+
outputs: [{ name: 'sharesOut', internalType: 'uint256', type: 'uint256' }],
|
|
3995
|
+
stateMutability: 'nonpayable',
|
|
5267
3996
|
},
|
|
5268
3997
|
{
|
|
5269
|
-
type: '
|
|
5270
|
-
anonymous: false,
|
|
3998
|
+
type: 'function',
|
|
5271
3999
|
inputs: [
|
|
5272
|
-
{
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
},
|
|
5278
|
-
{ name: '
|
|
4000
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4001
|
+
{ name: 'kind', internalType: 'enum QuoteKind', type: 'uint8' },
|
|
4002
|
+
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
4003
|
+
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
4004
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
4005
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4006
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4007
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5279
4008
|
],
|
|
5280
|
-
name: '
|
|
4009
|
+
name: 'swapExactIn',
|
|
4010
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4011
|
+
stateMutability: 'nonpayable',
|
|
5281
4012
|
},
|
|
5282
4013
|
{
|
|
5283
|
-
type: '
|
|
5284
|
-
|
|
4014
|
+
type: 'function',
|
|
4015
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
4016
|
+
name: 'unlockCallback',
|
|
4017
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
4018
|
+
stateMutability: 'nonpayable',
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
type: 'function',
|
|
5285
4022
|
inputs: [
|
|
5286
|
-
{
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
},
|
|
5292
|
-
{
|
|
5293
|
-
name: 'name',
|
|
5294
|
-
internalType: 'bytes32',
|
|
5295
|
-
type: 'bytes32',
|
|
5296
|
-
indexed: false,
|
|
5297
|
-
},
|
|
4023
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4024
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4025
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
4026
|
+
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
4027
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4028
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5298
4029
|
],
|
|
5299
|
-
name: '
|
|
4030
|
+
name: 'zapIn',
|
|
4031
|
+
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
4032
|
+
stateMutability: 'nonpayable',
|
|
5300
4033
|
},
|
|
5301
4034
|
{
|
|
5302
|
-
type: '
|
|
5303
|
-
anonymous: false,
|
|
4035
|
+
type: 'function',
|
|
5304
4036
|
inputs: [
|
|
5305
|
-
{
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
},
|
|
5311
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5312
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4037
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4038
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
4039
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
4040
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
4041
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4042
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5313
4043
|
],
|
|
5314
|
-
name: '
|
|
4044
|
+
name: 'zapOut',
|
|
4045
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
4046
|
+
stateMutability: 'nonpayable',
|
|
5315
4047
|
},
|
|
5316
4048
|
{
|
|
5317
4049
|
type: 'event',
|
|
5318
4050
|
anonymous: false,
|
|
5319
4051
|
inputs: [
|
|
5320
|
-
{
|
|
5321
|
-
name: 'poolId',
|
|
5322
|
-
internalType: 'bytes32',
|
|
5323
|
-
type: 'bytes32',
|
|
5324
|
-
indexed: true,
|
|
5325
|
-
},
|
|
5326
|
-
{
|
|
5327
|
-
name: 'mode',
|
|
5328
|
-
internalType: 'enum SponsorPolicyBase.SwapMode',
|
|
5329
|
-
type: 'uint8',
|
|
5330
|
-
indexed: false,
|
|
5331
|
-
},
|
|
4052
|
+
{ name: 'user', internalType: 'address', type: 'address', indexed: true },
|
|
5332
4053
|
],
|
|
5333
|
-
name: '
|
|
5334
|
-
},
|
|
5335
|
-
{ type: 'error', inputs: [], name: 'AlreadyHeld' },
|
|
5336
|
-
{ type: 'error', inputs: [], name: 'BadParams' },
|
|
5337
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5338
|
-
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
5339
|
-
{ type: 'error', inputs: [], name: 'BadTax' },
|
|
5340
|
-
{
|
|
5341
|
-
type: 'error',
|
|
5342
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5343
|
-
name: 'FeeNotListed',
|
|
5344
|
-
},
|
|
5345
|
-
{ type: 'error', inputs: [], name: 'GatesUnavailable' },
|
|
5346
|
-
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
5347
|
-
{
|
|
5348
|
-
type: 'error',
|
|
5349
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5350
|
-
name: 'MintFeeNotListed',
|
|
4054
|
+
name: 'RouterCall',
|
|
5351
4055
|
},
|
|
5352
|
-
{ type: 'error', inputs: [], name: '
|
|
5353
|
-
{ type: 'error', inputs: [], name: '
|
|
5354
|
-
{ type: 'error', inputs: [], name: '
|
|
4056
|
+
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
4057
|
+
{ type: 'error', inputs: [], name: 'BadToken' },
|
|
4058
|
+
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
4059
|
+
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
5355
4060
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5356
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5357
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5358
|
-
{
|
|
5359
|
-
type: 'error',
|
|
5360
|
-
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
5361
|
-
name: 'QuoteNotListed',
|
|
5362
|
-
},
|
|
5363
|
-
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5364
4061
|
{
|
|
5365
4062
|
type: 'error',
|
|
5366
|
-
inputs: [{ name: '
|
|
5367
|
-
name: '
|
|
4063
|
+
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
4064
|
+
name: 'QuoteResult',
|
|
5368
4065
|
},
|
|
4066
|
+
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
4067
|
+
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
4068
|
+
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
4069
|
+
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
5369
4070
|
] as const
|
|
5370
4071
|
|
|
5371
4072
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5372
|
-
//
|
|
4073
|
+
// SponsorPolicyC
|
|
5373
4074
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5374
4075
|
|
|
5375
|
-
export const
|
|
4076
|
+
export const sponsorPolicyCAbi = [
|
|
5376
4077
|
{
|
|
5377
4078
|
type: 'constructor',
|
|
5378
4079
|
inputs: [
|
|
5379
|
-
{ name: 'manager_', internalType: 'contract
|
|
4080
|
+
{ name: 'manager_', internalType: 'contract ManagerC', type: 'address' },
|
|
5380
4081
|
{
|
|
5381
4082
|
name: 'p',
|
|
5382
4083
|
internalType: 'struct SponsorParams',
|
|
@@ -5391,9 +4092,18 @@ export const sponsorPolicyFAbi = [
|
|
|
5391
4092
|
{ name: 'quotes', internalType: 'address[]', type: 'address[]' },
|
|
5392
4093
|
],
|
|
5393
4094
|
},
|
|
4095
|
+
{ name: 'swapFeeTax_', internalType: 'uint256', type: 'uint256' },
|
|
4096
|
+
{ name: 'spacings', internalType: 'int256[]', type: 'int256[]' },
|
|
5394
4097
|
],
|
|
5395
4098
|
stateMutability: 'nonpayable',
|
|
5396
4099
|
},
|
|
4100
|
+
{
|
|
4101
|
+
type: 'function',
|
|
4102
|
+
inputs: [],
|
|
4103
|
+
name: 'SWAP_FEE_TAX_MAX',
|
|
4104
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4105
|
+
stateMutability: 'view',
|
|
4106
|
+
},
|
|
5397
4107
|
{
|
|
5398
4108
|
type: 'function',
|
|
5399
4109
|
inputs: [
|
|
@@ -5493,13 +4203,6 @@ export const sponsorPolicyFAbi = [
|
|
|
5493
4203
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5494
4204
|
stateMutability: 'view',
|
|
5495
4205
|
},
|
|
5496
|
-
{
|
|
5497
|
-
type: 'function',
|
|
5498
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5499
|
-
name: 'maxHarvest',
|
|
5500
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5501
|
-
stateMutability: 'view',
|
|
5502
|
-
},
|
|
5503
4206
|
{
|
|
5504
4207
|
type: 'function',
|
|
5505
4208
|
inputs: [
|
|
@@ -5552,10 +4255,10 @@ export const sponsorPolicyFAbi = [
|
|
|
5552
4255
|
{
|
|
5553
4256
|
type: 'function',
|
|
5554
4257
|
inputs: [
|
|
5555
|
-
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
4258
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5556
4259
|
{ name: '', internalType: 'address', type: 'address' },
|
|
5557
4260
|
{
|
|
5558
|
-
name: '',
|
|
4261
|
+
name: 'key',
|
|
5559
4262
|
internalType: 'struct PoolKeyC',
|
|
5560
4263
|
type: 'tuple',
|
|
5561
4264
|
components: [
|
|
@@ -5576,25 +4279,23 @@ export const sponsorPolicyFAbi = [
|
|
|
5576
4279
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5577
4280
|
{ name: '', internalType: 'address', type: 'address' },
|
|
5578
4281
|
],
|
|
5579
|
-
stateMutability: '
|
|
4282
|
+
stateMutability: 'nonpayable',
|
|
5580
4283
|
},
|
|
5581
4284
|
{
|
|
5582
4285
|
type: 'function',
|
|
5583
4286
|
inputs: [
|
|
5584
|
-
{ name: '
|
|
4287
|
+
{ name: '', internalType: 'bytes32', type: 'bytes32' },
|
|
5585
4288
|
{ name: '', internalType: 'address', type: 'address' },
|
|
5586
4289
|
{
|
|
5587
|
-
name: '
|
|
4290
|
+
name: '',
|
|
5588
4291
|
internalType: 'struct PoolKeyF',
|
|
5589
4292
|
type: 'tuple',
|
|
5590
4293
|
components: [
|
|
5591
4294
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5592
4295
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5593
|
-
{ name: '
|
|
4296
|
+
{ name: 'swapFeeIdx', internalType: 'uint8', type: 'uint8' },
|
|
5594
4297
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5595
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5596
4298
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5597
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
5598
4299
|
],
|
|
5599
4300
|
},
|
|
5600
4301
|
],
|
|
@@ -5604,7 +4305,7 @@ export const sponsorPolicyFAbi = [
|
|
|
5604
4305
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5605
4306
|
{ name: '', internalType: 'address', type: 'address' },
|
|
5606
4307
|
],
|
|
5607
|
-
stateMutability: '
|
|
4308
|
+
stateMutability: 'pure',
|
|
5608
4309
|
},
|
|
5609
4310
|
{
|
|
5610
4311
|
type: 'function',
|
|
@@ -5732,6 +4433,20 @@ export const sponsorPolicyFAbi = [
|
|
|
5732
4433
|
outputs: [],
|
|
5733
4434
|
stateMutability: 'nonpayable',
|
|
5734
4435
|
},
|
|
4436
|
+
{
|
|
4437
|
+
type: 'function',
|
|
4438
|
+
inputs: [],
|
|
4439
|
+
name: 'spacingCurated',
|
|
4440
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4441
|
+
stateMutability: 'view',
|
|
4442
|
+
},
|
|
4443
|
+
{
|
|
4444
|
+
type: 'function',
|
|
4445
|
+
inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
4446
|
+
name: 'spacingListed',
|
|
4447
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4448
|
+
stateMutability: 'view',
|
|
4449
|
+
},
|
|
5735
4450
|
{
|
|
5736
4451
|
type: 'function',
|
|
5737
4452
|
inputs: [],
|
|
@@ -5746,6 +4461,13 @@ export const sponsorPolicyFAbi = [
|
|
|
5746
4461
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5747
4462
|
stateMutability: 'view',
|
|
5748
4463
|
},
|
|
4464
|
+
{
|
|
4465
|
+
type: 'function',
|
|
4466
|
+
inputs: [],
|
|
4467
|
+
name: 'swapFeeTax',
|
|
4468
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4469
|
+
stateMutability: 'view',
|
|
4470
|
+
},
|
|
5749
4471
|
{
|
|
5750
4472
|
type: 'function',
|
|
5751
4473
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5867,6 +4589,7 @@ export const sponsorPolicyFAbi = [
|
|
|
5867
4589
|
{ type: 'error', inputs: [], name: 'BadParams' },
|
|
5868
4590
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5869
4591
|
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
4592
|
+
{ type: 'error', inputs: [], name: 'BadTax' },
|
|
5870
4593
|
{
|
|
5871
4594
|
type: 'error',
|
|
5872
4595
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -5891,4 +4614,9 @@ export const sponsorPolicyFAbi = [
|
|
|
5891
4614
|
name: 'QuoteNotListed',
|
|
5892
4615
|
},
|
|
5893
4616
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4617
|
+
{
|
|
4618
|
+
type: 'error',
|
|
4619
|
+
inputs: [{ name: 'tickSpacing', internalType: 'int256', type: 'int256' }],
|
|
4620
|
+
name: 'SpacingNotListed',
|
|
4621
|
+
},
|
|
5894
4622
|
] as const
|