@flaunch/sdk 0.2.0 → 0.3.1
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 +1 -1
- package/dist/abi/BidWall.d.ts +493 -0
- package/dist/abi/BidWall.d.ts.map +1 -0
- package/dist/abi/StateView.d.ts +278 -0
- package/dist/abi/StateView.d.ts.map +1 -0
- package/dist/addresses/index.cjs +195 -138
- package/dist/addresses/index.cjs.map +1 -1
- package/dist/addresses/index.js +193 -139
- package/dist/addresses/index.js.map +1 -1
- package/dist/addresses.d.ts +6 -1
- package/dist/addresses.d.ts.map +1 -1
- package/dist/clients/BidWallClient.d.ts +25 -0
- package/dist/clients/BidWallClient.d.ts.map +1 -0
- package/dist/clients/FairLaunchClient.d.ts +1 -1
- package/dist/clients/FairLaunchClient.d.ts.map +1 -1
- package/dist/clients/FastFlaunchClient.d.ts +1 -2
- package/dist/clients/FastFlaunchClient.d.ts.map +1 -1
- package/dist/clients/FlaunchClient.d.ts +1 -1
- package/dist/clients/FlaunchClient.d.ts.map +1 -1
- package/dist/clients/FlaunchPositionManagerClient.d.ts +2 -2
- package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -1
- package/dist/clients/MemecoinClient.d.ts +1 -1
- package/dist/clients/MemecoinClient.d.ts.map +1 -1
- package/dist/clients/Permit2Client.d.ts +1 -1
- package/dist/clients/Permit2Client.d.ts.map +1 -1
- package/dist/clients/PoolManagerClient.d.ts +1 -1
- package/dist/clients/PoolManagerClient.d.ts.map +1 -1
- package/dist/clients/QuoterClient.d.ts +2 -1
- package/dist/clients/QuoterClient.d.ts.map +1 -1
- package/dist/clients/StateViewClient.d.ts +33 -0
- package/dist/clients/StateViewClient.d.ts.map +1 -0
- package/dist/index.cjs.js +1084 -259
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1076 -261
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/sdk/FlaunchSDK.d.ts +31 -9
- package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
- package/dist/utils/univ4.d.ts +5 -0
- package/dist/utils/univ4.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createDrift } from '@delvtech/drift';
|
|
2
|
-
import { parseUnits, encodeAbiParameters, hexToBigInt as hexToBigInt$1, pad as pad$1, keccak256 as keccak256$1, encodePacked, stringToHex as stringToHex$1, zeroAddress, concat, toHex as toHex$1,
|
|
2
|
+
import { parseUnits, encodeAbiParameters, hexToBigInt as hexToBigInt$1, pad as pad$1, keccak256 as keccak256$1, encodePacked, stringToHex as stringToHex$1, zeroAddress, parseEther, formatUnits as formatUnits$1, concat, toHex as toHex$1, maxUint256 as maxUint256$1, encodeFunctionData, maxUint160, maxUint48 } from 'viem';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import { TickMath } from '@uniswap/v3-sdk';
|
|
5
5
|
|
|
@@ -2737,6 +2737,237 @@ class ReadPoolManager {
|
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
2739
|
|
|
2740
|
+
const StateViewAbi = [
|
|
2741
|
+
{
|
|
2742
|
+
inputs: [
|
|
2743
|
+
{
|
|
2744
|
+
internalType: "contract IPoolManager",
|
|
2745
|
+
name: "_poolManager",
|
|
2746
|
+
type: "address",
|
|
2747
|
+
},
|
|
2748
|
+
],
|
|
2749
|
+
stateMutability: "nonpayable",
|
|
2750
|
+
type: "constructor",
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
inputs: [{ internalType: "PoolId", name: "poolId", type: "bytes32" }],
|
|
2754
|
+
name: "getFeeGrowthGlobals",
|
|
2755
|
+
outputs: [
|
|
2756
|
+
{ internalType: "uint256", name: "feeGrowthGlobal0", type: "uint256" },
|
|
2757
|
+
{ internalType: "uint256", name: "feeGrowthGlobal1", type: "uint256" },
|
|
2758
|
+
],
|
|
2759
|
+
stateMutability: "view",
|
|
2760
|
+
type: "function",
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
inputs: [
|
|
2764
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2765
|
+
{ internalType: "int24", name: "tickLower", type: "int24" },
|
|
2766
|
+
{ internalType: "int24", name: "tickUpper", type: "int24" },
|
|
2767
|
+
],
|
|
2768
|
+
name: "getFeeGrowthInside",
|
|
2769
|
+
outputs: [
|
|
2770
|
+
{
|
|
2771
|
+
internalType: "uint256",
|
|
2772
|
+
name: "feeGrowthInside0X128",
|
|
2773
|
+
type: "uint256",
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
internalType: "uint256",
|
|
2777
|
+
name: "feeGrowthInside1X128",
|
|
2778
|
+
type: "uint256",
|
|
2779
|
+
},
|
|
2780
|
+
],
|
|
2781
|
+
stateMutability: "view",
|
|
2782
|
+
type: "function",
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
inputs: [{ internalType: "PoolId", name: "poolId", type: "bytes32" }],
|
|
2786
|
+
name: "getLiquidity",
|
|
2787
|
+
outputs: [{ internalType: "uint128", name: "liquidity", type: "uint128" }],
|
|
2788
|
+
stateMutability: "view",
|
|
2789
|
+
type: "function",
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
inputs: [
|
|
2793
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2794
|
+
{ internalType: "bytes32", name: "positionId", type: "bytes32" },
|
|
2795
|
+
],
|
|
2796
|
+
name: "getPositionInfo",
|
|
2797
|
+
outputs: [
|
|
2798
|
+
{ internalType: "uint128", name: "liquidity", type: "uint128" },
|
|
2799
|
+
{
|
|
2800
|
+
internalType: "uint256",
|
|
2801
|
+
name: "feeGrowthInside0LastX128",
|
|
2802
|
+
type: "uint256",
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
internalType: "uint256",
|
|
2806
|
+
name: "feeGrowthInside1LastX128",
|
|
2807
|
+
type: "uint256",
|
|
2808
|
+
},
|
|
2809
|
+
],
|
|
2810
|
+
stateMutability: "view",
|
|
2811
|
+
type: "function",
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
inputs: [
|
|
2815
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2816
|
+
{ internalType: "address", name: "owner", type: "address" },
|
|
2817
|
+
{ internalType: "int24", name: "tickLower", type: "int24" },
|
|
2818
|
+
{ internalType: "int24", name: "tickUpper", type: "int24" },
|
|
2819
|
+
{ internalType: "bytes32", name: "salt", type: "bytes32" },
|
|
2820
|
+
],
|
|
2821
|
+
name: "getPositionInfo",
|
|
2822
|
+
outputs: [
|
|
2823
|
+
{ internalType: "uint128", name: "liquidity", type: "uint128" },
|
|
2824
|
+
{
|
|
2825
|
+
internalType: "uint256",
|
|
2826
|
+
name: "feeGrowthInside0LastX128",
|
|
2827
|
+
type: "uint256",
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
internalType: "uint256",
|
|
2831
|
+
name: "feeGrowthInside1LastX128",
|
|
2832
|
+
type: "uint256",
|
|
2833
|
+
},
|
|
2834
|
+
],
|
|
2835
|
+
stateMutability: "view",
|
|
2836
|
+
type: "function",
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
inputs: [
|
|
2840
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2841
|
+
{ internalType: "bytes32", name: "positionId", type: "bytes32" },
|
|
2842
|
+
],
|
|
2843
|
+
name: "getPositionLiquidity",
|
|
2844
|
+
outputs: [{ internalType: "uint128", name: "liquidity", type: "uint128" }],
|
|
2845
|
+
stateMutability: "view",
|
|
2846
|
+
type: "function",
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
inputs: [{ internalType: "PoolId", name: "poolId", type: "bytes32" }],
|
|
2850
|
+
name: "getSlot0",
|
|
2851
|
+
outputs: [
|
|
2852
|
+
{ internalType: "uint160", name: "sqrtPriceX96", type: "uint160" },
|
|
2853
|
+
{ internalType: "int24", name: "tick", type: "int24" },
|
|
2854
|
+
{ internalType: "uint24", name: "protocolFee", type: "uint24" },
|
|
2855
|
+
{ internalType: "uint24", name: "lpFee", type: "uint24" },
|
|
2856
|
+
],
|
|
2857
|
+
stateMutability: "view",
|
|
2858
|
+
type: "function",
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
inputs: [
|
|
2862
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2863
|
+
{ internalType: "int16", name: "tick", type: "int16" },
|
|
2864
|
+
],
|
|
2865
|
+
name: "getTickBitmap",
|
|
2866
|
+
outputs: [{ internalType: "uint256", name: "tickBitmap", type: "uint256" }],
|
|
2867
|
+
stateMutability: "view",
|
|
2868
|
+
type: "function",
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
inputs: [
|
|
2872
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2873
|
+
{ internalType: "int24", name: "tick", type: "int24" },
|
|
2874
|
+
],
|
|
2875
|
+
name: "getTickFeeGrowthOutside",
|
|
2876
|
+
outputs: [
|
|
2877
|
+
{
|
|
2878
|
+
internalType: "uint256",
|
|
2879
|
+
name: "feeGrowthOutside0X128",
|
|
2880
|
+
type: "uint256",
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
internalType: "uint256",
|
|
2884
|
+
name: "feeGrowthOutside1X128",
|
|
2885
|
+
type: "uint256",
|
|
2886
|
+
},
|
|
2887
|
+
],
|
|
2888
|
+
stateMutability: "view",
|
|
2889
|
+
type: "function",
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
inputs: [
|
|
2893
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2894
|
+
{ internalType: "int24", name: "tick", type: "int24" },
|
|
2895
|
+
],
|
|
2896
|
+
name: "getTickInfo",
|
|
2897
|
+
outputs: [
|
|
2898
|
+
{ internalType: "uint128", name: "liquidityGross", type: "uint128" },
|
|
2899
|
+
{ internalType: "int128", name: "liquidityNet", type: "int128" },
|
|
2900
|
+
{
|
|
2901
|
+
internalType: "uint256",
|
|
2902
|
+
name: "feeGrowthOutside0X128",
|
|
2903
|
+
type: "uint256",
|
|
2904
|
+
},
|
|
2905
|
+
{
|
|
2906
|
+
internalType: "uint256",
|
|
2907
|
+
name: "feeGrowthOutside1X128",
|
|
2908
|
+
type: "uint256",
|
|
2909
|
+
},
|
|
2910
|
+
],
|
|
2911
|
+
stateMutability: "view",
|
|
2912
|
+
type: "function",
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
inputs: [
|
|
2916
|
+
{ internalType: "PoolId", name: "poolId", type: "bytes32" },
|
|
2917
|
+
{ internalType: "int24", name: "tick", type: "int24" },
|
|
2918
|
+
],
|
|
2919
|
+
name: "getTickLiquidity",
|
|
2920
|
+
outputs: [
|
|
2921
|
+
{ internalType: "uint128", name: "liquidityGross", type: "uint128" },
|
|
2922
|
+
{ internalType: "int128", name: "liquidityNet", type: "int128" },
|
|
2923
|
+
],
|
|
2924
|
+
stateMutability: "view",
|
|
2925
|
+
type: "function",
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
inputs: [],
|
|
2929
|
+
name: "poolManager",
|
|
2930
|
+
outputs: [
|
|
2931
|
+
{ internalType: "contract IPoolManager", name: "", type: "address" },
|
|
2932
|
+
],
|
|
2933
|
+
stateMutability: "view",
|
|
2934
|
+
type: "function",
|
|
2935
|
+
},
|
|
2936
|
+
];
|
|
2937
|
+
|
|
2938
|
+
class ReadStateView {
|
|
2939
|
+
constructor(address, drift = createDrift()) {
|
|
2940
|
+
if (!address) {
|
|
2941
|
+
throw new Error("Address is required");
|
|
2942
|
+
}
|
|
2943
|
+
this.contract = drift.contract({
|
|
2944
|
+
abi: StateViewAbi,
|
|
2945
|
+
address,
|
|
2946
|
+
});
|
|
2947
|
+
}
|
|
2948
|
+
poolSlot0({ poolId }) {
|
|
2949
|
+
return this.contract.read("getSlot0", {
|
|
2950
|
+
poolId,
|
|
2951
|
+
});
|
|
2952
|
+
}
|
|
2953
|
+
positionInfo({ poolId, owner, tickLower, tickUpper, salt, }) {
|
|
2954
|
+
const saltBytes32 = pad$1(stringToHex$1(salt), { size: 32, dir: "right" });
|
|
2955
|
+
return this.contract.read("getPositionInfo", {
|
|
2956
|
+
poolId,
|
|
2957
|
+
owner,
|
|
2958
|
+
tickLower,
|
|
2959
|
+
tickUpper,
|
|
2960
|
+
salt: saltBytes32,
|
|
2961
|
+
});
|
|
2962
|
+
}
|
|
2963
|
+
getTickLiquidity({ poolId, tick }) {
|
|
2964
|
+
return this.contract.read("getTickLiquidity", {
|
|
2965
|
+
poolId,
|
|
2966
|
+
tick,
|
|
2967
|
+
});
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2740
2971
|
const FairLaunchAbi = [
|
|
2741
2972
|
{
|
|
2742
2973
|
inputs: [
|
|
@@ -2805,20 +3036,443 @@ const FairLaunchAbi = [
|
|
|
2805
3036
|
type: "uint256",
|
|
2806
3037
|
},
|
|
2807
3038
|
{
|
|
2808
|
-
indexed: false,
|
|
2809
|
-
internalType: "uint256",
|
|
2810
|
-
name: "_endedAt",
|
|
2811
|
-
type: "uint256",
|
|
3039
|
+
indexed: false,
|
|
3040
|
+
internalType: "uint256",
|
|
3041
|
+
name: "_endedAt",
|
|
3042
|
+
type: "uint256",
|
|
3043
|
+
},
|
|
3044
|
+
],
|
|
3045
|
+
name: "FairLaunchEnded",
|
|
3046
|
+
type: "event",
|
|
3047
|
+
},
|
|
3048
|
+
{
|
|
3049
|
+
inputs: [],
|
|
3050
|
+
name: "FAIR_LAUNCH_WINDOW",
|
|
3051
|
+
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3052
|
+
stateMutability: "view",
|
|
3053
|
+
type: "function",
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
inputs: [
|
|
3057
|
+
{
|
|
3058
|
+
components: [
|
|
3059
|
+
{ internalType: "Currency", name: "currency0", type: "address" },
|
|
3060
|
+
{ internalType: "Currency", name: "currency1", type: "address" },
|
|
3061
|
+
{ internalType: "uint24", name: "fee", type: "uint24" },
|
|
3062
|
+
{ internalType: "int24", name: "tickSpacing", type: "int24" },
|
|
3063
|
+
{ internalType: "contract IHooks", name: "hooks", type: "address" },
|
|
3064
|
+
],
|
|
3065
|
+
internalType: "struct PoolKey",
|
|
3066
|
+
name: "_poolKey",
|
|
3067
|
+
type: "tuple",
|
|
3068
|
+
},
|
|
3069
|
+
{ internalType: "uint256", name: "_tokenFees", type: "uint256" },
|
|
3070
|
+
{ internalType: "bool", name: "_nativeIsZero", type: "bool" },
|
|
3071
|
+
],
|
|
3072
|
+
name: "closePosition",
|
|
3073
|
+
outputs: [
|
|
3074
|
+
{
|
|
3075
|
+
components: [
|
|
3076
|
+
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
3077
|
+
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
3078
|
+
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
3079
|
+
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
3080
|
+
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
3081
|
+
{ internalType: "bool", name: "closed", type: "bool" },
|
|
3082
|
+
],
|
|
3083
|
+
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
3084
|
+
name: "",
|
|
3085
|
+
type: "tuple",
|
|
3086
|
+
},
|
|
3087
|
+
],
|
|
3088
|
+
stateMutability: "nonpayable",
|
|
3089
|
+
type: "function",
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
inputs: [
|
|
3093
|
+
{ internalType: "PoolId", name: "_poolId", type: "bytes32" },
|
|
3094
|
+
{ internalType: "int24", name: "_initialTick", type: "int24" },
|
|
3095
|
+
{ internalType: "uint256", name: "_flaunchesAt", type: "uint256" },
|
|
3096
|
+
{
|
|
3097
|
+
internalType: "uint256",
|
|
3098
|
+
name: "_initialTokenFairLaunch",
|
|
3099
|
+
type: "uint256",
|
|
3100
|
+
},
|
|
3101
|
+
],
|
|
3102
|
+
name: "createPosition",
|
|
3103
|
+
outputs: [
|
|
3104
|
+
{
|
|
3105
|
+
components: [
|
|
3106
|
+
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
3107
|
+
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
3108
|
+
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
3109
|
+
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
3110
|
+
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
3111
|
+
{ internalType: "bool", name: "closed", type: "bool" },
|
|
3112
|
+
],
|
|
3113
|
+
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
3114
|
+
name: "",
|
|
3115
|
+
type: "tuple",
|
|
3116
|
+
},
|
|
3117
|
+
],
|
|
3118
|
+
stateMutability: "nonpayable",
|
|
3119
|
+
type: "function",
|
|
3120
|
+
},
|
|
3121
|
+
{
|
|
3122
|
+
inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
|
|
3123
|
+
name: "fairLaunchInfo",
|
|
3124
|
+
outputs: [
|
|
3125
|
+
{
|
|
3126
|
+
components: [
|
|
3127
|
+
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
3128
|
+
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
3129
|
+
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
3130
|
+
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
3131
|
+
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
3132
|
+
{ internalType: "bool", name: "closed", type: "bool" },
|
|
3133
|
+
],
|
|
3134
|
+
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
3135
|
+
name: "",
|
|
3136
|
+
type: "tuple",
|
|
3137
|
+
},
|
|
3138
|
+
],
|
|
3139
|
+
stateMutability: "view",
|
|
3140
|
+
type: "function",
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
inputs: [
|
|
3144
|
+
{
|
|
3145
|
+
components: [
|
|
3146
|
+
{ internalType: "Currency", name: "currency0", type: "address" },
|
|
3147
|
+
{ internalType: "Currency", name: "currency1", type: "address" },
|
|
3148
|
+
{ internalType: "uint24", name: "fee", type: "uint24" },
|
|
3149
|
+
{ internalType: "int24", name: "tickSpacing", type: "int24" },
|
|
3150
|
+
{ internalType: "contract IHooks", name: "hooks", type: "address" },
|
|
3151
|
+
],
|
|
3152
|
+
internalType: "struct PoolKey",
|
|
3153
|
+
name: "_poolKey",
|
|
3154
|
+
type: "tuple",
|
|
3155
|
+
},
|
|
3156
|
+
{ internalType: "int256", name: "_amountSpecified", type: "int256" },
|
|
3157
|
+
{ internalType: "bool", name: "_nativeIsZero", type: "bool" },
|
|
3158
|
+
],
|
|
3159
|
+
name: "fillFromPosition",
|
|
3160
|
+
outputs: [
|
|
3161
|
+
{
|
|
3162
|
+
internalType: "BeforeSwapDelta",
|
|
3163
|
+
name: "beforeSwapDelta_",
|
|
3164
|
+
type: "int256",
|
|
3165
|
+
},
|
|
3166
|
+
{ internalType: "BalanceDelta", name: "balanceDelta_", type: "int256" },
|
|
3167
|
+
{
|
|
3168
|
+
components: [
|
|
3169
|
+
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
3170
|
+
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
3171
|
+
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
3172
|
+
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
3173
|
+
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
3174
|
+
{ internalType: "bool", name: "closed", type: "bool" },
|
|
3175
|
+
],
|
|
3176
|
+
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
3177
|
+
name: "fairLaunchInfo_",
|
|
3178
|
+
type: "tuple",
|
|
3179
|
+
},
|
|
3180
|
+
],
|
|
3181
|
+
stateMutability: "nonpayable",
|
|
3182
|
+
type: "function",
|
|
3183
|
+
},
|
|
3184
|
+
{
|
|
3185
|
+
inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
|
|
3186
|
+
name: "inFairLaunchWindow",
|
|
3187
|
+
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
3188
|
+
stateMutability: "view",
|
|
3189
|
+
type: "function",
|
|
3190
|
+
},
|
|
3191
|
+
{
|
|
3192
|
+
inputs: [
|
|
3193
|
+
{ internalType: "PoolId", name: "_poolId", type: "bytes32" },
|
|
3194
|
+
{ internalType: "int256", name: "_revenue", type: "int256" },
|
|
3195
|
+
],
|
|
3196
|
+
name: "modifyRevenue",
|
|
3197
|
+
outputs: [],
|
|
3198
|
+
stateMutability: "nonpayable",
|
|
3199
|
+
type: "function",
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
inputs: [],
|
|
3203
|
+
name: "poolManager",
|
|
3204
|
+
outputs: [
|
|
3205
|
+
{ internalType: "contract IPoolManager", name: "", type: "address" },
|
|
3206
|
+
],
|
|
3207
|
+
stateMutability: "view",
|
|
3208
|
+
type: "function",
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
inputs: [],
|
|
3212
|
+
name: "positionManager",
|
|
3213
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
3214
|
+
stateMutability: "view",
|
|
3215
|
+
type: "function",
|
|
3216
|
+
},
|
|
3217
|
+
];
|
|
3218
|
+
|
|
3219
|
+
class ReadFairLaunch {
|
|
3220
|
+
constructor(address, drift = createDrift()) {
|
|
3221
|
+
if (!address) {
|
|
3222
|
+
throw new Error("Address is required");
|
|
3223
|
+
}
|
|
3224
|
+
this.contract = drift.contract({
|
|
3225
|
+
abi: FairLaunchAbi,
|
|
3226
|
+
address,
|
|
3227
|
+
});
|
|
3228
|
+
}
|
|
3229
|
+
fairLaunchInfo({ poolId }) {
|
|
3230
|
+
return this.contract.read("fairLaunchInfo", {
|
|
3231
|
+
_poolId: poolId,
|
|
3232
|
+
});
|
|
3233
|
+
}
|
|
3234
|
+
async isFairLaunchActive({ poolId }) {
|
|
3235
|
+
const { closed, endsAt } = await this.fairLaunchInfo({ poolId });
|
|
3236
|
+
if (closed) {
|
|
3237
|
+
return false;
|
|
3238
|
+
}
|
|
3239
|
+
if (new Date().getTime() / 1000 > endsAt) {
|
|
3240
|
+
return false;
|
|
3241
|
+
}
|
|
3242
|
+
return true;
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
3245
|
+
|
|
3246
|
+
const BidwallAbi = [
|
|
3247
|
+
{
|
|
3248
|
+
inputs: [
|
|
3249
|
+
{ internalType: "address", name: "_nativeToken", type: "address" },
|
|
3250
|
+
{ internalType: "address", name: "_poolManager", type: "address" },
|
|
3251
|
+
{ internalType: "address", name: "_protocolOwner", type: "address" },
|
|
3252
|
+
],
|
|
3253
|
+
stateMutability: "nonpayable",
|
|
3254
|
+
type: "constructor",
|
|
3255
|
+
},
|
|
3256
|
+
{ inputs: [], name: "AlreadyInitialized", type: "error" },
|
|
3257
|
+
{ inputs: [], name: "CallerIsNotCreator", type: "error" },
|
|
3258
|
+
{ inputs: [], name: "NewOwnerIsZeroAddress", type: "error" },
|
|
3259
|
+
{ inputs: [], name: "NoHandoverRequest", type: "error" },
|
|
3260
|
+
{ inputs: [], name: "NotPositionManager", type: "error" },
|
|
3261
|
+
{ inputs: [], name: "Unauthorized", type: "error" },
|
|
3262
|
+
{
|
|
3263
|
+
anonymous: false,
|
|
3264
|
+
inputs: [
|
|
3265
|
+
{
|
|
3266
|
+
indexed: true,
|
|
3267
|
+
internalType: "PoolId",
|
|
3268
|
+
name: "_poolId",
|
|
3269
|
+
type: "bytes32",
|
|
3270
|
+
},
|
|
3271
|
+
{
|
|
3272
|
+
indexed: false,
|
|
3273
|
+
internalType: "address",
|
|
3274
|
+
name: "_recipient",
|
|
3275
|
+
type: "address",
|
|
3276
|
+
},
|
|
3277
|
+
{
|
|
3278
|
+
indexed: false,
|
|
3279
|
+
internalType: "uint256",
|
|
3280
|
+
name: "_eth",
|
|
3281
|
+
type: "uint256",
|
|
3282
|
+
},
|
|
3283
|
+
],
|
|
3284
|
+
name: "BidWallClosed",
|
|
3285
|
+
type: "event",
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
anonymous: false,
|
|
3289
|
+
inputs: [
|
|
3290
|
+
{
|
|
3291
|
+
indexed: true,
|
|
3292
|
+
internalType: "PoolId",
|
|
3293
|
+
name: "_poolId",
|
|
3294
|
+
type: "bytes32",
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
indexed: false,
|
|
3298
|
+
internalType: "uint256",
|
|
3299
|
+
name: "_added",
|
|
3300
|
+
type: "uint256",
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
indexed: false,
|
|
3304
|
+
internalType: "uint256",
|
|
3305
|
+
name: "_pending",
|
|
3306
|
+
type: "uint256",
|
|
3307
|
+
},
|
|
3308
|
+
],
|
|
3309
|
+
name: "BidWallDeposit",
|
|
3310
|
+
type: "event",
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
anonymous: false,
|
|
3314
|
+
inputs: [
|
|
3315
|
+
{
|
|
3316
|
+
indexed: true,
|
|
3317
|
+
internalType: "PoolId",
|
|
3318
|
+
name: "_poolId",
|
|
3319
|
+
type: "bytes32",
|
|
3320
|
+
},
|
|
3321
|
+
{ indexed: false, internalType: "bool", name: "_disabled", type: "bool" },
|
|
3322
|
+
],
|
|
3323
|
+
name: "BidWallDisabledStateUpdated",
|
|
3324
|
+
type: "event",
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
anonymous: false,
|
|
3328
|
+
inputs: [
|
|
3329
|
+
{
|
|
3330
|
+
indexed: true,
|
|
3331
|
+
internalType: "PoolId",
|
|
3332
|
+
name: "_poolId",
|
|
3333
|
+
type: "bytes32",
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
indexed: false,
|
|
3337
|
+
internalType: "uint256",
|
|
3338
|
+
name: "_eth",
|
|
3339
|
+
type: "uint256",
|
|
3340
|
+
},
|
|
3341
|
+
{
|
|
3342
|
+
indexed: false,
|
|
3343
|
+
internalType: "int24",
|
|
3344
|
+
name: "_tickLower",
|
|
3345
|
+
type: "int24",
|
|
3346
|
+
},
|
|
3347
|
+
{
|
|
3348
|
+
indexed: false,
|
|
3349
|
+
internalType: "int24",
|
|
3350
|
+
name: "_tickUpper",
|
|
3351
|
+
type: "int24",
|
|
3352
|
+
},
|
|
3353
|
+
],
|
|
3354
|
+
name: "BidWallInitialized",
|
|
3355
|
+
type: "event",
|
|
3356
|
+
},
|
|
3357
|
+
{
|
|
3358
|
+
anonymous: false,
|
|
3359
|
+
inputs: [
|
|
3360
|
+
{
|
|
3361
|
+
indexed: true,
|
|
3362
|
+
internalType: "PoolId",
|
|
3363
|
+
name: "_poolId",
|
|
3364
|
+
type: "bytes32",
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
indexed: false,
|
|
3368
|
+
internalType: "uint256",
|
|
3369
|
+
name: "_eth",
|
|
3370
|
+
type: "uint256",
|
|
3371
|
+
},
|
|
3372
|
+
{
|
|
3373
|
+
indexed: false,
|
|
3374
|
+
internalType: "int24",
|
|
3375
|
+
name: "_tickLower",
|
|
3376
|
+
type: "int24",
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
indexed: false,
|
|
3380
|
+
internalType: "int24",
|
|
3381
|
+
name: "_tickUpper",
|
|
3382
|
+
type: "int24",
|
|
3383
|
+
},
|
|
3384
|
+
],
|
|
3385
|
+
name: "BidWallRepositioned",
|
|
3386
|
+
type: "event",
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
anonymous: false,
|
|
3390
|
+
inputs: [
|
|
3391
|
+
{
|
|
3392
|
+
indexed: true,
|
|
3393
|
+
internalType: "PoolId",
|
|
3394
|
+
name: "_poolId",
|
|
3395
|
+
type: "bytes32",
|
|
3396
|
+
},
|
|
3397
|
+
{
|
|
3398
|
+
indexed: false,
|
|
3399
|
+
internalType: "address",
|
|
3400
|
+
name: "_recipient",
|
|
3401
|
+
type: "address",
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
indexed: false,
|
|
3405
|
+
internalType: "uint256",
|
|
3406
|
+
name: "_tokens",
|
|
3407
|
+
type: "uint256",
|
|
3408
|
+
},
|
|
3409
|
+
],
|
|
3410
|
+
name: "BidWallRewardsTransferred",
|
|
3411
|
+
type: "event",
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
anonymous: false,
|
|
3415
|
+
inputs: [
|
|
3416
|
+
{
|
|
3417
|
+
indexed: false,
|
|
3418
|
+
internalType: "uint256",
|
|
3419
|
+
name: "_newSwapFeeThreshold",
|
|
3420
|
+
type: "uint256",
|
|
3421
|
+
},
|
|
3422
|
+
],
|
|
3423
|
+
name: "FixedSwapFeeThresholdUpdated",
|
|
3424
|
+
type: "event",
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
anonymous: false,
|
|
3428
|
+
inputs: [
|
|
3429
|
+
{
|
|
3430
|
+
indexed: true,
|
|
3431
|
+
internalType: "address",
|
|
3432
|
+
name: "pendingOwner",
|
|
3433
|
+
type: "address",
|
|
3434
|
+
},
|
|
3435
|
+
],
|
|
3436
|
+
name: "OwnershipHandoverCanceled",
|
|
3437
|
+
type: "event",
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
anonymous: false,
|
|
3441
|
+
inputs: [
|
|
3442
|
+
{
|
|
3443
|
+
indexed: true,
|
|
3444
|
+
internalType: "address",
|
|
3445
|
+
name: "pendingOwner",
|
|
3446
|
+
type: "address",
|
|
3447
|
+
},
|
|
3448
|
+
],
|
|
3449
|
+
name: "OwnershipHandoverRequested",
|
|
3450
|
+
type: "event",
|
|
3451
|
+
},
|
|
3452
|
+
{
|
|
3453
|
+
anonymous: false,
|
|
3454
|
+
inputs: [
|
|
3455
|
+
{
|
|
3456
|
+
indexed: true,
|
|
3457
|
+
internalType: "address",
|
|
3458
|
+
name: "oldOwner",
|
|
3459
|
+
type: "address",
|
|
3460
|
+
},
|
|
3461
|
+
{
|
|
3462
|
+
indexed: true,
|
|
3463
|
+
internalType: "address",
|
|
3464
|
+
name: "newOwner",
|
|
3465
|
+
type: "address",
|
|
2812
3466
|
},
|
|
2813
3467
|
],
|
|
2814
|
-
name: "
|
|
3468
|
+
name: "OwnershipTransferred",
|
|
2815
3469
|
type: "event",
|
|
2816
3470
|
},
|
|
2817
3471
|
{
|
|
2818
3472
|
inputs: [],
|
|
2819
|
-
name: "
|
|
2820
|
-
outputs: [
|
|
2821
|
-
stateMutability: "
|
|
3473
|
+
name: "cancelOwnershipHandover",
|
|
3474
|
+
outputs: [],
|
|
3475
|
+
stateMutability: "payable",
|
|
2822
3476
|
type: "function",
|
|
2823
3477
|
},
|
|
2824
3478
|
{
|
|
@@ -2832,80 +3486,22 @@ const FairLaunchAbi = [
|
|
|
2832
3486
|
{ internalType: "contract IHooks", name: "hooks", type: "address" },
|
|
2833
3487
|
],
|
|
2834
3488
|
internalType: "struct PoolKey",
|
|
2835
|
-
name: "
|
|
2836
|
-
type: "tuple",
|
|
2837
|
-
},
|
|
2838
|
-
{ internalType: "uint256", name: "_tokenFees", type: "uint256" },
|
|
2839
|
-
{ internalType: "bool", name: "_nativeIsZero", type: "bool" },
|
|
2840
|
-
],
|
|
2841
|
-
name: "closePosition",
|
|
2842
|
-
outputs: [
|
|
2843
|
-
{
|
|
2844
|
-
components: [
|
|
2845
|
-
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
2846
|
-
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
2847
|
-
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
2848
|
-
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
2849
|
-
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
2850
|
-
{ internalType: "bool", name: "closed", type: "bool" },
|
|
2851
|
-
],
|
|
2852
|
-
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
2853
|
-
name: "",
|
|
3489
|
+
name: "_key",
|
|
2854
3490
|
type: "tuple",
|
|
2855
3491
|
},
|
|
2856
3492
|
],
|
|
3493
|
+
name: "closeBidWall",
|
|
3494
|
+
outputs: [],
|
|
2857
3495
|
stateMutability: "nonpayable",
|
|
2858
3496
|
type: "function",
|
|
2859
3497
|
},
|
|
2860
3498
|
{
|
|
2861
3499
|
inputs: [
|
|
2862
|
-
{ internalType: "
|
|
2863
|
-
{ internalType: "int24", name: "_initialTick", type: "int24" },
|
|
2864
|
-
{ internalType: "uint256", name: "_flaunchesAt", type: "uint256" },
|
|
2865
|
-
{
|
|
2866
|
-
internalType: "uint256",
|
|
2867
|
-
name: "_initialTokenFairLaunch",
|
|
2868
|
-
type: "uint256",
|
|
2869
|
-
},
|
|
2870
|
-
],
|
|
2871
|
-
name: "createPosition",
|
|
2872
|
-
outputs: [
|
|
2873
|
-
{
|
|
2874
|
-
components: [
|
|
2875
|
-
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
2876
|
-
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
2877
|
-
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
2878
|
-
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
2879
|
-
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
2880
|
-
{ internalType: "bool", name: "closed", type: "bool" },
|
|
2881
|
-
],
|
|
2882
|
-
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
2883
|
-
name: "",
|
|
2884
|
-
type: "tuple",
|
|
2885
|
-
},
|
|
2886
|
-
],
|
|
2887
|
-
stateMutability: "nonpayable",
|
|
2888
|
-
type: "function",
|
|
2889
|
-
},
|
|
2890
|
-
{
|
|
2891
|
-
inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
|
|
2892
|
-
name: "fairLaunchInfo",
|
|
2893
|
-
outputs: [
|
|
2894
|
-
{
|
|
2895
|
-
components: [
|
|
2896
|
-
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
2897
|
-
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
2898
|
-
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
2899
|
-
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
2900
|
-
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
2901
|
-
{ internalType: "bool", name: "closed", type: "bool" },
|
|
2902
|
-
],
|
|
2903
|
-
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
2904
|
-
name: "",
|
|
2905
|
-
type: "tuple",
|
|
2906
|
-
},
|
|
3500
|
+
{ internalType: "address", name: "pendingOwner", type: "address" },
|
|
2907
3501
|
],
|
|
2908
|
-
|
|
3502
|
+
name: "completeOwnershipHandover",
|
|
3503
|
+
outputs: [],
|
|
3504
|
+
stateMutability: "payable",
|
|
2909
3505
|
type: "function",
|
|
2910
3506
|
},
|
|
2911
3507
|
{
|
|
@@ -2922,49 +3518,57 @@ const FairLaunchAbi = [
|
|
|
2922
3518
|
name: "_poolKey",
|
|
2923
3519
|
type: "tuple",
|
|
2924
3520
|
},
|
|
2925
|
-
{ internalType: "
|
|
3521
|
+
{ internalType: "uint256", name: "_ethSwapAmount", type: "uint256" },
|
|
3522
|
+
{ internalType: "int24", name: "_currentTick", type: "int24" },
|
|
2926
3523
|
{ internalType: "bool", name: "_nativeIsZero", type: "bool" },
|
|
2927
3524
|
],
|
|
2928
|
-
name: "
|
|
2929
|
-
outputs: [
|
|
2930
|
-
{
|
|
2931
|
-
internalType: "BeforeSwapDelta",
|
|
2932
|
-
name: "beforeSwapDelta_",
|
|
2933
|
-
type: "int256",
|
|
2934
|
-
},
|
|
2935
|
-
{ internalType: "BalanceDelta", name: "balanceDelta_", type: "int256" },
|
|
2936
|
-
{
|
|
2937
|
-
components: [
|
|
2938
|
-
{ internalType: "uint256", name: "startsAt", type: "uint256" },
|
|
2939
|
-
{ internalType: "uint256", name: "endsAt", type: "uint256" },
|
|
2940
|
-
{ internalType: "int24", name: "initialTick", type: "int24" },
|
|
2941
|
-
{ internalType: "uint256", name: "revenue", type: "uint256" },
|
|
2942
|
-
{ internalType: "uint256", name: "supply", type: "uint256" },
|
|
2943
|
-
{ internalType: "bool", name: "closed", type: "bool" },
|
|
2944
|
-
],
|
|
2945
|
-
internalType: "struct FairLaunch.FairLaunchInfo",
|
|
2946
|
-
name: "fairLaunchInfo_",
|
|
2947
|
-
type: "tuple",
|
|
2948
|
-
},
|
|
2949
|
-
],
|
|
3525
|
+
name: "deposit",
|
|
3526
|
+
outputs: [],
|
|
2950
3527
|
stateMutability: "nonpayable",
|
|
2951
3528
|
type: "function",
|
|
2952
3529
|
},
|
|
2953
3530
|
{
|
|
2954
3531
|
inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
|
|
2955
|
-
name: "
|
|
3532
|
+
name: "isBidWallEnabled",
|
|
2956
3533
|
outputs: [{ internalType: "bool", name: "", type: "bool" }],
|
|
2957
3534
|
stateMutability: "view",
|
|
2958
3535
|
type: "function",
|
|
2959
3536
|
},
|
|
3537
|
+
{
|
|
3538
|
+
inputs: [],
|
|
3539
|
+
name: "nativeToken",
|
|
3540
|
+
outputs: [{ internalType: "address", name: "", type: "address" }],
|
|
3541
|
+
stateMutability: "view",
|
|
3542
|
+
type: "function",
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
inputs: [],
|
|
3546
|
+
name: "owner",
|
|
3547
|
+
outputs: [{ internalType: "address", name: "result", type: "address" }],
|
|
3548
|
+
stateMutability: "view",
|
|
3549
|
+
type: "function",
|
|
3550
|
+
},
|
|
2960
3551
|
{
|
|
2961
3552
|
inputs: [
|
|
2962
|
-
{ internalType: "
|
|
2963
|
-
{ internalType: "int256", name: "_revenue", type: "int256" },
|
|
3553
|
+
{ internalType: "address", name: "pendingOwner", type: "address" },
|
|
2964
3554
|
],
|
|
2965
|
-
name: "
|
|
2966
|
-
outputs: [],
|
|
2967
|
-
stateMutability: "
|
|
3555
|
+
name: "ownershipHandoverExpiresAt",
|
|
3556
|
+
outputs: [{ internalType: "uint256", name: "result", type: "uint256" }],
|
|
3557
|
+
stateMutability: "view",
|
|
3558
|
+
type: "function",
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
|
|
3562
|
+
name: "poolInfo",
|
|
3563
|
+
outputs: [
|
|
3564
|
+
{ internalType: "bool", name: "disabled", type: "bool" },
|
|
3565
|
+
{ internalType: "bool", name: "initialized", type: "bool" },
|
|
3566
|
+
{ internalType: "int24", name: "tickLower", type: "int24" },
|
|
3567
|
+
{ internalType: "int24", name: "tickUpper", type: "int24" },
|
|
3568
|
+
{ internalType: "uint256", name: "pendingETHFees", type: "uint256" },
|
|
3569
|
+
{ internalType: "uint256", name: "cumulativeSwapFees", type: "uint256" },
|
|
3570
|
+
],
|
|
3571
|
+
stateMutability: "view",
|
|
2968
3572
|
type: "function",
|
|
2969
3573
|
},
|
|
2970
3574
|
{
|
|
@@ -2976,39 +3580,98 @@ const FairLaunchAbi = [
|
|
|
2976
3580
|
stateMutability: "view",
|
|
2977
3581
|
type: "function",
|
|
2978
3582
|
},
|
|
3583
|
+
{
|
|
3584
|
+
inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
|
|
3585
|
+
name: "position",
|
|
3586
|
+
outputs: [
|
|
3587
|
+
{ internalType: "uint256", name: "amount0_", type: "uint256" },
|
|
3588
|
+
{ internalType: "uint256", name: "amount1_", type: "uint256" },
|
|
3589
|
+
{ internalType: "uint256", name: "pendingEth_", type: "uint256" },
|
|
3590
|
+
],
|
|
3591
|
+
stateMutability: "view",
|
|
3592
|
+
type: "function",
|
|
3593
|
+
},
|
|
2979
3594
|
{
|
|
2980
3595
|
inputs: [],
|
|
2981
3596
|
name: "positionManager",
|
|
2982
|
-
outputs: [
|
|
3597
|
+
outputs: [
|
|
3598
|
+
{ internalType: "contract PositionManager", name: "", type: "address" },
|
|
3599
|
+
],
|
|
2983
3600
|
stateMutability: "view",
|
|
2984
3601
|
type: "function",
|
|
2985
3602
|
},
|
|
3603
|
+
{
|
|
3604
|
+
inputs: [],
|
|
3605
|
+
name: "renounceOwnership",
|
|
3606
|
+
outputs: [],
|
|
3607
|
+
stateMutability: "payable",
|
|
3608
|
+
type: "function",
|
|
3609
|
+
},
|
|
3610
|
+
{
|
|
3611
|
+
inputs: [],
|
|
3612
|
+
name: "requestOwnershipHandover",
|
|
3613
|
+
outputs: [],
|
|
3614
|
+
stateMutability: "payable",
|
|
3615
|
+
type: "function",
|
|
3616
|
+
},
|
|
3617
|
+
{
|
|
3618
|
+
inputs: [
|
|
3619
|
+
{
|
|
3620
|
+
components: [
|
|
3621
|
+
{ internalType: "Currency", name: "currency0", type: "address" },
|
|
3622
|
+
{ internalType: "Currency", name: "currency1", type: "address" },
|
|
3623
|
+
{ internalType: "uint24", name: "fee", type: "uint24" },
|
|
3624
|
+
{ internalType: "int24", name: "tickSpacing", type: "int24" },
|
|
3625
|
+
{ internalType: "contract IHooks", name: "hooks", type: "address" },
|
|
3626
|
+
],
|
|
3627
|
+
internalType: "struct PoolKey",
|
|
3628
|
+
name: "_key",
|
|
3629
|
+
type: "tuple",
|
|
3630
|
+
},
|
|
3631
|
+
{ internalType: "bool", name: "_disable", type: "bool" },
|
|
3632
|
+
],
|
|
3633
|
+
name: "setDisabledState",
|
|
3634
|
+
outputs: [],
|
|
3635
|
+
stateMutability: "nonpayable",
|
|
3636
|
+
type: "function",
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
inputs: [
|
|
3640
|
+
{ internalType: "uint256", name: "swapFeeThreshold", type: "uint256" },
|
|
3641
|
+
],
|
|
3642
|
+
name: "setSwapFeeThreshold",
|
|
3643
|
+
outputs: [],
|
|
3644
|
+
stateMutability: "nonpayable",
|
|
3645
|
+
type: "function",
|
|
3646
|
+
},
|
|
3647
|
+
{
|
|
3648
|
+
inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
|
|
3649
|
+
name: "transferOwnership",
|
|
3650
|
+
outputs: [],
|
|
3651
|
+
stateMutability: "payable",
|
|
3652
|
+
type: "function",
|
|
3653
|
+
},
|
|
2986
3654
|
];
|
|
2987
3655
|
|
|
2988
|
-
class
|
|
3656
|
+
class ReadBidWall {
|
|
2989
3657
|
constructor(address, drift = createDrift()) {
|
|
2990
3658
|
if (!address) {
|
|
2991
3659
|
throw new Error("Address is required");
|
|
2992
3660
|
}
|
|
2993
3661
|
this.contract = drift.contract({
|
|
2994
|
-
abi:
|
|
3662
|
+
abi: BidwallAbi,
|
|
2995
3663
|
address,
|
|
2996
3664
|
});
|
|
2997
3665
|
}
|
|
2998
|
-
|
|
2999
|
-
return this.contract.read("
|
|
3666
|
+
position({ poolId }) {
|
|
3667
|
+
return this.contract.read("position", {
|
|
3000
3668
|
_poolId: poolId,
|
|
3001
3669
|
});
|
|
3002
3670
|
}
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
}
|
|
3008
|
-
if (new Date().getTime() / 1000 > endsAt) {
|
|
3009
|
-
return false;
|
|
3010
|
-
}
|
|
3011
|
-
return true;
|
|
3671
|
+
poolInfo({ poolId }) {
|
|
3672
|
+
return this.contract.read("poolInfo", {
|
|
3673
|
+
_poolId: poolId,
|
|
3674
|
+
});
|
|
3012
3675
|
}
|
|
3013
3676
|
}
|
|
3014
3677
|
|
|
@@ -3108,7 +3771,6 @@ const FastFlaunchZapAbi = [
|
|
|
3108
3771
|
|
|
3109
3772
|
class ReadFastFlaunchZap {
|
|
3110
3773
|
constructor(address, drift = createDrift()) {
|
|
3111
|
-
this.drift = drift;
|
|
3112
3774
|
if (!address) {
|
|
3113
3775
|
throw new Error("Address is required");
|
|
3114
3776
|
}
|
|
@@ -4635,7 +5297,7 @@ function defineChain(chain) {
|
|
|
4635
5297
|
};
|
|
4636
5298
|
}
|
|
4637
5299
|
|
|
4638
|
-
const version = '2.23.
|
|
5300
|
+
const version = '2.23.11';
|
|
4639
5301
|
|
|
4640
5302
|
let errorConfig = {
|
|
4641
5303
|
getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
|
|
@@ -7380,7 +8042,7 @@ const chainConfig$1 = {
|
|
|
7380
8042
|
serializers: serializers$1,
|
|
7381
8043
|
};
|
|
7382
8044
|
|
|
7383
|
-
const sourceId$
|
|
8045
|
+
const sourceId$K = 1; // mainnet
|
|
7384
8046
|
/*#__PURE__*/ defineChain({
|
|
7385
8047
|
...chainConfig$1,
|
|
7386
8048
|
id: 888888888,
|
|
@@ -7401,27 +8063,27 @@ const sourceId$J = 1; // mainnet
|
|
|
7401
8063
|
contracts: {
|
|
7402
8064
|
...chainConfig$1.contracts,
|
|
7403
8065
|
l2OutputOracle: {
|
|
7404
|
-
[sourceId$
|
|
8066
|
+
[sourceId$K]: {
|
|
7405
8067
|
address: '0xB09DC08428C8b4EFB4ff9C0827386CDF34277996',
|
|
7406
8068
|
},
|
|
7407
8069
|
},
|
|
7408
8070
|
portal: {
|
|
7409
|
-
[sourceId$
|
|
8071
|
+
[sourceId$K]: {
|
|
7410
8072
|
address: '0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68',
|
|
7411
8073
|
blockCreated: 19070571,
|
|
7412
8074
|
},
|
|
7413
8075
|
},
|
|
7414
8076
|
l1StandardBridge: {
|
|
7415
|
-
[sourceId$
|
|
8077
|
+
[sourceId$K]: {
|
|
7416
8078
|
address: '0xd5e3eDf5b68135D559D572E26bF863FBC1950033',
|
|
7417
8079
|
blockCreated: 19070571,
|
|
7418
8080
|
},
|
|
7419
8081
|
},
|
|
7420
8082
|
},
|
|
7421
|
-
sourceId: sourceId$
|
|
8083
|
+
sourceId: sourceId$K,
|
|
7422
8084
|
});
|
|
7423
8085
|
|
|
7424
|
-
const sourceId$
|
|
8086
|
+
const sourceId$J = 11_155_111; // sepolia
|
|
7425
8087
|
/*#__PURE__*/ defineChain({
|
|
7426
8088
|
...chainConfig$1,
|
|
7427
8089
|
id: 28122024,
|
|
@@ -7442,27 +8104,27 @@ const sourceId$I = 11_155_111; // sepolia
|
|
|
7442
8104
|
contracts: {
|
|
7443
8105
|
...chainConfig$1.contracts,
|
|
7444
8106
|
l2OutputOracle: {
|
|
7445
|
-
[sourceId$
|
|
8107
|
+
[sourceId$J]: {
|
|
7446
8108
|
address: '0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB',
|
|
7447
8109
|
},
|
|
7448
8110
|
},
|
|
7449
8111
|
portal: {
|
|
7450
|
-
[sourceId$
|
|
8112
|
+
[sourceId$J]: {
|
|
7451
8113
|
address: '0xfa1d9E26A6aCD7b22115D27572c1221B9803c960',
|
|
7452
8114
|
blockCreated: 4972908,
|
|
7453
8115
|
},
|
|
7454
8116
|
},
|
|
7455
8117
|
l1StandardBridge: {
|
|
7456
|
-
[sourceId$
|
|
8118
|
+
[sourceId$J]: {
|
|
7457
8119
|
address: '0xF6Bc0146d3c74D48306e79Ae134A260E418C9335',
|
|
7458
8120
|
blockCreated: 4972908,
|
|
7459
8121
|
},
|
|
7460
8122
|
},
|
|
7461
8123
|
},
|
|
7462
|
-
sourceId: sourceId$
|
|
8124
|
+
sourceId: sourceId$J,
|
|
7463
8125
|
});
|
|
7464
8126
|
|
|
7465
|
-
const sourceId$
|
|
8127
|
+
const sourceId$I = 1; // mainnet
|
|
7466
8128
|
const base = /*#__PURE__*/ defineChain({
|
|
7467
8129
|
...chainConfig$1,
|
|
7468
8130
|
id: 8453,
|
|
@@ -7483,12 +8145,12 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
7483
8145
|
contracts: {
|
|
7484
8146
|
...chainConfig$1.contracts,
|
|
7485
8147
|
disputeGameFactory: {
|
|
7486
|
-
[sourceId$
|
|
8148
|
+
[sourceId$I]: {
|
|
7487
8149
|
address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
|
|
7488
8150
|
},
|
|
7489
8151
|
},
|
|
7490
8152
|
l2OutputOracle: {
|
|
7491
|
-
[sourceId$
|
|
8153
|
+
[sourceId$I]: {
|
|
7492
8154
|
address: '0x56315b90c40730925ec5485cf004d835058518A0',
|
|
7493
8155
|
},
|
|
7494
8156
|
},
|
|
@@ -7497,22 +8159,22 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
7497
8159
|
blockCreated: 5022,
|
|
7498
8160
|
},
|
|
7499
8161
|
portal: {
|
|
7500
|
-
[sourceId$
|
|
8162
|
+
[sourceId$I]: {
|
|
7501
8163
|
address: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e',
|
|
7502
8164
|
blockCreated: 17482143,
|
|
7503
8165
|
},
|
|
7504
8166
|
},
|
|
7505
8167
|
l1StandardBridge: {
|
|
7506
|
-
[sourceId$
|
|
8168
|
+
[sourceId$I]: {
|
|
7507
8169
|
address: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
|
|
7508
8170
|
blockCreated: 17482143,
|
|
7509
8171
|
},
|
|
7510
8172
|
},
|
|
7511
8173
|
},
|
|
7512
|
-
sourceId: sourceId$
|
|
8174
|
+
sourceId: sourceId$I,
|
|
7513
8175
|
});
|
|
7514
8176
|
|
|
7515
|
-
const sourceId$
|
|
8177
|
+
const sourceId$H = 5; // goerli
|
|
7516
8178
|
/*#__PURE__*/ defineChain({
|
|
7517
8179
|
...chainConfig$1,
|
|
7518
8180
|
id: 84531,
|
|
@@ -7531,7 +8193,7 @@ const sourceId$G = 5; // goerli
|
|
|
7531
8193
|
contracts: {
|
|
7532
8194
|
...chainConfig$1.contracts,
|
|
7533
8195
|
l2OutputOracle: {
|
|
7534
|
-
[sourceId$
|
|
8196
|
+
[sourceId$H]: {
|
|
7535
8197
|
address: '0x2A35891ff30313CcFa6CE88dcf3858bb075A2298',
|
|
7536
8198
|
},
|
|
7537
8199
|
},
|
|
@@ -7540,21 +8202,21 @@ const sourceId$G = 5; // goerli
|
|
|
7540
8202
|
blockCreated: 1376988,
|
|
7541
8203
|
},
|
|
7542
8204
|
portal: {
|
|
7543
|
-
[sourceId$
|
|
8205
|
+
[sourceId$H]: {
|
|
7544
8206
|
address: '0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA',
|
|
7545
8207
|
},
|
|
7546
8208
|
},
|
|
7547
8209
|
l1StandardBridge: {
|
|
7548
|
-
[sourceId$
|
|
8210
|
+
[sourceId$H]: {
|
|
7549
8211
|
address: '0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a',
|
|
7550
8212
|
},
|
|
7551
8213
|
},
|
|
7552
8214
|
},
|
|
7553
8215
|
testnet: true,
|
|
7554
|
-
sourceId: sourceId$
|
|
8216
|
+
sourceId: sourceId$H,
|
|
7555
8217
|
});
|
|
7556
8218
|
|
|
7557
|
-
const sourceId$
|
|
8219
|
+
const sourceId$G = 11_155_111; // sepolia
|
|
7558
8220
|
const baseSepolia = /*#__PURE__*/ defineChain({
|
|
7559
8221
|
...chainConfig$1,
|
|
7560
8222
|
id: 84532,
|
|
@@ -7576,23 +8238,23 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
7576
8238
|
contracts: {
|
|
7577
8239
|
...chainConfig$1.contracts,
|
|
7578
8240
|
disputeGameFactory: {
|
|
7579
|
-
[sourceId$
|
|
8241
|
+
[sourceId$G]: {
|
|
7580
8242
|
address: '0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1',
|
|
7581
8243
|
},
|
|
7582
8244
|
},
|
|
7583
8245
|
l2OutputOracle: {
|
|
7584
|
-
[sourceId$
|
|
8246
|
+
[sourceId$G]: {
|
|
7585
8247
|
address: '0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254',
|
|
7586
8248
|
},
|
|
7587
8249
|
},
|
|
7588
8250
|
portal: {
|
|
7589
|
-
[sourceId$
|
|
8251
|
+
[sourceId$G]: {
|
|
7590
8252
|
address: '0x49f53e41452c74589e85ca1677426ba426459e85',
|
|
7591
8253
|
blockCreated: 4446677,
|
|
7592
8254
|
},
|
|
7593
8255
|
},
|
|
7594
8256
|
l1StandardBridge: {
|
|
7595
|
-
[sourceId$
|
|
8257
|
+
[sourceId$G]: {
|
|
7596
8258
|
address: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
|
|
7597
8259
|
blockCreated: 4446677,
|
|
7598
8260
|
},
|
|
@@ -7603,7 +8265,7 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
7603
8265
|
},
|
|
7604
8266
|
},
|
|
7605
8267
|
testnet: true,
|
|
7606
|
-
sourceId: sourceId$
|
|
8268
|
+
sourceId: sourceId$G,
|
|
7607
8269
|
});
|
|
7608
8270
|
|
|
7609
8271
|
defineChain({
|
|
@@ -7624,7 +8286,7 @@ defineChain({
|
|
|
7624
8286
|
},
|
|
7625
8287
|
});
|
|
7626
8288
|
|
|
7627
|
-
const sourceId$
|
|
8289
|
+
const sourceId$F = 1; // mainnet
|
|
7628
8290
|
/*#__PURE__*/ defineChain({
|
|
7629
8291
|
...chainConfig$1,
|
|
7630
8292
|
id: 81457,
|
|
@@ -7651,10 +8313,10 @@ const sourceId$E = 1; // mainnet
|
|
|
7651
8313
|
blockCreated: 212929,
|
|
7652
8314
|
},
|
|
7653
8315
|
},
|
|
7654
|
-
sourceId: sourceId$
|
|
8316
|
+
sourceId: sourceId$F,
|
|
7655
8317
|
});
|
|
7656
8318
|
|
|
7657
|
-
const sourceId$
|
|
8319
|
+
const sourceId$E = 1; // mainnet
|
|
7658
8320
|
defineChain({
|
|
7659
8321
|
...chainConfig$1,
|
|
7660
8322
|
id: 60808,
|
|
@@ -7683,22 +8345,22 @@ defineChain({
|
|
|
7683
8345
|
blockCreated: 23131,
|
|
7684
8346
|
},
|
|
7685
8347
|
l2OutputOracle: {
|
|
7686
|
-
[sourceId$
|
|
8348
|
+
[sourceId$E]: {
|
|
7687
8349
|
address: '0xdDa53E23f8a32640b04D7256e651C1db98dB11C1',
|
|
7688
8350
|
blockCreated: 4462615,
|
|
7689
8351
|
},
|
|
7690
8352
|
},
|
|
7691
8353
|
portal: {
|
|
7692
|
-
[sourceId$
|
|
8354
|
+
[sourceId$E]: {
|
|
7693
8355
|
address: '0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E',
|
|
7694
8356
|
blockCreated: 4462615,
|
|
7695
8357
|
},
|
|
7696
8358
|
},
|
|
7697
8359
|
},
|
|
7698
|
-
sourceId: sourceId$
|
|
8360
|
+
sourceId: sourceId$E,
|
|
7699
8361
|
});
|
|
7700
8362
|
|
|
7701
|
-
const sourceId$
|
|
8363
|
+
const sourceId$D = 11_155_111; // sepolia
|
|
7702
8364
|
defineChain({
|
|
7703
8365
|
...chainConfig$1,
|
|
7704
8366
|
id: 808813,
|
|
@@ -7727,20 +8389,20 @@ defineChain({
|
|
|
7727
8389
|
blockCreated: 35677,
|
|
7728
8390
|
},
|
|
7729
8391
|
l2OutputOracle: {
|
|
7730
|
-
[sourceId$
|
|
8392
|
+
[sourceId$D]: {
|
|
7731
8393
|
address: '0x14D0069452b4AE2b250B395b8adAb771E4267d2f',
|
|
7732
8394
|
blockCreated: 4462615,
|
|
7733
8395
|
},
|
|
7734
8396
|
},
|
|
7735
8397
|
portal: {
|
|
7736
|
-
[sourceId$
|
|
8398
|
+
[sourceId$D]: {
|
|
7737
8399
|
address: '0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4',
|
|
7738
8400
|
blockCreated: 4462615,
|
|
7739
8401
|
},
|
|
7740
8402
|
},
|
|
7741
8403
|
},
|
|
7742
8404
|
testnet: true,
|
|
7743
|
-
sourceId: sourceId$
|
|
8405
|
+
sourceId: sourceId$D,
|
|
7744
8406
|
});
|
|
7745
8407
|
|
|
7746
8408
|
/**
|
|
@@ -7999,7 +8661,7 @@ const chainConfig = {
|
|
|
7999
8661
|
fees,
|
|
8000
8662
|
};
|
|
8001
8663
|
|
|
8002
|
-
const sourceId$
|
|
8664
|
+
const sourceId$C = 17000; // holsky
|
|
8003
8665
|
// source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json
|
|
8004
8666
|
/*#__PURE__*/ defineChain({
|
|
8005
8667
|
...chainConfig,
|
|
@@ -8029,25 +8691,25 @@ const sourceId$B = 17000; // holsky
|
|
|
8029
8691
|
blockCreated: 14569001,
|
|
8030
8692
|
},
|
|
8031
8693
|
portal: {
|
|
8032
|
-
[sourceId$
|
|
8694
|
+
[sourceId$C]: {
|
|
8033
8695
|
address: '0x82527353927d8D069b3B452904c942dA149BA381',
|
|
8034
8696
|
blockCreated: 2411324,
|
|
8035
8697
|
},
|
|
8036
8698
|
},
|
|
8037
8699
|
disputeGameFactory: {
|
|
8038
|
-
[sourceId$
|
|
8700
|
+
[sourceId$C]: {
|
|
8039
8701
|
address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
|
|
8040
8702
|
blockCreated: 2411324,
|
|
8041
8703
|
},
|
|
8042
8704
|
},
|
|
8043
8705
|
l2OutputOracle: {
|
|
8044
|
-
[sourceId$
|
|
8706
|
+
[sourceId$C]: {
|
|
8045
8707
|
address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
|
|
8046
8708
|
blockCreated: 2411324,
|
|
8047
8709
|
},
|
|
8048
8710
|
},
|
|
8049
8711
|
l1StandardBridge: {
|
|
8050
|
-
[sourceId$
|
|
8712
|
+
[sourceId$C]: {
|
|
8051
8713
|
address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
|
|
8052
8714
|
blockCreated: 2411324,
|
|
8053
8715
|
},
|
|
@@ -8170,7 +8832,7 @@ defineChain({
|
|
|
8170
8832
|
testnet: true,
|
|
8171
8833
|
});
|
|
8172
8834
|
|
|
8173
|
-
const sourceId$
|
|
8835
|
+
const sourceId$B = 1; // mainnet
|
|
8174
8836
|
/*#__PURE__*/ defineChain({
|
|
8175
8837
|
id: 478,
|
|
8176
8838
|
name: 'Form Network',
|
|
@@ -8194,27 +8856,27 @@ const sourceId$A = 1; // mainnet
|
|
|
8194
8856
|
contracts: {
|
|
8195
8857
|
...chainConfig$1.contracts,
|
|
8196
8858
|
addressManager: {
|
|
8197
|
-
[sourceId$
|
|
8859
|
+
[sourceId$B]: {
|
|
8198
8860
|
address: '0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B',
|
|
8199
8861
|
},
|
|
8200
8862
|
},
|
|
8201
8863
|
l1CrossDomainMessenger: {
|
|
8202
|
-
[sourceId$
|
|
8864
|
+
[sourceId$B]: {
|
|
8203
8865
|
address: '0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c',
|
|
8204
8866
|
},
|
|
8205
8867
|
},
|
|
8206
8868
|
l2OutputOracle: {
|
|
8207
|
-
[sourceId$
|
|
8869
|
+
[sourceId$B]: {
|
|
8208
8870
|
address: '0x4ccAAF69F41c5810cA875183648B577CaCf1F67E',
|
|
8209
8871
|
},
|
|
8210
8872
|
},
|
|
8211
8873
|
portal: {
|
|
8212
|
-
[sourceId$
|
|
8874
|
+
[sourceId$B]: {
|
|
8213
8875
|
address: '0x4E259Ee5F4136408908160dD32295A5031Fa426F',
|
|
8214
8876
|
},
|
|
8215
8877
|
},
|
|
8216
8878
|
l1StandardBridge: {
|
|
8217
|
-
[sourceId$
|
|
8879
|
+
[sourceId$B]: {
|
|
8218
8880
|
address: '0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba',
|
|
8219
8881
|
},
|
|
8220
8882
|
},
|
|
@@ -8222,10 +8884,10 @@ const sourceId$A = 1; // mainnet
|
|
|
8222
8884
|
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
8223
8885
|
},
|
|
8224
8886
|
},
|
|
8225
|
-
sourceId: sourceId$
|
|
8887
|
+
sourceId: sourceId$B,
|
|
8226
8888
|
});
|
|
8227
8889
|
|
|
8228
|
-
const sourceId$
|
|
8890
|
+
const sourceId$A = 11_155_111; // sepolia
|
|
8229
8891
|
/*#__PURE__*/ defineChain({
|
|
8230
8892
|
id: 132_902,
|
|
8231
8893
|
name: 'Form Testnet',
|
|
@@ -8249,27 +8911,27 @@ const sourceId$z = 11_155_111; // sepolia
|
|
|
8249
8911
|
contracts: {
|
|
8250
8912
|
...chainConfig$1.contracts,
|
|
8251
8913
|
addressManager: {
|
|
8252
|
-
[sourceId$
|
|
8914
|
+
[sourceId$A]: {
|
|
8253
8915
|
address: '0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373',
|
|
8254
8916
|
},
|
|
8255
8917
|
},
|
|
8256
8918
|
l1CrossDomainMessenger: {
|
|
8257
|
-
[sourceId$
|
|
8919
|
+
[sourceId$A]: {
|
|
8258
8920
|
address: '0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa',
|
|
8259
8921
|
},
|
|
8260
8922
|
},
|
|
8261
8923
|
l2OutputOracle: {
|
|
8262
|
-
[sourceId$
|
|
8924
|
+
[sourceId$A]: {
|
|
8263
8925
|
address: '0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2',
|
|
8264
8926
|
},
|
|
8265
8927
|
},
|
|
8266
8928
|
portal: {
|
|
8267
|
-
[sourceId$
|
|
8929
|
+
[sourceId$A]: {
|
|
8268
8930
|
address: '0x60377e3cE15dF4CCA24c4beF076b60314240b032',
|
|
8269
8931
|
},
|
|
8270
8932
|
},
|
|
8271
8933
|
l1StandardBridge: {
|
|
8272
|
-
[sourceId$
|
|
8934
|
+
[sourceId$A]: {
|
|
8273
8935
|
address: '0xD4531f633942b2725896F47cD2aFd260b44Ab1F7',
|
|
8274
8936
|
},
|
|
8275
8937
|
},
|
|
@@ -8278,10 +8940,10 @@ const sourceId$z = 11_155_111; // sepolia
|
|
|
8278
8940
|
},
|
|
8279
8941
|
},
|
|
8280
8942
|
testnet: true,
|
|
8281
|
-
sourceId: sourceId$
|
|
8943
|
+
sourceId: sourceId$A,
|
|
8282
8944
|
});
|
|
8283
8945
|
|
|
8284
|
-
const sourceId$
|
|
8946
|
+
const sourceId$z = 1; // mainnet
|
|
8285
8947
|
/*#__PURE__*/ defineChain({
|
|
8286
8948
|
...chainConfig$1,
|
|
8287
8949
|
id: 252,
|
|
@@ -8302,7 +8964,7 @@ const sourceId$y = 1; // mainnet
|
|
|
8302
8964
|
contracts: {
|
|
8303
8965
|
...chainConfig$1.contracts,
|
|
8304
8966
|
l2OutputOracle: {
|
|
8305
|
-
[sourceId$
|
|
8967
|
+
[sourceId$z]: {
|
|
8306
8968
|
address: '0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4',
|
|
8307
8969
|
},
|
|
8308
8970
|
},
|
|
@@ -8310,22 +8972,22 @@ const sourceId$y = 1; // mainnet
|
|
|
8310
8972
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8311
8973
|
},
|
|
8312
8974
|
portal: {
|
|
8313
|
-
[sourceId$
|
|
8975
|
+
[sourceId$z]: {
|
|
8314
8976
|
address: '0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D',
|
|
8315
8977
|
blockCreated: 19135323,
|
|
8316
8978
|
},
|
|
8317
8979
|
},
|
|
8318
8980
|
l1StandardBridge: {
|
|
8319
|
-
[sourceId$
|
|
8981
|
+
[sourceId$z]: {
|
|
8320
8982
|
address: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
|
|
8321
8983
|
blockCreated: 19135323,
|
|
8322
8984
|
},
|
|
8323
8985
|
},
|
|
8324
8986
|
},
|
|
8325
|
-
sourceId: sourceId$
|
|
8987
|
+
sourceId: sourceId$z,
|
|
8326
8988
|
});
|
|
8327
8989
|
|
|
8328
|
-
const sourceId$
|
|
8990
|
+
const sourceId$y = 17000; // holesky
|
|
8329
8991
|
/*#__PURE__*/ defineChain({
|
|
8330
8992
|
...chainConfig$1,
|
|
8331
8993
|
id: 2522,
|
|
@@ -8346,7 +9008,7 @@ const sourceId$x = 17000; // holesky
|
|
|
8346
9008
|
contracts: {
|
|
8347
9009
|
...chainConfig$1.contracts,
|
|
8348
9010
|
l2OutputOracle: {
|
|
8349
|
-
[sourceId$
|
|
9011
|
+
[sourceId$y]: {
|
|
8350
9012
|
address: '0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32',
|
|
8351
9013
|
},
|
|
8352
9014
|
},
|
|
@@ -8354,22 +9016,22 @@ const sourceId$x = 17000; // holesky
|
|
|
8354
9016
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8355
9017
|
},
|
|
8356
9018
|
portal: {
|
|
8357
|
-
[sourceId$
|
|
9019
|
+
[sourceId$y]: {
|
|
8358
9020
|
address: '0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d',
|
|
8359
9021
|
blockCreated: 318416,
|
|
8360
9022
|
},
|
|
8361
9023
|
},
|
|
8362
9024
|
l1StandardBridge: {
|
|
8363
|
-
[sourceId$
|
|
9025
|
+
[sourceId$y]: {
|
|
8364
9026
|
address: '0x0BaafC217162f64930909aD9f2B27125121d6332',
|
|
8365
9027
|
blockCreated: 318416,
|
|
8366
9028
|
},
|
|
8367
9029
|
},
|
|
8368
9030
|
},
|
|
8369
|
-
sourceId: sourceId$
|
|
9031
|
+
sourceId: sourceId$y,
|
|
8370
9032
|
});
|
|
8371
9033
|
|
|
8372
|
-
const sourceId$
|
|
9034
|
+
const sourceId$x = 1; // mainnet
|
|
8373
9035
|
/*#__PURE__*/ defineChain({
|
|
8374
9036
|
...chainConfig$1,
|
|
8375
9037
|
id: 33979,
|
|
@@ -8389,10 +9051,10 @@ const sourceId$w = 1; // mainnet
|
|
|
8389
9051
|
contracts: {
|
|
8390
9052
|
...chainConfig$1.contracts,
|
|
8391
9053
|
},
|
|
8392
|
-
sourceId: sourceId$
|
|
9054
|
+
sourceId: sourceId$x,
|
|
8393
9055
|
});
|
|
8394
9056
|
|
|
8395
|
-
const sourceId$
|
|
9057
|
+
const sourceId$w = 11_155_111; // sepolia
|
|
8396
9058
|
defineChain({
|
|
8397
9059
|
...chainConfig$1,
|
|
8398
9060
|
id: 3397901,
|
|
@@ -8418,16 +9080,16 @@ defineChain({
|
|
|
8418
9080
|
blockCreated: 1620204,
|
|
8419
9081
|
},
|
|
8420
9082
|
},
|
|
8421
|
-
sourceId: sourceId$
|
|
9083
|
+
sourceId: sourceId$w,
|
|
8422
9084
|
});
|
|
8423
9085
|
|
|
8424
|
-
const sourceId$
|
|
9086
|
+
const sourceId$v = 17000; // Holesky testnet
|
|
8425
9087
|
defineChain({
|
|
8426
9088
|
...chainConfig$1,
|
|
8427
9089
|
name: 'Garnet Testnet',
|
|
8428
9090
|
testnet: true,
|
|
8429
9091
|
id: 17069,
|
|
8430
|
-
sourceId: sourceId$
|
|
9092
|
+
sourceId: sourceId$v,
|
|
8431
9093
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
8432
9094
|
rpcUrls: {
|
|
8433
9095
|
default: {
|
|
@@ -8447,19 +9109,19 @@ defineChain({
|
|
|
8447
9109
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8448
9110
|
},
|
|
8449
9111
|
portal: {
|
|
8450
|
-
[sourceId$
|
|
9112
|
+
[sourceId$v]: {
|
|
8451
9113
|
address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909',
|
|
8452
9114
|
blockCreated: 1274684,
|
|
8453
9115
|
},
|
|
8454
9116
|
},
|
|
8455
9117
|
l2OutputOracle: {
|
|
8456
|
-
[sourceId$
|
|
9118
|
+
[sourceId$v]: {
|
|
8457
9119
|
address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B',
|
|
8458
9120
|
blockCreated: 1274684,
|
|
8459
9121
|
},
|
|
8460
9122
|
},
|
|
8461
9123
|
l1StandardBridge: {
|
|
8462
|
-
[sourceId$
|
|
9124
|
+
[sourceId$v]: {
|
|
8463
9125
|
address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE',
|
|
8464
9126
|
blockCreated: 1274684,
|
|
8465
9127
|
},
|
|
@@ -8467,7 +9129,7 @@ defineChain({
|
|
|
8467
9129
|
},
|
|
8468
9130
|
});
|
|
8469
9131
|
|
|
8470
|
-
const sourceId$
|
|
9132
|
+
const sourceId$u = 1; // mainnet
|
|
8471
9133
|
/*#__PURE__*/ defineChain({
|
|
8472
9134
|
...chainConfig$1,
|
|
8473
9135
|
id: 57073,
|
|
@@ -8495,26 +9157,26 @@ const sourceId$t = 1; // mainnet
|
|
|
8495
9157
|
contracts: {
|
|
8496
9158
|
...chainConfig$1.contracts,
|
|
8497
9159
|
disputeGameFactory: {
|
|
8498
|
-
[sourceId$
|
|
9160
|
+
[sourceId$u]: {
|
|
8499
9161
|
address: '0x10d7b35078d3baabb96dd45a9143b94be65b12cd',
|
|
8500
9162
|
},
|
|
8501
9163
|
},
|
|
8502
9164
|
portal: {
|
|
8503
|
-
[sourceId$
|
|
9165
|
+
[sourceId$u]: {
|
|
8504
9166
|
address: '0x5d66c1782664115999c47c9fa5cd031f495d3e4f',
|
|
8505
9167
|
},
|
|
8506
9168
|
},
|
|
8507
9169
|
l1StandardBridge: {
|
|
8508
|
-
[sourceId$
|
|
9170
|
+
[sourceId$u]: {
|
|
8509
9171
|
address: '0x88ff1e5b602916615391f55854588efcbb7663f0',
|
|
8510
9172
|
},
|
|
8511
9173
|
},
|
|
8512
9174
|
},
|
|
8513
9175
|
testnet: false,
|
|
8514
|
-
sourceId: sourceId$
|
|
9176
|
+
sourceId: sourceId$u,
|
|
8515
9177
|
});
|
|
8516
9178
|
|
|
8517
|
-
const sourceId$
|
|
9179
|
+
const sourceId$t = 11_155_111; // sepolia
|
|
8518
9180
|
/*#__PURE__*/ defineChain({
|
|
8519
9181
|
...chainConfig$1,
|
|
8520
9182
|
id: 763373,
|
|
@@ -8535,23 +9197,23 @@ const sourceId$s = 11_155_111; // sepolia
|
|
|
8535
9197
|
contracts: {
|
|
8536
9198
|
...chainConfig$1.contracts,
|
|
8537
9199
|
disputeGameFactory: {
|
|
8538
|
-
[sourceId$
|
|
9200
|
+
[sourceId$t]: {
|
|
8539
9201
|
address: '0x860e626c700af381133d9f4af31412a2d1db3d5d',
|
|
8540
9202
|
},
|
|
8541
9203
|
},
|
|
8542
9204
|
portal: {
|
|
8543
|
-
[sourceId$
|
|
9205
|
+
[sourceId$t]: {
|
|
8544
9206
|
address: '0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7',
|
|
8545
9207
|
},
|
|
8546
9208
|
},
|
|
8547
9209
|
l1StandardBridge: {
|
|
8548
|
-
[sourceId$
|
|
9210
|
+
[sourceId$t]: {
|
|
8549
9211
|
address: '0x33f60714bbd74d62b66d79213c348614de51901c',
|
|
8550
9212
|
},
|
|
8551
9213
|
},
|
|
8552
9214
|
},
|
|
8553
9215
|
testnet: true,
|
|
8554
|
-
sourceId: sourceId$
|
|
9216
|
+
sourceId: sourceId$t,
|
|
8555
9217
|
});
|
|
8556
9218
|
|
|
8557
9219
|
defineChain({
|
|
@@ -8580,7 +9242,7 @@ defineChain({
|
|
|
8580
9242
|
testnet: true,
|
|
8581
9243
|
});
|
|
8582
9244
|
|
|
8583
|
-
const sourceId$
|
|
9245
|
+
const sourceId$s = 1; // mainnet
|
|
8584
9246
|
/*#__PURE__*/ defineChain({
|
|
8585
9247
|
...chainConfig$1,
|
|
8586
9248
|
id: 1135,
|
|
@@ -8609,25 +9271,25 @@ const sourceId$r = 1; // mainnet
|
|
|
8609
9271
|
address: '0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0',
|
|
8610
9272
|
},
|
|
8611
9273
|
l2OutputOracle: {
|
|
8612
|
-
[sourceId$
|
|
9274
|
+
[sourceId$s]: {
|
|
8613
9275
|
address: '0x113cB99283AF242Da0A0C54347667edF531Aa7d6',
|
|
8614
9276
|
},
|
|
8615
9277
|
},
|
|
8616
9278
|
portal: {
|
|
8617
|
-
[sourceId$
|
|
9279
|
+
[sourceId$s]: {
|
|
8618
9280
|
address: '0x26dB93F8b8b4f7016240af62F7730979d353f9A7',
|
|
8619
9281
|
},
|
|
8620
9282
|
},
|
|
8621
9283
|
l1StandardBridge: {
|
|
8622
|
-
[sourceId$
|
|
9284
|
+
[sourceId$s]: {
|
|
8623
9285
|
address: '0x2658723Bf70c7667De6B25F99fcce13A16D25d08',
|
|
8624
9286
|
},
|
|
8625
9287
|
},
|
|
8626
9288
|
},
|
|
8627
|
-
sourceId: sourceId$
|
|
9289
|
+
sourceId: sourceId$s,
|
|
8628
9290
|
});
|
|
8629
9291
|
|
|
8630
|
-
const sourceId$
|
|
9292
|
+
const sourceId$r = 11_155_111; // sepolia
|
|
8631
9293
|
/*#__PURE__*/ defineChain({
|
|
8632
9294
|
...chainConfig$1,
|
|
8633
9295
|
id: 4202,
|
|
@@ -8649,7 +9311,7 @@ const sourceId$q = 11_155_111; // sepolia
|
|
|
8649
9311
|
contracts: {
|
|
8650
9312
|
...chainConfig$1.contracts,
|
|
8651
9313
|
l2OutputOracle: {
|
|
8652
|
-
[sourceId$
|
|
9314
|
+
[sourceId$r]: {
|
|
8653
9315
|
address: '0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348',
|
|
8654
9316
|
},
|
|
8655
9317
|
},
|
|
@@ -8657,21 +9319,21 @@ const sourceId$q = 11_155_111; // sepolia
|
|
|
8657
9319
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8658
9320
|
},
|
|
8659
9321
|
portal: {
|
|
8660
|
-
[sourceId$
|
|
9322
|
+
[sourceId$r]: {
|
|
8661
9323
|
address: '0xe3d90F21490686Ec7eF37BE788E02dfC12787264',
|
|
8662
9324
|
},
|
|
8663
9325
|
},
|
|
8664
9326
|
l1StandardBridge: {
|
|
8665
|
-
[sourceId$
|
|
9327
|
+
[sourceId$r]: {
|
|
8666
9328
|
address: '0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5',
|
|
8667
9329
|
},
|
|
8668
9330
|
},
|
|
8669
9331
|
},
|
|
8670
9332
|
testnet: true,
|
|
8671
|
-
sourceId: sourceId$
|
|
9333
|
+
sourceId: sourceId$r,
|
|
8672
9334
|
});
|
|
8673
9335
|
|
|
8674
|
-
const sourceId$
|
|
9336
|
+
const sourceId$q = 1; // mainnet
|
|
8675
9337
|
/*#__PURE__*/ defineChain({
|
|
8676
9338
|
...chainConfig$1,
|
|
8677
9339
|
id: 1750,
|
|
@@ -8697,7 +9359,7 @@ const sourceId$p = 1; // mainnet
|
|
|
8697
9359
|
contracts: {
|
|
8698
9360
|
...chainConfig$1.contracts,
|
|
8699
9361
|
l2OutputOracle: {
|
|
8700
|
-
[sourceId$
|
|
9362
|
+
[sourceId$q]: {
|
|
8701
9363
|
address: '0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426',
|
|
8702
9364
|
},
|
|
8703
9365
|
},
|
|
@@ -8706,20 +9368,20 @@ const sourceId$p = 1; // mainnet
|
|
|
8706
9368
|
blockCreated: 0,
|
|
8707
9369
|
},
|
|
8708
9370
|
portal: {
|
|
8709
|
-
[sourceId$
|
|
9371
|
+
[sourceId$q]: {
|
|
8710
9372
|
address: '0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956',
|
|
8711
9373
|
},
|
|
8712
9374
|
},
|
|
8713
9375
|
l1StandardBridge: {
|
|
8714
|
-
[sourceId$
|
|
9376
|
+
[sourceId$q]: {
|
|
8715
9377
|
address: '0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3',
|
|
8716
9378
|
},
|
|
8717
9379
|
},
|
|
8718
9380
|
},
|
|
8719
|
-
sourceId: sourceId$
|
|
9381
|
+
sourceId: sourceId$q,
|
|
8720
9382
|
});
|
|
8721
9383
|
|
|
8722
|
-
const sourceId$
|
|
9384
|
+
const sourceId$p = 1; // mainnet
|
|
8723
9385
|
/*#__PURE__*/ defineChain({
|
|
8724
9386
|
...chainConfig$1,
|
|
8725
9387
|
id: 34443,
|
|
@@ -8743,25 +9405,25 @@ const sourceId$o = 1; // mainnet
|
|
|
8743
9405
|
blockCreated: 2465882,
|
|
8744
9406
|
},
|
|
8745
9407
|
l2OutputOracle: {
|
|
8746
|
-
[sourceId$
|
|
9408
|
+
[sourceId$p]: {
|
|
8747
9409
|
address: '0x4317ba146D4933D889518a3e5E11Fe7a53199b04',
|
|
8748
9410
|
},
|
|
8749
9411
|
},
|
|
8750
9412
|
portal: {
|
|
8751
|
-
[sourceId$
|
|
9413
|
+
[sourceId$p]: {
|
|
8752
9414
|
address: '0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07',
|
|
8753
9415
|
},
|
|
8754
9416
|
},
|
|
8755
9417
|
l1StandardBridge: {
|
|
8756
|
-
[sourceId$
|
|
9418
|
+
[sourceId$p]: {
|
|
8757
9419
|
address: '0x735aDBbE72226BD52e818E7181953f42E3b0FF21',
|
|
8758
9420
|
},
|
|
8759
9421
|
},
|
|
8760
9422
|
},
|
|
8761
|
-
sourceId: sourceId$
|
|
9423
|
+
sourceId: sourceId$p,
|
|
8762
9424
|
});
|
|
8763
9425
|
|
|
8764
|
-
const sourceId$
|
|
9426
|
+
const sourceId$o = 11_155_111; // sepolia
|
|
8765
9427
|
/*#__PURE__*/ defineChain({
|
|
8766
9428
|
...chainConfig$1,
|
|
8767
9429
|
id: 919,
|
|
@@ -8782,19 +9444,19 @@ const sourceId$n = 11_155_111; // sepolia
|
|
|
8782
9444
|
contracts: {
|
|
8783
9445
|
...chainConfig$1.contracts,
|
|
8784
9446
|
l2OutputOracle: {
|
|
8785
|
-
[sourceId$
|
|
9447
|
+
[sourceId$o]: {
|
|
8786
9448
|
address: '0x2634BD65ba27AB63811c74A63118ACb312701Bfa',
|
|
8787
9449
|
blockCreated: 3778393,
|
|
8788
9450
|
},
|
|
8789
9451
|
},
|
|
8790
9452
|
portal: {
|
|
8791
|
-
[sourceId$
|
|
9453
|
+
[sourceId$o]: {
|
|
8792
9454
|
address: '0x320e1580effF37E008F1C92700d1eBa47c1B23fD',
|
|
8793
9455
|
blockCreated: 3778395,
|
|
8794
9456
|
},
|
|
8795
9457
|
},
|
|
8796
9458
|
l1StandardBridge: {
|
|
8797
|
-
[sourceId$
|
|
9459
|
+
[sourceId$o]: {
|
|
8798
9460
|
address: '0xbC5C679879B2965296756CD959C3C739769995E2',
|
|
8799
9461
|
blockCreated: 3778392,
|
|
8800
9462
|
},
|
|
@@ -8805,10 +9467,10 @@ const sourceId$n = 11_155_111; // sepolia
|
|
|
8805
9467
|
},
|
|
8806
9468
|
},
|
|
8807
9469
|
testnet: true,
|
|
8808
|
-
sourceId: sourceId$
|
|
9470
|
+
sourceId: sourceId$o,
|
|
8809
9471
|
});
|
|
8810
9472
|
|
|
8811
|
-
const sourceId$
|
|
9473
|
+
const sourceId$n = 56; // bsc mainnet
|
|
8812
9474
|
/*#__PURE__*/ defineChain({
|
|
8813
9475
|
id: 204,
|
|
8814
9476
|
name: 'opBNB',
|
|
@@ -8834,25 +9496,25 @@ const sourceId$m = 56; // bsc mainnet
|
|
|
8834
9496
|
blockCreated: 512881,
|
|
8835
9497
|
},
|
|
8836
9498
|
l2OutputOracle: {
|
|
8837
|
-
[sourceId$
|
|
9499
|
+
[sourceId$n]: {
|
|
8838
9500
|
address: '0x153CAB79f4767E2ff862C94aa49573294B13D169',
|
|
8839
9501
|
},
|
|
8840
9502
|
},
|
|
8841
9503
|
portal: {
|
|
8842
|
-
[sourceId$
|
|
9504
|
+
[sourceId$n]: {
|
|
8843
9505
|
address: '0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519',
|
|
8844
9506
|
},
|
|
8845
9507
|
},
|
|
8846
9508
|
l1StandardBridge: {
|
|
8847
|
-
[sourceId$
|
|
9509
|
+
[sourceId$n]: {
|
|
8848
9510
|
address: '0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea',
|
|
8849
9511
|
},
|
|
8850
9512
|
},
|
|
8851
9513
|
},
|
|
8852
|
-
sourceId: sourceId$
|
|
9514
|
+
sourceId: sourceId$n,
|
|
8853
9515
|
});
|
|
8854
9516
|
|
|
8855
|
-
const sourceId$
|
|
9517
|
+
const sourceId$m = 97; // bsc testnet
|
|
8856
9518
|
/*#__PURE__*/ defineChain({
|
|
8857
9519
|
id: 5611,
|
|
8858
9520
|
name: 'opBNB Testnet',
|
|
@@ -8877,26 +9539,26 @@ const sourceId$l = 97; // bsc testnet
|
|
|
8877
9539
|
blockCreated: 3705108,
|
|
8878
9540
|
},
|
|
8879
9541
|
l2OutputOracle: {
|
|
8880
|
-
[sourceId$
|
|
9542
|
+
[sourceId$m]: {
|
|
8881
9543
|
address: '0xFf2394Bb843012562f4349C6632a0EcB92fC8810',
|
|
8882
9544
|
},
|
|
8883
9545
|
},
|
|
8884
9546
|
portal: {
|
|
8885
|
-
[sourceId$
|
|
9547
|
+
[sourceId$m]: {
|
|
8886
9548
|
address: '0x4386C8ABf2009aC0c263462Da568DD9d46e52a31',
|
|
8887
9549
|
},
|
|
8888
9550
|
},
|
|
8889
9551
|
l1StandardBridge: {
|
|
8890
|
-
[sourceId$
|
|
9552
|
+
[sourceId$m]: {
|
|
8891
9553
|
address: '0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840',
|
|
8892
9554
|
},
|
|
8893
9555
|
},
|
|
8894
9556
|
},
|
|
8895
9557
|
testnet: true,
|
|
8896
|
-
sourceId: sourceId$
|
|
9558
|
+
sourceId: sourceId$m,
|
|
8897
9559
|
});
|
|
8898
9560
|
|
|
8899
|
-
const sourceId$
|
|
9561
|
+
const sourceId$l = 1; // mainnet
|
|
8900
9562
|
/*#__PURE__*/ defineChain({
|
|
8901
9563
|
...chainConfig$1,
|
|
8902
9564
|
id: 10,
|
|
@@ -8917,12 +9579,12 @@ const sourceId$k = 1; // mainnet
|
|
|
8917
9579
|
contracts: {
|
|
8918
9580
|
...chainConfig$1.contracts,
|
|
8919
9581
|
disputeGameFactory: {
|
|
8920
|
-
[sourceId$
|
|
9582
|
+
[sourceId$l]: {
|
|
8921
9583
|
address: '0xe5965Ab5962eDc7477C8520243A95517CD252fA9',
|
|
8922
9584
|
},
|
|
8923
9585
|
},
|
|
8924
9586
|
l2OutputOracle: {
|
|
8925
|
-
[sourceId$
|
|
9587
|
+
[sourceId$l]: {
|
|
8926
9588
|
address: '0xdfe97868233d1aa22e815a266982f2cf17685a27',
|
|
8927
9589
|
},
|
|
8928
9590
|
},
|
|
@@ -8931,20 +9593,20 @@ const sourceId$k = 1; // mainnet
|
|
|
8931
9593
|
blockCreated: 4286263,
|
|
8932
9594
|
},
|
|
8933
9595
|
portal: {
|
|
8934
|
-
[sourceId$
|
|
9596
|
+
[sourceId$l]: {
|
|
8935
9597
|
address: '0xbEb5Fc579115071764c7423A4f12eDde41f106Ed',
|
|
8936
9598
|
},
|
|
8937
9599
|
},
|
|
8938
9600
|
l1StandardBridge: {
|
|
8939
|
-
[sourceId$
|
|
9601
|
+
[sourceId$l]: {
|
|
8940
9602
|
address: '0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1',
|
|
8941
9603
|
},
|
|
8942
9604
|
},
|
|
8943
9605
|
},
|
|
8944
|
-
sourceId: sourceId$
|
|
9606
|
+
sourceId: sourceId$l,
|
|
8945
9607
|
});
|
|
8946
9608
|
|
|
8947
|
-
const sourceId$
|
|
9609
|
+
const sourceId$k = 5; // goerli
|
|
8948
9610
|
/*#__PURE__*/ defineChain({
|
|
8949
9611
|
...chainConfig$1,
|
|
8950
9612
|
id: 420,
|
|
@@ -8965,7 +9627,7 @@ const sourceId$j = 5; // goerli
|
|
|
8965
9627
|
contracts: {
|
|
8966
9628
|
...chainConfig$1.contracts,
|
|
8967
9629
|
l2OutputOracle: {
|
|
8968
|
-
[sourceId$
|
|
9630
|
+
[sourceId$k]: {
|
|
8969
9631
|
address: '0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0',
|
|
8970
9632
|
},
|
|
8971
9633
|
},
|
|
@@ -8974,21 +9636,21 @@ const sourceId$j = 5; // goerli
|
|
|
8974
9636
|
blockCreated: 49461,
|
|
8975
9637
|
},
|
|
8976
9638
|
portal: {
|
|
8977
|
-
[sourceId$
|
|
9639
|
+
[sourceId$k]: {
|
|
8978
9640
|
address: '0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383',
|
|
8979
9641
|
},
|
|
8980
9642
|
},
|
|
8981
9643
|
l1StandardBridge: {
|
|
8982
|
-
[sourceId$
|
|
9644
|
+
[sourceId$k]: {
|
|
8983
9645
|
address: '0x636Af16bf2f682dD3109e60102b8E1A089FedAa8',
|
|
8984
9646
|
},
|
|
8985
9647
|
},
|
|
8986
9648
|
},
|
|
8987
9649
|
testnet: true,
|
|
8988
|
-
sourceId: sourceId$
|
|
9650
|
+
sourceId: sourceId$k,
|
|
8989
9651
|
});
|
|
8990
9652
|
|
|
8991
|
-
const sourceId$
|
|
9653
|
+
const sourceId$j = 11_155_111; // sepolia
|
|
8992
9654
|
/*#__PURE__*/ defineChain({
|
|
8993
9655
|
...chainConfig$1,
|
|
8994
9656
|
id: 11155420,
|
|
@@ -9009,12 +9671,12 @@ const sourceId$i = 11_155_111; // sepolia
|
|
|
9009
9671
|
contracts: {
|
|
9010
9672
|
...chainConfig$1.contracts,
|
|
9011
9673
|
disputeGameFactory: {
|
|
9012
|
-
[sourceId$
|
|
9674
|
+
[sourceId$j]: {
|
|
9013
9675
|
address: '0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1',
|
|
9014
9676
|
},
|
|
9015
9677
|
},
|
|
9016
9678
|
l2OutputOracle: {
|
|
9017
|
-
[sourceId$
|
|
9679
|
+
[sourceId$j]: {
|
|
9018
9680
|
address: '0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F',
|
|
9019
9681
|
},
|
|
9020
9682
|
},
|
|
@@ -9023,18 +9685,48 @@ const sourceId$i = 11_155_111; // sepolia
|
|
|
9023
9685
|
blockCreated: 1620204,
|
|
9024
9686
|
},
|
|
9025
9687
|
portal: {
|
|
9026
|
-
[sourceId$
|
|
9688
|
+
[sourceId$j]: {
|
|
9027
9689
|
address: '0x16Fc5058F25648194471939df75CF27A2fdC48BC',
|
|
9028
9690
|
},
|
|
9029
9691
|
},
|
|
9030
9692
|
l1StandardBridge: {
|
|
9031
|
-
[sourceId$
|
|
9693
|
+
[sourceId$j]: {
|
|
9032
9694
|
address: '0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1',
|
|
9033
9695
|
},
|
|
9034
9696
|
},
|
|
9035
9697
|
},
|
|
9036
9698
|
testnet: true,
|
|
9699
|
+
sourceId: sourceId$j,
|
|
9700
|
+
});
|
|
9701
|
+
|
|
9702
|
+
const sourceId$i = 11155111; // Sepolia testnet
|
|
9703
|
+
defineChain({
|
|
9704
|
+
...chainConfig$1,
|
|
9705
|
+
name: 'Pyrope Testnet',
|
|
9706
|
+
testnet: true,
|
|
9707
|
+
id: 695569,
|
|
9037
9708
|
sourceId: sourceId$i,
|
|
9709
|
+
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
9710
|
+
rpcUrls: {
|
|
9711
|
+
default: {
|
|
9712
|
+
http: ['https://rpc.pyropechain.com'],
|
|
9713
|
+
webSocket: ['wss://rpc.pyropechain.com'],
|
|
9714
|
+
},
|
|
9715
|
+
},
|
|
9716
|
+
blockExplorers: {
|
|
9717
|
+
default: {
|
|
9718
|
+
name: 'Blockscout',
|
|
9719
|
+
url: 'https://pyrope.blockscout.com',
|
|
9720
|
+
},
|
|
9721
|
+
},
|
|
9722
|
+
contracts: {
|
|
9723
|
+
...chainConfig$1.contracts,
|
|
9724
|
+
l1StandardBridge: {
|
|
9725
|
+
[sourceId$i]: {
|
|
9726
|
+
address: '0xC24932c31D9621aE9e792576152B7ef010cFC2F8',
|
|
9727
|
+
},
|
|
9728
|
+
},
|
|
9729
|
+
},
|
|
9038
9730
|
});
|
|
9039
9731
|
|
|
9040
9732
|
const sourceId$h = 1; // Ethereum mainnet
|
|
@@ -9922,8 +10614,12 @@ const FlaunchAddress = {
|
|
|
9922
10614
|
[base.id]: "0xCc7A4A00072ccbeEEbd999edc812C0ce498Fb63B",
|
|
9923
10615
|
[baseSepolia.id]: "0x7D375C9133721083DF7b7e5Cb0Ed8Fc78862dfe3",
|
|
9924
10616
|
};
|
|
10617
|
+
const BidWallAddress = {
|
|
10618
|
+
[base.id]: "0x66681f10BA90496241A25e33380004f30Dfd8aa8",
|
|
10619
|
+
[baseSepolia.id]: "0xa2107050ACEf4809c88Ab744F8e667605db5ACDB",
|
|
10620
|
+
};
|
|
9925
10621
|
const FastFlaunchZapAddress = {
|
|
9926
|
-
[base.id]:
|
|
10622
|
+
[base.id]: "0xd79e27f51ddf9df5ee76106ee192530f474b02f6",
|
|
9927
10623
|
[baseSepolia.id]: "0x251e97446a7019E5DA4860d4CF47291321C693D0",
|
|
9928
10624
|
};
|
|
9929
10625
|
const PoolManagerAddress = {
|
|
@@ -9938,10 +10634,30 @@ const QuoterAddress = {
|
|
|
9938
10634
|
[base.id]: "0x0d5e0f971ed27fbff6c2837bf31316121532048d",
|
|
9939
10635
|
[baseSepolia.id]: "0x4a6513c898fe1b2d0e78d3b0e0a4a151589b1cba",
|
|
9940
10636
|
};
|
|
10637
|
+
const StateViewAddress = {
|
|
10638
|
+
[base.id]: "0xA3c0c9b65baD0b08107Aa264b0f3dB444b867A71",
|
|
10639
|
+
[baseSepolia.id]: "0x571291b572ed32ce6751a2Cb2486EbEe8DEfB9B4",
|
|
10640
|
+
};
|
|
9941
10641
|
const Permit2Address = {
|
|
9942
10642
|
[base.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
9943
10643
|
[baseSepolia.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
9944
10644
|
};
|
|
10645
|
+
const USDCETHPoolKeys = {
|
|
10646
|
+
[base.id]: {
|
|
10647
|
+
currency0: zeroAddress,
|
|
10648
|
+
currency1: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
10649
|
+
fee: 500,
|
|
10650
|
+
tickSpacing: 10,
|
|
10651
|
+
hooks: zeroAddress,
|
|
10652
|
+
},
|
|
10653
|
+
[baseSepolia.id]: {
|
|
10654
|
+
currency0: zeroAddress,
|
|
10655
|
+
currency1: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
|
|
10656
|
+
fee: 0,
|
|
10657
|
+
tickSpacing: 30,
|
|
10658
|
+
hooks: zeroAddress,
|
|
10659
|
+
},
|
|
10660
|
+
};
|
|
9945
10661
|
|
|
9946
10662
|
class ReadQuoter {
|
|
9947
10663
|
constructor(chainId, address, drift = createDrift()) {
|
|
@@ -10029,8 +10745,33 @@ class ReadQuoter {
|
|
|
10029
10745
|
});
|
|
10030
10746
|
return res.amountIn;
|
|
10031
10747
|
}
|
|
10748
|
+
async getETHUSDCPrice() {
|
|
10749
|
+
const amountIn = parseEther("1");
|
|
10750
|
+
const res = await this.contract.simulateWrite("quoteExactInput", {
|
|
10751
|
+
params: {
|
|
10752
|
+
exactAmount: amountIn,
|
|
10753
|
+
exactCurrency: zeroAddress,
|
|
10754
|
+
path: [
|
|
10755
|
+
{
|
|
10756
|
+
fee: USDCETHPoolKeys[this.chainId].fee,
|
|
10757
|
+
tickSpacing: USDCETHPoolKeys[this.chainId].tickSpacing,
|
|
10758
|
+
hooks: USDCETHPoolKeys[this.chainId].hooks,
|
|
10759
|
+
hookData: "0x",
|
|
10760
|
+
intermediateCurrency: USDCETHPoolKeys[this.chainId].currency1,
|
|
10761
|
+
},
|
|
10762
|
+
],
|
|
10763
|
+
},
|
|
10764
|
+
});
|
|
10765
|
+
return Number(Number(formatUnits$1(res.amountOut, 6)).toFixed(2));
|
|
10766
|
+
}
|
|
10032
10767
|
}
|
|
10033
10768
|
|
|
10769
|
+
// our min/max tick range that is valid for the tick spacing (60)
|
|
10770
|
+
const TickFinder = {
|
|
10771
|
+
MIN_TICK: -887220,
|
|
10772
|
+
MAX_TICK: 887220,
|
|
10773
|
+
};
|
|
10774
|
+
const TICK_SPACING = 60;
|
|
10034
10775
|
const getPoolId = (poolKey) => {
|
|
10035
10776
|
// Pack the data in the same order as Solidity struct
|
|
10036
10777
|
const packed = concat([
|
|
@@ -11216,12 +11957,14 @@ class ReadPermit2 {
|
|
|
11216
11957
|
|
|
11217
11958
|
class ReadFlaunchSDK {
|
|
11218
11959
|
constructor(chainId, drift = createDrift()) {
|
|
11219
|
-
this.TICK_SPACING =
|
|
11960
|
+
this.TICK_SPACING = TICK_SPACING;
|
|
11220
11961
|
this.chainId = chainId;
|
|
11221
11962
|
this.drift = drift;
|
|
11222
11963
|
this.readPositionManager = new ReadFlaunchPositionManager(FlaunchPositionManagerAddress[this.chainId], drift);
|
|
11223
11964
|
this.readPoolManager = new ReadPoolManager(PoolManagerAddress[this.chainId], drift);
|
|
11965
|
+
this.readStateView = new ReadStateView(StateViewAddress[this.chainId], drift);
|
|
11224
11966
|
this.readFairLaunch = new ReadFairLaunch(FairLaunchAddress[this.chainId], drift);
|
|
11967
|
+
this.readBidWall = new ReadBidWall(BidWallAddress[this.chainId], drift);
|
|
11225
11968
|
this.readFlaunch = new ReadFlaunch(FlaunchAddress[this.chainId], drift);
|
|
11226
11969
|
this.readQuoter = new ReadQuoter(this.chainId, QuoterAddress[this.chainId], drift);
|
|
11227
11970
|
this.readPermit2 = new ReadPermit2(Permit2Address[this.chainId], drift);
|
|
@@ -11275,11 +12018,11 @@ class ReadFlaunchSDK {
|
|
|
11275
12018
|
return poll();
|
|
11276
12019
|
}
|
|
11277
12020
|
positionInfo(params) {
|
|
11278
|
-
return this.
|
|
12021
|
+
return this.readStateView.positionInfo(params);
|
|
11279
12022
|
}
|
|
11280
12023
|
async currentTick(coinAddress) {
|
|
11281
12024
|
const poolId = this.poolId(coinAddress);
|
|
11282
|
-
const poolState = await this.
|
|
12025
|
+
const poolState = await this.readStateView.poolSlot0({ poolId });
|
|
11283
12026
|
return poolState.tick;
|
|
11284
12027
|
}
|
|
11285
12028
|
async coinPriceInETH(coinAddress) {
|
|
@@ -11295,6 +12038,15 @@ class ReadFlaunchSDK {
|
|
|
11295
12038
|
}
|
|
11296
12039
|
return ethPerCoin.toFixed(18);
|
|
11297
12040
|
}
|
|
12041
|
+
// optionally pass in a drift instance to get the price from Base Mainnet
|
|
12042
|
+
async getETHUSDCPrice(drift) {
|
|
12043
|
+
if (drift) {
|
|
12044
|
+
const chainId = await drift.getChainId();
|
|
12045
|
+
const quoter = new ReadQuoter(chainId, QuoterAddress[chainId], drift);
|
|
12046
|
+
return quoter.getETHUSDCPrice();
|
|
12047
|
+
}
|
|
12048
|
+
return this.readQuoter.getETHUSDCPrice();
|
|
12049
|
+
}
|
|
11298
12050
|
async fairLaunchInfo(coinAddress) {
|
|
11299
12051
|
const poolId = this.poolId(coinAddress);
|
|
11300
12052
|
return this.readFairLaunch.fairLaunchInfo({ poolId });
|
|
@@ -11334,7 +12086,48 @@ class ReadFlaunchSDK {
|
|
|
11334
12086
|
});
|
|
11335
12087
|
tickLower = tickUpper - this.TICK_SPACING;
|
|
11336
12088
|
}
|
|
11337
|
-
const { liquidity } = await this.
|
|
12089
|
+
const { liquidity } = await this.readStateView.positionInfo({
|
|
12090
|
+
poolId,
|
|
12091
|
+
owner: FairLaunchAddress[this.chainId],
|
|
12092
|
+
tickLower,
|
|
12093
|
+
tickUpper,
|
|
12094
|
+
salt: "",
|
|
12095
|
+
});
|
|
12096
|
+
const { amount0, amount1 } = calculateUnderlyingTokenBalances(liquidity, tickLower, tickUpper, currentTick);
|
|
12097
|
+
const [flETHAmount, coinAmount] = isFLETHZero
|
|
12098
|
+
? [amount0, amount1]
|
|
12099
|
+
: [amount1, amount0];
|
|
12100
|
+
return {
|
|
12101
|
+
flETHAmount,
|
|
12102
|
+
coinAmount,
|
|
12103
|
+
tickLower,
|
|
12104
|
+
tickUpper,
|
|
12105
|
+
};
|
|
12106
|
+
}
|
|
12107
|
+
async fairLaunchCoinOnlyPosition(coinAddress) {
|
|
12108
|
+
const poolId = this.poolId(coinAddress);
|
|
12109
|
+
const initialTick = await this.initialTick(coinAddress);
|
|
12110
|
+
const currentTick = await this.currentTick(coinAddress);
|
|
12111
|
+
const isFLETHZero = this.flETHIsCurrencyZero(coinAddress);
|
|
12112
|
+
let tickLower;
|
|
12113
|
+
let tickUpper;
|
|
12114
|
+
if (isFLETHZero) {
|
|
12115
|
+
tickLower = TickFinder.MIN_TICK;
|
|
12116
|
+
tickUpper = getValidTick({
|
|
12117
|
+
tick: initialTick - 1,
|
|
12118
|
+
roundDown: true,
|
|
12119
|
+
tickSpacing: this.TICK_SPACING,
|
|
12120
|
+
});
|
|
12121
|
+
}
|
|
12122
|
+
else {
|
|
12123
|
+
tickLower = getValidTick({
|
|
12124
|
+
tick: initialTick + 1,
|
|
12125
|
+
roundDown: false,
|
|
12126
|
+
tickSpacing: this.TICK_SPACING,
|
|
12127
|
+
});
|
|
12128
|
+
tickUpper = TickFinder.MAX_TICK;
|
|
12129
|
+
}
|
|
12130
|
+
const { liquidity } = await this.readStateView.positionInfo({
|
|
11338
12131
|
poolId,
|
|
11339
12132
|
owner: FairLaunchAddress[this.chainId],
|
|
11340
12133
|
tickLower,
|
|
@@ -11352,6 +12145,24 @@ class ReadFlaunchSDK {
|
|
|
11352
12145
|
tickUpper,
|
|
11353
12146
|
};
|
|
11354
12147
|
}
|
|
12148
|
+
async bidWallPosition(coinAddress) {
|
|
12149
|
+
const poolId = this.poolId(coinAddress);
|
|
12150
|
+
const isFLETHZero = this.flETHIsCurrencyZero(coinAddress);
|
|
12151
|
+
const { amount0_: amount0, amount1_: amount1, pendingEth_: pendingEth, } = await this.readBidWall.position({ poolId });
|
|
12152
|
+
const { tickLower, tickUpper } = await this.readBidWall.poolInfo({
|
|
12153
|
+
poolId,
|
|
12154
|
+
});
|
|
12155
|
+
const [flETHAmount, coinAmount] = isFLETHZero
|
|
12156
|
+
? [amount0, amount1]
|
|
12157
|
+
: [amount1, amount0];
|
|
12158
|
+
return {
|
|
12159
|
+
flETHAmount,
|
|
12160
|
+
coinAmount,
|
|
12161
|
+
pendingEth,
|
|
12162
|
+
tickLower,
|
|
12163
|
+
tickUpper,
|
|
12164
|
+
};
|
|
12165
|
+
}
|
|
11355
12166
|
poolId(coinAddress) {
|
|
11356
12167
|
return getPoolId(orderPoolKey({
|
|
11357
12168
|
currency0: FLETHAddress[this.chainId],
|
|
@@ -11392,6 +12203,7 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
11392
12203
|
async coinBalance(coinAddress) {
|
|
11393
12204
|
const user = await this.drift.getSignerAddress();
|
|
11394
12205
|
const memecoin = new ReadMemecoin(coinAddress, this.drift);
|
|
12206
|
+
await memecoin.contract.cache.clear();
|
|
11395
12207
|
return memecoin.balanceOf(user);
|
|
11396
12208
|
}
|
|
11397
12209
|
async buyCoin(params) {
|
|
@@ -11400,6 +12212,7 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
11400
12212
|
let amountOutMin;
|
|
11401
12213
|
let amountOut;
|
|
11402
12214
|
let amountInMax;
|
|
12215
|
+
await this.readQuoter.contract.cache.clear();
|
|
11403
12216
|
if (params.swapType === "EXACT_IN") {
|
|
11404
12217
|
amountIn = params.amountIn;
|
|
11405
12218
|
if (params.amountOutMin === undefined) {
|
|
@@ -11442,12 +12255,14 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
11442
12255
|
}
|
|
11443
12256
|
async sellCoin(params) {
|
|
11444
12257
|
let ethOutMin;
|
|
12258
|
+
await this.readQuoter.contract.cache.clear();
|
|
11445
12259
|
if (params.ethOutMin === undefined) {
|
|
11446
12260
|
ethOutMin = getAmountWithSlippage(await this.readQuoter.getSellQuoteExactInput(params.coinAddress, params.amountIn), (params.slippagePercent / 100).toFixed(18).toString(), "EXACT_IN");
|
|
11447
12261
|
}
|
|
11448
12262
|
else {
|
|
11449
12263
|
ethOutMin = params.ethOutMin;
|
|
11450
12264
|
}
|
|
12265
|
+
await this.readPermit2.contract.cache.clear();
|
|
11451
12266
|
const { commands, inputs } = memecoinToEthWithPermit2({
|
|
11452
12267
|
chainId: this.chainId,
|
|
11453
12268
|
memecoin: params.coinAddress,
|
|
@@ -11492,5 +12307,5 @@ const FlaunchSDK = {
|
|
|
11492
12307
|
ReadWriteFlaunchSDK,
|
|
11493
12308
|
};
|
|
11494
12309
|
|
|
11495
|
-
export { FLETHAddress, FLETHHooksAddress, FairLaunchAbi, FairLaunchAddress, FastFlaunchZapAbi, FastFlaunchZapAddress, FlaunchAddress, FlaunchPositionManagerAbi, FlaunchPositionManagerAddress, FlaunchSDK, MemecoinAbi, Permit2Address, PoolManagerAbi, PoolManagerAddress, QuoterAddress, ReadFlaunchSDK, ReadWriteFlaunchSDK, UniversalRouterAddress, bytes32ToUint256, generateTokenUri, resolveIPFS, uint256ToBytes32, uploadFileToIPFS, uploadImageToIPFS, uploadJsonToIPFS };
|
|
12310
|
+
export { BidWallAddress, FLETHAddress, FLETHHooksAddress, FairLaunchAbi, FairLaunchAddress, FastFlaunchZapAbi, FastFlaunchZapAddress, FlaunchAddress, FlaunchPositionManagerAbi, FlaunchPositionManagerAddress, FlaunchSDK, MemecoinAbi, Permit2Address, PoolManagerAbi, PoolManagerAddress, QuoterAddress, ReadFlaunchSDK, ReadWriteFlaunchSDK, StateViewAddress, TICK_SPACING, TickFinder, USDCETHPoolKeys, UniversalRouterAddress, bytes32ToUint256, calculateUnderlyingTokenBalances, generateTokenUri, getPoolId, getSqrtPriceX96FromTick, getValidTick, orderPoolKey, resolveIPFS, uint256ToBytes32, uploadFileToIPFS, uploadImageToIPFS, uploadJsonToIPFS };
|
|
11496
12311
|
//# sourceMappingURL=index.esm.js.map
|