@logswap/sdk 0.5.89 → 0.5.90
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 +7 -2
- package/dist/actions.js +5 -5
- package/dist/claims.js +2 -2
- package/dist/client.js +6 -6
- package/dist/fpool.js +20 -20
- package/dist/generated.d.ts +2674 -2670
- package/dist/generated.js +1694 -1688
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/indexer.js +2 -2
- package/dist/liquidity.js +8 -8
- package/dist/onboard.js +2 -2
- package/dist/pools.js +4 -4
- package/dist/positions.js +6 -6
- package/dist/swap.js +6 -6
- package/package.json +1 -1
- package/src/actions.ts +5 -5
- package/src/claims.ts +2 -2
- package/src/client.ts +6 -6
- package/src/fpool.ts +20 -20
- package/src/generated.ts +1696 -1688
- package/src/index.ts +3 -1
- package/src/indexer.ts +2 -2
- package/src/liquidity.ts +8 -8
- package/src/onboard.ts +2 -2
- package/src/pools.ts +4 -4
- package/src/positions.ts +6 -6
- package/src/swap.ts +6 -6
package/src/generated.ts
CHANGED
|
@@ -2312,10 +2312,10 @@ export const ifPoolManagerMoveAbi = [
|
|
|
2312
2312
|
] as const
|
|
2313
2313
|
|
|
2314
2314
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2315
|
-
//
|
|
2315
|
+
// Lens
|
|
2316
2316
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2317
2317
|
|
|
2318
|
-
export const
|
|
2318
|
+
export const lensAbi = [
|
|
2319
2319
|
{
|
|
2320
2320
|
type: 'constructor',
|
|
2321
2321
|
inputs: [
|
|
@@ -2375,7 +2375,7 @@ export const logswapLensAbi = [
|
|
|
2375
2375
|
outputs: [
|
|
2376
2376
|
{
|
|
2377
2377
|
name: 'out',
|
|
2378
|
-
internalType: 'struct
|
|
2378
|
+
internalType: 'struct Lens.FClaim[]',
|
|
2379
2379
|
type: 'tuple[]',
|
|
2380
2380
|
components: [
|
|
2381
2381
|
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2423,7 +2423,7 @@ export const logswapLensAbi = [
|
|
|
2423
2423
|
outputs: [
|
|
2424
2424
|
{
|
|
2425
2425
|
name: 'out',
|
|
2426
|
-
internalType: 'struct
|
|
2426
|
+
internalType: 'struct Lens.FHolding[]',
|
|
2427
2427
|
type: 'tuple[]',
|
|
2428
2428
|
components: [
|
|
2429
2429
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
@@ -2443,12 +2443,12 @@ export const logswapLensAbi = [
|
|
|
2443
2443
|
outputs: [
|
|
2444
2444
|
{
|
|
2445
2445
|
name: 'v',
|
|
2446
|
-
internalType: 'struct
|
|
2446
|
+
internalType: 'struct Lens.FPoolView',
|
|
2447
2447
|
type: 'tuple',
|
|
2448
2448
|
components: [
|
|
2449
2449
|
{
|
|
2450
2450
|
name: 'pool',
|
|
2451
|
-
internalType: 'struct
|
|
2451
|
+
internalType: 'struct FPoolManager.PoolState',
|
|
2452
2452
|
type: 'tuple',
|
|
2453
2453
|
components: [
|
|
2454
2454
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
@@ -2482,7 +2482,7 @@ export const logswapLensAbi = [
|
|
|
2482
2482
|
{ name: 'unharvested', internalType: 'uint256', type: 'uint256' },
|
|
2483
2483
|
{
|
|
2484
2484
|
name: 'baseAssets',
|
|
2485
|
-
internalType: 'struct
|
|
2485
|
+
internalType: 'struct Lens.FLeg[]',
|
|
2486
2486
|
type: 'tuple[]',
|
|
2487
2487
|
components: [
|
|
2488
2488
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
@@ -2543,7 +2543,7 @@ export const logswapLensAbi = [
|
|
|
2543
2543
|
outputs: [
|
|
2544
2544
|
{
|
|
2545
2545
|
name: 'out',
|
|
2546
|
-
internalType: 'struct
|
|
2546
|
+
internalType: 'struct FPoolManager.PoolState[]',
|
|
2547
2547
|
type: 'tuple[]',
|
|
2548
2548
|
components: [
|
|
2549
2549
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
@@ -2618,7 +2618,7 @@ export const logswapLensAbi = [
|
|
|
2618
2618
|
outputs: [
|
|
2619
2619
|
{
|
|
2620
2620
|
name: 'out',
|
|
2621
|
-
internalType: 'struct
|
|
2621
|
+
internalType: 'struct Lens.Holding[]',
|
|
2622
2622
|
type: 'tuple[]',
|
|
2623
2623
|
components: [
|
|
2624
2624
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2704,7 +2704,7 @@ export const logswapLensAbi = [
|
|
|
2704
2704
|
{ name: 'fees', internalType: 'uint256', type: 'uint256' },
|
|
2705
2705
|
{
|
|
2706
2706
|
name: 'positions',
|
|
2707
|
-
internalType: 'struct
|
|
2707
|
+
internalType: 'struct Lens.PositionValue[]',
|
|
2708
2708
|
type: 'tuple[]',
|
|
2709
2709
|
components: [
|
|
2710
2710
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2734,7 +2734,7 @@ export const logswapLensAbi = [
|
|
|
2734
2734
|
outputs: [
|
|
2735
2735
|
{
|
|
2736
2736
|
name: 'held',
|
|
2737
|
-
internalType: 'struct
|
|
2737
|
+
internalType: 'struct Lens.HeldPosition[]',
|
|
2738
2738
|
type: 'tuple[]',
|
|
2739
2739
|
components: [
|
|
2740
2740
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2888,92 +2888,172 @@ export const logswapLensAbi = [
|
|
|
2888
2888
|
] as const
|
|
2889
2889
|
|
|
2890
2890
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2891
|
-
//
|
|
2891
|
+
// PadPolicy
|
|
2892
2892
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2893
2893
|
|
|
2894
|
-
export const
|
|
2894
|
+
export const padPolicyAbi = [
|
|
2895
2895
|
{
|
|
2896
2896
|
type: 'constructor',
|
|
2897
2897
|
inputs: [
|
|
2898
|
-
{
|
|
2899
|
-
|
|
2900
|
-
|
|
2898
|
+
{
|
|
2899
|
+
name: '_manager',
|
|
2900
|
+
internalType: 'contract FPoolManager',
|
|
2901
|
+
type: 'address',
|
|
2902
|
+
},
|
|
2903
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2904
|
+
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
2901
2905
|
],
|
|
2902
2906
|
stateMutability: 'nonpayable',
|
|
2903
2907
|
},
|
|
2908
|
+
{
|
|
2909
|
+
type: 'function',
|
|
2910
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2911
|
+
name: 'acceptAuthority',
|
|
2912
|
+
outputs: [],
|
|
2913
|
+
stateMutability: 'nonpayable',
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
type: 'function',
|
|
2917
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2918
|
+
name: 'authority',
|
|
2919
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2920
|
+
stateMutability: 'view',
|
|
2921
|
+
},
|
|
2904
2922
|
{
|
|
2905
2923
|
type: 'function',
|
|
2906
2924
|
inputs: [],
|
|
2907
|
-
name: '
|
|
2908
|
-
outputs: [{ name: '', internalType: '
|
|
2925
|
+
name: 'cManager',
|
|
2926
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2909
2927
|
stateMutability: 'view',
|
|
2910
2928
|
},
|
|
2911
2929
|
{
|
|
2912
2930
|
type: 'function',
|
|
2913
|
-
inputs: [
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
internalType: 'struct IPermit2.PermitSingle',
|
|
2918
|
-
type: 'tuple',
|
|
2919
|
-
components: [
|
|
2920
|
-
{
|
|
2921
|
-
name: 'details',
|
|
2922
|
-
internalType: 'struct IPermit2.PermitDetails',
|
|
2923
|
-
type: 'tuple',
|
|
2924
|
-
components: [
|
|
2925
|
-
{ name: 'token', internalType: 'address', type: 'address' },
|
|
2926
|
-
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
2927
|
-
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
2928
|
-
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
2929
|
-
],
|
|
2930
|
-
},
|
|
2931
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
2932
|
-
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
2933
|
-
],
|
|
2934
|
-
},
|
|
2935
|
-
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
2936
|
-
],
|
|
2937
|
-
name: 'applyPermit2',
|
|
2938
|
-
outputs: [],
|
|
2939
|
-
stateMutability: 'nonpayable',
|
|
2931
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2932
|
+
name: 'creator',
|
|
2933
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2934
|
+
stateMutability: 'view',
|
|
2940
2935
|
},
|
|
2941
2936
|
{
|
|
2942
2937
|
type: 'function',
|
|
2943
|
-
inputs: [
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2938
|
+
inputs: [],
|
|
2939
|
+
name: 'creatorShareMax',
|
|
2940
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2941
|
+
stateMutability: 'view',
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
type: 'function',
|
|
2945
|
+
inputs: [],
|
|
2946
|
+
name: 'creatorShareMin',
|
|
2947
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2948
|
+
stateMutability: 'view',
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
type: 'function',
|
|
2952
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2953
|
+
name: 'creatorShareOf',
|
|
2954
|
+
outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
|
|
2955
|
+
stateMutability: 'view',
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
type: 'function',
|
|
2959
|
+
inputs: [],
|
|
2960
|
+
name: 'feeCurated',
|
|
2961
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2962
|
+
stateMutability: 'view',
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
type: 'function',
|
|
2966
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2967
|
+
name: 'feeListed',
|
|
2968
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
2969
|
+
stateMutability: 'view',
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
type: 'function',
|
|
2973
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2974
|
+
name: 'incomeTax',
|
|
2975
|
+
outputs: [
|
|
2951
2976
|
{ name: '', internalType: 'address', type: 'address' },
|
|
2952
2977
|
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
2953
2978
|
],
|
|
2954
|
-
|
|
2979
|
+
stateMutability: 'view',
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
type: 'function',
|
|
2983
|
+
inputs: [],
|
|
2984
|
+
name: 'incomeTaxRate',
|
|
2985
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2986
|
+
stateMutability: 'view',
|
|
2987
|
+
},
|
|
2988
|
+
{
|
|
2989
|
+
type: 'function',
|
|
2990
|
+
inputs: [],
|
|
2991
|
+
name: 'kind',
|
|
2992
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
2993
|
+
stateMutability: 'pure',
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
type: 'function',
|
|
2997
|
+
inputs: [],
|
|
2998
|
+
name: 'manager',
|
|
2955
2999
|
outputs: [
|
|
2956
|
-
{ name: '
|
|
2957
|
-
{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' },
|
|
3000
|
+
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
2958
3001
|
],
|
|
2959
|
-
stateMutability: '
|
|
3002
|
+
stateMutability: 'view',
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
type: 'function',
|
|
3006
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3007
|
+
name: 'managerOf',
|
|
3008
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3009
|
+
stateMutability: 'view',
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
type: 'function',
|
|
3013
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
3014
|
+
name: 'maxHarvest',
|
|
3015
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3016
|
+
stateMutability: 'view',
|
|
2960
3017
|
},
|
|
2961
3018
|
{
|
|
2962
3019
|
type: 'function',
|
|
2963
3020
|
inputs: [
|
|
2964
|
-
{
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
3021
|
+
{
|
|
3022
|
+
name: 'a',
|
|
3023
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3024
|
+
type: 'tuple',
|
|
3025
|
+
components: [
|
|
3026
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3027
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3028
|
+
{
|
|
3029
|
+
name: 'action',
|
|
3030
|
+
internalType: 'enum IFPolicy.Action',
|
|
3031
|
+
type: 'uint8',
|
|
3032
|
+
},
|
|
3033
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3034
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3035
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3036
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3037
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3038
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3039
|
+
],
|
|
3040
|
+
},
|
|
2969
3041
|
],
|
|
2970
|
-
name: '
|
|
2971
|
-
outputs: [{ name: '
|
|
2972
|
-
stateMutability: '
|
|
3042
|
+
name: 'may',
|
|
3043
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3044
|
+
stateMutability: 'view',
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
type: 'function',
|
|
3048
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3049
|
+
name: 'nameOf',
|
|
3050
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3051
|
+
stateMutability: 'view',
|
|
2973
3052
|
},
|
|
2974
3053
|
{
|
|
2975
3054
|
type: 'function',
|
|
2976
3055
|
inputs: [
|
|
3056
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
2977
3057
|
{
|
|
2978
3058
|
name: '',
|
|
2979
3059
|
internalType: 'struct CPoolKey',
|
|
@@ -2987,550 +3067,552 @@ export const logswapRouterAbi = [
|
|
|
2987
3067
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
2988
3068
|
],
|
|
2989
3069
|
},
|
|
2990
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
2991
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
2992
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
2993
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
2994
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
2995
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
2996
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
2997
3070
|
],
|
|
2998
|
-
name: '
|
|
3071
|
+
name: 'onCInitialize',
|
|
2999
3072
|
outputs: [
|
|
3000
|
-
{ name: '
|
|
3001
|
-
{ name: '
|
|
3002
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3073
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
3074
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3003
3075
|
],
|
|
3004
|
-
stateMutability: '
|
|
3076
|
+
stateMutability: 'pure',
|
|
3005
3077
|
},
|
|
3006
3078
|
{
|
|
3007
3079
|
type: 'function',
|
|
3008
3080
|
inputs: [
|
|
3081
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3009
3082
|
{
|
|
3010
|
-
name: '
|
|
3011
|
-
internalType: 'struct
|
|
3083
|
+
name: 'key',
|
|
3084
|
+
internalType: 'struct FPoolKey',
|
|
3012
3085
|
type: 'tuple',
|
|
3013
3086
|
components: [
|
|
3014
|
-
{ name: '
|
|
3015
|
-
{ name: '
|
|
3016
|
-
{ name: '
|
|
3087
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3088
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3089
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3090
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3091
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3092
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3093
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
3017
3094
|
],
|
|
3018
3095
|
},
|
|
3019
3096
|
],
|
|
3020
|
-
name: '
|
|
3021
|
-
outputs: [{ name: '', internalType: '
|
|
3022
|
-
stateMutability: '
|
|
3097
|
+
name: 'onInitialize',
|
|
3098
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3099
|
+
stateMutability: 'nonpayable',
|
|
3023
3100
|
},
|
|
3024
3101
|
{
|
|
3025
3102
|
type: 'function',
|
|
3026
3103
|
inputs: [
|
|
3027
|
-
{
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3033
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3034
|
-
],
|
|
3035
|
-
},
|
|
3104
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3105
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
3106
|
+
{ name: 'creator_', internalType: 'address', type: 'address' },
|
|
3107
|
+
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
3108
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
3036
3109
|
],
|
|
3037
|
-
name: '
|
|
3038
|
-
outputs: [{ name: '', internalType: '
|
|
3039
|
-
stateMutability: '
|
|
3110
|
+
name: 'onMigrate',
|
|
3111
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
3112
|
+
stateMutability: 'nonpayable',
|
|
3040
3113
|
},
|
|
3041
3114
|
{
|
|
3042
3115
|
type: 'function',
|
|
3043
3116
|
inputs: [
|
|
3044
3117
|
{
|
|
3045
3118
|
name: 'a',
|
|
3046
|
-
internalType: 'struct
|
|
3119
|
+
internalType: 'struct IFPolicy.Ask',
|
|
3047
3120
|
type: 'tuple',
|
|
3048
3121
|
components: [
|
|
3049
3122
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3050
|
-
{ name: '
|
|
3051
|
-
{
|
|
3123
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
3124
|
+
{
|
|
3125
|
+
name: 'action',
|
|
3126
|
+
internalType: 'enum IFPolicy.Action',
|
|
3127
|
+
type: 'uint8',
|
|
3128
|
+
},
|
|
3129
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
3130
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3131
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
3132
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
3052
3133
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3134
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
3053
3135
|
],
|
|
3054
3136
|
},
|
|
3055
3137
|
],
|
|
3056
|
-
name: '
|
|
3057
|
-
outputs: [
|
|
3058
|
-
stateMutability: 'pure',
|
|
3059
|
-
},
|
|
3060
|
-
{
|
|
3061
|
-
type: 'function',
|
|
3062
|
-
inputs: [
|
|
3138
|
+
name: 'onRegenerate',
|
|
3139
|
+
outputs: [
|
|
3063
3140
|
{
|
|
3064
|
-
name: '
|
|
3065
|
-
internalType: 'struct
|
|
3141
|
+
name: 't',
|
|
3142
|
+
internalType: 'struct IFPolicy.Terms',
|
|
3066
3143
|
type: 'tuple',
|
|
3067
3144
|
components: [
|
|
3068
|
-
{
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
components: [
|
|
3073
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3074
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3075
|
-
],
|
|
3076
|
-
},
|
|
3077
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3078
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3145
|
+
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
3146
|
+
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
3147
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
3148
|
+
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
3079
3149
|
],
|
|
3080
3150
|
},
|
|
3081
3151
|
],
|
|
3082
|
-
|
|
3083
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3084
|
-
stateMutability: 'pure',
|
|
3152
|
+
stateMutability: 'nonpayable',
|
|
3085
3153
|
},
|
|
3086
3154
|
{
|
|
3087
3155
|
type: 'function',
|
|
3088
3156
|
inputs: [
|
|
3089
|
-
{
|
|
3090
|
-
|
|
3091
|
-
internalType: 'struct SwapAct',
|
|
3092
|
-
type: 'tuple',
|
|
3093
|
-
components: [
|
|
3094
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3095
|
-
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
3096
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
3097
|
-
{ name: 'limit', internalType: 'uint256', type: 'uint256' },
|
|
3098
|
-
],
|
|
3099
|
-
},
|
|
3157
|
+
{ name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3158
|
+
{ name: 'nonce', internalType: 'uint128', type: 'uint128' },
|
|
3100
3159
|
],
|
|
3101
|
-
name: '
|
|
3102
|
-
outputs: [{ name: '', internalType: '
|
|
3160
|
+
name: 'pack',
|
|
3161
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3103
3162
|
stateMutability: 'pure',
|
|
3104
3163
|
},
|
|
3105
3164
|
{
|
|
3106
3165
|
type: 'function',
|
|
3107
|
-
inputs: [
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
3119
|
-
],
|
|
3120
|
-
},
|
|
3121
|
-
],
|
|
3122
|
-
name: 'encodeUpdate',
|
|
3123
|
-
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
3124
|
-
stateMutability: 'pure',
|
|
3166
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3167
|
+
name: 'padOf',
|
|
3168
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3169
|
+
stateMutability: 'view',
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
type: 'function',
|
|
3173
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3174
|
+
name: 'pendingAuthority',
|
|
3175
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3176
|
+
stateMutability: 'view',
|
|
3125
3177
|
},
|
|
3126
3178
|
{
|
|
3127
3179
|
type: 'function',
|
|
3128
3180
|
inputs: [
|
|
3129
|
-
{
|
|
3130
|
-
|
|
3131
|
-
internalType: 'struct Action[]',
|
|
3132
|
-
type: 'tuple[]',
|
|
3133
|
-
components: [
|
|
3134
|
-
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
3135
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
3136
|
-
],
|
|
3137
|
-
},
|
|
3138
|
-
{
|
|
3139
|
-
name: '',
|
|
3140
|
-
internalType: 'struct Settle',
|
|
3141
|
-
type: 'tuple',
|
|
3142
|
-
components: [
|
|
3143
|
-
{ name: 'tokens', internalType: 'address[]', type: 'address[]' },
|
|
3144
|
-
{ name: 'maxIn', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3145
|
-
{ name: 'minOut', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3146
|
-
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
3147
|
-
],
|
|
3148
|
-
},
|
|
3149
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3150
|
-
],
|
|
3151
|
-
name: 'execute',
|
|
3152
|
-
outputs: [
|
|
3153
|
-
{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' },
|
|
3154
|
-
{ name: 'flows', internalType: 'int256[]', type: 'int256[]' },
|
|
3181
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3182
|
+
{ name: 'next', internalType: 'address', type: 'address' },
|
|
3155
3183
|
],
|
|
3184
|
+
name: 'proposeAuthority',
|
|
3185
|
+
outputs: [],
|
|
3156
3186
|
stateMutability: 'nonpayable',
|
|
3157
3187
|
},
|
|
3158
3188
|
{
|
|
3159
3189
|
type: 'function',
|
|
3160
3190
|
inputs: [],
|
|
3161
|
-
name: '
|
|
3162
|
-
outputs: [
|
|
3163
|
-
{ name: '', internalType: 'contract LogswapRouterC', type: 'address' },
|
|
3164
|
-
],
|
|
3191
|
+
name: 'quoteCurated',
|
|
3192
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3165
3193
|
stateMutability: 'view',
|
|
3166
3194
|
},
|
|
3167
3195
|
{
|
|
3168
3196
|
type: 'function',
|
|
3169
|
-
inputs: [],
|
|
3170
|
-
name: '
|
|
3171
|
-
outputs: [
|
|
3172
|
-
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
3173
|
-
],
|
|
3197
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3198
|
+
name: 'quoteListed',
|
|
3199
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3174
3200
|
stateMutability: 'view',
|
|
3175
3201
|
},
|
|
3176
3202
|
{
|
|
3177
3203
|
type: 'function',
|
|
3178
|
-
inputs: [],
|
|
3179
|
-
name: '
|
|
3180
|
-
outputs: [
|
|
3181
|
-
|
|
3182
|
-
],
|
|
3183
|
-
stateMutability: 'view',
|
|
3204
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
3205
|
+
name: 'setCManager',
|
|
3206
|
+
outputs: [],
|
|
3207
|
+
stateMutability: 'nonpayable',
|
|
3184
3208
|
},
|
|
3185
3209
|
{
|
|
3186
3210
|
type: 'function',
|
|
3187
|
-
inputs: [
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3191
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3192
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3193
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3194
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3195
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3196
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3197
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3198
|
-
],
|
|
3199
|
-
name: 'mintBlended',
|
|
3200
|
-
outputs: [
|
|
3201
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3202
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3203
|
-
],
|
|
3211
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
3212
|
+
name: 'setFeeCurated',
|
|
3213
|
+
outputs: [],
|
|
3204
3214
|
stateMutability: 'nonpayable',
|
|
3205
3215
|
},
|
|
3206
3216
|
{
|
|
3207
3217
|
type: 'function',
|
|
3208
3218
|
inputs: [
|
|
3209
|
-
{ name: '', internalType: '
|
|
3210
|
-
{ name: '', internalType: '
|
|
3211
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3212
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3213
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3214
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3215
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3216
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3217
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3218
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3219
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3220
|
-
],
|
|
3221
|
-
name: 'move',
|
|
3222
|
-
outputs: [
|
|
3223
|
-
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
3224
|
-
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
3225
|
-
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
3219
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
3220
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3226
3221
|
],
|
|
3222
|
+
name: 'setFeeListed',
|
|
3223
|
+
outputs: [],
|
|
3227
3224
|
stateMutability: 'nonpayable',
|
|
3228
3225
|
},
|
|
3229
3226
|
{
|
|
3230
3227
|
type: 'function',
|
|
3231
|
-
inputs: [{ name: '
|
|
3232
|
-
name: '
|
|
3233
|
-
outputs: [
|
|
3228
|
+
inputs: [{ name: 'rate', internalType: 'uint256', type: 'uint256' }],
|
|
3229
|
+
name: 'setIncomeTaxRate',
|
|
3230
|
+
outputs: [],
|
|
3234
3231
|
stateMutability: 'nonpayable',
|
|
3235
3232
|
},
|
|
3236
|
-
{
|
|
3237
|
-
type: 'function',
|
|
3238
|
-
inputs: [],
|
|
3239
|
-
name: 'permit2',
|
|
3240
|
-
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
3241
|
-
stateMutability: 'view',
|
|
3242
|
-
},
|
|
3243
3233
|
{
|
|
3244
3234
|
type: 'function',
|
|
3245
3235
|
inputs: [
|
|
3246
3236
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3247
|
-
{
|
|
3248
|
-
name: 'kind',
|
|
3249
|
-
internalType: 'enum FPoolManager.QuoteKind',
|
|
3250
|
-
type: 'uint8',
|
|
3251
|
-
},
|
|
3252
|
-
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
3253
|
-
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
3254
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3255
|
-
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
3237
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
3256
3238
|
],
|
|
3257
|
-
name: '
|
|
3239
|
+
name: 'setName',
|
|
3258
3240
|
outputs: [],
|
|
3259
3241
|
stateMutability: 'nonpayable',
|
|
3260
3242
|
},
|
|
3261
3243
|
{
|
|
3262
3244
|
type: 'function',
|
|
3263
|
-
inputs: [
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
3267
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
3268
|
-
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3269
|
-
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
3270
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3271
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3272
|
-
],
|
|
3273
|
-
name: 'rollIn',
|
|
3274
|
-
outputs: [{ name: 'sharesOut', internalType: 'uint256', type: 'uint256' }],
|
|
3245
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
3246
|
+
name: 'setQuoteCurated',
|
|
3247
|
+
outputs: [],
|
|
3275
3248
|
stateMutability: 'nonpayable',
|
|
3276
3249
|
},
|
|
3277
3250
|
{
|
|
3278
3251
|
type: 'function',
|
|
3279
3252
|
inputs: [
|
|
3280
|
-
{ name: '', internalType: '
|
|
3281
|
-
{ name: '', internalType: '
|
|
3282
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3283
|
-
{ name: '', internalType: 'bool', type: 'bool' },
|
|
3284
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3285
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3286
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3287
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3253
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3254
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3288
3255
|
],
|
|
3289
|
-
name: '
|
|
3290
|
-
outputs: [
|
|
3256
|
+
name: 'setQuoteListed',
|
|
3257
|
+
outputs: [],
|
|
3291
3258
|
stateMutability: 'nonpayable',
|
|
3292
3259
|
},
|
|
3293
3260
|
{
|
|
3294
3261
|
type: 'function',
|
|
3295
3262
|
inputs: [
|
|
3296
|
-
{ name: '
|
|
3297
|
-
{
|
|
3298
|
-
|
|
3299
|
-
internalType: 'enum FPoolManager.QuoteKind',
|
|
3300
|
-
type: 'uint8',
|
|
3301
|
-
},
|
|
3302
|
-
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
3303
|
-
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
3304
|
-
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
3305
|
-
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
3306
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3307
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3263
|
+
{ name: 'growth', internalType: 'uint256', type: 'uint256' },
|
|
3264
|
+
{ name: 'minimumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3265
|
+
{ name: 'maximumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3308
3266
|
],
|
|
3309
|
-
name: '
|
|
3310
|
-
outputs: [
|
|
3267
|
+
name: 'setSchedule',
|
|
3268
|
+
outputs: [],
|
|
3311
3269
|
stateMutability: 'nonpayable',
|
|
3312
3270
|
},
|
|
3313
3271
|
{
|
|
3314
3272
|
type: 'function',
|
|
3315
3273
|
inputs: [
|
|
3316
|
-
{
|
|
3317
|
-
|
|
3318
|
-
internalType: 'struct Hop[]',
|
|
3319
|
-
type: 'tuple[]',
|
|
3320
|
-
components: [
|
|
3321
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3322
|
-
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
3323
|
-
],
|
|
3324
|
-
},
|
|
3325
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3326
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3327
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3328
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3329
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3330
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3274
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3275
|
+
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
3331
3276
|
],
|
|
3332
|
-
name: '
|
|
3333
|
-
outputs: [
|
|
3277
|
+
name: 'setThresholdBase',
|
|
3278
|
+
outputs: [],
|
|
3334
3279
|
stateMutability: 'nonpayable',
|
|
3335
3280
|
},
|
|
3336
3281
|
{
|
|
3337
3282
|
type: 'function',
|
|
3338
|
-
inputs: [
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
{ name: '', internalType: 'bool', type: 'bool' },
|
|
3343
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3344
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3345
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3346
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3347
|
-
],
|
|
3348
|
-
name: 'swapExactOut',
|
|
3349
|
-
outputs: [{ name: 'amountIn', internalType: 'uint256', type: 'uint256' }],
|
|
3350
|
-
stateMutability: 'nonpayable',
|
|
3283
|
+
inputs: [],
|
|
3284
|
+
name: 'sponsor',
|
|
3285
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3286
|
+
stateMutability: 'view',
|
|
3351
3287
|
},
|
|
3352
3288
|
{
|
|
3353
3289
|
type: 'function',
|
|
3354
|
-
inputs: [
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3290
|
+
inputs: [
|
|
3291
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3292
|
+
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
3293
|
+
],
|
|
3294
|
+
name: 'threshold',
|
|
3295
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3296
|
+
stateMutability: 'view',
|
|
3358
3297
|
},
|
|
3359
3298
|
{
|
|
3360
3299
|
type: 'function',
|
|
3361
|
-
inputs: [
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3366
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3367
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3368
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3369
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3370
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3371
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3372
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3373
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3374
|
-
],
|
|
3375
|
-
name: 'update',
|
|
3376
|
-
outputs: [
|
|
3377
|
-
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
3378
|
-
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
3379
|
-
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
3380
|
-
],
|
|
3381
|
-
stateMutability: 'nonpayable',
|
|
3300
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3301
|
+
name: 'thresholdBaseOf',
|
|
3302
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3303
|
+
stateMutability: 'view',
|
|
3382
3304
|
},
|
|
3383
3305
|
{
|
|
3384
3306
|
type: 'function',
|
|
3385
3307
|
inputs: [],
|
|
3386
|
-
name: '
|
|
3387
|
-
outputs: [{ name: '
|
|
3308
|
+
name: 'thresholdGrowth',
|
|
3309
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3388
3310
|
stateMutability: 'view',
|
|
3389
3311
|
},
|
|
3390
3312
|
{
|
|
3391
3313
|
type: 'function',
|
|
3392
3314
|
inputs: [
|
|
3393
|
-
{ name: '', internalType: '
|
|
3394
|
-
{ name: '', internalType: '
|
|
3395
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3396
|
-
{ name: '', internalType: 'bool', type: 'bool' },
|
|
3397
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3398
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3399
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3400
|
-
{ name: '', internalType: 'int256', type: 'int256' },
|
|
3401
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3402
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3403
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
3404
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
3405
|
-
],
|
|
3406
|
-
name: 'zapIn',
|
|
3407
|
-
outputs: [
|
|
3408
|
-
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
3409
|
-
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
3315
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3316
|
+
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
3410
3317
|
],
|
|
3411
|
-
|
|
3318
|
+
name: 'thresholdOf',
|
|
3319
|
+
outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
|
|
3320
|
+
stateMutability: 'view',
|
|
3412
3321
|
},
|
|
3413
3322
|
{
|
|
3414
3323
|
type: 'function',
|
|
3415
|
-
inputs: [
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
3420
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
3421
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
3422
|
-
],
|
|
3423
|
-
name: 'zapIn',
|
|
3424
|
-
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
3425
|
-
stateMutability: 'nonpayable',
|
|
3324
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3325
|
+
name: 'thresholdSet',
|
|
3326
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3327
|
+
stateMutability: 'view',
|
|
3426
3328
|
},
|
|
3427
3329
|
{
|
|
3428
|
-
type: '
|
|
3330
|
+
type: 'event',
|
|
3331
|
+
anonymous: false,
|
|
3429
3332
|
inputs: [
|
|
3430
|
-
{
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3333
|
+
{
|
|
3334
|
+
name: 'poolId',
|
|
3335
|
+
internalType: 'bytes32',
|
|
3336
|
+
type: 'bytes32',
|
|
3337
|
+
indexed: true,
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
name: 'current',
|
|
3341
|
+
internalType: 'address',
|
|
3342
|
+
type: 'address',
|
|
3343
|
+
indexed: true,
|
|
3344
|
+
},
|
|
3345
|
+
{
|
|
3346
|
+
name: 'proposed',
|
|
3347
|
+
internalType: 'address',
|
|
3348
|
+
type: 'address',
|
|
3349
|
+
indexed: true,
|
|
3350
|
+
},
|
|
3436
3351
|
],
|
|
3437
|
-
name: '
|
|
3438
|
-
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
3439
|
-
stateMutability: 'nonpayable',
|
|
3352
|
+
name: 'AuthorityProposed',
|
|
3440
3353
|
},
|
|
3441
3354
|
{
|
|
3442
3355
|
type: 'event',
|
|
3443
3356
|
anonymous: false,
|
|
3444
3357
|
inputs: [
|
|
3445
|
-
{
|
|
3358
|
+
{
|
|
3359
|
+
name: 'poolId',
|
|
3360
|
+
internalType: 'bytes32',
|
|
3361
|
+
type: 'bytes32',
|
|
3362
|
+
indexed: true,
|
|
3363
|
+
},
|
|
3364
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
3365
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
3446
3366
|
],
|
|
3447
|
-
name: '
|
|
3448
|
-
},
|
|
3449
|
-
{ type: 'error', inputs: [], name: 'BadFloor' },
|
|
3450
|
-
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
3451
|
-
{ type: 'error', inputs: [], name: 'BadToken' },
|
|
3452
|
-
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
3453
|
-
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
3454
|
-
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
3455
|
-
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
3456
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3457
|
-
{
|
|
3458
|
-
type: 'error',
|
|
3459
|
-
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
3460
|
-
name: 'QuoteResult',
|
|
3367
|
+
name: 'AuthoritySet',
|
|
3461
3368
|
},
|
|
3462
|
-
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
3463
|
-
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
3464
|
-
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
3465
|
-
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
3466
|
-
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
3467
|
-
] as const
|
|
3468
|
-
|
|
3469
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3470
|
-
// PadPolicy
|
|
3471
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3472
|
-
|
|
3473
|
-
export const padPolicyAbi = [
|
|
3474
3369
|
{
|
|
3475
|
-
type: '
|
|
3370
|
+
type: 'event',
|
|
3371
|
+
anonymous: false,
|
|
3476
3372
|
inputs: [
|
|
3477
3373
|
{
|
|
3478
|
-
name: '
|
|
3479
|
-
internalType: '
|
|
3374
|
+
name: 'manager',
|
|
3375
|
+
internalType: 'address',
|
|
3480
3376
|
type: 'address',
|
|
3377
|
+
indexed: true,
|
|
3481
3378
|
},
|
|
3482
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3483
|
-
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
3484
3379
|
],
|
|
3485
|
-
|
|
3380
|
+
name: 'CManagerSet',
|
|
3486
3381
|
},
|
|
3487
3382
|
{
|
|
3488
|
-
type: '
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3383
|
+
type: 'event',
|
|
3384
|
+
anonymous: false,
|
|
3385
|
+
inputs: [
|
|
3386
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
3387
|
+
],
|
|
3388
|
+
name: 'FeeCuratedSet',
|
|
3493
3389
|
},
|
|
3494
3390
|
{
|
|
3495
|
-
type: '
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3391
|
+
type: 'event',
|
|
3392
|
+
anonymous: false,
|
|
3393
|
+
inputs: [
|
|
3394
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3395
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
3396
|
+
],
|
|
3397
|
+
name: 'FeeListed',
|
|
3500
3398
|
},
|
|
3501
3399
|
{
|
|
3502
|
-
type: '
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3400
|
+
type: 'event',
|
|
3401
|
+
anonymous: false,
|
|
3402
|
+
inputs: [
|
|
3403
|
+
{
|
|
3404
|
+
name: 'poolId',
|
|
3405
|
+
internalType: 'bytes32',
|
|
3406
|
+
type: 'bytes32',
|
|
3407
|
+
indexed: true,
|
|
3408
|
+
},
|
|
3409
|
+
{ name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3410
|
+
{
|
|
3411
|
+
name: 'income',
|
|
3412
|
+
internalType: 'uint256',
|
|
3413
|
+
type: 'uint256',
|
|
3414
|
+
indexed: false,
|
|
3415
|
+
},
|
|
3416
|
+
],
|
|
3417
|
+
name: 'Graduated',
|
|
3507
3418
|
},
|
|
3508
3419
|
{
|
|
3509
|
-
type: '
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3420
|
+
type: 'event',
|
|
3421
|
+
anonymous: false,
|
|
3422
|
+
inputs: [
|
|
3423
|
+
{
|
|
3424
|
+
name: 'rate',
|
|
3425
|
+
internalType: 'uint256',
|
|
3426
|
+
type: 'uint256',
|
|
3427
|
+
indexed: false,
|
|
3428
|
+
},
|
|
3429
|
+
],
|
|
3430
|
+
name: 'IncomeTaxRateSet',
|
|
3514
3431
|
},
|
|
3515
3432
|
{
|
|
3516
|
-
type: '
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3433
|
+
type: 'event',
|
|
3434
|
+
anonymous: false,
|
|
3435
|
+
inputs: [
|
|
3436
|
+
{
|
|
3437
|
+
name: 'poolId',
|
|
3438
|
+
internalType: 'bytes32',
|
|
3439
|
+
type: 'bytes32',
|
|
3440
|
+
indexed: true,
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
name: 'name',
|
|
3444
|
+
internalType: 'bytes32',
|
|
3445
|
+
type: 'bytes32',
|
|
3446
|
+
indexed: false,
|
|
3447
|
+
},
|
|
3448
|
+
],
|
|
3449
|
+
name: 'NameSet',
|
|
3521
3450
|
},
|
|
3522
3451
|
{
|
|
3523
|
-
type: '
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3452
|
+
type: 'event',
|
|
3453
|
+
anonymous: false,
|
|
3454
|
+
inputs: [
|
|
3455
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
3456
|
+
],
|
|
3457
|
+
name: 'QuoteCuratedSet',
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
type: 'event',
|
|
3461
|
+
anonymous: false,
|
|
3462
|
+
inputs: [
|
|
3463
|
+
{
|
|
3464
|
+
name: 'quote',
|
|
3465
|
+
internalType: 'address',
|
|
3466
|
+
type: 'address',
|
|
3467
|
+
indexed: true,
|
|
3468
|
+
},
|
|
3469
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
3470
|
+
],
|
|
3471
|
+
name: 'QuoteListed',
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
type: 'event',
|
|
3475
|
+
anonymous: false,
|
|
3476
|
+
inputs: [
|
|
3477
|
+
{
|
|
3478
|
+
name: 'thresholdGrowth',
|
|
3479
|
+
internalType: 'uint256',
|
|
3480
|
+
type: 'uint256',
|
|
3481
|
+
indexed: false,
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
name: 'creatorShareMin',
|
|
3485
|
+
internalType: 'uint256',
|
|
3486
|
+
type: 'uint256',
|
|
3487
|
+
indexed: false,
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
name: 'creatorShareMax',
|
|
3491
|
+
internalType: 'uint256',
|
|
3492
|
+
type: 'uint256',
|
|
3493
|
+
indexed: false,
|
|
3494
|
+
},
|
|
3495
|
+
],
|
|
3496
|
+
name: 'ScheduleSet',
|
|
3497
|
+
},
|
|
3498
|
+
{
|
|
3499
|
+
type: 'event',
|
|
3500
|
+
anonymous: false,
|
|
3501
|
+
inputs: [
|
|
3502
|
+
{
|
|
3503
|
+
name: 'poolId',
|
|
3504
|
+
internalType: 'bytes32',
|
|
3505
|
+
type: 'bytes32',
|
|
3506
|
+
indexed: true,
|
|
3507
|
+
},
|
|
3508
|
+
{
|
|
3509
|
+
name: 'creatorShare',
|
|
3510
|
+
internalType: 'uint256',
|
|
3511
|
+
type: 'uint256',
|
|
3512
|
+
indexed: false,
|
|
3513
|
+
},
|
|
3514
|
+
],
|
|
3515
|
+
name: 'SplitSet',
|
|
3516
|
+
},
|
|
3517
|
+
{
|
|
3518
|
+
type: 'event',
|
|
3519
|
+
anonymous: false,
|
|
3520
|
+
inputs: [
|
|
3521
|
+
{
|
|
3522
|
+
name: 'quote',
|
|
3523
|
+
internalType: 'address',
|
|
3524
|
+
type: 'address',
|
|
3525
|
+
indexed: true,
|
|
3526
|
+
},
|
|
3527
|
+
{
|
|
3528
|
+
name: 'thresholdBase',
|
|
3529
|
+
internalType: 'uint256',
|
|
3530
|
+
type: 'uint256',
|
|
3531
|
+
indexed: false,
|
|
3532
|
+
},
|
|
3533
|
+
],
|
|
3534
|
+
name: 'ThresholdBaseSet',
|
|
3535
|
+
},
|
|
3536
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
3537
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
3538
|
+
{
|
|
3539
|
+
type: 'error',
|
|
3540
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
3541
|
+
name: 'FeeNotListed',
|
|
3542
|
+
},
|
|
3543
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
3544
|
+
{
|
|
3545
|
+
type: 'error',
|
|
3546
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
3547
|
+
name: 'NoThreshold',
|
|
3548
|
+
},
|
|
3549
|
+
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
3550
|
+
{ type: 'error', inputs: [], name: 'NotGraduated' },
|
|
3551
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
3552
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
3553
|
+
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
3554
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
3555
|
+
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
3556
|
+
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
3557
|
+
{
|
|
3558
|
+
type: 'error',
|
|
3559
|
+
inputs: [
|
|
3560
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3561
|
+
{ name: 'pad', internalType: 'bytes32', type: 'bytes32' },
|
|
3562
|
+
],
|
|
3563
|
+
name: 'PadExists',
|
|
3564
|
+
},
|
|
3565
|
+
{ type: 'error', inputs: [], name: 'PadUncapped' },
|
|
3566
|
+
{
|
|
3567
|
+
type: 'error',
|
|
3568
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
3569
|
+
name: 'QuoteNotListed',
|
|
3570
|
+
},
|
|
3571
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
3572
|
+
] as const
|
|
3573
|
+
|
|
3574
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3575
|
+
// PolPolicy
|
|
3576
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3577
|
+
|
|
3578
|
+
export const polPolicyAbi = [
|
|
3579
|
+
{
|
|
3580
|
+
type: 'constructor',
|
|
3581
|
+
inputs: [
|
|
3582
|
+
{
|
|
3583
|
+
name: 'manager_',
|
|
3584
|
+
internalType: 'contract FPoolManager',
|
|
3585
|
+
type: 'address',
|
|
3586
|
+
},
|
|
3587
|
+
],
|
|
3588
|
+
stateMutability: 'nonpayable',
|
|
3589
|
+
},
|
|
3590
|
+
{
|
|
3591
|
+
type: 'function',
|
|
3592
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
3593
|
+
name: 'acceptAuthority',
|
|
3594
|
+
outputs: [],
|
|
3595
|
+
stateMutability: 'nonpayable',
|
|
3528
3596
|
},
|
|
3529
3597
|
{
|
|
3530
3598
|
type: 'function',
|
|
3531
3599
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3532
|
-
name: '
|
|
3533
|
-
outputs: [{ name: '', internalType: '
|
|
3600
|
+
name: 'authority',
|
|
3601
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3602
|
+
stateMutability: 'view',
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
type: 'function',
|
|
3606
|
+
inputs: [],
|
|
3607
|
+
name: 'cManager',
|
|
3608
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3609
|
+
stateMutability: 'view',
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
type: 'function',
|
|
3613
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3614
|
+
name: 'creator',
|
|
3615
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3534
3616
|
stateMutability: 'view',
|
|
3535
3617
|
},
|
|
3536
3618
|
{
|
|
@@ -3549,7 +3631,7 @@ export const padPolicyAbi = [
|
|
|
3549
3631
|
},
|
|
3550
3632
|
{
|
|
3551
3633
|
type: 'function',
|
|
3552
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3634
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
3553
3635
|
name: 'incomeTax',
|
|
3554
3636
|
outputs: [
|
|
3555
3637
|
{ name: '', internalType: 'address', type: 'address' },
|
|
@@ -3622,6 +3704,13 @@ export const padPolicyAbi = [
|
|
|
3622
3704
|
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
3623
3705
|
stateMutability: 'view',
|
|
3624
3706
|
},
|
|
3707
|
+
{
|
|
3708
|
+
type: 'function',
|
|
3709
|
+
inputs: [],
|
|
3710
|
+
name: 'minQuoteRatio',
|
|
3711
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3712
|
+
stateMutability: 'view',
|
|
3713
|
+
},
|
|
3625
3714
|
{
|
|
3626
3715
|
type: 'function',
|
|
3627
3716
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3730,23 +3819,6 @@ export const padPolicyAbi = [
|
|
|
3730
3819
|
],
|
|
3731
3820
|
stateMutability: 'nonpayable',
|
|
3732
3821
|
},
|
|
3733
|
-
{
|
|
3734
|
-
type: 'function',
|
|
3735
|
-
inputs: [
|
|
3736
|
-
{ name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3737
|
-
{ name: 'nonce', internalType: 'uint128', type: 'uint128' },
|
|
3738
|
-
],
|
|
3739
|
-
name: 'pack',
|
|
3740
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3741
|
-
stateMutability: 'pure',
|
|
3742
|
-
},
|
|
3743
|
-
{
|
|
3744
|
-
type: 'function',
|
|
3745
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3746
|
-
name: 'padOf',
|
|
3747
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
3748
|
-
stateMutability: 'view',
|
|
3749
|
-
},
|
|
3750
3822
|
{
|
|
3751
3823
|
type: 'function',
|
|
3752
3824
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -3809,6 +3881,13 @@ export const padPolicyAbi = [
|
|
|
3809
3881
|
outputs: [],
|
|
3810
3882
|
stateMutability: 'nonpayable',
|
|
3811
3883
|
},
|
|
3884
|
+
{
|
|
3885
|
+
type: 'function',
|
|
3886
|
+
inputs: [{ name: 'ratio', internalType: 'uint256', type: 'uint256' }],
|
|
3887
|
+
name: 'setMinQuoteRatio',
|
|
3888
|
+
outputs: [],
|
|
3889
|
+
stateMutability: 'nonpayable',
|
|
3890
|
+
},
|
|
3812
3891
|
{
|
|
3813
3892
|
type: 'function',
|
|
3814
3893
|
inputs: [
|
|
@@ -3836,27 +3915,6 @@ export const padPolicyAbi = [
|
|
|
3836
3915
|
outputs: [],
|
|
3837
3916
|
stateMutability: 'nonpayable',
|
|
3838
3917
|
},
|
|
3839
|
-
{
|
|
3840
|
-
type: 'function',
|
|
3841
|
-
inputs: [
|
|
3842
|
-
{ name: 'growth', internalType: 'uint256', type: 'uint256' },
|
|
3843
|
-
{ name: 'minimumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3844
|
-
{ name: 'maximumCreatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3845
|
-
],
|
|
3846
|
-
name: 'setSchedule',
|
|
3847
|
-
outputs: [],
|
|
3848
|
-
stateMutability: 'nonpayable',
|
|
3849
|
-
},
|
|
3850
|
-
{
|
|
3851
|
-
type: 'function',
|
|
3852
|
-
inputs: [
|
|
3853
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3854
|
-
{ name: 'base', internalType: 'uint256', type: 'uint256' },
|
|
3855
|
-
],
|
|
3856
|
-
name: 'setThresholdBase',
|
|
3857
|
-
outputs: [],
|
|
3858
|
-
stateMutability: 'nonpayable',
|
|
3859
|
-
},
|
|
3860
3918
|
{
|
|
3861
3919
|
type: 'function',
|
|
3862
3920
|
inputs: [],
|
|
@@ -3864,47 +3922,6 @@ export const padPolicyAbi = [
|
|
|
3864
3922
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3865
3923
|
stateMutability: 'view',
|
|
3866
3924
|
},
|
|
3867
|
-
{
|
|
3868
|
-
type: 'function',
|
|
3869
|
-
inputs: [
|
|
3870
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
3871
|
-
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
3872
|
-
],
|
|
3873
|
-
name: 'threshold',
|
|
3874
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3875
|
-
stateMutability: 'view',
|
|
3876
|
-
},
|
|
3877
|
-
{
|
|
3878
|
-
type: 'function',
|
|
3879
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3880
|
-
name: 'thresholdBaseOf',
|
|
3881
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3882
|
-
stateMutability: 'view',
|
|
3883
|
-
},
|
|
3884
|
-
{
|
|
3885
|
-
type: 'function',
|
|
3886
|
-
inputs: [],
|
|
3887
|
-
name: 'thresholdGrowth',
|
|
3888
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3889
|
-
stateMutability: 'view',
|
|
3890
|
-
},
|
|
3891
|
-
{
|
|
3892
|
-
type: 'function',
|
|
3893
|
-
inputs: [
|
|
3894
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3895
|
-
{ name: 'r', internalType: 'uint256', type: 'uint256' },
|
|
3896
|
-
],
|
|
3897
|
-
name: 'thresholdOf',
|
|
3898
|
-
outputs: [{ name: 't', internalType: 'uint256', type: 'uint256' }],
|
|
3899
|
-
stateMutability: 'view',
|
|
3900
|
-
},
|
|
3901
|
-
{
|
|
3902
|
-
type: 'function',
|
|
3903
|
-
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
3904
|
-
name: 'thresholdSet',
|
|
3905
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3906
|
-
stateMutability: 'view',
|
|
3907
|
-
},
|
|
3908
3925
|
{
|
|
3909
3926
|
type: 'event',
|
|
3910
3927
|
anonymous: false,
|
|
@@ -3980,33 +3997,26 @@ export const padPolicyAbi = [
|
|
|
3980
3997
|
anonymous: false,
|
|
3981
3998
|
inputs: [
|
|
3982
3999
|
{
|
|
3983
|
-
name: '
|
|
3984
|
-
internalType: 'bytes32',
|
|
3985
|
-
type: 'bytes32',
|
|
3986
|
-
indexed: true,
|
|
3987
|
-
},
|
|
3988
|
-
{ name: 'rung', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
3989
|
-
{
|
|
3990
|
-
name: 'income',
|
|
4000
|
+
name: 'rate',
|
|
3991
4001
|
internalType: 'uint256',
|
|
3992
4002
|
type: 'uint256',
|
|
3993
4003
|
indexed: false,
|
|
3994
4004
|
},
|
|
3995
4005
|
],
|
|
3996
|
-
name: '
|
|
4006
|
+
name: 'IncomeTaxRateSet',
|
|
3997
4007
|
},
|
|
3998
4008
|
{
|
|
3999
4009
|
type: 'event',
|
|
4000
4010
|
anonymous: false,
|
|
4001
4011
|
inputs: [
|
|
4002
4012
|
{
|
|
4003
|
-
name: '
|
|
4013
|
+
name: 'ratio',
|
|
4004
4014
|
internalType: 'uint256',
|
|
4005
4015
|
type: 'uint256',
|
|
4006
4016
|
indexed: false,
|
|
4007
4017
|
},
|
|
4008
4018
|
],
|
|
4009
|
-
name: '
|
|
4019
|
+
name: 'MinQuoteRatioSet',
|
|
4010
4020
|
},
|
|
4011
4021
|
{
|
|
4012
4022
|
type: 'event',
|
|
@@ -4049,69 +4059,6 @@ export const padPolicyAbi = [
|
|
|
4049
4059
|
],
|
|
4050
4060
|
name: 'QuoteListed',
|
|
4051
4061
|
},
|
|
4052
|
-
{
|
|
4053
|
-
type: 'event',
|
|
4054
|
-
anonymous: false,
|
|
4055
|
-
inputs: [
|
|
4056
|
-
{
|
|
4057
|
-
name: 'thresholdGrowth',
|
|
4058
|
-
internalType: 'uint256',
|
|
4059
|
-
type: 'uint256',
|
|
4060
|
-
indexed: false,
|
|
4061
|
-
},
|
|
4062
|
-
{
|
|
4063
|
-
name: 'creatorShareMin',
|
|
4064
|
-
internalType: 'uint256',
|
|
4065
|
-
type: 'uint256',
|
|
4066
|
-
indexed: false,
|
|
4067
|
-
},
|
|
4068
|
-
{
|
|
4069
|
-
name: 'creatorShareMax',
|
|
4070
|
-
internalType: 'uint256',
|
|
4071
|
-
type: 'uint256',
|
|
4072
|
-
indexed: false,
|
|
4073
|
-
},
|
|
4074
|
-
],
|
|
4075
|
-
name: 'ScheduleSet',
|
|
4076
|
-
},
|
|
4077
|
-
{
|
|
4078
|
-
type: 'event',
|
|
4079
|
-
anonymous: false,
|
|
4080
|
-
inputs: [
|
|
4081
|
-
{
|
|
4082
|
-
name: 'poolId',
|
|
4083
|
-
internalType: 'bytes32',
|
|
4084
|
-
type: 'bytes32',
|
|
4085
|
-
indexed: true,
|
|
4086
|
-
},
|
|
4087
|
-
{
|
|
4088
|
-
name: 'creatorShare',
|
|
4089
|
-
internalType: 'uint256',
|
|
4090
|
-
type: 'uint256',
|
|
4091
|
-
indexed: false,
|
|
4092
|
-
},
|
|
4093
|
-
],
|
|
4094
|
-
name: 'SplitSet',
|
|
4095
|
-
},
|
|
4096
|
-
{
|
|
4097
|
-
type: 'event',
|
|
4098
|
-
anonymous: false,
|
|
4099
|
-
inputs: [
|
|
4100
|
-
{
|
|
4101
|
-
name: 'quote',
|
|
4102
|
-
internalType: 'address',
|
|
4103
|
-
type: 'address',
|
|
4104
|
-
indexed: true,
|
|
4105
|
-
},
|
|
4106
|
-
{
|
|
4107
|
-
name: 'thresholdBase',
|
|
4108
|
-
internalType: 'uint256',
|
|
4109
|
-
type: 'uint256',
|
|
4110
|
-
indexed: false,
|
|
4111
|
-
},
|
|
4112
|
-
],
|
|
4113
|
-
name: 'ThresholdBaseSet',
|
|
4114
|
-
},
|
|
4115
4062
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4116
4063
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4117
4064
|
{
|
|
@@ -4120,219 +4067,169 @@ export const padPolicyAbi = [
|
|
|
4120
4067
|
name: 'FeeNotListed',
|
|
4121
4068
|
},
|
|
4122
4069
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4123
|
-
{
|
|
4124
|
-
type: 'error',
|
|
4125
|
-
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
4126
|
-
name: 'NoThreshold',
|
|
4127
|
-
},
|
|
4128
4070
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4129
|
-
{ type: 'error', inputs: [], name: 'NotGraduated' },
|
|
4130
4071
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4131
4072
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4132
4073
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4133
4074
|
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
4134
4075
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4135
|
-
{ type: 'error', inputs: [], name: 'OutOfRange' },
|
|
4136
|
-
{
|
|
4137
|
-
type: 'error',
|
|
4138
|
-
inputs: [
|
|
4139
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4140
|
-
{ name: 'pad', internalType: 'bytes32', type: 'bytes32' },
|
|
4141
|
-
],
|
|
4142
|
-
name: 'PadExists',
|
|
4143
|
-
},
|
|
4144
|
-
{ type: 'error', inputs: [], name: 'PadUncapped' },
|
|
4145
4076
|
{
|
|
4146
4077
|
type: 'error',
|
|
4147
4078
|
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
4148
4079
|
name: 'QuoteNotListed',
|
|
4149
4080
|
},
|
|
4081
|
+
{ type: 'error', inputs: [], name: 'QuoteTooThin' },
|
|
4150
4082
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
4151
4083
|
] as const
|
|
4152
4084
|
|
|
4153
4085
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4154
|
-
//
|
|
4086
|
+
// PolicyRegistry
|
|
4155
4087
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4156
4088
|
|
|
4157
|
-
export const
|
|
4089
|
+
export const policyRegistryAbi = [
|
|
4158
4090
|
{
|
|
4159
4091
|
type: 'constructor',
|
|
4160
4092
|
inputs: [
|
|
4161
|
-
{
|
|
4162
|
-
name: 'manager_',
|
|
4163
|
-
internalType: 'contract FPoolManager',
|
|
4164
|
-
type: 'address',
|
|
4165
|
-
},
|
|
4093
|
+
{ name: '_logAuthority', internalType: 'address', type: 'address' },
|
|
4166
4094
|
],
|
|
4167
4095
|
stateMutability: 'nonpayable',
|
|
4168
4096
|
},
|
|
4169
4097
|
{
|
|
4170
4098
|
type: 'function',
|
|
4171
|
-
inputs: [
|
|
4172
|
-
name: '
|
|
4099
|
+
inputs: [],
|
|
4100
|
+
name: 'acceptLogAuthority',
|
|
4173
4101
|
outputs: [],
|
|
4174
4102
|
stateMutability: 'nonpayable',
|
|
4175
4103
|
},
|
|
4176
4104
|
{
|
|
4177
4105
|
type: 'function',
|
|
4178
|
-
inputs: [
|
|
4179
|
-
|
|
4180
|
-
|
|
4106
|
+
inputs: [
|
|
4107
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4108
|
+
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
4109
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4110
|
+
],
|
|
4111
|
+
name: 'admit',
|
|
4112
|
+
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
4181
4113
|
stateMutability: 'view',
|
|
4182
4114
|
},
|
|
4183
4115
|
{
|
|
4184
4116
|
type: 'function',
|
|
4185
|
-
inputs: [
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4117
|
+
inputs: [
|
|
4118
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4119
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4120
|
+
],
|
|
4121
|
+
name: 'approve',
|
|
4122
|
+
outputs: [],
|
|
4123
|
+
stateMutability: 'nonpayable',
|
|
4189
4124
|
},
|
|
4190
4125
|
{
|
|
4191
4126
|
type: 'function',
|
|
4192
|
-
inputs: [
|
|
4193
|
-
|
|
4194
|
-
|
|
4127
|
+
inputs: [
|
|
4128
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4129
|
+
{ name: 'sponsor', internalType: 'address', type: 'address' },
|
|
4130
|
+
],
|
|
4131
|
+
name: 'bindSponsor',
|
|
4132
|
+
outputs: [],
|
|
4133
|
+
stateMutability: 'nonpayable',
|
|
4134
|
+
},
|
|
4135
|
+
{
|
|
4136
|
+
type: 'function',
|
|
4137
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4138
|
+
name: 'creationMode',
|
|
4139
|
+
outputs: [
|
|
4140
|
+
{
|
|
4141
|
+
name: '',
|
|
4142
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
4143
|
+
type: 'uint8',
|
|
4144
|
+
},
|
|
4145
|
+
],
|
|
4195
4146
|
stateMutability: 'view',
|
|
4196
4147
|
},
|
|
4197
4148
|
{
|
|
4198
4149
|
type: 'function',
|
|
4199
|
-
inputs: [],
|
|
4200
|
-
name: '
|
|
4201
|
-
outputs: [
|
|
4150
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4151
|
+
name: 'entries',
|
|
4152
|
+
outputs: [
|
|
4153
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4154
|
+
{ name: 'until', internalType: 'uint64', type: 'uint64' },
|
|
4155
|
+
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
4156
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4157
|
+
],
|
|
4202
4158
|
stateMutability: 'view',
|
|
4203
4159
|
},
|
|
4204
4160
|
{
|
|
4205
4161
|
type: 'function',
|
|
4206
|
-
inputs: [{ name: '', internalType: '
|
|
4207
|
-
name: '
|
|
4162
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4163
|
+
name: 'forwarderTrusted',
|
|
4208
4164
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4209
4165
|
stateMutability: 'view',
|
|
4210
4166
|
},
|
|
4211
4167
|
{
|
|
4212
4168
|
type: 'function',
|
|
4213
|
-
inputs: [
|
|
4214
|
-
|
|
4215
|
-
outputs: [
|
|
4169
|
+
inputs: [
|
|
4170
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4216
4171
|
{ name: '', internalType: 'address', type: 'address' },
|
|
4217
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4218
4172
|
],
|
|
4173
|
+
name: 'initializerListed',
|
|
4174
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4219
4175
|
stateMutability: 'view',
|
|
4220
4176
|
},
|
|
4221
4177
|
{
|
|
4222
4178
|
type: 'function',
|
|
4223
|
-
inputs: [],
|
|
4224
|
-
name: '
|
|
4225
|
-
outputs: [{ name: '', internalType: '
|
|
4179
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
4180
|
+
name: 'isApproved',
|
|
4181
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4226
4182
|
stateMutability: 'view',
|
|
4227
4183
|
},
|
|
4228
4184
|
{
|
|
4229
4185
|
type: 'function',
|
|
4230
|
-
inputs: [],
|
|
4231
|
-
name: '
|
|
4186
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4187
|
+
name: 'kindOf',
|
|
4232
4188
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4233
|
-
stateMutability: 'pure',
|
|
4234
|
-
},
|
|
4235
|
-
{
|
|
4236
|
-
type: 'function',
|
|
4237
|
-
inputs: [],
|
|
4238
|
-
name: 'manager',
|
|
4239
|
-
outputs: [
|
|
4240
|
-
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
4241
|
-
],
|
|
4242
4189
|
stateMutability: 'view',
|
|
4243
4190
|
},
|
|
4244
4191
|
{
|
|
4245
4192
|
type: 'function',
|
|
4246
|
-
inputs: [
|
|
4247
|
-
name: '
|
|
4193
|
+
inputs: [],
|
|
4194
|
+
name: 'logAuthority',
|
|
4248
4195
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4249
4196
|
stateMutability: 'view',
|
|
4250
4197
|
},
|
|
4251
|
-
{
|
|
4252
|
-
type: 'function',
|
|
4253
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4254
|
-
name: 'maxHarvest',
|
|
4255
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4256
|
-
stateMutability: 'view',
|
|
4257
|
-
},
|
|
4258
4198
|
{
|
|
4259
4199
|
type: 'function',
|
|
4260
4200
|
inputs: [
|
|
4201
|
+
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
4261
4202
|
{
|
|
4262
|
-
name: '
|
|
4263
|
-
internalType: 'struct
|
|
4203
|
+
name: 'key',
|
|
4204
|
+
internalType: 'struct FPoolKey',
|
|
4264
4205
|
type: 'tuple',
|
|
4265
4206
|
components: [
|
|
4266
|
-
{ name: '
|
|
4267
|
-
{ name: '
|
|
4268
|
-
{
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
},
|
|
4273
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4274
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4275
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4276
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4277
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4278
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4207
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4208
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4209
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4210
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4211
|
+
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4212
|
+
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4213
|
+
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4279
4214
|
],
|
|
4280
4215
|
},
|
|
4216
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4281
4217
|
],
|
|
4282
|
-
name: '
|
|
4283
|
-
outputs: [
|
|
4284
|
-
stateMutability: '
|
|
4285
|
-
},
|
|
4286
|
-
{
|
|
4287
|
-
type: 'function',
|
|
4288
|
-
inputs: [],
|
|
4289
|
-
name: 'minQuoteRatio',
|
|
4290
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4291
|
-
stateMutability: 'view',
|
|
4292
|
-
},
|
|
4293
|
-
{
|
|
4294
|
-
type: 'function',
|
|
4295
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4296
|
-
name: 'nameOf',
|
|
4297
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4298
|
-
stateMutability: 'view',
|
|
4218
|
+
name: 'migrate',
|
|
4219
|
+
outputs: [],
|
|
4220
|
+
stateMutability: 'nonpayable',
|
|
4299
4221
|
},
|
|
4300
4222
|
{
|
|
4301
4223
|
type: 'function',
|
|
4302
4224
|
inputs: [
|
|
4303
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4225
|
+
{ name: 'manager', internalType: 'address', type: 'address' },
|
|
4304
4226
|
{
|
|
4305
|
-
name: '',
|
|
4306
|
-
internalType: 'struct
|
|
4227
|
+
name: 'key',
|
|
4228
|
+
internalType: 'struct FPoolKey',
|
|
4307
4229
|
type: 'tuple',
|
|
4308
4230
|
components: [
|
|
4309
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4310
4231
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4311
|
-
{ name: '
|
|
4312
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4313
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4314
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4315
|
-
],
|
|
4316
|
-
},
|
|
4317
|
-
],
|
|
4318
|
-
name: 'onCInitialize',
|
|
4319
|
-
outputs: [
|
|
4320
|
-
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4321
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4322
|
-
],
|
|
4323
|
-
stateMutability: 'pure',
|
|
4324
|
-
},
|
|
4325
|
-
{
|
|
4326
|
-
type: 'function',
|
|
4327
|
-
inputs: [
|
|
4328
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4329
|
-
{
|
|
4330
|
-
name: 'key',
|
|
4331
|
-
internalType: 'struct FPoolKey',
|
|
4332
|
-
type: 'tuple',
|
|
4333
|
-
components: [
|
|
4334
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4335
|
-
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4232
|
+
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4336
4233
|
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4337
4234
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4338
4235
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
@@ -4340,468 +4237,568 @@ export const polPolicyAbi = [
|
|
|
4340
4237
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4341
4238
|
],
|
|
4342
4239
|
},
|
|
4343
|
-
|
|
4344
|
-
name: 'onInitialize',
|
|
4345
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4346
|
-
stateMutability: 'nonpayable',
|
|
4347
|
-
},
|
|
4348
|
-
{
|
|
4349
|
-
type: 'function',
|
|
4350
|
-
inputs: [
|
|
4351
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4352
|
-
{ name: 'from', internalType: 'address', type: 'address' },
|
|
4353
|
-
{ name: 'creator_', internalType: 'address', type: 'address' },
|
|
4354
|
-
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
4355
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
4356
|
-
],
|
|
4357
|
-
name: 'onMigrate',
|
|
4358
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4359
|
-
stateMutability: 'nonpayable',
|
|
4360
|
-
},
|
|
4361
|
-
{
|
|
4362
|
-
type: 'function',
|
|
4363
|
-
inputs: [
|
|
4364
|
-
{
|
|
4365
|
-
name: 'a',
|
|
4366
|
-
internalType: 'struct IFPolicy.Ask',
|
|
4367
|
-
type: 'tuple',
|
|
4368
|
-
components: [
|
|
4369
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4370
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4371
|
-
{
|
|
4372
|
-
name: 'action',
|
|
4373
|
-
internalType: 'enum IFPolicy.Action',
|
|
4374
|
-
type: 'uint8',
|
|
4375
|
-
},
|
|
4376
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4377
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4378
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4379
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4380
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4381
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4382
|
-
],
|
|
4383
|
-
},
|
|
4384
|
-
],
|
|
4385
|
-
name: 'onRegenerate',
|
|
4386
|
-
outputs: [
|
|
4240
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4387
4241
|
{
|
|
4388
|
-
name: '
|
|
4389
|
-
internalType: 'struct
|
|
4242
|
+
name: 'permissions',
|
|
4243
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
4390
4244
|
type: 'tuple',
|
|
4391
4245
|
components: [
|
|
4392
|
-
{ name: '
|
|
4393
|
-
{ name: '
|
|
4394
|
-
{ name: '
|
|
4395
|
-
{ name: '
|
|
4246
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
4247
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
4248
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
4249
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
4250
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
4396
4251
|
],
|
|
4397
4252
|
},
|
|
4398
4253
|
],
|
|
4399
|
-
|
|
4400
|
-
},
|
|
4401
|
-
{
|
|
4402
|
-
type: 'function',
|
|
4403
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4404
|
-
name: 'pendingAuthority',
|
|
4405
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4406
|
-
stateMutability: 'view',
|
|
4407
|
-
},
|
|
4408
|
-
{
|
|
4409
|
-
type: 'function',
|
|
4410
|
-
inputs: [
|
|
4411
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4412
|
-
{ name: 'next', internalType: 'address', type: 'address' },
|
|
4413
|
-
],
|
|
4414
|
-
name: 'proposeAuthority',
|
|
4254
|
+
name: 'migratePrivate',
|
|
4415
4255
|
outputs: [],
|
|
4416
4256
|
stateMutability: 'nonpayable',
|
|
4417
4257
|
},
|
|
4418
4258
|
{
|
|
4419
4259
|
type: 'function',
|
|
4420
4260
|
inputs: [],
|
|
4421
|
-
name: '
|
|
4422
|
-
outputs: [{ name: '', internalType: '
|
|
4261
|
+
name: 'pendingLogAuthority',
|
|
4262
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4423
4263
|
stateMutability: 'view',
|
|
4424
4264
|
},
|
|
4425
4265
|
{
|
|
4426
4266
|
type: 'function',
|
|
4427
|
-
inputs: [
|
|
4428
|
-
name: '
|
|
4429
|
-
outputs: [{ name: '', internalType: '
|
|
4267
|
+
inputs: [],
|
|
4268
|
+
name: 'policies',
|
|
4269
|
+
outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }],
|
|
4430
4270
|
stateMutability: 'view',
|
|
4431
4271
|
},
|
|
4432
4272
|
{
|
|
4433
4273
|
type: 'function',
|
|
4434
|
-
inputs: [{ name: '
|
|
4435
|
-
name: '
|
|
4274
|
+
inputs: [{ name: 'next', internalType: 'address', type: 'address' }],
|
|
4275
|
+
name: 'proposeLogAuthority',
|
|
4436
4276
|
outputs: [],
|
|
4437
4277
|
stateMutability: 'nonpayable',
|
|
4438
4278
|
},
|
|
4439
4279
|
{
|
|
4440
4280
|
type: 'function',
|
|
4441
|
-
inputs: [{ name: '
|
|
4442
|
-
name: '
|
|
4281
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
4282
|
+
name: 'revoke',
|
|
4443
4283
|
outputs: [],
|
|
4444
4284
|
stateMutability: 'nonpayable',
|
|
4445
4285
|
},
|
|
4446
4286
|
{
|
|
4447
4287
|
type: 'function',
|
|
4448
4288
|
inputs: [
|
|
4449
|
-
{ name: '
|
|
4450
|
-
{
|
|
4289
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4290
|
+
{
|
|
4291
|
+
name: 'mode',
|
|
4292
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
4293
|
+
type: 'uint8',
|
|
4294
|
+
},
|
|
4451
4295
|
],
|
|
4452
|
-
name: '
|
|
4296
|
+
name: 'setCreationMode',
|
|
4453
4297
|
outputs: [],
|
|
4454
4298
|
stateMutability: 'nonpayable',
|
|
4455
4299
|
},
|
|
4456
4300
|
{
|
|
4457
4301
|
type: 'function',
|
|
4458
|
-
inputs: [
|
|
4459
|
-
|
|
4302
|
+
inputs: [
|
|
4303
|
+
{ name: 'forwarder', internalType: 'address', type: 'address' },
|
|
4304
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool' },
|
|
4305
|
+
],
|
|
4306
|
+
name: 'setForwarderTrusted',
|
|
4460
4307
|
outputs: [],
|
|
4461
4308
|
stateMutability: 'nonpayable',
|
|
4462
4309
|
},
|
|
4463
4310
|
{
|
|
4464
4311
|
type: 'function',
|
|
4465
|
-
inputs: [
|
|
4466
|
-
|
|
4312
|
+
inputs: [
|
|
4313
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4314
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4315
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool' },
|
|
4316
|
+
],
|
|
4317
|
+
name: 'setInitializerListed',
|
|
4467
4318
|
outputs: [],
|
|
4468
4319
|
stateMutability: 'nonpayable',
|
|
4469
4320
|
},
|
|
4470
4321
|
{
|
|
4471
4322
|
type: 'function',
|
|
4472
4323
|
inputs: [
|
|
4473
|
-
{ name: '
|
|
4474
|
-
{ name: '
|
|
4324
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4325
|
+
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4475
4326
|
],
|
|
4476
|
-
name: '
|
|
4327
|
+
name: 'setSponsorName',
|
|
4477
4328
|
outputs: [],
|
|
4478
4329
|
stateMutability: 'nonpayable',
|
|
4479
4330
|
},
|
|
4480
4331
|
{
|
|
4481
4332
|
type: 'function',
|
|
4482
|
-
inputs: [{ name: '
|
|
4483
|
-
name: '
|
|
4484
|
-
outputs: [],
|
|
4485
|
-
stateMutability: '
|
|
4333
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4334
|
+
name: 'sponsorName',
|
|
4335
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4336
|
+
stateMutability: 'view',
|
|
4337
|
+
},
|
|
4338
|
+
{
|
|
4339
|
+
type: 'function',
|
|
4340
|
+
inputs: [{ name: 'policy', internalType: 'address', type: 'address' }],
|
|
4341
|
+
name: 'sponsorOf',
|
|
4342
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4343
|
+
stateMutability: 'view',
|
|
4486
4344
|
},
|
|
4487
4345
|
{
|
|
4488
4346
|
type: 'function',
|
|
4489
4347
|
inputs: [
|
|
4490
|
-
{ name: '
|
|
4491
|
-
{ name: '
|
|
4348
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4349
|
+
{ name: 'untilTime', internalType: 'uint64', type: 'uint64' },
|
|
4492
4350
|
],
|
|
4493
|
-
name: '
|
|
4351
|
+
name: 'sunset',
|
|
4494
4352
|
outputs: [],
|
|
4495
4353
|
stateMutability: 'nonpayable',
|
|
4496
4354
|
},
|
|
4497
|
-
{
|
|
4498
|
-
type: 'function',
|
|
4499
|
-
inputs: [],
|
|
4500
|
-
name: 'sponsor',
|
|
4501
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4502
|
-
stateMutability: 'view',
|
|
4503
|
-
},
|
|
4504
4355
|
{
|
|
4505
4356
|
type: 'event',
|
|
4506
4357
|
anonymous: false,
|
|
4507
4358
|
inputs: [
|
|
4508
4359
|
{
|
|
4509
|
-
name: '
|
|
4510
|
-
internalType: 'bytes32',
|
|
4511
|
-
type: 'bytes32',
|
|
4512
|
-
indexed: true,
|
|
4513
|
-
},
|
|
4514
|
-
{
|
|
4515
|
-
name: 'current',
|
|
4360
|
+
name: 'policy',
|
|
4516
4361
|
internalType: 'address',
|
|
4517
4362
|
type: 'address',
|
|
4518
4363
|
indexed: true,
|
|
4519
4364
|
},
|
|
4520
4365
|
{
|
|
4521
|
-
name: '
|
|
4522
|
-
internalType: '
|
|
4523
|
-
type: '
|
|
4524
|
-
indexed:
|
|
4366
|
+
name: 'name',
|
|
4367
|
+
internalType: 'bytes32',
|
|
4368
|
+
type: 'bytes32',
|
|
4369
|
+
indexed: false,
|
|
4525
4370
|
},
|
|
4526
4371
|
],
|
|
4527
|
-
name: '
|
|
4372
|
+
name: 'Approved',
|
|
4528
4373
|
},
|
|
4529
4374
|
{
|
|
4530
4375
|
type: 'event',
|
|
4531
4376
|
anonymous: false,
|
|
4532
4377
|
inputs: [
|
|
4533
4378
|
{
|
|
4534
|
-
name: '
|
|
4535
|
-
internalType: '
|
|
4536
|
-
type: '
|
|
4379
|
+
name: 'policy',
|
|
4380
|
+
internalType: 'address',
|
|
4381
|
+
type: 'address',
|
|
4537
4382
|
indexed: true,
|
|
4538
4383
|
},
|
|
4539
|
-
{
|
|
4540
|
-
|
|
4384
|
+
{
|
|
4385
|
+
name: 'mode',
|
|
4386
|
+
internalType: 'enum PolicyRegistry.CreationMode',
|
|
4387
|
+
type: 'uint8',
|
|
4388
|
+
indexed: false,
|
|
4389
|
+
},
|
|
4541
4390
|
],
|
|
4542
|
-
name: '
|
|
4391
|
+
name: 'CreationModeSet',
|
|
4543
4392
|
},
|
|
4544
4393
|
{
|
|
4545
4394
|
type: 'event',
|
|
4546
4395
|
anonymous: false,
|
|
4547
4396
|
inputs: [
|
|
4548
4397
|
{
|
|
4549
|
-
name: '
|
|
4398
|
+
name: 'forwarder',
|
|
4550
4399
|
internalType: 'address',
|
|
4551
4400
|
type: 'address',
|
|
4552
4401
|
indexed: true,
|
|
4553
4402
|
},
|
|
4403
|
+
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
4554
4404
|
],
|
|
4555
|
-
name: '
|
|
4405
|
+
name: 'ForwarderTrusted',
|
|
4556
4406
|
},
|
|
4557
4407
|
{
|
|
4558
4408
|
type: 'event',
|
|
4559
4409
|
anonymous: false,
|
|
4560
4410
|
inputs: [
|
|
4561
|
-
{
|
|
4411
|
+
{
|
|
4412
|
+
name: 'policy',
|
|
4413
|
+
internalType: 'address',
|
|
4414
|
+
type: 'address',
|
|
4415
|
+
indexed: true,
|
|
4416
|
+
},
|
|
4417
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4418
|
+
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4562
4419
|
],
|
|
4563
|
-
name: '
|
|
4420
|
+
name: 'InitializerListed',
|
|
4564
4421
|
},
|
|
4565
4422
|
{
|
|
4566
4423
|
type: 'event',
|
|
4567
4424
|
anonymous: false,
|
|
4568
4425
|
inputs: [
|
|
4569
|
-
{ name: '
|
|
4570
|
-
{ name: '
|
|
4426
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
4427
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
4571
4428
|
],
|
|
4572
|
-
name: '
|
|
4429
|
+
name: 'LogAuthorityAccepted',
|
|
4573
4430
|
},
|
|
4574
4431
|
{
|
|
4575
4432
|
type: 'event',
|
|
4576
4433
|
anonymous: false,
|
|
4577
4434
|
inputs: [
|
|
4578
4435
|
{
|
|
4579
|
-
name: '
|
|
4580
|
-
internalType: '
|
|
4581
|
-
type: '
|
|
4582
|
-
indexed:
|
|
4436
|
+
name: 'current',
|
|
4437
|
+
internalType: 'address',
|
|
4438
|
+
type: 'address',
|
|
4439
|
+
indexed: true,
|
|
4583
4440
|
},
|
|
4584
|
-
],
|
|
4585
|
-
name: 'IncomeTaxRateSet',
|
|
4586
|
-
},
|
|
4587
|
-
{
|
|
4588
|
-
type: 'event',
|
|
4589
|
-
anonymous: false,
|
|
4590
|
-
inputs: [
|
|
4591
4441
|
{
|
|
4592
|
-
name: '
|
|
4593
|
-
internalType: '
|
|
4594
|
-
type: '
|
|
4595
|
-
indexed:
|
|
4442
|
+
name: 'proposed',
|
|
4443
|
+
internalType: 'address',
|
|
4444
|
+
type: 'address',
|
|
4445
|
+
indexed: true,
|
|
4596
4446
|
},
|
|
4597
4447
|
],
|
|
4598
|
-
name: '
|
|
4448
|
+
name: 'LogAuthorityProposed',
|
|
4599
4449
|
},
|
|
4600
4450
|
{
|
|
4601
4451
|
type: 'event',
|
|
4602
4452
|
anonymous: false,
|
|
4603
4453
|
inputs: [
|
|
4454
|
+
{
|
|
4455
|
+
name: 'manager',
|
|
4456
|
+
internalType: 'address',
|
|
4457
|
+
type: 'address',
|
|
4458
|
+
indexed: true,
|
|
4459
|
+
},
|
|
4604
4460
|
{
|
|
4605
4461
|
name: 'poolId',
|
|
4606
4462
|
internalType: 'bytes32',
|
|
4607
4463
|
type: 'bytes32',
|
|
4608
4464
|
indexed: true,
|
|
4609
4465
|
},
|
|
4466
|
+
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
4610
4467
|
{
|
|
4611
|
-
name: '
|
|
4612
|
-
internalType: '
|
|
4613
|
-
type: '
|
|
4468
|
+
name: 'from',
|
|
4469
|
+
internalType: 'address',
|
|
4470
|
+
type: 'address',
|
|
4471
|
+
indexed: false,
|
|
4472
|
+
},
|
|
4473
|
+
{
|
|
4474
|
+
name: 'authority',
|
|
4475
|
+
internalType: 'address',
|
|
4476
|
+
type: 'address',
|
|
4614
4477
|
indexed: false,
|
|
4615
4478
|
},
|
|
4616
4479
|
],
|
|
4617
|
-
name: '
|
|
4480
|
+
name: 'Migrated',
|
|
4618
4481
|
},
|
|
4619
4482
|
{
|
|
4620
4483
|
type: 'event',
|
|
4621
4484
|
anonymous: false,
|
|
4622
4485
|
inputs: [
|
|
4623
|
-
{
|
|
4486
|
+
{
|
|
4487
|
+
name: 'policy',
|
|
4488
|
+
internalType: 'address',
|
|
4489
|
+
type: 'address',
|
|
4490
|
+
indexed: true,
|
|
4491
|
+
},
|
|
4624
4492
|
],
|
|
4625
|
-
name: '
|
|
4493
|
+
name: 'Revoked',
|
|
4626
4494
|
},
|
|
4627
4495
|
{
|
|
4628
4496
|
type: 'event',
|
|
4629
4497
|
anonymous: false,
|
|
4630
4498
|
inputs: [
|
|
4631
4499
|
{
|
|
4632
|
-
name: '
|
|
4500
|
+
name: 'policy',
|
|
4501
|
+
internalType: 'address',
|
|
4502
|
+
type: 'address',
|
|
4503
|
+
indexed: true,
|
|
4504
|
+
},
|
|
4505
|
+
{
|
|
4506
|
+
name: 'sponsor',
|
|
4633
4507
|
internalType: 'address',
|
|
4634
4508
|
type: 'address',
|
|
4635
4509
|
indexed: true,
|
|
4636
4510
|
},
|
|
4637
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4638
4511
|
],
|
|
4639
|
-
name: '
|
|
4512
|
+
name: 'SponsorBound',
|
|
4640
4513
|
},
|
|
4641
|
-
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4642
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4643
4514
|
{
|
|
4644
|
-
type: '
|
|
4645
|
-
|
|
4646
|
-
|
|
4515
|
+
type: 'event',
|
|
4516
|
+
anonymous: false,
|
|
4517
|
+
inputs: [
|
|
4518
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4519
|
+
{
|
|
4520
|
+
name: 'name',
|
|
4521
|
+
internalType: 'bytes32',
|
|
4522
|
+
type: 'bytes32',
|
|
4523
|
+
indexed: false,
|
|
4524
|
+
},
|
|
4525
|
+
],
|
|
4526
|
+
name: 'SponsorNamed',
|
|
4647
4527
|
},
|
|
4648
|
-
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4649
|
-
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4650
|
-
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4651
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
4652
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
4653
|
-
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
4654
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
4655
4528
|
{
|
|
4656
|
-
type: '
|
|
4657
|
-
|
|
4658
|
-
|
|
4529
|
+
type: 'event',
|
|
4530
|
+
anonymous: false,
|
|
4531
|
+
inputs: [
|
|
4532
|
+
{
|
|
4533
|
+
name: 'policy',
|
|
4534
|
+
internalType: 'address',
|
|
4535
|
+
type: 'address',
|
|
4536
|
+
indexed: true,
|
|
4537
|
+
},
|
|
4538
|
+
{
|
|
4539
|
+
name: 'untilTime',
|
|
4540
|
+
internalType: 'uint64',
|
|
4541
|
+
type: 'uint64',
|
|
4542
|
+
indexed: false,
|
|
4543
|
+
},
|
|
4544
|
+
],
|
|
4545
|
+
name: 'SunsetSet',
|
|
4659
4546
|
},
|
|
4660
|
-
{ type: 'error', inputs: [], name: '
|
|
4661
|
-
{ type: 'error', inputs: [], name: '
|
|
4547
|
+
{ type: 'error', inputs: [], name: 'BadSunset' },
|
|
4548
|
+
{ type: 'error', inputs: [], name: 'InitializerNotListed' },
|
|
4549
|
+
{ type: 'error', inputs: [], name: 'InvalidForwardedUser' },
|
|
4550
|
+
{ type: 'error', inputs: [], name: 'KindMismatch' },
|
|
4551
|
+
{ type: 'error', inputs: [], name: 'NoPool' },
|
|
4552
|
+
{ type: 'error', inputs: [], name: 'NotAPolicy' },
|
|
4553
|
+
{ type: 'error', inputs: [], name: 'NotListed' },
|
|
4554
|
+
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
4555
|
+
{ type: 'error', inputs: [], name: 'PrivatePermissionsRequired' },
|
|
4556
|
+
{ type: 'error', inputs: [], name: 'SamePolicy' },
|
|
4557
|
+
{ type: 'error', inputs: [], name: 'SponsorOnly' },
|
|
4558
|
+
{ type: 'error', inputs: [], name: 'WrongManager' },
|
|
4662
4559
|
] as const
|
|
4663
4560
|
|
|
4664
4561
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4665
|
-
//
|
|
4562
|
+
// PrivatePolicy
|
|
4666
4563
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4667
4564
|
|
|
4668
|
-
export const
|
|
4565
|
+
export const privatePolicyAbi = [
|
|
4669
4566
|
{
|
|
4670
4567
|
type: 'constructor',
|
|
4671
4568
|
inputs: [
|
|
4672
|
-
{
|
|
4569
|
+
{
|
|
4570
|
+
name: '_manager',
|
|
4571
|
+
internalType: 'contract FPoolManager',
|
|
4572
|
+
type: 'address',
|
|
4573
|
+
},
|
|
4673
4574
|
],
|
|
4674
4575
|
stateMutability: 'nonpayable',
|
|
4675
4576
|
},
|
|
4676
4577
|
{
|
|
4677
4578
|
type: 'function',
|
|
4678
4579
|
inputs: [],
|
|
4679
|
-
name: '
|
|
4680
|
-
outputs: [],
|
|
4681
|
-
stateMutability: '
|
|
4580
|
+
name: 'MINTER',
|
|
4581
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4582
|
+
stateMutability: 'view',
|
|
4682
4583
|
},
|
|
4683
4584
|
{
|
|
4684
4585
|
type: 'function',
|
|
4685
|
-
inputs: [
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4689
|
-
],
|
|
4690
|
-
name: 'admit',
|
|
4691
|
-
outputs: [{ name: 'who', internalType: 'address', type: 'address' }],
|
|
4586
|
+
inputs: [],
|
|
4587
|
+
name: 'TAKER',
|
|
4588
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4692
4589
|
stateMutability: 'view',
|
|
4693
4590
|
},
|
|
4694
4591
|
{
|
|
4695
4592
|
type: 'function',
|
|
4696
|
-
inputs: [
|
|
4697
|
-
|
|
4698
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4699
|
-
],
|
|
4700
|
-
name: 'approve',
|
|
4593
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4594
|
+
name: 'acceptAuthority',
|
|
4701
4595
|
outputs: [],
|
|
4702
4596
|
stateMutability: 'nonpayable',
|
|
4703
4597
|
},
|
|
4598
|
+
{
|
|
4599
|
+
type: 'function',
|
|
4600
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4601
|
+
name: 'authority',
|
|
4602
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4603
|
+
stateMutability: 'view',
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
type: 'function',
|
|
4607
|
+
inputs: [],
|
|
4608
|
+
name: 'cManager',
|
|
4609
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4610
|
+
stateMutability: 'view',
|
|
4611
|
+
},
|
|
4704
4612
|
{
|
|
4705
4613
|
type: 'function',
|
|
4706
4614
|
inputs: [
|
|
4707
|
-
{ name: '
|
|
4708
|
-
{
|
|
4615
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4616
|
+
{
|
|
4617
|
+
name: 'permissions',
|
|
4618
|
+
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
4619
|
+
type: 'tuple',
|
|
4620
|
+
components: [
|
|
4621
|
+
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
4622
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
4623
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
4624
|
+
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
4625
|
+
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
4626
|
+
],
|
|
4627
|
+
},
|
|
4709
4628
|
],
|
|
4710
|
-
name: '
|
|
4629
|
+
name: 'configureMigration',
|
|
4711
4630
|
outputs: [],
|
|
4712
4631
|
stateMutability: 'nonpayable',
|
|
4713
4632
|
},
|
|
4714
4633
|
{
|
|
4715
4634
|
type: 'function',
|
|
4716
|
-
inputs: [{ name: '', internalType: '
|
|
4717
|
-
name: '
|
|
4718
|
-
outputs: [
|
|
4719
|
-
{
|
|
4720
|
-
name: '',
|
|
4721
|
-
internalType: 'enum PolicyRegistry.CreationMode',
|
|
4722
|
-
type: 'uint8',
|
|
4723
|
-
},
|
|
4724
|
-
],
|
|
4635
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4636
|
+
name: 'creator',
|
|
4637
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4725
4638
|
stateMutability: 'view',
|
|
4726
4639
|
},
|
|
4727
4640
|
{
|
|
4728
4641
|
type: 'function',
|
|
4729
|
-
inputs: [
|
|
4730
|
-
name: '
|
|
4642
|
+
inputs: [],
|
|
4643
|
+
name: 'feeCurated',
|
|
4644
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4645
|
+
stateMutability: 'view',
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
type: 'function',
|
|
4649
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4650
|
+
name: 'feeListed',
|
|
4651
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4652
|
+
stateMutability: 'view',
|
|
4653
|
+
},
|
|
4654
|
+
{
|
|
4655
|
+
type: 'function',
|
|
4656
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4657
|
+
name: 'gateMint',
|
|
4658
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4659
|
+
stateMutability: 'view',
|
|
4660
|
+
},
|
|
4661
|
+
{
|
|
4662
|
+
type: 'function',
|
|
4663
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4664
|
+
name: 'incomeTax',
|
|
4731
4665
|
outputs: [
|
|
4732
|
-
{ name: '
|
|
4733
|
-
{ name: '
|
|
4734
|
-
{ name: 'index', internalType: 'uint32', type: 'uint32' },
|
|
4735
|
-
{ name: 'name', internalType: 'bytes32', type: 'bytes32' },
|
|
4666
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
4667
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4736
4668
|
],
|
|
4737
4669
|
stateMutability: 'view',
|
|
4738
4670
|
},
|
|
4739
4671
|
{
|
|
4740
4672
|
type: 'function',
|
|
4741
|
-
inputs: [
|
|
4742
|
-
|
|
4673
|
+
inputs: [
|
|
4674
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4675
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4676
|
+
],
|
|
4677
|
+
name: 'isAllowed',
|
|
4743
4678
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4744
4679
|
stateMutability: 'view',
|
|
4745
4680
|
},
|
|
4746
4681
|
{
|
|
4747
4682
|
type: 'function',
|
|
4748
4683
|
inputs: [
|
|
4749
|
-
{ name: '', internalType: '
|
|
4750
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
4684
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4685
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4751
4686
|
],
|
|
4752
|
-
name: '
|
|
4687
|
+
name: 'isMinter',
|
|
4753
4688
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4754
4689
|
stateMutability: 'view',
|
|
4755
4690
|
},
|
|
4756
4691
|
{
|
|
4757
4692
|
type: 'function',
|
|
4758
|
-
inputs: [
|
|
4759
|
-
|
|
4693
|
+
inputs: [
|
|
4694
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4695
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4696
|
+
],
|
|
4697
|
+
name: 'isTaker',
|
|
4760
4698
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4761
4699
|
stateMutability: 'view',
|
|
4762
4700
|
},
|
|
4763
4701
|
{
|
|
4764
4702
|
type: 'function',
|
|
4765
|
-
inputs: [
|
|
4766
|
-
name: '
|
|
4703
|
+
inputs: [],
|
|
4704
|
+
name: 'kind',
|
|
4767
4705
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4706
|
+
stateMutability: 'pure',
|
|
4707
|
+
},
|
|
4708
|
+
{
|
|
4709
|
+
type: 'function',
|
|
4710
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4711
|
+
name: 'listEpoch',
|
|
4712
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4768
4713
|
stateMutability: 'view',
|
|
4769
4714
|
},
|
|
4770
4715
|
{
|
|
4771
4716
|
type: 'function',
|
|
4772
4717
|
inputs: [],
|
|
4773
|
-
name: '
|
|
4718
|
+
name: 'manager',
|
|
4719
|
+
outputs: [
|
|
4720
|
+
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
4721
|
+
],
|
|
4722
|
+
stateMutability: 'view',
|
|
4723
|
+
},
|
|
4724
|
+
{
|
|
4725
|
+
type: 'function',
|
|
4726
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4727
|
+
name: 'managerOf',
|
|
4774
4728
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4775
4729
|
stateMutability: 'view',
|
|
4776
4730
|
},
|
|
4731
|
+
{
|
|
4732
|
+
type: 'function',
|
|
4733
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4734
|
+
name: 'maxHarvest',
|
|
4735
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4736
|
+
stateMutability: 'view',
|
|
4737
|
+
},
|
|
4777
4738
|
{
|
|
4778
4739
|
type: 'function',
|
|
4779
4740
|
inputs: [
|
|
4780
|
-
{
|
|
4741
|
+
{
|
|
4742
|
+
name: 'a',
|
|
4743
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4744
|
+
type: 'tuple',
|
|
4745
|
+
components: [
|
|
4746
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4747
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4748
|
+
{
|
|
4749
|
+
name: 'action',
|
|
4750
|
+
internalType: 'enum IFPolicy.Action',
|
|
4751
|
+
type: 'uint8',
|
|
4752
|
+
},
|
|
4753
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4754
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4755
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4756
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4757
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4758
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4759
|
+
],
|
|
4760
|
+
},
|
|
4761
|
+
],
|
|
4762
|
+
name: 'may',
|
|
4763
|
+
outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
|
|
4764
|
+
stateMutability: 'view',
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
type: 'function',
|
|
4768
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4769
|
+
name: 'nameOf',
|
|
4770
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4771
|
+
stateMutability: 'view',
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
type: 'function',
|
|
4775
|
+
inputs: [
|
|
4776
|
+
{ name: 'initializer', internalType: 'address', type: 'address' },
|
|
4781
4777
|
{
|
|
4782
4778
|
name: 'key',
|
|
4783
|
-
internalType: 'struct
|
|
4779
|
+
internalType: 'struct CPoolKey',
|
|
4784
4780
|
type: 'tuple',
|
|
4785
4781
|
components: [
|
|
4782
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
4786
4783
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4787
|
-
{ name: '
|
|
4788
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4784
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
4789
4785
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4790
|
-
{ name: '
|
|
4791
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4786
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4792
4787
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4793
4788
|
],
|
|
4794
4789
|
},
|
|
4795
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
4796
4790
|
],
|
|
4797
|
-
name: '
|
|
4798
|
-
outputs: [
|
|
4791
|
+
name: 'onCInitialize',
|
|
4792
|
+
outputs: [
|
|
4793
|
+
{ name: '', internalType: 'uint8', type: 'uint8' },
|
|
4794
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
4795
|
+
],
|
|
4799
4796
|
stateMutability: 'nonpayable',
|
|
4800
4797
|
},
|
|
4801
4798
|
{
|
|
4802
4799
|
type: 'function',
|
|
4803
4800
|
inputs: [
|
|
4804
|
-
{ name: '
|
|
4801
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4805
4802
|
{
|
|
4806
4803
|
name: 'key',
|
|
4807
4804
|
internalType: 'struct FPoolKey',
|
|
@@ -4816,332 +4813,464 @@ export const policyRegistryAbi = [
|
|
|
4816
4813
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
4817
4814
|
],
|
|
4818
4815
|
},
|
|
4819
|
-
|
|
4816
|
+
],
|
|
4817
|
+
name: 'onInitialize',
|
|
4818
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4819
|
+
stateMutability: 'nonpayable',
|
|
4820
|
+
},
|
|
4821
|
+
{
|
|
4822
|
+
type: 'function',
|
|
4823
|
+
inputs: [
|
|
4824
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4825
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
4826
|
+
{ name: 'creator_', internalType: 'address', type: 'address' },
|
|
4827
|
+
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
4828
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
4829
|
+
],
|
|
4830
|
+
name: 'onMigrate',
|
|
4831
|
+
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
4832
|
+
stateMutability: 'nonpayable',
|
|
4833
|
+
},
|
|
4834
|
+
{
|
|
4835
|
+
type: 'function',
|
|
4836
|
+
inputs: [
|
|
4820
4837
|
{
|
|
4821
|
-
name: '
|
|
4822
|
-
internalType: 'struct
|
|
4838
|
+
name: 'a',
|
|
4839
|
+
internalType: 'struct IFPolicy.Ask',
|
|
4823
4840
|
type: 'tuple',
|
|
4824
4841
|
components: [
|
|
4825
|
-
{ name: '
|
|
4826
|
-
{ name: '
|
|
4827
|
-
{
|
|
4828
|
-
|
|
4829
|
-
|
|
4842
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4843
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
4844
|
+
{
|
|
4845
|
+
name: 'action',
|
|
4846
|
+
internalType: 'enum IFPolicy.Action',
|
|
4847
|
+
type: 'uint8',
|
|
4848
|
+
},
|
|
4849
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4850
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
4851
|
+
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
4852
|
+
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
4853
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
4854
|
+
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
4855
|
+
],
|
|
4856
|
+
},
|
|
4857
|
+
],
|
|
4858
|
+
name: 'onRegenerate',
|
|
4859
|
+
outputs: [
|
|
4860
|
+
{
|
|
4861
|
+
name: 't',
|
|
4862
|
+
internalType: 'struct IFPolicy.Terms',
|
|
4863
|
+
type: 'tuple',
|
|
4864
|
+
components: [
|
|
4865
|
+
{ name: 'payee', internalType: 'address', type: 'address' },
|
|
4866
|
+
{ name: 'toPayee', internalType: 'uint256', type: 'uint256' },
|
|
4867
|
+
{ name: 'minQuoteRatio', internalType: 'uint256', type: 'uint256' },
|
|
4868
|
+
{ name: 'carried', internalType: 'address', type: 'address' },
|
|
4830
4869
|
],
|
|
4831
4870
|
},
|
|
4832
4871
|
],
|
|
4833
|
-
name: 'migratePrivate',
|
|
4834
|
-
outputs: [],
|
|
4835
4872
|
stateMutability: 'nonpayable',
|
|
4836
4873
|
},
|
|
4837
4874
|
{
|
|
4838
4875
|
type: 'function',
|
|
4839
|
-
inputs: [],
|
|
4840
|
-
name: '
|
|
4876
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4877
|
+
name: 'pendingAuthority',
|
|
4878
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4879
|
+
stateMutability: 'view',
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
type: 'function',
|
|
4883
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
4884
|
+
name: 'permissionsOf',
|
|
4885
|
+
outputs: [
|
|
4886
|
+
{
|
|
4887
|
+
name: 'mode',
|
|
4888
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
4889
|
+
type: 'uint8',
|
|
4890
|
+
},
|
|
4891
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
4892
|
+
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
4893
|
+
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
4894
|
+
{ name: 'operator_', internalType: 'address', type: 'address' },
|
|
4895
|
+
],
|
|
4896
|
+
stateMutability: 'view',
|
|
4897
|
+
},
|
|
4898
|
+
{
|
|
4899
|
+
type: 'function',
|
|
4900
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
4901
|
+
name: 'poolOperator',
|
|
4841
4902
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4842
4903
|
stateMutability: 'view',
|
|
4843
4904
|
},
|
|
4905
|
+
{
|
|
4906
|
+
type: 'function',
|
|
4907
|
+
inputs: [
|
|
4908
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4909
|
+
{ name: 'next', internalType: 'address', type: 'address' },
|
|
4910
|
+
],
|
|
4911
|
+
name: 'proposeAuthority',
|
|
4912
|
+
outputs: [],
|
|
4913
|
+
stateMutability: 'nonpayable',
|
|
4914
|
+
},
|
|
4844
4915
|
{
|
|
4845
4916
|
type: 'function',
|
|
4846
4917
|
inputs: [],
|
|
4847
|
-
name: '
|
|
4848
|
-
outputs: [{ name: '', internalType: '
|
|
4918
|
+
name: 'quoteCurated',
|
|
4919
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4849
4920
|
stateMutability: 'view',
|
|
4850
4921
|
},
|
|
4851
4922
|
{
|
|
4852
4923
|
type: 'function',
|
|
4853
|
-
inputs: [{ name: '
|
|
4854
|
-
name: '
|
|
4924
|
+
inputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4925
|
+
name: 'quoteListed',
|
|
4926
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4927
|
+
stateMutability: 'view',
|
|
4928
|
+
},
|
|
4929
|
+
{
|
|
4930
|
+
type: 'function',
|
|
4931
|
+
inputs: [{ name: 'cManager_', internalType: 'address', type: 'address' }],
|
|
4932
|
+
name: 'setCManager',
|
|
4855
4933
|
outputs: [],
|
|
4856
4934
|
stateMutability: 'nonpayable',
|
|
4857
4935
|
},
|
|
4858
4936
|
{
|
|
4859
4937
|
type: 'function',
|
|
4860
|
-
inputs: [{ name: '
|
|
4861
|
-
name: '
|
|
4938
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
4939
|
+
name: 'setFeeCurated',
|
|
4862
4940
|
outputs: [],
|
|
4863
4941
|
stateMutability: 'nonpayable',
|
|
4864
4942
|
},
|
|
4865
4943
|
{
|
|
4866
4944
|
type: 'function',
|
|
4867
4945
|
inputs: [
|
|
4868
|
-
{ name: '
|
|
4869
|
-
{
|
|
4870
|
-
name: 'mode',
|
|
4871
|
-
internalType: 'enum PolicyRegistry.CreationMode',
|
|
4872
|
-
type: 'uint8',
|
|
4873
|
-
},
|
|
4946
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
4947
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4874
4948
|
],
|
|
4875
|
-
name: '
|
|
4949
|
+
name: 'setFeeListed',
|
|
4876
4950
|
outputs: [],
|
|
4877
4951
|
stateMutability: 'nonpayable',
|
|
4878
4952
|
},
|
|
4879
4953
|
{
|
|
4880
4954
|
type: 'function',
|
|
4881
4955
|
inputs: [
|
|
4882
|
-
{ name: '
|
|
4883
|
-
{ name: '
|
|
4956
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4957
|
+
{ name: 'gated', internalType: 'bool', type: 'bool' },
|
|
4884
4958
|
],
|
|
4885
|
-
name: '
|
|
4959
|
+
name: 'setMintGate',
|
|
4886
4960
|
outputs: [],
|
|
4887
4961
|
stateMutability: 'nonpayable',
|
|
4888
4962
|
},
|
|
4889
4963
|
{
|
|
4890
4964
|
type: 'function',
|
|
4891
4965
|
inputs: [
|
|
4892
|
-
{ name: '
|
|
4893
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4894
|
-
{ name: '
|
|
4966
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4967
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
4968
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
4895
4969
|
],
|
|
4896
|
-
name: '
|
|
4970
|
+
name: 'setMinters',
|
|
4897
4971
|
outputs: [],
|
|
4898
4972
|
stateMutability: 'nonpayable',
|
|
4899
4973
|
},
|
|
4900
4974
|
{
|
|
4901
4975
|
type: 'function',
|
|
4902
4976
|
inputs: [
|
|
4903
|
-
{ name: '
|
|
4904
|
-
{ name: '
|
|
4977
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4978
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
4905
4979
|
],
|
|
4906
|
-
name: '
|
|
4980
|
+
name: 'setName',
|
|
4907
4981
|
outputs: [],
|
|
4908
4982
|
stateMutability: 'nonpayable',
|
|
4909
4983
|
},
|
|
4910
4984
|
{
|
|
4911
4985
|
type: 'function',
|
|
4912
|
-
inputs: [
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4986
|
+
inputs: [
|
|
4987
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4988
|
+
{ name: 'who', internalType: 'address', type: 'address' },
|
|
4989
|
+
],
|
|
4990
|
+
name: 'setPoolOperator',
|
|
4991
|
+
outputs: [],
|
|
4992
|
+
stateMutability: 'nonpayable',
|
|
4916
4993
|
},
|
|
4917
4994
|
{
|
|
4918
4995
|
type: 'function',
|
|
4919
|
-
inputs: [{ name: '
|
|
4920
|
-
name: '
|
|
4921
|
-
outputs: [
|
|
4922
|
-
stateMutability: '
|
|
4996
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
4997
|
+
name: 'setQuoteCurated',
|
|
4998
|
+
outputs: [],
|
|
4999
|
+
stateMutability: 'nonpayable',
|
|
4923
5000
|
},
|
|
4924
5001
|
{
|
|
4925
5002
|
type: 'function',
|
|
4926
5003
|
inputs: [
|
|
4927
|
-
{ name: '
|
|
4928
|
-
{ name: '
|
|
5004
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5005
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4929
5006
|
],
|
|
4930
|
-
name: '
|
|
5007
|
+
name: 'setQuoteListed',
|
|
4931
5008
|
outputs: [],
|
|
4932
5009
|
stateMutability: 'nonpayable',
|
|
4933
5010
|
},
|
|
4934
5011
|
{
|
|
4935
|
-
type: '
|
|
4936
|
-
anonymous: false,
|
|
5012
|
+
type: 'function',
|
|
4937
5013
|
inputs: [
|
|
5014
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
4938
5015
|
{
|
|
4939
|
-
name: '
|
|
4940
|
-
internalType: '
|
|
4941
|
-
type: '
|
|
4942
|
-
indexed: true,
|
|
4943
|
-
},
|
|
4944
|
-
{
|
|
4945
|
-
name: 'name',
|
|
4946
|
-
internalType: 'bytes32',
|
|
4947
|
-
type: 'bytes32',
|
|
4948
|
-
indexed: false,
|
|
5016
|
+
name: 'mode',
|
|
5017
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5018
|
+
type: 'uint8',
|
|
4949
5019
|
},
|
|
5020
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
4950
5021
|
],
|
|
4951
|
-
name: '
|
|
5022
|
+
name: 'setSwapMode',
|
|
5023
|
+
outputs: [],
|
|
5024
|
+
stateMutability: 'nonpayable',
|
|
4952
5025
|
},
|
|
4953
5026
|
{
|
|
4954
|
-
type: '
|
|
4955
|
-
anonymous: false,
|
|
5027
|
+
type: 'function',
|
|
4956
5028
|
inputs: [
|
|
4957
|
-
{
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
5029
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5030
|
+
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
5031
|
+
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
5032
|
+
],
|
|
5033
|
+
name: 'setTakers',
|
|
5034
|
+
outputs: [],
|
|
5035
|
+
stateMutability: 'nonpayable',
|
|
5036
|
+
},
|
|
5037
|
+
{
|
|
5038
|
+
type: 'function',
|
|
5039
|
+
inputs: [],
|
|
5040
|
+
name: 'sponsor',
|
|
5041
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5042
|
+
stateMutability: 'view',
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
type: 'function',
|
|
5046
|
+
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5047
|
+
name: 'swapPermission',
|
|
5048
|
+
outputs: [
|
|
4963
5049
|
{
|
|
4964
5050
|
name: 'mode',
|
|
4965
|
-
internalType: 'enum
|
|
5051
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
4966
5052
|
type: 'uint8',
|
|
4967
|
-
indexed: false,
|
|
4968
5053
|
},
|
|
5054
|
+
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
4969
5055
|
],
|
|
4970
|
-
|
|
5056
|
+
stateMutability: 'view',
|
|
4971
5057
|
},
|
|
4972
5058
|
{
|
|
4973
5059
|
type: 'event',
|
|
4974
5060
|
anonymous: false,
|
|
4975
5061
|
inputs: [
|
|
4976
5062
|
{
|
|
4977
|
-
name: '
|
|
5063
|
+
name: 'poolId',
|
|
5064
|
+
internalType: 'bytes32',
|
|
5065
|
+
type: 'bytes32',
|
|
5066
|
+
indexed: true,
|
|
5067
|
+
},
|
|
5068
|
+
{
|
|
5069
|
+
name: 'current',
|
|
4978
5070
|
internalType: 'address',
|
|
4979
5071
|
type: 'address',
|
|
4980
5072
|
indexed: true,
|
|
4981
5073
|
},
|
|
4982
|
-
{ name: 'trusted', internalType: 'bool', type: 'bool', indexed: false },
|
|
4983
|
-
],
|
|
4984
|
-
name: 'ForwarderTrusted',
|
|
4985
|
-
},
|
|
4986
|
-
{
|
|
4987
|
-
type: 'event',
|
|
4988
|
-
anonymous: false,
|
|
4989
|
-
inputs: [
|
|
4990
5074
|
{
|
|
4991
|
-
name: '
|
|
5075
|
+
name: 'proposed',
|
|
4992
5076
|
internalType: 'address',
|
|
4993
5077
|
type: 'address',
|
|
4994
5078
|
indexed: true,
|
|
4995
5079
|
},
|
|
4996
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
4997
|
-
{ name: 'allowed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4998
5080
|
],
|
|
4999
|
-
name: '
|
|
5081
|
+
name: 'AuthorityProposed',
|
|
5000
5082
|
},
|
|
5001
5083
|
{
|
|
5002
5084
|
type: 'event',
|
|
5003
5085
|
anonymous: false,
|
|
5004
5086
|
inputs: [
|
|
5087
|
+
{
|
|
5088
|
+
name: 'poolId',
|
|
5089
|
+
internalType: 'bytes32',
|
|
5090
|
+
type: 'bytes32',
|
|
5091
|
+
indexed: true,
|
|
5092
|
+
},
|
|
5005
5093
|
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5006
5094
|
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5007
5095
|
],
|
|
5008
|
-
name: '
|
|
5096
|
+
name: 'AuthoritySet',
|
|
5009
5097
|
},
|
|
5010
5098
|
{
|
|
5011
5099
|
type: 'event',
|
|
5012
5100
|
anonymous: false,
|
|
5013
5101
|
inputs: [
|
|
5014
5102
|
{
|
|
5015
|
-
name: '
|
|
5016
|
-
internalType: 'address',
|
|
5017
|
-
type: 'address',
|
|
5018
|
-
indexed: true,
|
|
5019
|
-
},
|
|
5020
|
-
{
|
|
5021
|
-
name: 'proposed',
|
|
5103
|
+
name: 'manager',
|
|
5022
5104
|
internalType: 'address',
|
|
5023
5105
|
type: 'address',
|
|
5024
5106
|
indexed: true,
|
|
5025
5107
|
},
|
|
5026
5108
|
],
|
|
5027
|
-
name: '
|
|
5109
|
+
name: 'CManagerSet',
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
type: 'event',
|
|
5113
|
+
anonymous: false,
|
|
5114
|
+
inputs: [
|
|
5115
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5116
|
+
],
|
|
5117
|
+
name: 'FeeCuratedSet',
|
|
5118
|
+
},
|
|
5119
|
+
{
|
|
5120
|
+
type: 'event',
|
|
5121
|
+
anonymous: false,
|
|
5122
|
+
inputs: [
|
|
5123
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
5124
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5125
|
+
],
|
|
5126
|
+
name: 'FeeListed',
|
|
5028
5127
|
},
|
|
5029
5128
|
{
|
|
5030
5129
|
type: 'event',
|
|
5031
5130
|
anonymous: false,
|
|
5032
5131
|
inputs: [
|
|
5033
|
-
{
|
|
5034
|
-
name: 'manager',
|
|
5035
|
-
internalType: 'address',
|
|
5036
|
-
type: 'address',
|
|
5037
|
-
indexed: true,
|
|
5038
|
-
},
|
|
5039
5132
|
{
|
|
5040
5133
|
name: 'poolId',
|
|
5041
5134
|
internalType: 'bytes32',
|
|
5042
5135
|
type: 'bytes32',
|
|
5043
5136
|
indexed: true,
|
|
5044
5137
|
},
|
|
5045
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
|
5046
|
-
{
|
|
5047
|
-
name: 'from',
|
|
5048
|
-
internalType: 'address',
|
|
5049
|
-
type: 'address',
|
|
5050
|
-
indexed: false,
|
|
5051
|
-
},
|
|
5052
5138
|
{
|
|
5053
5139
|
name: 'authority',
|
|
5054
5140
|
internalType: 'address',
|
|
5055
5141
|
type: 'address',
|
|
5056
|
-
indexed:
|
|
5142
|
+
indexed: true,
|
|
5057
5143
|
},
|
|
5144
|
+
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5145
|
+
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5146
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5058
5147
|
],
|
|
5059
|
-
name: '
|
|
5148
|
+
name: 'Listed',
|
|
5060
5149
|
},
|
|
5061
5150
|
{
|
|
5062
5151
|
type: 'event',
|
|
5063
5152
|
anonymous: false,
|
|
5064
5153
|
inputs: [
|
|
5065
5154
|
{
|
|
5066
|
-
name: '
|
|
5067
|
-
internalType: '
|
|
5068
|
-
type: '
|
|
5155
|
+
name: 'poolId',
|
|
5156
|
+
internalType: 'bytes32',
|
|
5157
|
+
type: 'bytes32',
|
|
5069
5158
|
indexed: true,
|
|
5070
5159
|
},
|
|
5160
|
+
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5071
5161
|
],
|
|
5072
|
-
name: '
|
|
5162
|
+
name: 'MintGateSet',
|
|
5073
5163
|
},
|
|
5074
5164
|
{
|
|
5075
5165
|
type: 'event',
|
|
5076
5166
|
anonymous: false,
|
|
5077
5167
|
inputs: [
|
|
5078
5168
|
{
|
|
5079
|
-
name: '
|
|
5080
|
-
internalType: '
|
|
5081
|
-
type: '
|
|
5169
|
+
name: 'poolId',
|
|
5170
|
+
internalType: 'bytes32',
|
|
5171
|
+
type: 'bytes32',
|
|
5082
5172
|
indexed: true,
|
|
5083
5173
|
},
|
|
5084
5174
|
{
|
|
5085
|
-
name: '
|
|
5086
|
-
internalType: '
|
|
5087
|
-
type: '
|
|
5088
|
-
indexed:
|
|
5175
|
+
name: 'name',
|
|
5176
|
+
internalType: 'bytes32',
|
|
5177
|
+
type: 'bytes32',
|
|
5178
|
+
indexed: false,
|
|
5089
5179
|
},
|
|
5090
5180
|
],
|
|
5091
|
-
name: '
|
|
5181
|
+
name: 'NameSet',
|
|
5092
5182
|
},
|
|
5093
5183
|
{
|
|
5094
5184
|
type: 'event',
|
|
5095
5185
|
anonymous: false,
|
|
5096
5186
|
inputs: [
|
|
5097
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5098
5187
|
{
|
|
5099
|
-
name: '
|
|
5188
|
+
name: 'poolId',
|
|
5100
5189
|
internalType: 'bytes32',
|
|
5101
5190
|
type: 'bytes32',
|
|
5102
|
-
indexed:
|
|
5191
|
+
indexed: true,
|
|
5103
5192
|
},
|
|
5193
|
+
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
5194
|
+
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5104
5195
|
],
|
|
5105
|
-
name: '
|
|
5196
|
+
name: 'PoolOperatorSet',
|
|
5197
|
+
},
|
|
5198
|
+
{
|
|
5199
|
+
type: 'event',
|
|
5200
|
+
anonymous: false,
|
|
5201
|
+
inputs: [
|
|
5202
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5203
|
+
],
|
|
5204
|
+
name: 'QuoteCuratedSet',
|
|
5106
5205
|
},
|
|
5107
5206
|
{
|
|
5108
5207
|
type: 'event',
|
|
5109
5208
|
anonymous: false,
|
|
5110
5209
|
inputs: [
|
|
5111
5210
|
{
|
|
5112
|
-
name: '
|
|
5211
|
+
name: 'quote',
|
|
5113
5212
|
internalType: 'address',
|
|
5114
5213
|
type: 'address',
|
|
5115
5214
|
indexed: true,
|
|
5116
5215
|
},
|
|
5216
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5217
|
+
],
|
|
5218
|
+
name: 'QuoteListed',
|
|
5219
|
+
},
|
|
5220
|
+
{
|
|
5221
|
+
type: 'event',
|
|
5222
|
+
anonymous: false,
|
|
5223
|
+
inputs: [
|
|
5117
5224
|
{
|
|
5118
|
-
name: '
|
|
5119
|
-
internalType: '
|
|
5120
|
-
type: '
|
|
5225
|
+
name: 'poolId',
|
|
5226
|
+
internalType: 'bytes32',
|
|
5227
|
+
type: 'bytes32',
|
|
5228
|
+
indexed: true,
|
|
5229
|
+
},
|
|
5230
|
+
{
|
|
5231
|
+
name: 'mode',
|
|
5232
|
+
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5233
|
+
type: 'uint8',
|
|
5121
5234
|
indexed: false,
|
|
5122
5235
|
},
|
|
5236
|
+
{
|
|
5237
|
+
name: 'executor',
|
|
5238
|
+
internalType: 'address',
|
|
5239
|
+
type: 'address',
|
|
5240
|
+
indexed: true,
|
|
5241
|
+
},
|
|
5123
5242
|
],
|
|
5124
|
-
name: '
|
|
5243
|
+
name: 'SwapModeSet',
|
|
5125
5244
|
},
|
|
5126
|
-
{ type: 'error', inputs: [], name: '
|
|
5127
|
-
{ type: 'error', inputs: [], name: '
|
|
5128
|
-
{ type: 'error', inputs: [], name: '
|
|
5129
|
-
{
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5245
|
+
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5246
|
+
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5247
|
+
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
5248
|
+
{
|
|
5249
|
+
type: 'error',
|
|
5250
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5251
|
+
name: 'FeeNotListed',
|
|
5252
|
+
},
|
|
5253
|
+
{ type: 'error', inputs: [], name: 'InactivePool' },
|
|
5254
|
+
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5255
|
+
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5133
5256
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5134
|
-
{ type: 'error', inputs: [], name: '
|
|
5135
|
-
{ type: 'error', inputs: [], name: '
|
|
5136
|
-
{ type: 'error', inputs: [], name: '
|
|
5137
|
-
{ type: 'error', inputs: [], name: '
|
|
5257
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5258
|
+
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5259
|
+
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5260
|
+
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5261
|
+
{
|
|
5262
|
+
type: 'error',
|
|
5263
|
+
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
5264
|
+
name: 'QuoteNotListed',
|
|
5265
|
+
},
|
|
5266
|
+
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5138
5267
|
] as const
|
|
5139
5268
|
|
|
5140
5269
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5141
|
-
//
|
|
5270
|
+
// PublicPolicy
|
|
5142
5271
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5143
5272
|
|
|
5144
|
-
export const
|
|
5273
|
+
export const publicPolicyAbi = [
|
|
5145
5274
|
{
|
|
5146
5275
|
type: 'constructor',
|
|
5147
5276
|
inputs: [
|
|
@@ -5150,21 +5279,15 @@ export const privatePolicyAbi = [
|
|
|
5150
5279
|
internalType: 'contract FPoolManager',
|
|
5151
5280
|
type: 'address',
|
|
5152
5281
|
},
|
|
5282
|
+
{ name: '_cManager', internalType: 'address', type: 'address' },
|
|
5153
5283
|
],
|
|
5154
5284
|
stateMutability: 'nonpayable',
|
|
5155
5285
|
},
|
|
5156
5286
|
{
|
|
5157
5287
|
type: 'function',
|
|
5158
5288
|
inputs: [],
|
|
5159
|
-
name: '
|
|
5160
|
-
outputs: [{ name: '', internalType: '
|
|
5161
|
-
stateMutability: 'view',
|
|
5162
|
-
},
|
|
5163
|
-
{
|
|
5164
|
-
type: 'function',
|
|
5165
|
-
inputs: [],
|
|
5166
|
-
name: 'TAKER',
|
|
5167
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
5289
|
+
name: 'SWAP_FEE_TAX_MAX',
|
|
5290
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5168
5291
|
stateMutability: 'view',
|
|
5169
5292
|
},
|
|
5170
5293
|
{
|
|
@@ -5191,23 +5314,13 @@ export const privatePolicyAbi = [
|
|
|
5191
5314
|
{
|
|
5192
5315
|
type: 'function',
|
|
5193
5316
|
inputs: [
|
|
5194
|
-
{ name: '
|
|
5195
|
-
{
|
|
5196
|
-
|
|
5197
|
-
internalType: 'struct IPrivatePolicyMigration.Permissions',
|
|
5198
|
-
type: 'tuple',
|
|
5199
|
-
components: [
|
|
5200
|
-
{ name: 'swapMode', internalType: 'uint8', type: 'uint8' },
|
|
5201
|
-
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5202
|
-
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5203
|
-
{ name: 'minters', internalType: 'address[]', type: 'address[]' },
|
|
5204
|
-
{ name: 'takers', internalType: 'address[]', type: 'address[]' },
|
|
5205
|
-
],
|
|
5206
|
-
},
|
|
5317
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5318
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5319
|
+
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5207
5320
|
],
|
|
5208
|
-
name: '
|
|
5209
|
-
outputs: [],
|
|
5210
|
-
stateMutability: '
|
|
5321
|
+
name: 'cMarketOf',
|
|
5322
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5323
|
+
stateMutability: 'view',
|
|
5211
5324
|
},
|
|
5212
5325
|
{
|
|
5213
5326
|
type: 'function',
|
|
@@ -5230,13 +5343,6 @@ export const privatePolicyAbi = [
|
|
|
5230
5343
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5231
5344
|
stateMutability: 'view',
|
|
5232
5345
|
},
|
|
5233
|
-
{
|
|
5234
|
-
type: 'function',
|
|
5235
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5236
|
-
name: 'gateMint',
|
|
5237
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5238
|
-
stateMutability: 'view',
|
|
5239
|
-
},
|
|
5240
5346
|
{
|
|
5241
5347
|
type: 'function',
|
|
5242
5348
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5247,36 +5353,6 @@ export const privatePolicyAbi = [
|
|
|
5247
5353
|
],
|
|
5248
5354
|
stateMutability: 'view',
|
|
5249
5355
|
},
|
|
5250
|
-
{
|
|
5251
|
-
type: 'function',
|
|
5252
|
-
inputs: [
|
|
5253
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5254
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5255
|
-
],
|
|
5256
|
-
name: 'isAllowed',
|
|
5257
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5258
|
-
stateMutability: 'view',
|
|
5259
|
-
},
|
|
5260
|
-
{
|
|
5261
|
-
type: 'function',
|
|
5262
|
-
inputs: [
|
|
5263
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5264
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5265
|
-
],
|
|
5266
|
-
name: 'isMinter',
|
|
5267
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5268
|
-
stateMutability: 'view',
|
|
5269
|
-
},
|
|
5270
|
-
{
|
|
5271
|
-
type: 'function',
|
|
5272
|
-
inputs: [
|
|
5273
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5274
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
5275
|
-
],
|
|
5276
|
-
name: 'isTaker',
|
|
5277
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5278
|
-
stateMutability: 'view',
|
|
5279
|
-
},
|
|
5280
5356
|
{
|
|
5281
5357
|
type: 'function',
|
|
5282
5358
|
inputs: [],
|
|
@@ -5284,13 +5360,6 @@ export const privatePolicyAbi = [
|
|
|
5284
5360
|
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5285
5361
|
stateMutability: 'pure',
|
|
5286
5362
|
},
|
|
5287
|
-
{
|
|
5288
|
-
type: 'function',
|
|
5289
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5290
|
-
name: 'listEpoch',
|
|
5291
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5292
|
-
stateMutability: 'view',
|
|
5293
|
-
},
|
|
5294
5363
|
{
|
|
5295
5364
|
type: 'function',
|
|
5296
5365
|
inputs: [],
|
|
@@ -5352,7 +5421,7 @@ export const privatePolicyAbi = [
|
|
|
5352
5421
|
{
|
|
5353
5422
|
type: 'function',
|
|
5354
5423
|
inputs: [
|
|
5355
|
-
{ name: '
|
|
5424
|
+
{ name: 'creator_', internalType: 'address', type: 'address' },
|
|
5356
5425
|
{
|
|
5357
5426
|
name: 'key',
|
|
5358
5427
|
internalType: 'struct CPoolKey',
|
|
@@ -5452,32 +5521,25 @@ export const privatePolicyAbi = [
|
|
|
5452
5521
|
},
|
|
5453
5522
|
{
|
|
5454
5523
|
type: 'function',
|
|
5455
|
-
inputs: [
|
|
5456
|
-
name: '
|
|
5457
|
-
outputs: [{ name: '', internalType: '
|
|
5524
|
+
inputs: [],
|
|
5525
|
+
name: 'pairCurated',
|
|
5526
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5458
5527
|
stateMutability: 'view',
|
|
5459
5528
|
},
|
|
5460
5529
|
{
|
|
5461
5530
|
type: 'function',
|
|
5462
|
-
inputs: [
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
{
|
|
5466
|
-
name: 'mode',
|
|
5467
|
-
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5468
|
-
type: 'uint8',
|
|
5469
|
-
},
|
|
5470
|
-
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5471
|
-
{ name: 'mintGated', internalType: 'bool', type: 'bool' },
|
|
5472
|
-
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
5473
|
-
{ name: 'operator_', internalType: 'address', type: 'address' },
|
|
5531
|
+
inputs: [
|
|
5532
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5533
|
+
{ name: '', internalType: 'address', type: 'address' },
|
|
5474
5534
|
],
|
|
5535
|
+
name: 'pairListed',
|
|
5536
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5475
5537
|
stateMutability: 'view',
|
|
5476
5538
|
},
|
|
5477
5539
|
{
|
|
5478
5540
|
type: 'function',
|
|
5479
5541
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5480
|
-
name: '
|
|
5542
|
+
name: 'pendingAuthority',
|
|
5481
5543
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5482
5544
|
stateMutability: 'view',
|
|
5483
5545
|
},
|
|
@@ -5533,40 +5595,27 @@ export const privatePolicyAbi = [
|
|
|
5533
5595
|
type: 'function',
|
|
5534
5596
|
inputs: [
|
|
5535
5597
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5536
|
-
{ name: '
|
|
5537
|
-
],
|
|
5538
|
-
name: 'setMintGate',
|
|
5539
|
-
outputs: [],
|
|
5540
|
-
stateMutability: 'nonpayable',
|
|
5541
|
-
},
|
|
5542
|
-
{
|
|
5543
|
-
type: 'function',
|
|
5544
|
-
inputs: [
|
|
5545
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5546
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
5547
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
5598
|
+
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
5548
5599
|
],
|
|
5549
|
-
name: '
|
|
5600
|
+
name: 'setName',
|
|
5550
5601
|
outputs: [],
|
|
5551
5602
|
stateMutability: 'nonpayable',
|
|
5552
5603
|
},
|
|
5553
5604
|
{
|
|
5554
5605
|
type: 'function',
|
|
5555
|
-
inputs: [
|
|
5556
|
-
|
|
5557
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
5558
|
-
],
|
|
5559
|
-
name: 'setName',
|
|
5606
|
+
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
5607
|
+
name: 'setPairCurated',
|
|
5560
5608
|
outputs: [],
|
|
5561
5609
|
stateMutability: 'nonpayable',
|
|
5562
5610
|
},
|
|
5563
5611
|
{
|
|
5564
5612
|
type: 'function',
|
|
5565
5613
|
inputs: [
|
|
5566
|
-
{ name: '
|
|
5567
|
-
{ name: '
|
|
5614
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5615
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5616
|
+
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
5568
5617
|
],
|
|
5569
|
-
name: '
|
|
5618
|
+
name: 'setPairListed',
|
|
5570
5619
|
outputs: [],
|
|
5571
5620
|
stateMutability: 'nonpayable',
|
|
5572
5621
|
},
|
|
@@ -5590,29 +5639,27 @@ export const privatePolicyAbi = [
|
|
|
5590
5639
|
{
|
|
5591
5640
|
type: 'function',
|
|
5592
5641
|
inputs: [
|
|
5593
|
-
{ name: '
|
|
5594
|
-
{
|
|
5595
|
-
name: 'mode',
|
|
5596
|
-
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5597
|
-
type: 'uint8',
|
|
5598
|
-
},
|
|
5599
|
-
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5642
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
5643
|
+
{ name: '_listed', internalType: 'bool', type: 'bool' },
|
|
5600
5644
|
],
|
|
5601
|
-
name: '
|
|
5645
|
+
name: 'setSpacingListed',
|
|
5602
5646
|
outputs: [],
|
|
5603
5647
|
stateMutability: 'nonpayable',
|
|
5604
5648
|
},
|
|
5605
5649
|
{
|
|
5606
5650
|
type: 'function',
|
|
5607
|
-
inputs: [
|
|
5608
|
-
|
|
5609
|
-
{ name: 'who', internalType: 'address[]', type: 'address[]' },
|
|
5610
|
-
{ name: 'yes', internalType: 'bool', type: 'bool' },
|
|
5611
|
-
],
|
|
5612
|
-
name: 'setTakers',
|
|
5651
|
+
inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
|
|
5652
|
+
name: 'setSwapFeeTax',
|
|
5613
5653
|
outputs: [],
|
|
5614
5654
|
stateMutability: 'nonpayable',
|
|
5615
5655
|
},
|
|
5656
|
+
{
|
|
5657
|
+
type: 'function',
|
|
5658
|
+
inputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
5659
|
+
name: 'spacingListed',
|
|
5660
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5661
|
+
stateMutability: 'view',
|
|
5662
|
+
},
|
|
5616
5663
|
{
|
|
5617
5664
|
type: 'function',
|
|
5618
5665
|
inputs: [],
|
|
@@ -5622,16 +5669,9 @@ export const privatePolicyAbi = [
|
|
|
5622
5669
|
},
|
|
5623
5670
|
{
|
|
5624
5671
|
type: 'function',
|
|
5625
|
-
inputs: [
|
|
5626
|
-
name: '
|
|
5627
|
-
outputs: [
|
|
5628
|
-
{
|
|
5629
|
-
name: 'mode',
|
|
5630
|
-
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5631
|
-
type: 'uint8',
|
|
5632
|
-
},
|
|
5633
|
-
{ name: 'executor', internalType: 'address', type: 'address' },
|
|
5634
|
-
],
|
|
5672
|
+
inputs: [],
|
|
5673
|
+
name: 'swapFeeTax',
|
|
5674
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5635
5675
|
stateMutability: 'view',
|
|
5636
5676
|
},
|
|
5637
5677
|
{
|
|
@@ -5715,64 +5755,36 @@ export const privatePolicyAbi = [
|
|
|
5715
5755
|
indexed: true,
|
|
5716
5756
|
},
|
|
5717
5757
|
{
|
|
5718
|
-
name: '
|
|
5719
|
-
internalType: 'address',
|
|
5720
|
-
type: 'address',
|
|
5721
|
-
indexed: true,
|
|
5722
|
-
},
|
|
5723
|
-
{ name: 'who', internalType: 'address', type: 'address', indexed: true },
|
|
5724
|
-
{ name: 'role', internalType: 'uint8', type: 'uint8', indexed: false },
|
|
5725
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5726
|
-
],
|
|
5727
|
-
name: 'Listed',
|
|
5728
|
-
},
|
|
5729
|
-
{
|
|
5730
|
-
type: 'event',
|
|
5731
|
-
anonymous: false,
|
|
5732
|
-
inputs: [
|
|
5733
|
-
{
|
|
5734
|
-
name: 'poolId',
|
|
5758
|
+
name: 'name',
|
|
5735
5759
|
internalType: 'bytes32',
|
|
5736
5760
|
type: 'bytes32',
|
|
5737
|
-
indexed:
|
|
5761
|
+
indexed: false,
|
|
5738
5762
|
},
|
|
5739
|
-
{ name: 'gated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5740
5763
|
],
|
|
5741
|
-
name: '
|
|
5764
|
+
name: 'NameSet',
|
|
5742
5765
|
},
|
|
5743
5766
|
{
|
|
5744
5767
|
type: 'event',
|
|
5745
5768
|
anonymous: false,
|
|
5746
5769
|
inputs: [
|
|
5747
|
-
{
|
|
5748
|
-
name: 'poolId',
|
|
5749
|
-
internalType: 'bytes32',
|
|
5750
|
-
type: 'bytes32',
|
|
5751
|
-
indexed: true,
|
|
5752
|
-
},
|
|
5753
|
-
{
|
|
5754
|
-
name: 'name',
|
|
5755
|
-
internalType: 'bytes32',
|
|
5756
|
-
type: 'bytes32',
|
|
5757
|
-
indexed: false,
|
|
5758
|
-
},
|
|
5770
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5759
5771
|
],
|
|
5760
|
-
name: '
|
|
5772
|
+
name: 'PairCuratedSet',
|
|
5761
5773
|
},
|
|
5762
5774
|
{
|
|
5763
5775
|
type: 'event',
|
|
5764
5776
|
anonymous: false,
|
|
5765
5777
|
inputs: [
|
|
5778
|
+
{ name: 'base', internalType: 'address', type: 'address', indexed: true },
|
|
5766
5779
|
{
|
|
5767
|
-
name: '
|
|
5768
|
-
internalType: '
|
|
5769
|
-
type: '
|
|
5780
|
+
name: 'quote',
|
|
5781
|
+
internalType: 'address',
|
|
5782
|
+
type: 'address',
|
|
5770
5783
|
indexed: true,
|
|
5771
5784
|
},
|
|
5772
|
-
{ name: '
|
|
5773
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
5785
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5774
5786
|
],
|
|
5775
|
-
name: '
|
|
5787
|
+
name: 'PairListed',
|
|
5776
5788
|
},
|
|
5777
5789
|
{
|
|
5778
5790
|
type: 'event',
|
|
@@ -5801,224 +5813,163 @@ export const privatePolicyAbi = [
|
|
|
5801
5813
|
anonymous: false,
|
|
5802
5814
|
inputs: [
|
|
5803
5815
|
{
|
|
5804
|
-
name: '
|
|
5805
|
-
internalType: '
|
|
5806
|
-
type: '
|
|
5807
|
-
indexed: true,
|
|
5808
|
-
},
|
|
5809
|
-
{
|
|
5810
|
-
name: 'mode',
|
|
5811
|
-
internalType: 'enum PrivatePolicy.SwapMode',
|
|
5812
|
-
type: 'uint8',
|
|
5813
|
-
indexed: false,
|
|
5814
|
-
},
|
|
5815
|
-
{
|
|
5816
|
-
name: 'executor',
|
|
5817
|
-
internalType: 'address',
|
|
5818
|
-
type: 'address',
|
|
5816
|
+
name: 'tickSpacing',
|
|
5817
|
+
internalType: 'int256',
|
|
5818
|
+
type: 'int256',
|
|
5819
5819
|
indexed: true,
|
|
5820
5820
|
},
|
|
5821
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5821
5822
|
],
|
|
5822
|
-
name: '
|
|
5823
|
+
name: 'SpacingListed',
|
|
5824
|
+
},
|
|
5825
|
+
{
|
|
5826
|
+
type: 'event',
|
|
5827
|
+
anonymous: false,
|
|
5828
|
+
inputs: [
|
|
5829
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
5830
|
+
],
|
|
5831
|
+
name: 'SwapFeeTaxSet',
|
|
5823
5832
|
},
|
|
5824
5833
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5825
5834
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5826
|
-
{ type: 'error', inputs: [], name: 'BadSwapMode' },
|
|
5827
5835
|
{
|
|
5828
5836
|
type: 'error',
|
|
5829
5837
|
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5830
5838
|
name: 'FeeNotListed',
|
|
5831
5839
|
},
|
|
5832
|
-
{
|
|
5840
|
+
{
|
|
5841
|
+
type: 'error',
|
|
5842
|
+
inputs: [
|
|
5843
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5844
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5845
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
5846
|
+
],
|
|
5847
|
+
name: 'MarketExists',
|
|
5848
|
+
},
|
|
5833
5849
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5834
5850
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5851
|
+
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
5835
5852
|
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
5836
5853
|
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5837
5854
|
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
5838
5855
|
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
5839
5856
|
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
5857
|
+
{
|
|
5858
|
+
type: 'error',
|
|
5859
|
+
inputs: [
|
|
5860
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5861
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5862
|
+
],
|
|
5863
|
+
name: 'PairNotListed',
|
|
5864
|
+
},
|
|
5840
5865
|
{
|
|
5841
5866
|
type: 'error',
|
|
5842
5867
|
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
5843
5868
|
name: 'QuoteNotListed',
|
|
5844
5869
|
},
|
|
5845
5870
|
{ type: 'error', inputs: [], name: 'Refused' },
|
|
5871
|
+
{
|
|
5872
|
+
type: 'error',
|
|
5873
|
+
inputs: [{ name: 'tickSpacing', internalType: 'int256', type: 'int256' }],
|
|
5874
|
+
name: 'SpacingNotListed',
|
|
5875
|
+
},
|
|
5846
5876
|
] as const
|
|
5847
5877
|
|
|
5848
5878
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5849
|
-
//
|
|
5879
|
+
// Router
|
|
5850
5880
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5851
5881
|
|
|
5852
|
-
export const
|
|
5882
|
+
export const routerAbi = [
|
|
5853
5883
|
{
|
|
5854
5884
|
type: 'constructor',
|
|
5855
5885
|
inputs: [
|
|
5856
|
-
{
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
type: 'address',
|
|
5860
|
-
},
|
|
5861
|
-
{ name: '_cManager', internalType: 'address', type: 'address' },
|
|
5886
|
+
{ name: '_mgr', internalType: 'contract CPoolManager', type: 'address' },
|
|
5887
|
+
{ name: '_fmgr', internalType: 'contract FPoolManager', type: 'address' },
|
|
5888
|
+
{ name: '_permit2', internalType: 'address', type: 'address' },
|
|
5862
5889
|
],
|
|
5863
5890
|
stateMutability: 'nonpayable',
|
|
5864
5891
|
},
|
|
5892
|
+
{ type: 'error', inputs: [], name: 'BadFloor' },
|
|
5893
|
+
{ type: 'error', inputs: [], name: 'BadRecipient' },
|
|
5894
|
+
{ type: 'error', inputs: [], name: 'BadToken' },
|
|
5895
|
+
{ type: 'error', inputs: [], name: 'DeadlineExceeded' },
|
|
5896
|
+
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
5897
|
+
{ type: 'error', inputs: [], name: 'EmptyPath' },
|
|
5898
|
+
{ type: 'error', inputs: [], name: 'LengthMismatch' },
|
|
5899
|
+
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
5865
5900
|
{
|
|
5866
|
-
type: '
|
|
5867
|
-
inputs: [],
|
|
5868
|
-
name: '
|
|
5869
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5870
|
-
stateMutability: 'view',
|
|
5871
|
-
},
|
|
5872
|
-
{
|
|
5873
|
-
type: 'function',
|
|
5874
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5875
|
-
name: 'acceptAuthority',
|
|
5876
|
-
outputs: [],
|
|
5877
|
-
stateMutability: 'nonpayable',
|
|
5878
|
-
},
|
|
5879
|
-
{
|
|
5880
|
-
type: 'function',
|
|
5881
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5882
|
-
name: 'authority',
|
|
5883
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5884
|
-
stateMutability: 'view',
|
|
5885
|
-
},
|
|
5886
|
-
{
|
|
5887
|
-
type: 'function',
|
|
5888
|
-
inputs: [],
|
|
5889
|
-
name: 'cManager',
|
|
5890
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5891
|
-
stateMutability: 'view',
|
|
5901
|
+
type: 'error',
|
|
5902
|
+
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
5903
|
+
name: 'QuoteResult',
|
|
5892
5904
|
},
|
|
5905
|
+
{ type: 'error', inputs: [], name: 'SlippageIn' },
|
|
5906
|
+
{ type: 'error', inputs: [], name: 'SlippageOut' },
|
|
5907
|
+
{ type: 'error', inputs: [], name: 'UnsupportedOp' },
|
|
5908
|
+
{ type: 'error', inputs: [], name: 'WrongToken' },
|
|
5909
|
+
{ type: 'error', inputs: [], name: 'ZeroAmount' },
|
|
5893
5910
|
{
|
|
5894
|
-
type: '
|
|
5911
|
+
type: 'event',
|
|
5912
|
+
anonymous: false,
|
|
5895
5913
|
inputs: [
|
|
5896
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
5897
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
5898
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5899
|
-
],
|
|
5900
|
-
name: 'cMarketOf',
|
|
5901
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5902
|
-
stateMutability: 'view',
|
|
5903
|
-
},
|
|
5904
|
-
{
|
|
5905
|
-
type: 'function',
|
|
5906
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5907
|
-
name: 'creator',
|
|
5908
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5909
|
-
stateMutability: 'view',
|
|
5910
|
-
},
|
|
5911
|
-
{
|
|
5912
|
-
type: 'function',
|
|
5913
|
-
inputs: [],
|
|
5914
|
-
name: 'feeCurated',
|
|
5915
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5916
|
-
stateMutability: 'view',
|
|
5917
|
-
},
|
|
5918
|
-
{
|
|
5919
|
-
type: 'function',
|
|
5920
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5921
|
-
name: 'feeListed',
|
|
5922
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5923
|
-
stateMutability: 'view',
|
|
5924
|
-
},
|
|
5925
|
-
{
|
|
5926
|
-
type: 'function',
|
|
5927
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5928
|
-
name: 'incomeTax',
|
|
5929
|
-
outputs: [
|
|
5930
|
-
{ name: '', internalType: 'address', type: 'address' },
|
|
5931
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5914
|
+
{ name: 'user', internalType: 'address', type: 'address', indexed: true },
|
|
5932
5915
|
],
|
|
5933
|
-
|
|
5934
|
-
},
|
|
5935
|
-
{
|
|
5936
|
-
type: 'function',
|
|
5937
|
-
inputs: [],
|
|
5938
|
-
name: 'kind',
|
|
5939
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5940
|
-
stateMutability: 'pure',
|
|
5916
|
+
name: 'RouterCall',
|
|
5941
5917
|
},
|
|
5918
|
+
{ type: 'fallback', stateMutability: 'nonpayable' },
|
|
5942
5919
|
{
|
|
5943
5920
|
type: 'function',
|
|
5944
5921
|
inputs: [],
|
|
5945
|
-
name: '
|
|
5946
|
-
outputs: [
|
|
5947
|
-
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
5948
|
-
],
|
|
5949
|
-
stateMutability: 'view',
|
|
5950
|
-
},
|
|
5951
|
-
{
|
|
5952
|
-
type: 'function',
|
|
5953
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5954
|
-
name: 'managerOf',
|
|
5955
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5956
|
-
stateMutability: 'view',
|
|
5957
|
-
},
|
|
5958
|
-
{
|
|
5959
|
-
type: 'function',
|
|
5960
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
5961
|
-
name: 'maxHarvest',
|
|
5962
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5922
|
+
name: 'NO_CAP',
|
|
5923
|
+
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
5963
5924
|
stateMutability: 'view',
|
|
5964
5925
|
},
|
|
5965
5926
|
{
|
|
5966
5927
|
type: 'function',
|
|
5967
5928
|
inputs: [
|
|
5929
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
5968
5930
|
{
|
|
5969
|
-
name: '
|
|
5970
|
-
internalType: 'struct
|
|
5931
|
+
name: 'permitSingle',
|
|
5932
|
+
internalType: 'struct IPermit2.PermitSingle',
|
|
5971
5933
|
type: 'tuple',
|
|
5972
5934
|
components: [
|
|
5973
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5974
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
5975
5935
|
{
|
|
5976
|
-
name: '
|
|
5977
|
-
internalType: '
|
|
5978
|
-
type: '
|
|
5936
|
+
name: 'details',
|
|
5937
|
+
internalType: 'struct IPermit2.PermitDetails',
|
|
5938
|
+
type: 'tuple',
|
|
5939
|
+
components: [
|
|
5940
|
+
{ name: 'token', internalType: 'address', type: 'address' },
|
|
5941
|
+
{ name: 'amount', internalType: 'uint160', type: 'uint160' },
|
|
5942
|
+
{ name: 'expiration', internalType: 'uint48', type: 'uint48' },
|
|
5943
|
+
{ name: 'nonce', internalType: 'uint48', type: 'uint48' },
|
|
5944
|
+
],
|
|
5979
5945
|
},
|
|
5980
|
-
{ name: '
|
|
5981
|
-
{ name: '
|
|
5982
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
5983
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
5984
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
5985
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
5946
|
+
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
5947
|
+
{ name: 'sigDeadline', internalType: 'uint256', type: 'uint256' },
|
|
5986
5948
|
],
|
|
5987
5949
|
},
|
|
5950
|
+
{ name: 'signature', internalType: 'bytes', type: 'bytes' },
|
|
5988
5951
|
],
|
|
5989
|
-
name: '
|
|
5990
|
-
outputs: [
|
|
5991
|
-
stateMutability: '
|
|
5992
|
-
},
|
|
5993
|
-
{
|
|
5994
|
-
type: 'function',
|
|
5995
|
-
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5996
|
-
name: 'nameOf',
|
|
5997
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
5998
|
-
stateMutability: 'view',
|
|
5952
|
+
name: 'applyPermit2',
|
|
5953
|
+
outputs: [],
|
|
5954
|
+
stateMutability: 'nonpayable',
|
|
5999
5955
|
},
|
|
6000
5956
|
{
|
|
6001
5957
|
type: 'function',
|
|
6002
5958
|
inputs: [
|
|
6003
|
-
{ name: '
|
|
6004
|
-
{
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6013
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6014
|
-
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6015
|
-
],
|
|
6016
|
-
},
|
|
5959
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5960
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
5961
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5962
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5963
|
+
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5964
|
+
{ name: 'minBaseOut', internalType: 'uint256', type: 'uint256' },
|
|
5965
|
+
{ name: 'minQuoteOut', internalType: 'uint256', type: 'uint256' },
|
|
5966
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
5967
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6017
5968
|
],
|
|
6018
|
-
name: '
|
|
5969
|
+
name: 'burn',
|
|
6019
5970
|
outputs: [
|
|
6020
|
-
{ name: '', internalType: '
|
|
6021
|
-
{ name: '', internalType: 'uint256', type: 'uint256' },
|
|
5971
|
+
{ name: 'baseOut', internalType: 'uint256', type: 'uint256' },
|
|
5972
|
+
{ name: 'quoteOut', internalType: 'uint256', type: 'uint256' },
|
|
6022
5973
|
],
|
|
6023
5974
|
stateMutability: 'nonpayable',
|
|
6024
5975
|
},
|
|
@@ -6026,147 +5977,179 @@ export const publicPolicyAbi = [
|
|
|
6026
5977
|
type: 'function',
|
|
6027
5978
|
inputs: [
|
|
6028
5979
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
5980
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5981
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5982
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
5983
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
5984
|
+
],
|
|
5985
|
+
name: 'claim',
|
|
5986
|
+
outputs: [{ name: 'total', internalType: 'uint256', type: 'uint256' }],
|
|
5987
|
+
stateMutability: 'nonpayable',
|
|
5988
|
+
},
|
|
5989
|
+
{
|
|
5990
|
+
type: 'function',
|
|
5991
|
+
inputs: [
|
|
6029
5992
|
{
|
|
6030
5993
|
name: 'key',
|
|
6031
|
-
internalType: 'struct
|
|
5994
|
+
internalType: 'struct CPoolKey',
|
|
6032
5995
|
type: 'tuple',
|
|
6033
5996
|
components: [
|
|
5997
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6034
5998
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6035
|
-
{ name: '
|
|
6036
|
-
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5999
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
6037
6000
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
6038
|
-
{ name: '
|
|
6039
|
-
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
6001
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
6040
6002
|
{ name: 'mintFee', internalType: 'uint256', type: 'uint256' },
|
|
6041
6003
|
],
|
|
6042
6004
|
},
|
|
6005
|
+
{ name: 'initialLogPrice', internalType: 'int256', type: 'int256' },
|
|
6006
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
6007
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
6008
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
6009
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6010
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6011
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6043
6012
|
],
|
|
6044
|
-
name: '
|
|
6045
|
-
outputs: [
|
|
6046
|
-
stateMutability: 'nonpayable',
|
|
6047
|
-
},
|
|
6048
|
-
{
|
|
6049
|
-
type: 'function',
|
|
6050
|
-
inputs: [
|
|
6013
|
+
name: 'createMarket',
|
|
6014
|
+
outputs: [
|
|
6051
6015
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6052
|
-
{ name: '
|
|
6053
|
-
{ name: '
|
|
6054
|
-
{ name: 'authority_', internalType: 'address', type: 'address' },
|
|
6055
|
-
{ name: 'name_', internalType: 'bytes32', type: 'bytes32' },
|
|
6016
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
6017
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6056
6018
|
],
|
|
6057
|
-
name: 'onMigrate',
|
|
6058
|
-
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
|
|
6059
6019
|
stateMutability: 'nonpayable',
|
|
6060
6020
|
},
|
|
6061
6021
|
{
|
|
6062
6022
|
type: 'function',
|
|
6063
6023
|
inputs: [
|
|
6064
6024
|
{
|
|
6065
|
-
name: '
|
|
6066
|
-
internalType: 'struct
|
|
6067
|
-
type: 'tuple',
|
|
6025
|
+
name: 'actions',
|
|
6026
|
+
internalType: 'struct Action[]',
|
|
6027
|
+
type: 'tuple[]',
|
|
6068
6028
|
components: [
|
|
6069
|
-
{ name: '
|
|
6070
|
-
{ name: '
|
|
6071
|
-
{
|
|
6072
|
-
name: 'action',
|
|
6073
|
-
internalType: 'enum IFPolicy.Action',
|
|
6074
|
-
type: 'uint8',
|
|
6075
|
-
},
|
|
6076
|
-
{ name: 'who', internalType: 'address', type: 'address' },
|
|
6077
|
-
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
6078
|
-
{ name: 'income', internalType: 'uint256', type: 'uint256' },
|
|
6079
|
-
{ name: 'Q', internalType: 'uint256', type: 'uint256' },
|
|
6080
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
6081
|
-
{ name: 'n', internalType: 'uint256', type: 'uint256' },
|
|
6029
|
+
{ name: 'op', internalType: 'enum OpType', type: 'uint8' },
|
|
6030
|
+
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
6082
6031
|
],
|
|
6083
6032
|
},
|
|
6084
|
-
],
|
|
6085
|
-
name: 'onRegenerate',
|
|
6086
|
-
outputs: [
|
|
6087
6033
|
{
|
|
6088
|
-
name: '
|
|
6089
|
-
internalType: 'struct
|
|
6034
|
+
name: 'settle',
|
|
6035
|
+
internalType: 'struct Settle',
|
|
6090
6036
|
type: 'tuple',
|
|
6091
6037
|
components: [
|
|
6092
|
-
{ name: '
|
|
6093
|
-
{ name: '
|
|
6094
|
-
{ name: '
|
|
6095
|
-
{ name: '
|
|
6038
|
+
{ name: 'tokens', internalType: 'address[]', type: 'address[]' },
|
|
6039
|
+
{ name: 'maxIn', internalType: 'uint256[]', type: 'uint256[]' },
|
|
6040
|
+
{ name: 'minOut', internalType: 'uint256[]', type: 'uint256[]' },
|
|
6041
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6096
6042
|
],
|
|
6097
6043
|
},
|
|
6044
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6045
|
+
],
|
|
6046
|
+
name: 'execute',
|
|
6047
|
+
outputs: [
|
|
6048
|
+
{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' },
|
|
6049
|
+
{ name: 'flows', internalType: 'int256[]', type: 'int256[]' },
|
|
6098
6050
|
],
|
|
6099
6051
|
stateMutability: 'nonpayable',
|
|
6100
6052
|
},
|
|
6101
6053
|
{
|
|
6102
6054
|
type: 'function',
|
|
6103
6055
|
inputs: [],
|
|
6104
|
-
name: '
|
|
6105
|
-
outputs: [
|
|
6056
|
+
name: 'fmgr',
|
|
6057
|
+
outputs: [
|
|
6058
|
+
{ name: '', internalType: 'contract FPoolManager', type: 'address' },
|
|
6059
|
+
],
|
|
6106
6060
|
stateMutability: 'view',
|
|
6107
6061
|
},
|
|
6108
6062
|
{
|
|
6109
6063
|
type: 'function',
|
|
6110
|
-
inputs: [
|
|
6111
|
-
|
|
6112
|
-
|
|
6064
|
+
inputs: [],
|
|
6065
|
+
name: 'liquidityFacet',
|
|
6066
|
+
outputs: [
|
|
6067
|
+
{ name: '', internalType: 'contract LiquidityFacet', type: 'address' },
|
|
6113
6068
|
],
|
|
6114
|
-
name: 'pairListed',
|
|
6115
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
6116
6069
|
stateMutability: 'view',
|
|
6117
6070
|
},
|
|
6118
6071
|
{
|
|
6119
6072
|
type: 'function',
|
|
6120
|
-
inputs: [
|
|
6121
|
-
name: '
|
|
6122
|
-
outputs: [
|
|
6073
|
+
inputs: [],
|
|
6074
|
+
name: 'mgr',
|
|
6075
|
+
outputs: [
|
|
6076
|
+
{ name: '', internalType: 'contract CPoolManager', type: 'address' },
|
|
6077
|
+
],
|
|
6123
6078
|
stateMutability: 'view',
|
|
6124
6079
|
},
|
|
6125
6080
|
{
|
|
6126
6081
|
type: 'function',
|
|
6127
6082
|
inputs: [
|
|
6128
6083
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6129
|
-
{ name: '
|
|
6084
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6085
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6086
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
6087
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
6088
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
6089
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
6090
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6091
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6092
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6093
|
+
],
|
|
6094
|
+
name: 'mintBlended',
|
|
6095
|
+
outputs: [
|
|
6096
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
6097
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6130
6098
|
],
|
|
6131
|
-
name: 'proposeAuthority',
|
|
6132
|
-
outputs: [],
|
|
6133
6099
|
stateMutability: 'nonpayable',
|
|
6134
6100
|
},
|
|
6135
6101
|
{
|
|
6136
6102
|
type: 'function',
|
|
6137
|
-
inputs: [
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6103
|
+
inputs: [
|
|
6104
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6105
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6106
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6107
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
6108
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
6109
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
6110
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
6111
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
6112
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6113
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6114
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6115
|
+
],
|
|
6116
|
+
name: 'move',
|
|
6117
|
+
outputs: [
|
|
6118
|
+
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
6119
|
+
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
6120
|
+
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
6121
|
+
],
|
|
6122
|
+
stateMutability: 'nonpayable',
|
|
6148
6123
|
},
|
|
6149
6124
|
{
|
|
6150
6125
|
type: 'function',
|
|
6151
|
-
inputs: [{ name: '
|
|
6152
|
-
name: '
|
|
6153
|
-
outputs: [],
|
|
6126
|
+
inputs: [{ name: 'data', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
6127
|
+
name: 'multicall',
|
|
6128
|
+
outputs: [{ name: 'results', internalType: 'bytes[]', type: 'bytes[]' }],
|
|
6154
6129
|
stateMutability: 'nonpayable',
|
|
6155
6130
|
},
|
|
6156
6131
|
{
|
|
6157
6132
|
type: 'function',
|
|
6158
|
-
inputs: [
|
|
6159
|
-
name: '
|
|
6160
|
-
outputs: [],
|
|
6161
|
-
stateMutability: '
|
|
6133
|
+
inputs: [],
|
|
6134
|
+
name: 'permit2',
|
|
6135
|
+
outputs: [{ name: '', internalType: 'contract IPermit2', type: 'address' }],
|
|
6136
|
+
stateMutability: 'view',
|
|
6162
6137
|
},
|
|
6163
6138
|
{
|
|
6164
6139
|
type: 'function',
|
|
6165
6140
|
inputs: [
|
|
6166
|
-
{ name: '
|
|
6167
|
-
{
|
|
6141
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6142
|
+
{
|
|
6143
|
+
name: 'kind',
|
|
6144
|
+
internalType: 'enum FPoolManager.QuoteKind',
|
|
6145
|
+
type: 'uint8',
|
|
6146
|
+
},
|
|
6147
|
+
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
6148
|
+
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
6149
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
6150
|
+
{ name: 'taker', internalType: 'address', type: 'address' },
|
|
6168
6151
|
],
|
|
6169
|
-
name: '
|
|
6152
|
+
name: 'quoteSwap',
|
|
6170
6153
|
outputs: [],
|
|
6171
6154
|
stateMutability: 'nonpayable',
|
|
6172
6155
|
},
|
|
@@ -6174,282 +6157,307 @@ export const publicPolicyAbi = [
|
|
|
6174
6157
|
type: 'function',
|
|
6175
6158
|
inputs: [
|
|
6176
6159
|
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6177
|
-
{ name: '
|
|
6160
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
6161
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
6162
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
6163
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6164
|
+
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
6165
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
6166
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6178
6167
|
],
|
|
6179
|
-
name: '
|
|
6180
|
-
outputs: [],
|
|
6181
|
-
stateMutability: 'nonpayable',
|
|
6182
|
-
},
|
|
6183
|
-
{
|
|
6184
|
-
type: 'function',
|
|
6185
|
-
inputs: [{ name: '_curated', internalType: 'bool', type: 'bool' }],
|
|
6186
|
-
name: 'setPairCurated',
|
|
6187
|
-
outputs: [],
|
|
6168
|
+
name: 'rollIn',
|
|
6169
|
+
outputs: [{ name: 'sharesOut', internalType: 'uint256', type: 'uint256' }],
|
|
6188
6170
|
stateMutability: 'nonpayable',
|
|
6189
6171
|
},
|
|
6190
6172
|
{
|
|
6191
6173
|
type: 'function',
|
|
6192
6174
|
inputs: [
|
|
6193
|
-
{ name: '
|
|
6194
|
-
{
|
|
6195
|
-
|
|
6175
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6176
|
+
{
|
|
6177
|
+
name: 'kind',
|
|
6178
|
+
internalType: 'enum FPoolManager.QuoteKind',
|
|
6179
|
+
type: 'uint8',
|
|
6180
|
+
},
|
|
6181
|
+
{ name: 'j', internalType: 'uint256', type: 'uint256' },
|
|
6182
|
+
{ name: 'k', internalType: 'uint256', type: 'uint256' },
|
|
6183
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
6184
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
6185
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
6186
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6196
6187
|
],
|
|
6197
|
-
name: '
|
|
6198
|
-
outputs: [],
|
|
6188
|
+
name: 'swapExactIn',
|
|
6189
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
6199
6190
|
stateMutability: 'nonpayable',
|
|
6200
6191
|
},
|
|
6201
6192
|
{
|
|
6202
6193
|
type: 'function',
|
|
6203
|
-
inputs: [
|
|
6204
|
-
|
|
6205
|
-
|
|
6194
|
+
inputs: [
|
|
6195
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6196
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
6197
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
6198
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
6199
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
6200
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
6201
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6202
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6203
|
+
],
|
|
6204
|
+
name: 'swapExactIn',
|
|
6205
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
6206
6206
|
stateMutability: 'nonpayable',
|
|
6207
6207
|
},
|
|
6208
6208
|
{
|
|
6209
6209
|
type: 'function',
|
|
6210
6210
|
inputs: [
|
|
6211
|
-
{
|
|
6212
|
-
|
|
6211
|
+
{
|
|
6212
|
+
name: 'hops',
|
|
6213
|
+
internalType: 'struct Hop[]',
|
|
6214
|
+
type: 'tuple[]',
|
|
6215
|
+
components: [
|
|
6216
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6217
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
6218
|
+
],
|
|
6219
|
+
},
|
|
6220
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
6221
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
6222
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
6223
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
6224
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6225
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6213
6226
|
],
|
|
6214
|
-
name: '
|
|
6215
|
-
outputs: [],
|
|
6227
|
+
name: 'swapExactInPath',
|
|
6228
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
6216
6229
|
stateMutability: 'nonpayable',
|
|
6217
6230
|
},
|
|
6218
6231
|
{
|
|
6219
6232
|
type: 'function',
|
|
6220
6233
|
inputs: [
|
|
6221
|
-
{ name: '
|
|
6222
|
-
{ name: '
|
|
6234
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6235
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
6236
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
6237
|
+
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
6238
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
6239
|
+
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
6240
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6241
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6223
6242
|
],
|
|
6224
|
-
name: '
|
|
6225
|
-
outputs: [],
|
|
6243
|
+
name: 'swapExactOut',
|
|
6244
|
+
outputs: [{ name: 'amountIn', internalType: 'uint256', type: 'uint256' }],
|
|
6226
6245
|
stateMutability: 'nonpayable',
|
|
6227
6246
|
},
|
|
6228
6247
|
{
|
|
6229
6248
|
type: 'function',
|
|
6230
|
-
inputs: [{ name: '
|
|
6231
|
-
name: '
|
|
6232
|
-
outputs: [],
|
|
6249
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
6250
|
+
name: 'unlockCallback',
|
|
6251
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
6233
6252
|
stateMutability: 'nonpayable',
|
|
6234
6253
|
},
|
|
6235
6254
|
{
|
|
6236
6255
|
type: 'function',
|
|
6237
|
-
inputs: [
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6256
|
+
inputs: [
|
|
6257
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6258
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6259
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6260
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
6261
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
6262
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
6263
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
6264
|
+
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
6265
|
+
{ name: 'maxBaseIn', internalType: 'uint256', type: 'uint256' },
|
|
6266
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6267
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6268
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6269
|
+
],
|
|
6270
|
+
name: 'update',
|
|
6271
|
+
outputs: [
|
|
6272
|
+
{ name: 'dBase', internalType: 'int256', type: 'int256' },
|
|
6273
|
+
{ name: 'dQuote', internalType: 'int256', type: 'int256' },
|
|
6274
|
+
{ name: 'newShares', internalType: 'uint256', type: 'uint256' },
|
|
6275
|
+
],
|
|
6276
|
+
stateMutability: 'nonpayable',
|
|
6241
6277
|
},
|
|
6242
6278
|
{
|
|
6243
6279
|
type: 'function',
|
|
6244
6280
|
inputs: [],
|
|
6245
|
-
name: '
|
|
6246
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6281
|
+
name: 'user',
|
|
6282
|
+
outputs: [{ name: 'u', internalType: 'address', type: 'address' }],
|
|
6247
6283
|
stateMutability: 'view',
|
|
6248
6284
|
},
|
|
6249
6285
|
{
|
|
6250
6286
|
type: 'function',
|
|
6251
|
-
inputs: [],
|
|
6252
|
-
name: 'swapFeeTax',
|
|
6253
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
6254
|
-
stateMutability: 'view',
|
|
6255
|
-
},
|
|
6256
|
-
{
|
|
6257
|
-
type: 'event',
|
|
6258
|
-
anonymous: false,
|
|
6259
|
-
inputs: [
|
|
6260
|
-
{
|
|
6261
|
-
name: 'poolId',
|
|
6262
|
-
internalType: 'bytes32',
|
|
6263
|
-
type: 'bytes32',
|
|
6264
|
-
indexed: true,
|
|
6265
|
-
},
|
|
6266
|
-
{
|
|
6267
|
-
name: 'current',
|
|
6268
|
-
internalType: 'address',
|
|
6269
|
-
type: 'address',
|
|
6270
|
-
indexed: true,
|
|
6271
|
-
},
|
|
6272
|
-
{
|
|
6273
|
-
name: 'proposed',
|
|
6274
|
-
internalType: 'address',
|
|
6275
|
-
type: 'address',
|
|
6276
|
-
indexed: true,
|
|
6277
|
-
},
|
|
6278
|
-
],
|
|
6279
|
-
name: 'AuthorityProposed',
|
|
6280
|
-
},
|
|
6281
|
-
{
|
|
6282
|
-
type: 'event',
|
|
6283
|
-
anonymous: false,
|
|
6284
6287
|
inputs: [
|
|
6285
|
-
{
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
},
|
|
6291
|
-
{ name: 'prev', internalType: 'address', type: 'address', indexed: true },
|
|
6292
|
-
{ name: 'next', internalType: 'address', type: 'address', indexed: true },
|
|
6288
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6289
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
6290
|
+
{ name: 'maxQuoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6291
|
+
{ name: 'minShares', internalType: 'uint256', type: 'uint256' },
|
|
6292
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
6293
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6293
6294
|
],
|
|
6294
|
-
name: '
|
|
6295
|
+
name: 'zapIn',
|
|
6296
|
+
outputs: [{ name: 'shares', internalType: 'uint256', type: 'uint256' }],
|
|
6297
|
+
stateMutability: 'nonpayable',
|
|
6295
6298
|
},
|
|
6296
6299
|
{
|
|
6297
|
-
type: '
|
|
6298
|
-
anonymous: false,
|
|
6300
|
+
type: 'function',
|
|
6299
6301
|
inputs: [
|
|
6300
|
-
{
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
},
|
|
6302
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6303
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
6304
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
6305
|
+
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
6306
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
6307
|
+
{ name: 'minSwapOut', internalType: 'uint256', type: 'uint256' },
|
|
6308
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
6309
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
6310
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
6311
|
+
{ name: 'maxIn', internalType: 'uint256', type: 'uint256' },
|
|
6312
|
+
{ name: 'recipient', internalType: 'address', type: 'address' },
|
|
6313
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6306
6314
|
],
|
|
6307
|
-
name: '
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
anonymous: false,
|
|
6312
|
-
inputs: [
|
|
6313
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6315
|
+
name: 'zapIn',
|
|
6316
|
+
outputs: [
|
|
6317
|
+
{ name: 'baseIn', internalType: 'uint256', type: 'uint256' },
|
|
6318
|
+
{ name: 'quoteIn', internalType: 'uint256', type: 'uint256' },
|
|
6314
6319
|
],
|
|
6315
|
-
|
|
6320
|
+
stateMutability: 'nonpayable',
|
|
6316
6321
|
},
|
|
6317
6322
|
{
|
|
6318
|
-
type: '
|
|
6319
|
-
anonymous: false,
|
|
6323
|
+
type: 'function',
|
|
6320
6324
|
inputs: [
|
|
6321
|
-
{ name: '
|
|
6322
|
-
{ name: '
|
|
6325
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6326
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
6327
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
6328
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
6329
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
6330
|
+
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
6323
6331
|
],
|
|
6324
|
-
name: '
|
|
6332
|
+
name: 'zapOut',
|
|
6333
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
6334
|
+
stateMutability: 'nonpayable',
|
|
6325
6335
|
},
|
|
6336
|
+
] as const
|
|
6337
|
+
|
|
6338
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
6339
|
+
// RouterActions
|
|
6340
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
6341
|
+
|
|
6342
|
+
export const routerActionsAbi = [
|
|
6326
6343
|
{
|
|
6327
|
-
type: '
|
|
6328
|
-
anonymous: false,
|
|
6344
|
+
type: 'function',
|
|
6329
6345
|
inputs: [
|
|
6330
6346
|
{
|
|
6331
|
-
name: '
|
|
6332
|
-
internalType: '
|
|
6333
|
-
type: '
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
type: 'bytes32',
|
|
6340
|
-
indexed: false,
|
|
6347
|
+
name: 'a',
|
|
6348
|
+
internalType: 'struct BurnAct',
|
|
6349
|
+
type: 'tuple',
|
|
6350
|
+
components: [
|
|
6351
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6352
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
6353
|
+
{ name: 'shares', internalType: 'uint256[]', type: 'uint256[]' },
|
|
6354
|
+
],
|
|
6341
6355
|
},
|
|
6342
6356
|
],
|
|
6343
|
-
name: '
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
type: 'event',
|
|
6347
|
-
anonymous: false,
|
|
6348
|
-
inputs: [
|
|
6349
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6350
|
-
],
|
|
6351
|
-
name: 'PairCuratedSet',
|
|
6357
|
+
name: 'encodeBurn',
|
|
6358
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
6359
|
+
stateMutability: 'pure',
|
|
6352
6360
|
},
|
|
6353
6361
|
{
|
|
6354
|
-
type: '
|
|
6355
|
-
anonymous: false,
|
|
6362
|
+
type: 'function',
|
|
6356
6363
|
inputs: [
|
|
6357
|
-
{ name: 'base', internalType: 'address', type: 'address', indexed: true },
|
|
6358
6364
|
{
|
|
6359
|
-
name: '
|
|
6360
|
-
internalType: '
|
|
6361
|
-
type: '
|
|
6362
|
-
|
|
6365
|
+
name: 'a',
|
|
6366
|
+
internalType: 'struct ClaimAct',
|
|
6367
|
+
type: 'tuple',
|
|
6368
|
+
components: [
|
|
6369
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6370
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
6371
|
+
],
|
|
6363
6372
|
},
|
|
6364
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6365
6373
|
],
|
|
6366
|
-
name: '
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
type: 'event',
|
|
6370
|
-
anonymous: false,
|
|
6371
|
-
inputs: [
|
|
6372
|
-
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
6373
|
-
],
|
|
6374
|
-
name: 'QuoteCuratedSet',
|
|
6374
|
+
name: 'encodeClaim',
|
|
6375
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
6376
|
+
stateMutability: 'pure',
|
|
6375
6377
|
},
|
|
6376
6378
|
{
|
|
6377
|
-
type: '
|
|
6378
|
-
anonymous: false,
|
|
6379
|
+
type: 'function',
|
|
6379
6380
|
inputs: [
|
|
6380
6381
|
{
|
|
6381
|
-
name: '
|
|
6382
|
-
internalType: '
|
|
6383
|
-
type: '
|
|
6384
|
-
|
|
6382
|
+
name: 'a',
|
|
6383
|
+
internalType: 'struct MintAct',
|
|
6384
|
+
type: 'tuple',
|
|
6385
|
+
components: [
|
|
6386
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6387
|
+
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
6388
|
+
{ name: 'cap', internalType: 'int256', type: 'int256' },
|
|
6389
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
6390
|
+
],
|
|
6385
6391
|
},
|
|
6386
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6387
6392
|
],
|
|
6388
|
-
name: '
|
|
6393
|
+
name: 'encodeMint',
|
|
6394
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
6395
|
+
stateMutability: 'pure',
|
|
6389
6396
|
},
|
|
6390
6397
|
{
|
|
6391
|
-
type: '
|
|
6392
|
-
anonymous: false,
|
|
6398
|
+
type: 'function',
|
|
6393
6399
|
inputs: [
|
|
6394
6400
|
{
|
|
6395
|
-
name: '
|
|
6396
|
-
internalType: '
|
|
6397
|
-
type: '
|
|
6398
|
-
|
|
6401
|
+
name: 'a',
|
|
6402
|
+
internalType: 'struct PathAct',
|
|
6403
|
+
type: 'tuple',
|
|
6404
|
+
components: [
|
|
6405
|
+
{
|
|
6406
|
+
name: 'hops',
|
|
6407
|
+
internalType: 'struct Hop[]',
|
|
6408
|
+
type: 'tuple[]',
|
|
6409
|
+
components: [
|
|
6410
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6411
|
+
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
6412
|
+
],
|
|
6413
|
+
},
|
|
6414
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
6415
|
+
{ name: 'minOut', internalType: 'uint256', type: 'uint256' },
|
|
6416
|
+
],
|
|
6399
6417
|
},
|
|
6400
|
-
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
6401
|
-
],
|
|
6402
|
-
name: 'SpacingListed',
|
|
6403
|
-
},
|
|
6404
|
-
{
|
|
6405
|
-
type: 'event',
|
|
6406
|
-
anonymous: false,
|
|
6407
|
-
inputs: [
|
|
6408
|
-
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
6409
6418
|
],
|
|
6410
|
-
name: '
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
6414
|
-
{
|
|
6415
|
-
type: 'error',
|
|
6416
|
-
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
6417
|
-
name: 'FeeNotListed',
|
|
6419
|
+
name: 'encodePath',
|
|
6420
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
6421
|
+
stateMutability: 'pure',
|
|
6418
6422
|
},
|
|
6419
6423
|
{
|
|
6420
|
-
type: '
|
|
6424
|
+
type: 'function',
|
|
6421
6425
|
inputs: [
|
|
6422
|
-
{
|
|
6423
|
-
|
|
6424
|
-
|
|
6426
|
+
{
|
|
6427
|
+
name: 'a',
|
|
6428
|
+
internalType: 'struct SwapAct',
|
|
6429
|
+
type: 'tuple',
|
|
6430
|
+
components: [
|
|
6431
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6432
|
+
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
6433
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
6434
|
+
{ name: 'limit', internalType: 'uint256', type: 'uint256' },
|
|
6435
|
+
],
|
|
6436
|
+
},
|
|
6425
6437
|
],
|
|
6426
|
-
name: '
|
|
6438
|
+
name: 'encodeSwap',
|
|
6439
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
6440
|
+
stateMutability: 'pure',
|
|
6427
6441
|
},
|
|
6428
|
-
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
6429
|
-
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
6430
|
-
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
6431
|
-
{ type: 'error', inputs: [], name: 'NotLogAuthority' },
|
|
6432
|
-
{ type: 'error', inputs: [], name: 'NotManager' },
|
|
6433
|
-
{ type: 'error', inputs: [], name: 'NotRegistry' },
|
|
6434
|
-
{ type: 'error', inputs: [], name: 'NotSponsor' },
|
|
6435
|
-
{ type: 'error', inputs: [], name: 'OneBase' },
|
|
6436
6442
|
{
|
|
6437
|
-
type: '
|
|
6443
|
+
type: 'function',
|
|
6438
6444
|
inputs: [
|
|
6439
|
-
{
|
|
6440
|
-
|
|
6445
|
+
{
|
|
6446
|
+
name: 'a',
|
|
6447
|
+
internalType: 'struct UpdateAct',
|
|
6448
|
+
type: 'tuple',
|
|
6449
|
+
components: [
|
|
6450
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
6451
|
+
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
6452
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
6453
|
+
{ name: 'toFloor', internalType: 'int256', type: 'int256' },
|
|
6454
|
+
{ name: 'toCap', internalType: 'int256', type: 'int256' },
|
|
6455
|
+
{ name: 'newL', internalType: 'uint256', type: 'uint256' },
|
|
6456
|
+
],
|
|
6457
|
+
},
|
|
6441
6458
|
],
|
|
6442
|
-
name: '
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
type: 'error',
|
|
6446
|
-
inputs: [{ name: 'quote', internalType: 'address', type: 'address' }],
|
|
6447
|
-
name: 'QuoteNotListed',
|
|
6448
|
-
},
|
|
6449
|
-
{ type: 'error', inputs: [], name: 'Refused' },
|
|
6450
|
-
{
|
|
6451
|
-
type: 'error',
|
|
6452
|
-
inputs: [{ name: 'tickSpacing', internalType: 'int256', type: 'int256' }],
|
|
6453
|
-
name: 'SpacingNotListed',
|
|
6459
|
+
name: 'encodeUpdate',
|
|
6460
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
6461
|
+
stateMutability: 'pure',
|
|
6454
6462
|
},
|
|
6455
6463
|
] as const
|