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