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