@flaunch/sdk 0.1.1 → 0.3.0
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 +2 -2
- package/dist/abi/BidWall.d.ts +493 -0
- package/dist/abi/BidWall.d.ts.map +1 -0
- package/dist/abi/FastFlaunchZap.d.ts +27 -31
- package/dist/abi/FastFlaunchZap.d.ts.map +1 -1
- package/dist/abi/StateView.d.ts +278 -0
- package/dist/abi/StateView.d.ts.map +1 -0
- package/dist/abi/index.cjs +60 -27
- package/dist/abi/index.cjs.map +1 -1
- package/dist/abi/index.js +60 -27
- package/dist/abi/index.js.map +1 -1
- 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 +3 -5
- 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 +1074 -219
- 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 +1066 -221
- 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: [
|
|
@@ -2905,7 +3136,372 @@ const FairLaunchAbi = [
|
|
|
2905
3136
|
type: "tuple",
|
|
2906
3137
|
},
|
|
2907
3138
|
],
|
|
2908
|
-
stateMutability: "view",
|
|
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",
|
|
3466
|
+
},
|
|
3467
|
+
],
|
|
3468
|
+
name: "OwnershipTransferred",
|
|
3469
|
+
type: "event",
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
inputs: [],
|
|
3473
|
+
name: "cancelOwnershipHandover",
|
|
3474
|
+
outputs: [],
|
|
3475
|
+
stateMutability: "payable",
|
|
3476
|
+
type: "function",
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
inputs: [
|
|
3480
|
+
{
|
|
3481
|
+
components: [
|
|
3482
|
+
{ internalType: "Currency", name: "currency0", type: "address" },
|
|
3483
|
+
{ internalType: "Currency", name: "currency1", type: "address" },
|
|
3484
|
+
{ internalType: "uint24", name: "fee", type: "uint24" },
|
|
3485
|
+
{ internalType: "int24", name: "tickSpacing", type: "int24" },
|
|
3486
|
+
{ internalType: "contract IHooks", name: "hooks", type: "address" },
|
|
3487
|
+
],
|
|
3488
|
+
internalType: "struct PoolKey",
|
|
3489
|
+
name: "_key",
|
|
3490
|
+
type: "tuple",
|
|
3491
|
+
},
|
|
3492
|
+
],
|
|
3493
|
+
name: "closeBidWall",
|
|
3494
|
+
outputs: [],
|
|
3495
|
+
stateMutability: "nonpayable",
|
|
3496
|
+
type: "function",
|
|
3497
|
+
},
|
|
3498
|
+
{
|
|
3499
|
+
inputs: [
|
|
3500
|
+
{ internalType: "address", name: "pendingOwner", type: "address" },
|
|
3501
|
+
],
|
|
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,106 +3580,197 @@ 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
|
|
|
3015
3678
|
const FastFlaunchZapAbi = [
|
|
3016
3679
|
{
|
|
3680
|
+
type: "constructor",
|
|
3017
3681
|
inputs: [
|
|
3018
3682
|
{
|
|
3019
|
-
internalType: "contract PositionManager",
|
|
3020
3683
|
name: "_positionManager",
|
|
3021
3684
|
type: "address",
|
|
3685
|
+
internalType: "contract PositionManager",
|
|
3022
3686
|
},
|
|
3023
3687
|
],
|
|
3024
3688
|
stateMutability: "nonpayable",
|
|
3025
|
-
type: "constructor",
|
|
3026
3689
|
},
|
|
3027
3690
|
{
|
|
3691
|
+
type: "function",
|
|
3692
|
+
name: "FAIR_LAUNCH_SUPPLY",
|
|
3028
3693
|
inputs: [],
|
|
3029
|
-
|
|
3030
|
-
|
|
3694
|
+
outputs: [
|
|
3695
|
+
{
|
|
3696
|
+
name: "",
|
|
3697
|
+
type: "uint256",
|
|
3698
|
+
internalType: "uint256",
|
|
3699
|
+
},
|
|
3700
|
+
],
|
|
3031
3701
|
stateMutability: "view",
|
|
3702
|
+
},
|
|
3703
|
+
{
|
|
3032
3704
|
type: "function",
|
|
3705
|
+
name: "USDC_MARKET_CAP",
|
|
3706
|
+
inputs: [],
|
|
3707
|
+
outputs: [
|
|
3708
|
+
{
|
|
3709
|
+
name: "",
|
|
3710
|
+
type: "uint256",
|
|
3711
|
+
internalType: "uint256",
|
|
3712
|
+
},
|
|
3713
|
+
],
|
|
3714
|
+
stateMutability: "view",
|
|
3033
3715
|
},
|
|
3034
3716
|
{
|
|
3717
|
+
type: "function",
|
|
3718
|
+
name: "flaunch",
|
|
3035
3719
|
inputs: [
|
|
3036
3720
|
{
|
|
3721
|
+
name: "_params",
|
|
3722
|
+
type: "tuple",
|
|
3723
|
+
internalType: "struct FastFlaunchZap.FastFlaunchParams",
|
|
3037
3724
|
components: [
|
|
3038
|
-
{ internalType: "string", name: "name", type: "string" },
|
|
3039
|
-
{ internalType: "string", name: "symbol", type: "string" },
|
|
3040
|
-
{ internalType: "string", name: "tokenUri", type: "string" },
|
|
3041
|
-
{ internalType: "address", name: "creator", type: "address" },
|
|
3042
3725
|
{
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3726
|
+
name: "name",
|
|
3727
|
+
type: "string",
|
|
3728
|
+
internalType: "string",
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
name: "symbol",
|
|
3732
|
+
type: "string",
|
|
3733
|
+
internalType: "string",
|
|
3734
|
+
},
|
|
3735
|
+
{
|
|
3736
|
+
name: "tokenUri",
|
|
3737
|
+
type: "string",
|
|
3738
|
+
internalType: "string",
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
name: "creator",
|
|
3742
|
+
type: "address",
|
|
3743
|
+
internalType: "address",
|
|
3046
3744
|
},
|
|
3047
3745
|
],
|
|
3048
|
-
internalType: "struct FastFlaunchZap.FastFlaunchParams",
|
|
3049
|
-
name: "_params",
|
|
3050
|
-
type: "tuple",
|
|
3051
3746
|
},
|
|
3052
3747
|
],
|
|
3053
|
-
|
|
3054
|
-
|
|
3748
|
+
outputs: [
|
|
3749
|
+
{
|
|
3750
|
+
name: "memecoin_",
|
|
3751
|
+
type: "address",
|
|
3752
|
+
internalType: "address",
|
|
3753
|
+
},
|
|
3754
|
+
],
|
|
3055
3755
|
stateMutability: "nonpayable",
|
|
3056
|
-
type: "function",
|
|
3057
3756
|
},
|
|
3058
3757
|
{
|
|
3059
|
-
|
|
3758
|
+
type: "function",
|
|
3060
3759
|
name: "positionManager",
|
|
3760
|
+
inputs: [],
|
|
3061
3761
|
outputs: [
|
|
3062
|
-
{
|
|
3762
|
+
{
|
|
3763
|
+
name: "",
|
|
3764
|
+
type: "address",
|
|
3765
|
+
internalType: "contract PositionManager",
|
|
3766
|
+
},
|
|
3063
3767
|
],
|
|
3064
3768
|
stateMutability: "view",
|
|
3065
|
-
type: "function",
|
|
3066
|
-
},
|
|
3067
|
-
{
|
|
3068
|
-
inputs: [],
|
|
3069
|
-
name: "usdcMarketCap",
|
|
3070
|
-
outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
|
|
3071
|
-
stateMutability: "view",
|
|
3072
|
-
type: "function",
|
|
3073
3769
|
},
|
|
3074
3770
|
];
|
|
3075
3771
|
|
|
3076
3772
|
class ReadFastFlaunchZap {
|
|
3077
3773
|
constructor(address, drift = createDrift()) {
|
|
3078
|
-
this.drift = drift;
|
|
3079
3774
|
if (!address) {
|
|
3080
3775
|
throw new Error("Address is required");
|
|
3081
3776
|
}
|
|
@@ -3089,19 +3784,17 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
|
|
|
3089
3784
|
constructor(address, drift = createDrift()) {
|
|
3090
3785
|
super(address, drift);
|
|
3091
3786
|
}
|
|
3092
|
-
fastFlaunch({ name, symbol, tokenUri, creator
|
|
3093
|
-
const creatorFeeAllocationInBps = creatorFeeAllocationPercent * 100;
|
|
3787
|
+
fastFlaunch({ name, symbol, tokenUri, creator }) {
|
|
3094
3788
|
return this.contract.write("flaunch", {
|
|
3095
3789
|
_params: {
|
|
3096
3790
|
name,
|
|
3097
3791
|
symbol,
|
|
3098
3792
|
tokenUri,
|
|
3099
3793
|
creator,
|
|
3100
|
-
creatorFeeAllocation: creatorFeeAllocationInBps,
|
|
3101
3794
|
},
|
|
3102
3795
|
});
|
|
3103
3796
|
}
|
|
3104
|
-
async fastFlaunchIPFS({ name, symbol, creator,
|
|
3797
|
+
async fastFlaunchIPFS({ name, symbol, creator, metadata, pinataConfig, }) {
|
|
3105
3798
|
const tokenUri = await generateTokenUri(name, {
|
|
3106
3799
|
metadata,
|
|
3107
3800
|
pinataConfig,
|
|
@@ -3111,7 +3804,6 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
|
|
|
3111
3804
|
symbol,
|
|
3112
3805
|
tokenUri,
|
|
3113
3806
|
creator,
|
|
3114
|
-
creatorFeeAllocationPercent,
|
|
3115
3807
|
});
|
|
3116
3808
|
}
|
|
3117
3809
|
}
|
|
@@ -4605,7 +5297,7 @@ function defineChain(chain) {
|
|
|
4605
5297
|
};
|
|
4606
5298
|
}
|
|
4607
5299
|
|
|
4608
|
-
const version = '2.23.
|
|
5300
|
+
const version = '2.23.11';
|
|
4609
5301
|
|
|
4610
5302
|
let errorConfig = {
|
|
4611
5303
|
getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
|
|
@@ -7350,7 +8042,7 @@ const chainConfig$1 = {
|
|
|
7350
8042
|
serializers: serializers$1,
|
|
7351
8043
|
};
|
|
7352
8044
|
|
|
7353
|
-
const sourceId$
|
|
8045
|
+
const sourceId$K = 1; // mainnet
|
|
7354
8046
|
/*#__PURE__*/ defineChain({
|
|
7355
8047
|
...chainConfig$1,
|
|
7356
8048
|
id: 888888888,
|
|
@@ -7371,27 +8063,27 @@ const sourceId$J = 1; // mainnet
|
|
|
7371
8063
|
contracts: {
|
|
7372
8064
|
...chainConfig$1.contracts,
|
|
7373
8065
|
l2OutputOracle: {
|
|
7374
|
-
[sourceId$
|
|
8066
|
+
[sourceId$K]: {
|
|
7375
8067
|
address: '0xB09DC08428C8b4EFB4ff9C0827386CDF34277996',
|
|
7376
8068
|
},
|
|
7377
8069
|
},
|
|
7378
8070
|
portal: {
|
|
7379
|
-
[sourceId$
|
|
8071
|
+
[sourceId$K]: {
|
|
7380
8072
|
address: '0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68',
|
|
7381
8073
|
blockCreated: 19070571,
|
|
7382
8074
|
},
|
|
7383
8075
|
},
|
|
7384
8076
|
l1StandardBridge: {
|
|
7385
|
-
[sourceId$
|
|
8077
|
+
[sourceId$K]: {
|
|
7386
8078
|
address: '0xd5e3eDf5b68135D559D572E26bF863FBC1950033',
|
|
7387
8079
|
blockCreated: 19070571,
|
|
7388
8080
|
},
|
|
7389
8081
|
},
|
|
7390
8082
|
},
|
|
7391
|
-
sourceId: sourceId$
|
|
8083
|
+
sourceId: sourceId$K,
|
|
7392
8084
|
});
|
|
7393
8085
|
|
|
7394
|
-
const sourceId$
|
|
8086
|
+
const sourceId$J = 11_155_111; // sepolia
|
|
7395
8087
|
/*#__PURE__*/ defineChain({
|
|
7396
8088
|
...chainConfig$1,
|
|
7397
8089
|
id: 28122024,
|
|
@@ -7412,27 +8104,27 @@ const sourceId$I = 11_155_111; // sepolia
|
|
|
7412
8104
|
contracts: {
|
|
7413
8105
|
...chainConfig$1.contracts,
|
|
7414
8106
|
l2OutputOracle: {
|
|
7415
|
-
[sourceId$
|
|
8107
|
+
[sourceId$J]: {
|
|
7416
8108
|
address: '0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB',
|
|
7417
8109
|
},
|
|
7418
8110
|
},
|
|
7419
8111
|
portal: {
|
|
7420
|
-
[sourceId$
|
|
8112
|
+
[sourceId$J]: {
|
|
7421
8113
|
address: '0xfa1d9E26A6aCD7b22115D27572c1221B9803c960',
|
|
7422
8114
|
blockCreated: 4972908,
|
|
7423
8115
|
},
|
|
7424
8116
|
},
|
|
7425
8117
|
l1StandardBridge: {
|
|
7426
|
-
[sourceId$
|
|
8118
|
+
[sourceId$J]: {
|
|
7427
8119
|
address: '0xF6Bc0146d3c74D48306e79Ae134A260E418C9335',
|
|
7428
8120
|
blockCreated: 4972908,
|
|
7429
8121
|
},
|
|
7430
8122
|
},
|
|
7431
8123
|
},
|
|
7432
|
-
sourceId: sourceId$
|
|
8124
|
+
sourceId: sourceId$J,
|
|
7433
8125
|
});
|
|
7434
8126
|
|
|
7435
|
-
const sourceId$
|
|
8127
|
+
const sourceId$I = 1; // mainnet
|
|
7436
8128
|
const base = /*#__PURE__*/ defineChain({
|
|
7437
8129
|
...chainConfig$1,
|
|
7438
8130
|
id: 8453,
|
|
@@ -7453,12 +8145,12 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
7453
8145
|
contracts: {
|
|
7454
8146
|
...chainConfig$1.contracts,
|
|
7455
8147
|
disputeGameFactory: {
|
|
7456
|
-
[sourceId$
|
|
8148
|
+
[sourceId$I]: {
|
|
7457
8149
|
address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
|
|
7458
8150
|
},
|
|
7459
8151
|
},
|
|
7460
8152
|
l2OutputOracle: {
|
|
7461
|
-
[sourceId$
|
|
8153
|
+
[sourceId$I]: {
|
|
7462
8154
|
address: '0x56315b90c40730925ec5485cf004d835058518A0',
|
|
7463
8155
|
},
|
|
7464
8156
|
},
|
|
@@ -7467,22 +8159,22 @@ const base = /*#__PURE__*/ defineChain({
|
|
|
7467
8159
|
blockCreated: 5022,
|
|
7468
8160
|
},
|
|
7469
8161
|
portal: {
|
|
7470
|
-
[sourceId$
|
|
8162
|
+
[sourceId$I]: {
|
|
7471
8163
|
address: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e',
|
|
7472
8164
|
blockCreated: 17482143,
|
|
7473
8165
|
},
|
|
7474
8166
|
},
|
|
7475
8167
|
l1StandardBridge: {
|
|
7476
|
-
[sourceId$
|
|
8168
|
+
[sourceId$I]: {
|
|
7477
8169
|
address: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
|
|
7478
8170
|
blockCreated: 17482143,
|
|
7479
8171
|
},
|
|
7480
8172
|
},
|
|
7481
8173
|
},
|
|
7482
|
-
sourceId: sourceId$
|
|
8174
|
+
sourceId: sourceId$I,
|
|
7483
8175
|
});
|
|
7484
8176
|
|
|
7485
|
-
const sourceId$
|
|
8177
|
+
const sourceId$H = 5; // goerli
|
|
7486
8178
|
/*#__PURE__*/ defineChain({
|
|
7487
8179
|
...chainConfig$1,
|
|
7488
8180
|
id: 84531,
|
|
@@ -7501,7 +8193,7 @@ const sourceId$G = 5; // goerli
|
|
|
7501
8193
|
contracts: {
|
|
7502
8194
|
...chainConfig$1.contracts,
|
|
7503
8195
|
l2OutputOracle: {
|
|
7504
|
-
[sourceId$
|
|
8196
|
+
[sourceId$H]: {
|
|
7505
8197
|
address: '0x2A35891ff30313CcFa6CE88dcf3858bb075A2298',
|
|
7506
8198
|
},
|
|
7507
8199
|
},
|
|
@@ -7510,21 +8202,21 @@ const sourceId$G = 5; // goerli
|
|
|
7510
8202
|
blockCreated: 1376988,
|
|
7511
8203
|
},
|
|
7512
8204
|
portal: {
|
|
7513
|
-
[sourceId$
|
|
8205
|
+
[sourceId$H]: {
|
|
7514
8206
|
address: '0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA',
|
|
7515
8207
|
},
|
|
7516
8208
|
},
|
|
7517
8209
|
l1StandardBridge: {
|
|
7518
|
-
[sourceId$
|
|
8210
|
+
[sourceId$H]: {
|
|
7519
8211
|
address: '0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a',
|
|
7520
8212
|
},
|
|
7521
8213
|
},
|
|
7522
8214
|
},
|
|
7523
8215
|
testnet: true,
|
|
7524
|
-
sourceId: sourceId$
|
|
8216
|
+
sourceId: sourceId$H,
|
|
7525
8217
|
});
|
|
7526
8218
|
|
|
7527
|
-
const sourceId$
|
|
8219
|
+
const sourceId$G = 11_155_111; // sepolia
|
|
7528
8220
|
const baseSepolia = /*#__PURE__*/ defineChain({
|
|
7529
8221
|
...chainConfig$1,
|
|
7530
8222
|
id: 84532,
|
|
@@ -7546,23 +8238,23 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
7546
8238
|
contracts: {
|
|
7547
8239
|
...chainConfig$1.contracts,
|
|
7548
8240
|
disputeGameFactory: {
|
|
7549
|
-
[sourceId$
|
|
8241
|
+
[sourceId$G]: {
|
|
7550
8242
|
address: '0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1',
|
|
7551
8243
|
},
|
|
7552
8244
|
},
|
|
7553
8245
|
l2OutputOracle: {
|
|
7554
|
-
[sourceId$
|
|
8246
|
+
[sourceId$G]: {
|
|
7555
8247
|
address: '0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254',
|
|
7556
8248
|
},
|
|
7557
8249
|
},
|
|
7558
8250
|
portal: {
|
|
7559
|
-
[sourceId$
|
|
8251
|
+
[sourceId$G]: {
|
|
7560
8252
|
address: '0x49f53e41452c74589e85ca1677426ba426459e85',
|
|
7561
8253
|
blockCreated: 4446677,
|
|
7562
8254
|
},
|
|
7563
8255
|
},
|
|
7564
8256
|
l1StandardBridge: {
|
|
7565
|
-
[sourceId$
|
|
8257
|
+
[sourceId$G]: {
|
|
7566
8258
|
address: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
|
|
7567
8259
|
blockCreated: 4446677,
|
|
7568
8260
|
},
|
|
@@ -7573,7 +8265,7 @@ const baseSepolia = /*#__PURE__*/ defineChain({
|
|
|
7573
8265
|
},
|
|
7574
8266
|
},
|
|
7575
8267
|
testnet: true,
|
|
7576
|
-
sourceId: sourceId$
|
|
8268
|
+
sourceId: sourceId$G,
|
|
7577
8269
|
});
|
|
7578
8270
|
|
|
7579
8271
|
defineChain({
|
|
@@ -7594,7 +8286,7 @@ defineChain({
|
|
|
7594
8286
|
},
|
|
7595
8287
|
});
|
|
7596
8288
|
|
|
7597
|
-
const sourceId$
|
|
8289
|
+
const sourceId$F = 1; // mainnet
|
|
7598
8290
|
/*#__PURE__*/ defineChain({
|
|
7599
8291
|
...chainConfig$1,
|
|
7600
8292
|
id: 81457,
|
|
@@ -7621,10 +8313,10 @@ const sourceId$E = 1; // mainnet
|
|
|
7621
8313
|
blockCreated: 212929,
|
|
7622
8314
|
},
|
|
7623
8315
|
},
|
|
7624
|
-
sourceId: sourceId$
|
|
8316
|
+
sourceId: sourceId$F,
|
|
7625
8317
|
});
|
|
7626
8318
|
|
|
7627
|
-
const sourceId$
|
|
8319
|
+
const sourceId$E = 1; // mainnet
|
|
7628
8320
|
defineChain({
|
|
7629
8321
|
...chainConfig$1,
|
|
7630
8322
|
id: 60808,
|
|
@@ -7653,22 +8345,22 @@ defineChain({
|
|
|
7653
8345
|
blockCreated: 23131,
|
|
7654
8346
|
},
|
|
7655
8347
|
l2OutputOracle: {
|
|
7656
|
-
[sourceId$
|
|
8348
|
+
[sourceId$E]: {
|
|
7657
8349
|
address: '0xdDa53E23f8a32640b04D7256e651C1db98dB11C1',
|
|
7658
8350
|
blockCreated: 4462615,
|
|
7659
8351
|
},
|
|
7660
8352
|
},
|
|
7661
8353
|
portal: {
|
|
7662
|
-
[sourceId$
|
|
8354
|
+
[sourceId$E]: {
|
|
7663
8355
|
address: '0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E',
|
|
7664
8356
|
blockCreated: 4462615,
|
|
7665
8357
|
},
|
|
7666
8358
|
},
|
|
7667
8359
|
},
|
|
7668
|
-
sourceId: sourceId$
|
|
8360
|
+
sourceId: sourceId$E,
|
|
7669
8361
|
});
|
|
7670
8362
|
|
|
7671
|
-
const sourceId$
|
|
8363
|
+
const sourceId$D = 11_155_111; // sepolia
|
|
7672
8364
|
defineChain({
|
|
7673
8365
|
...chainConfig$1,
|
|
7674
8366
|
id: 808813,
|
|
@@ -7697,20 +8389,20 @@ defineChain({
|
|
|
7697
8389
|
blockCreated: 35677,
|
|
7698
8390
|
},
|
|
7699
8391
|
l2OutputOracle: {
|
|
7700
|
-
[sourceId$
|
|
8392
|
+
[sourceId$D]: {
|
|
7701
8393
|
address: '0x14D0069452b4AE2b250B395b8adAb771E4267d2f',
|
|
7702
8394
|
blockCreated: 4462615,
|
|
7703
8395
|
},
|
|
7704
8396
|
},
|
|
7705
8397
|
portal: {
|
|
7706
|
-
[sourceId$
|
|
8398
|
+
[sourceId$D]: {
|
|
7707
8399
|
address: '0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4',
|
|
7708
8400
|
blockCreated: 4462615,
|
|
7709
8401
|
},
|
|
7710
8402
|
},
|
|
7711
8403
|
},
|
|
7712
8404
|
testnet: true,
|
|
7713
|
-
sourceId: sourceId$
|
|
8405
|
+
sourceId: sourceId$D,
|
|
7714
8406
|
});
|
|
7715
8407
|
|
|
7716
8408
|
/**
|
|
@@ -7969,7 +8661,7 @@ const chainConfig = {
|
|
|
7969
8661
|
fees,
|
|
7970
8662
|
};
|
|
7971
8663
|
|
|
7972
|
-
const sourceId$
|
|
8664
|
+
const sourceId$C = 17000; // holsky
|
|
7973
8665
|
// source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json
|
|
7974
8666
|
/*#__PURE__*/ defineChain({
|
|
7975
8667
|
...chainConfig,
|
|
@@ -7999,25 +8691,25 @@ const sourceId$B = 17000; // holsky
|
|
|
7999
8691
|
blockCreated: 14569001,
|
|
8000
8692
|
},
|
|
8001
8693
|
portal: {
|
|
8002
|
-
[sourceId$
|
|
8694
|
+
[sourceId$C]: {
|
|
8003
8695
|
address: '0x82527353927d8D069b3B452904c942dA149BA381',
|
|
8004
8696
|
blockCreated: 2411324,
|
|
8005
8697
|
},
|
|
8006
8698
|
},
|
|
8007
8699
|
disputeGameFactory: {
|
|
8008
|
-
[sourceId$
|
|
8700
|
+
[sourceId$C]: {
|
|
8009
8701
|
address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
|
|
8010
8702
|
blockCreated: 2411324,
|
|
8011
8703
|
},
|
|
8012
8704
|
},
|
|
8013
8705
|
l2OutputOracle: {
|
|
8014
|
-
[sourceId$
|
|
8706
|
+
[sourceId$C]: {
|
|
8015
8707
|
address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
|
|
8016
8708
|
blockCreated: 2411324,
|
|
8017
8709
|
},
|
|
8018
8710
|
},
|
|
8019
8711
|
l1StandardBridge: {
|
|
8020
|
-
[sourceId$
|
|
8712
|
+
[sourceId$C]: {
|
|
8021
8713
|
address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
|
|
8022
8714
|
blockCreated: 2411324,
|
|
8023
8715
|
},
|
|
@@ -8140,7 +8832,7 @@ defineChain({
|
|
|
8140
8832
|
testnet: true,
|
|
8141
8833
|
});
|
|
8142
8834
|
|
|
8143
|
-
const sourceId$
|
|
8835
|
+
const sourceId$B = 1; // mainnet
|
|
8144
8836
|
/*#__PURE__*/ defineChain({
|
|
8145
8837
|
id: 478,
|
|
8146
8838
|
name: 'Form Network',
|
|
@@ -8164,27 +8856,27 @@ const sourceId$A = 1; // mainnet
|
|
|
8164
8856
|
contracts: {
|
|
8165
8857
|
...chainConfig$1.contracts,
|
|
8166
8858
|
addressManager: {
|
|
8167
|
-
[sourceId$
|
|
8859
|
+
[sourceId$B]: {
|
|
8168
8860
|
address: '0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B',
|
|
8169
8861
|
},
|
|
8170
8862
|
},
|
|
8171
8863
|
l1CrossDomainMessenger: {
|
|
8172
|
-
[sourceId$
|
|
8864
|
+
[sourceId$B]: {
|
|
8173
8865
|
address: '0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c',
|
|
8174
8866
|
},
|
|
8175
8867
|
},
|
|
8176
8868
|
l2OutputOracle: {
|
|
8177
|
-
[sourceId$
|
|
8869
|
+
[sourceId$B]: {
|
|
8178
8870
|
address: '0x4ccAAF69F41c5810cA875183648B577CaCf1F67E',
|
|
8179
8871
|
},
|
|
8180
8872
|
},
|
|
8181
8873
|
portal: {
|
|
8182
|
-
[sourceId$
|
|
8874
|
+
[sourceId$B]: {
|
|
8183
8875
|
address: '0x4E259Ee5F4136408908160dD32295A5031Fa426F',
|
|
8184
8876
|
},
|
|
8185
8877
|
},
|
|
8186
8878
|
l1StandardBridge: {
|
|
8187
|
-
[sourceId$
|
|
8879
|
+
[sourceId$B]: {
|
|
8188
8880
|
address: '0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba',
|
|
8189
8881
|
},
|
|
8190
8882
|
},
|
|
@@ -8192,10 +8884,10 @@ const sourceId$A = 1; // mainnet
|
|
|
8192
8884
|
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
|
8193
8885
|
},
|
|
8194
8886
|
},
|
|
8195
|
-
sourceId: sourceId$
|
|
8887
|
+
sourceId: sourceId$B,
|
|
8196
8888
|
});
|
|
8197
8889
|
|
|
8198
|
-
const sourceId$
|
|
8890
|
+
const sourceId$A = 11_155_111; // sepolia
|
|
8199
8891
|
/*#__PURE__*/ defineChain({
|
|
8200
8892
|
id: 132_902,
|
|
8201
8893
|
name: 'Form Testnet',
|
|
@@ -8219,27 +8911,27 @@ const sourceId$z = 11_155_111; // sepolia
|
|
|
8219
8911
|
contracts: {
|
|
8220
8912
|
...chainConfig$1.contracts,
|
|
8221
8913
|
addressManager: {
|
|
8222
|
-
[sourceId$
|
|
8914
|
+
[sourceId$A]: {
|
|
8223
8915
|
address: '0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373',
|
|
8224
8916
|
},
|
|
8225
8917
|
},
|
|
8226
8918
|
l1CrossDomainMessenger: {
|
|
8227
|
-
[sourceId$
|
|
8919
|
+
[sourceId$A]: {
|
|
8228
8920
|
address: '0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa',
|
|
8229
8921
|
},
|
|
8230
8922
|
},
|
|
8231
8923
|
l2OutputOracle: {
|
|
8232
|
-
[sourceId$
|
|
8924
|
+
[sourceId$A]: {
|
|
8233
8925
|
address: '0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2',
|
|
8234
8926
|
},
|
|
8235
8927
|
},
|
|
8236
8928
|
portal: {
|
|
8237
|
-
[sourceId$
|
|
8929
|
+
[sourceId$A]: {
|
|
8238
8930
|
address: '0x60377e3cE15dF4CCA24c4beF076b60314240b032',
|
|
8239
8931
|
},
|
|
8240
8932
|
},
|
|
8241
8933
|
l1StandardBridge: {
|
|
8242
|
-
[sourceId$
|
|
8934
|
+
[sourceId$A]: {
|
|
8243
8935
|
address: '0xD4531f633942b2725896F47cD2aFd260b44Ab1F7',
|
|
8244
8936
|
},
|
|
8245
8937
|
},
|
|
@@ -8248,10 +8940,10 @@ const sourceId$z = 11_155_111; // sepolia
|
|
|
8248
8940
|
},
|
|
8249
8941
|
},
|
|
8250
8942
|
testnet: true,
|
|
8251
|
-
sourceId: sourceId$
|
|
8943
|
+
sourceId: sourceId$A,
|
|
8252
8944
|
});
|
|
8253
8945
|
|
|
8254
|
-
const sourceId$
|
|
8946
|
+
const sourceId$z = 1; // mainnet
|
|
8255
8947
|
/*#__PURE__*/ defineChain({
|
|
8256
8948
|
...chainConfig$1,
|
|
8257
8949
|
id: 252,
|
|
@@ -8272,7 +8964,7 @@ const sourceId$y = 1; // mainnet
|
|
|
8272
8964
|
contracts: {
|
|
8273
8965
|
...chainConfig$1.contracts,
|
|
8274
8966
|
l2OutputOracle: {
|
|
8275
|
-
[sourceId$
|
|
8967
|
+
[sourceId$z]: {
|
|
8276
8968
|
address: '0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4',
|
|
8277
8969
|
},
|
|
8278
8970
|
},
|
|
@@ -8280,22 +8972,22 @@ const sourceId$y = 1; // mainnet
|
|
|
8280
8972
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8281
8973
|
},
|
|
8282
8974
|
portal: {
|
|
8283
|
-
[sourceId$
|
|
8975
|
+
[sourceId$z]: {
|
|
8284
8976
|
address: '0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D',
|
|
8285
8977
|
blockCreated: 19135323,
|
|
8286
8978
|
},
|
|
8287
8979
|
},
|
|
8288
8980
|
l1StandardBridge: {
|
|
8289
|
-
[sourceId$
|
|
8981
|
+
[sourceId$z]: {
|
|
8290
8982
|
address: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
|
|
8291
8983
|
blockCreated: 19135323,
|
|
8292
8984
|
},
|
|
8293
8985
|
},
|
|
8294
8986
|
},
|
|
8295
|
-
sourceId: sourceId$
|
|
8987
|
+
sourceId: sourceId$z,
|
|
8296
8988
|
});
|
|
8297
8989
|
|
|
8298
|
-
const sourceId$
|
|
8990
|
+
const sourceId$y = 17000; // holesky
|
|
8299
8991
|
/*#__PURE__*/ defineChain({
|
|
8300
8992
|
...chainConfig$1,
|
|
8301
8993
|
id: 2522,
|
|
@@ -8316,7 +9008,7 @@ const sourceId$x = 17000; // holesky
|
|
|
8316
9008
|
contracts: {
|
|
8317
9009
|
...chainConfig$1.contracts,
|
|
8318
9010
|
l2OutputOracle: {
|
|
8319
|
-
[sourceId$
|
|
9011
|
+
[sourceId$y]: {
|
|
8320
9012
|
address: '0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32',
|
|
8321
9013
|
},
|
|
8322
9014
|
},
|
|
@@ -8324,22 +9016,22 @@ const sourceId$x = 17000; // holesky
|
|
|
8324
9016
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8325
9017
|
},
|
|
8326
9018
|
portal: {
|
|
8327
|
-
[sourceId$
|
|
9019
|
+
[sourceId$y]: {
|
|
8328
9020
|
address: '0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d',
|
|
8329
9021
|
blockCreated: 318416,
|
|
8330
9022
|
},
|
|
8331
9023
|
},
|
|
8332
9024
|
l1StandardBridge: {
|
|
8333
|
-
[sourceId$
|
|
9025
|
+
[sourceId$y]: {
|
|
8334
9026
|
address: '0x0BaafC217162f64930909aD9f2B27125121d6332',
|
|
8335
9027
|
blockCreated: 318416,
|
|
8336
9028
|
},
|
|
8337
9029
|
},
|
|
8338
9030
|
},
|
|
8339
|
-
sourceId: sourceId$
|
|
9031
|
+
sourceId: sourceId$y,
|
|
8340
9032
|
});
|
|
8341
9033
|
|
|
8342
|
-
const sourceId$
|
|
9034
|
+
const sourceId$x = 1; // mainnet
|
|
8343
9035
|
/*#__PURE__*/ defineChain({
|
|
8344
9036
|
...chainConfig$1,
|
|
8345
9037
|
id: 33979,
|
|
@@ -8359,10 +9051,10 @@ const sourceId$w = 1; // mainnet
|
|
|
8359
9051
|
contracts: {
|
|
8360
9052
|
...chainConfig$1.contracts,
|
|
8361
9053
|
},
|
|
8362
|
-
sourceId: sourceId$
|
|
9054
|
+
sourceId: sourceId$x,
|
|
8363
9055
|
});
|
|
8364
9056
|
|
|
8365
|
-
const sourceId$
|
|
9057
|
+
const sourceId$w = 11_155_111; // sepolia
|
|
8366
9058
|
defineChain({
|
|
8367
9059
|
...chainConfig$1,
|
|
8368
9060
|
id: 3397901,
|
|
@@ -8388,16 +9080,16 @@ defineChain({
|
|
|
8388
9080
|
blockCreated: 1620204,
|
|
8389
9081
|
},
|
|
8390
9082
|
},
|
|
8391
|
-
sourceId: sourceId$
|
|
9083
|
+
sourceId: sourceId$w,
|
|
8392
9084
|
});
|
|
8393
9085
|
|
|
8394
|
-
const sourceId$
|
|
9086
|
+
const sourceId$v = 17000; // Holesky testnet
|
|
8395
9087
|
defineChain({
|
|
8396
9088
|
...chainConfig$1,
|
|
8397
9089
|
name: 'Garnet Testnet',
|
|
8398
9090
|
testnet: true,
|
|
8399
9091
|
id: 17069,
|
|
8400
|
-
sourceId: sourceId$
|
|
9092
|
+
sourceId: sourceId$v,
|
|
8401
9093
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
|
8402
9094
|
rpcUrls: {
|
|
8403
9095
|
default: {
|
|
@@ -8417,19 +9109,19 @@ defineChain({
|
|
|
8417
9109
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8418
9110
|
},
|
|
8419
9111
|
portal: {
|
|
8420
|
-
[sourceId$
|
|
9112
|
+
[sourceId$v]: {
|
|
8421
9113
|
address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909',
|
|
8422
9114
|
blockCreated: 1274684,
|
|
8423
9115
|
},
|
|
8424
9116
|
},
|
|
8425
9117
|
l2OutputOracle: {
|
|
8426
|
-
[sourceId$
|
|
9118
|
+
[sourceId$v]: {
|
|
8427
9119
|
address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B',
|
|
8428
9120
|
blockCreated: 1274684,
|
|
8429
9121
|
},
|
|
8430
9122
|
},
|
|
8431
9123
|
l1StandardBridge: {
|
|
8432
|
-
[sourceId$
|
|
9124
|
+
[sourceId$v]: {
|
|
8433
9125
|
address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE',
|
|
8434
9126
|
blockCreated: 1274684,
|
|
8435
9127
|
},
|
|
@@ -8437,7 +9129,7 @@ defineChain({
|
|
|
8437
9129
|
},
|
|
8438
9130
|
});
|
|
8439
9131
|
|
|
8440
|
-
const sourceId$
|
|
9132
|
+
const sourceId$u = 1; // mainnet
|
|
8441
9133
|
/*#__PURE__*/ defineChain({
|
|
8442
9134
|
...chainConfig$1,
|
|
8443
9135
|
id: 57073,
|
|
@@ -8465,26 +9157,26 @@ const sourceId$t = 1; // mainnet
|
|
|
8465
9157
|
contracts: {
|
|
8466
9158
|
...chainConfig$1.contracts,
|
|
8467
9159
|
disputeGameFactory: {
|
|
8468
|
-
[sourceId$
|
|
9160
|
+
[sourceId$u]: {
|
|
8469
9161
|
address: '0x10d7b35078d3baabb96dd45a9143b94be65b12cd',
|
|
8470
9162
|
},
|
|
8471
9163
|
},
|
|
8472
9164
|
portal: {
|
|
8473
|
-
[sourceId$
|
|
9165
|
+
[sourceId$u]: {
|
|
8474
9166
|
address: '0x5d66c1782664115999c47c9fa5cd031f495d3e4f',
|
|
8475
9167
|
},
|
|
8476
9168
|
},
|
|
8477
9169
|
l1StandardBridge: {
|
|
8478
|
-
[sourceId$
|
|
9170
|
+
[sourceId$u]: {
|
|
8479
9171
|
address: '0x88ff1e5b602916615391f55854588efcbb7663f0',
|
|
8480
9172
|
},
|
|
8481
9173
|
},
|
|
8482
9174
|
},
|
|
8483
9175
|
testnet: false,
|
|
8484
|
-
sourceId: sourceId$
|
|
9176
|
+
sourceId: sourceId$u,
|
|
8485
9177
|
});
|
|
8486
9178
|
|
|
8487
|
-
const sourceId$
|
|
9179
|
+
const sourceId$t = 11_155_111; // sepolia
|
|
8488
9180
|
/*#__PURE__*/ defineChain({
|
|
8489
9181
|
...chainConfig$1,
|
|
8490
9182
|
id: 763373,
|
|
@@ -8505,23 +9197,23 @@ const sourceId$s = 11_155_111; // sepolia
|
|
|
8505
9197
|
contracts: {
|
|
8506
9198
|
...chainConfig$1.contracts,
|
|
8507
9199
|
disputeGameFactory: {
|
|
8508
|
-
[sourceId$
|
|
9200
|
+
[sourceId$t]: {
|
|
8509
9201
|
address: '0x860e626c700af381133d9f4af31412a2d1db3d5d',
|
|
8510
9202
|
},
|
|
8511
9203
|
},
|
|
8512
9204
|
portal: {
|
|
8513
|
-
[sourceId$
|
|
9205
|
+
[sourceId$t]: {
|
|
8514
9206
|
address: '0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7',
|
|
8515
9207
|
},
|
|
8516
9208
|
},
|
|
8517
9209
|
l1StandardBridge: {
|
|
8518
|
-
[sourceId$
|
|
9210
|
+
[sourceId$t]: {
|
|
8519
9211
|
address: '0x33f60714bbd74d62b66d79213c348614de51901c',
|
|
8520
9212
|
},
|
|
8521
9213
|
},
|
|
8522
9214
|
},
|
|
8523
9215
|
testnet: true,
|
|
8524
|
-
sourceId: sourceId$
|
|
9216
|
+
sourceId: sourceId$t,
|
|
8525
9217
|
});
|
|
8526
9218
|
|
|
8527
9219
|
defineChain({
|
|
@@ -8550,7 +9242,7 @@ defineChain({
|
|
|
8550
9242
|
testnet: true,
|
|
8551
9243
|
});
|
|
8552
9244
|
|
|
8553
|
-
const sourceId$
|
|
9245
|
+
const sourceId$s = 1; // mainnet
|
|
8554
9246
|
/*#__PURE__*/ defineChain({
|
|
8555
9247
|
...chainConfig$1,
|
|
8556
9248
|
id: 1135,
|
|
@@ -8579,25 +9271,25 @@ const sourceId$r = 1; // mainnet
|
|
|
8579
9271
|
address: '0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0',
|
|
8580
9272
|
},
|
|
8581
9273
|
l2OutputOracle: {
|
|
8582
|
-
[sourceId$
|
|
9274
|
+
[sourceId$s]: {
|
|
8583
9275
|
address: '0x113cB99283AF242Da0A0C54347667edF531Aa7d6',
|
|
8584
9276
|
},
|
|
8585
9277
|
},
|
|
8586
9278
|
portal: {
|
|
8587
|
-
[sourceId$
|
|
9279
|
+
[sourceId$s]: {
|
|
8588
9280
|
address: '0x26dB93F8b8b4f7016240af62F7730979d353f9A7',
|
|
8589
9281
|
},
|
|
8590
9282
|
},
|
|
8591
9283
|
l1StandardBridge: {
|
|
8592
|
-
[sourceId$
|
|
9284
|
+
[sourceId$s]: {
|
|
8593
9285
|
address: '0x2658723Bf70c7667De6B25F99fcce13A16D25d08',
|
|
8594
9286
|
},
|
|
8595
9287
|
},
|
|
8596
9288
|
},
|
|
8597
|
-
sourceId: sourceId$
|
|
9289
|
+
sourceId: sourceId$s,
|
|
8598
9290
|
});
|
|
8599
9291
|
|
|
8600
|
-
const sourceId$
|
|
9292
|
+
const sourceId$r = 11_155_111; // sepolia
|
|
8601
9293
|
/*#__PURE__*/ defineChain({
|
|
8602
9294
|
...chainConfig$1,
|
|
8603
9295
|
id: 4202,
|
|
@@ -8619,7 +9311,7 @@ const sourceId$q = 11_155_111; // sepolia
|
|
|
8619
9311
|
contracts: {
|
|
8620
9312
|
...chainConfig$1.contracts,
|
|
8621
9313
|
l2OutputOracle: {
|
|
8622
|
-
[sourceId$
|
|
9314
|
+
[sourceId$r]: {
|
|
8623
9315
|
address: '0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348',
|
|
8624
9316
|
},
|
|
8625
9317
|
},
|
|
@@ -8627,21 +9319,21 @@ const sourceId$q = 11_155_111; // sepolia
|
|
|
8627
9319
|
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
8628
9320
|
},
|
|
8629
9321
|
portal: {
|
|
8630
|
-
[sourceId$
|
|
9322
|
+
[sourceId$r]: {
|
|
8631
9323
|
address: '0xe3d90F21490686Ec7eF37BE788E02dfC12787264',
|
|
8632
9324
|
},
|
|
8633
9325
|
},
|
|
8634
9326
|
l1StandardBridge: {
|
|
8635
|
-
[sourceId$
|
|
9327
|
+
[sourceId$r]: {
|
|
8636
9328
|
address: '0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5',
|
|
8637
9329
|
},
|
|
8638
9330
|
},
|
|
8639
9331
|
},
|
|
8640
9332
|
testnet: true,
|
|
8641
|
-
sourceId: sourceId$
|
|
9333
|
+
sourceId: sourceId$r,
|
|
8642
9334
|
});
|
|
8643
9335
|
|
|
8644
|
-
const sourceId$
|
|
9336
|
+
const sourceId$q = 1; // mainnet
|
|
8645
9337
|
/*#__PURE__*/ defineChain({
|
|
8646
9338
|
...chainConfig$1,
|
|
8647
9339
|
id: 1750,
|
|
@@ -8667,7 +9359,7 @@ const sourceId$p = 1; // mainnet
|
|
|
8667
9359
|
contracts: {
|
|
8668
9360
|
...chainConfig$1.contracts,
|
|
8669
9361
|
l2OutputOracle: {
|
|
8670
|
-
[sourceId$
|
|
9362
|
+
[sourceId$q]: {
|
|
8671
9363
|
address: '0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426',
|
|
8672
9364
|
},
|
|
8673
9365
|
},
|
|
@@ -8676,20 +9368,20 @@ const sourceId$p = 1; // mainnet
|
|
|
8676
9368
|
blockCreated: 0,
|
|
8677
9369
|
},
|
|
8678
9370
|
portal: {
|
|
8679
|
-
[sourceId$
|
|
9371
|
+
[sourceId$q]: {
|
|
8680
9372
|
address: '0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956',
|
|
8681
9373
|
},
|
|
8682
9374
|
},
|
|
8683
9375
|
l1StandardBridge: {
|
|
8684
|
-
[sourceId$
|
|
9376
|
+
[sourceId$q]: {
|
|
8685
9377
|
address: '0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3',
|
|
8686
9378
|
},
|
|
8687
9379
|
},
|
|
8688
9380
|
},
|
|
8689
|
-
sourceId: sourceId$
|
|
9381
|
+
sourceId: sourceId$q,
|
|
8690
9382
|
});
|
|
8691
9383
|
|
|
8692
|
-
const sourceId$
|
|
9384
|
+
const sourceId$p = 1; // mainnet
|
|
8693
9385
|
/*#__PURE__*/ defineChain({
|
|
8694
9386
|
...chainConfig$1,
|
|
8695
9387
|
id: 34443,
|
|
@@ -8713,25 +9405,25 @@ const sourceId$o = 1; // mainnet
|
|
|
8713
9405
|
blockCreated: 2465882,
|
|
8714
9406
|
},
|
|
8715
9407
|
l2OutputOracle: {
|
|
8716
|
-
[sourceId$
|
|
9408
|
+
[sourceId$p]: {
|
|
8717
9409
|
address: '0x4317ba146D4933D889518a3e5E11Fe7a53199b04',
|
|
8718
9410
|
},
|
|
8719
9411
|
},
|
|
8720
9412
|
portal: {
|
|
8721
|
-
[sourceId$
|
|
9413
|
+
[sourceId$p]: {
|
|
8722
9414
|
address: '0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07',
|
|
8723
9415
|
},
|
|
8724
9416
|
},
|
|
8725
9417
|
l1StandardBridge: {
|
|
8726
|
-
[sourceId$
|
|
9418
|
+
[sourceId$p]: {
|
|
8727
9419
|
address: '0x735aDBbE72226BD52e818E7181953f42E3b0FF21',
|
|
8728
9420
|
},
|
|
8729
9421
|
},
|
|
8730
9422
|
},
|
|
8731
|
-
sourceId: sourceId$
|
|
9423
|
+
sourceId: sourceId$p,
|
|
8732
9424
|
});
|
|
8733
9425
|
|
|
8734
|
-
const sourceId$
|
|
9426
|
+
const sourceId$o = 11_155_111; // sepolia
|
|
8735
9427
|
/*#__PURE__*/ defineChain({
|
|
8736
9428
|
...chainConfig$1,
|
|
8737
9429
|
id: 919,
|
|
@@ -8752,19 +9444,19 @@ const sourceId$n = 11_155_111; // sepolia
|
|
|
8752
9444
|
contracts: {
|
|
8753
9445
|
...chainConfig$1.contracts,
|
|
8754
9446
|
l2OutputOracle: {
|
|
8755
|
-
[sourceId$
|
|
9447
|
+
[sourceId$o]: {
|
|
8756
9448
|
address: '0x2634BD65ba27AB63811c74A63118ACb312701Bfa',
|
|
8757
9449
|
blockCreated: 3778393,
|
|
8758
9450
|
},
|
|
8759
9451
|
},
|
|
8760
9452
|
portal: {
|
|
8761
|
-
[sourceId$
|
|
9453
|
+
[sourceId$o]: {
|
|
8762
9454
|
address: '0x320e1580effF37E008F1C92700d1eBa47c1B23fD',
|
|
8763
9455
|
blockCreated: 3778395,
|
|
8764
9456
|
},
|
|
8765
9457
|
},
|
|
8766
9458
|
l1StandardBridge: {
|
|
8767
|
-
[sourceId$
|
|
9459
|
+
[sourceId$o]: {
|
|
8768
9460
|
address: '0xbC5C679879B2965296756CD959C3C739769995E2',
|
|
8769
9461
|
blockCreated: 3778392,
|
|
8770
9462
|
},
|
|
@@ -8775,10 +9467,10 @@ const sourceId$n = 11_155_111; // sepolia
|
|
|
8775
9467
|
},
|
|
8776
9468
|
},
|
|
8777
9469
|
testnet: true,
|
|
8778
|
-
sourceId: sourceId$
|
|
9470
|
+
sourceId: sourceId$o,
|
|
8779
9471
|
});
|
|
8780
9472
|
|
|
8781
|
-
const sourceId$
|
|
9473
|
+
const sourceId$n = 56; // bsc mainnet
|
|
8782
9474
|
/*#__PURE__*/ defineChain({
|
|
8783
9475
|
id: 204,
|
|
8784
9476
|
name: 'opBNB',
|
|
@@ -8804,25 +9496,25 @@ const sourceId$m = 56; // bsc mainnet
|
|
|
8804
9496
|
blockCreated: 512881,
|
|
8805
9497
|
},
|
|
8806
9498
|
l2OutputOracle: {
|
|
8807
|
-
[sourceId$
|
|
9499
|
+
[sourceId$n]: {
|
|
8808
9500
|
address: '0x153CAB79f4767E2ff862C94aa49573294B13D169',
|
|
8809
9501
|
},
|
|
8810
9502
|
},
|
|
8811
9503
|
portal: {
|
|
8812
|
-
[sourceId$
|
|
9504
|
+
[sourceId$n]: {
|
|
8813
9505
|
address: '0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519',
|
|
8814
9506
|
},
|
|
8815
9507
|
},
|
|
8816
9508
|
l1StandardBridge: {
|
|
8817
|
-
[sourceId$
|
|
9509
|
+
[sourceId$n]: {
|
|
8818
9510
|
address: '0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea',
|
|
8819
9511
|
},
|
|
8820
9512
|
},
|
|
8821
9513
|
},
|
|
8822
|
-
sourceId: sourceId$
|
|
9514
|
+
sourceId: sourceId$n,
|
|
8823
9515
|
});
|
|
8824
9516
|
|
|
8825
|
-
const sourceId$
|
|
9517
|
+
const sourceId$m = 97; // bsc testnet
|
|
8826
9518
|
/*#__PURE__*/ defineChain({
|
|
8827
9519
|
id: 5611,
|
|
8828
9520
|
name: 'opBNB Testnet',
|
|
@@ -8847,26 +9539,26 @@ const sourceId$l = 97; // bsc testnet
|
|
|
8847
9539
|
blockCreated: 3705108,
|
|
8848
9540
|
},
|
|
8849
9541
|
l2OutputOracle: {
|
|
8850
|
-
[sourceId$
|
|
9542
|
+
[sourceId$m]: {
|
|
8851
9543
|
address: '0xFf2394Bb843012562f4349C6632a0EcB92fC8810',
|
|
8852
9544
|
},
|
|
8853
9545
|
},
|
|
8854
9546
|
portal: {
|
|
8855
|
-
[sourceId$
|
|
9547
|
+
[sourceId$m]: {
|
|
8856
9548
|
address: '0x4386C8ABf2009aC0c263462Da568DD9d46e52a31',
|
|
8857
9549
|
},
|
|
8858
9550
|
},
|
|
8859
9551
|
l1StandardBridge: {
|
|
8860
|
-
[sourceId$
|
|
9552
|
+
[sourceId$m]: {
|
|
8861
9553
|
address: '0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840',
|
|
8862
9554
|
},
|
|
8863
9555
|
},
|
|
8864
9556
|
},
|
|
8865
9557
|
testnet: true,
|
|
8866
|
-
sourceId: sourceId$
|
|
9558
|
+
sourceId: sourceId$m,
|
|
8867
9559
|
});
|
|
8868
9560
|
|
|
8869
|
-
const sourceId$
|
|
9561
|
+
const sourceId$l = 1; // mainnet
|
|
8870
9562
|
/*#__PURE__*/ defineChain({
|
|
8871
9563
|
...chainConfig$1,
|
|
8872
9564
|
id: 10,
|
|
@@ -8887,12 +9579,12 @@ const sourceId$k = 1; // mainnet
|
|
|
8887
9579
|
contracts: {
|
|
8888
9580
|
...chainConfig$1.contracts,
|
|
8889
9581
|
disputeGameFactory: {
|
|
8890
|
-
[sourceId$
|
|
9582
|
+
[sourceId$l]: {
|
|
8891
9583
|
address: '0xe5965Ab5962eDc7477C8520243A95517CD252fA9',
|
|
8892
9584
|
},
|
|
8893
9585
|
},
|
|
8894
9586
|
l2OutputOracle: {
|
|
8895
|
-
[sourceId$
|
|
9587
|
+
[sourceId$l]: {
|
|
8896
9588
|
address: '0xdfe97868233d1aa22e815a266982f2cf17685a27',
|
|
8897
9589
|
},
|
|
8898
9590
|
},
|
|
@@ -8901,20 +9593,20 @@ const sourceId$k = 1; // mainnet
|
|
|
8901
9593
|
blockCreated: 4286263,
|
|
8902
9594
|
},
|
|
8903
9595
|
portal: {
|
|
8904
|
-
[sourceId$
|
|
9596
|
+
[sourceId$l]: {
|
|
8905
9597
|
address: '0xbEb5Fc579115071764c7423A4f12eDde41f106Ed',
|
|
8906
9598
|
},
|
|
8907
9599
|
},
|
|
8908
9600
|
l1StandardBridge: {
|
|
8909
|
-
[sourceId$
|
|
9601
|
+
[sourceId$l]: {
|
|
8910
9602
|
address: '0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1',
|
|
8911
9603
|
},
|
|
8912
9604
|
},
|
|
8913
9605
|
},
|
|
8914
|
-
sourceId: sourceId$
|
|
9606
|
+
sourceId: sourceId$l,
|
|
8915
9607
|
});
|
|
8916
9608
|
|
|
8917
|
-
const sourceId$
|
|
9609
|
+
const sourceId$k = 5; // goerli
|
|
8918
9610
|
/*#__PURE__*/ defineChain({
|
|
8919
9611
|
...chainConfig$1,
|
|
8920
9612
|
id: 420,
|
|
@@ -8935,7 +9627,7 @@ const sourceId$j = 5; // goerli
|
|
|
8935
9627
|
contracts: {
|
|
8936
9628
|
...chainConfig$1.contracts,
|
|
8937
9629
|
l2OutputOracle: {
|
|
8938
|
-
[sourceId$
|
|
9630
|
+
[sourceId$k]: {
|
|
8939
9631
|
address: '0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0',
|
|
8940
9632
|
},
|
|
8941
9633
|
},
|
|
@@ -8944,21 +9636,21 @@ const sourceId$j = 5; // goerli
|
|
|
8944
9636
|
blockCreated: 49461,
|
|
8945
9637
|
},
|
|
8946
9638
|
portal: {
|
|
8947
|
-
[sourceId$
|
|
9639
|
+
[sourceId$k]: {
|
|
8948
9640
|
address: '0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383',
|
|
8949
9641
|
},
|
|
8950
9642
|
},
|
|
8951
9643
|
l1StandardBridge: {
|
|
8952
|
-
[sourceId$
|
|
9644
|
+
[sourceId$k]: {
|
|
8953
9645
|
address: '0x636Af16bf2f682dD3109e60102b8E1A089FedAa8',
|
|
8954
9646
|
},
|
|
8955
9647
|
},
|
|
8956
9648
|
},
|
|
8957
9649
|
testnet: true,
|
|
8958
|
-
sourceId: sourceId$
|
|
9650
|
+
sourceId: sourceId$k,
|
|
8959
9651
|
});
|
|
8960
9652
|
|
|
8961
|
-
const sourceId$
|
|
9653
|
+
const sourceId$j = 11_155_111; // sepolia
|
|
8962
9654
|
/*#__PURE__*/ defineChain({
|
|
8963
9655
|
...chainConfig$1,
|
|
8964
9656
|
id: 11155420,
|
|
@@ -8979,12 +9671,12 @@ const sourceId$i = 11_155_111; // sepolia
|
|
|
8979
9671
|
contracts: {
|
|
8980
9672
|
...chainConfig$1.contracts,
|
|
8981
9673
|
disputeGameFactory: {
|
|
8982
|
-
[sourceId$
|
|
9674
|
+
[sourceId$j]: {
|
|
8983
9675
|
address: '0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1',
|
|
8984
9676
|
},
|
|
8985
9677
|
},
|
|
8986
9678
|
l2OutputOracle: {
|
|
8987
|
-
[sourceId$
|
|
9679
|
+
[sourceId$j]: {
|
|
8988
9680
|
address: '0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F',
|
|
8989
9681
|
},
|
|
8990
9682
|
},
|
|
@@ -8993,18 +9685,48 @@ const sourceId$i = 11_155_111; // sepolia
|
|
|
8993
9685
|
blockCreated: 1620204,
|
|
8994
9686
|
},
|
|
8995
9687
|
portal: {
|
|
8996
|
-
[sourceId$
|
|
9688
|
+
[sourceId$j]: {
|
|
8997
9689
|
address: '0x16Fc5058F25648194471939df75CF27A2fdC48BC',
|
|
8998
9690
|
},
|
|
8999
9691
|
},
|
|
9000
9692
|
l1StandardBridge: {
|
|
9001
|
-
[sourceId$
|
|
9693
|
+
[sourceId$j]: {
|
|
9002
9694
|
address: '0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1',
|
|
9003
9695
|
},
|
|
9004
9696
|
},
|
|
9005
9697
|
},
|
|
9006
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,
|
|
9007
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
|
+
},
|
|
9008
9730
|
});
|
|
9009
9731
|
|
|
9010
9732
|
const sourceId$h = 1; // Ethereum mainnet
|
|
@@ -9892,9 +10614,13 @@ const FlaunchAddress = {
|
|
|
9892
10614
|
[base.id]: "0xCc7A4A00072ccbeEEbd999edc812C0ce498Fb63B",
|
|
9893
10615
|
[baseSepolia.id]: "0x7D375C9133721083DF7b7e5Cb0Ed8Fc78862dfe3",
|
|
9894
10616
|
};
|
|
10617
|
+
const BidWallAddress = {
|
|
10618
|
+
[base.id]: "0x66681f10BA90496241A25e33380004f30Dfd8aa8",
|
|
10619
|
+
[baseSepolia.id]: "0xa2107050ACEf4809c88Ab744F8e667605db5ACDB",
|
|
10620
|
+
};
|
|
9895
10621
|
const FastFlaunchZapAddress = {
|
|
9896
10622
|
[base.id]: zeroAddress, // FIXME: update with real address when deployed
|
|
9897
|
-
[baseSepolia.id]: "
|
|
10623
|
+
[baseSepolia.id]: "0x251e97446a7019E5DA4860d4CF47291321C693D0",
|
|
9898
10624
|
};
|
|
9899
10625
|
const PoolManagerAddress = {
|
|
9900
10626
|
[base.id]: "0x498581fF718922c3f8e6A244956aF099B2652b2b",
|
|
@@ -9908,10 +10634,30 @@ const QuoterAddress = {
|
|
|
9908
10634
|
[base.id]: "0x0d5e0f971ed27fbff6c2837bf31316121532048d",
|
|
9909
10635
|
[baseSepolia.id]: "0x4a6513c898fe1b2d0e78d3b0e0a4a151589b1cba",
|
|
9910
10636
|
};
|
|
10637
|
+
const StateViewAddress = {
|
|
10638
|
+
[base.id]: "0xA3c0c9b65baD0b08107Aa264b0f3dB444b867A71",
|
|
10639
|
+
[baseSepolia.id]: "0x571291b572ed32ce6751a2Cb2486EbEe8DEfB9B4",
|
|
10640
|
+
};
|
|
9911
10641
|
const Permit2Address = {
|
|
9912
10642
|
[base.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
9913
10643
|
[baseSepolia.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
9914
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
|
+
};
|
|
9915
10661
|
|
|
9916
10662
|
class ReadQuoter {
|
|
9917
10663
|
constructor(chainId, address, drift = createDrift()) {
|
|
@@ -9999,8 +10745,33 @@ class ReadQuoter {
|
|
|
9999
10745
|
});
|
|
10000
10746
|
return res.amountIn;
|
|
10001
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
|
+
}
|
|
10002
10767
|
}
|
|
10003
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;
|
|
10004
10775
|
const getPoolId = (poolKey) => {
|
|
10005
10776
|
// Pack the data in the same order as Solidity struct
|
|
10006
10777
|
const packed = concat([
|
|
@@ -11186,12 +11957,14 @@ class ReadPermit2 {
|
|
|
11186
11957
|
|
|
11187
11958
|
class ReadFlaunchSDK {
|
|
11188
11959
|
constructor(chainId, drift = createDrift()) {
|
|
11189
|
-
this.TICK_SPACING =
|
|
11960
|
+
this.TICK_SPACING = TICK_SPACING;
|
|
11190
11961
|
this.chainId = chainId;
|
|
11191
11962
|
this.drift = drift;
|
|
11192
11963
|
this.readPositionManager = new ReadFlaunchPositionManager(FlaunchPositionManagerAddress[this.chainId], drift);
|
|
11193
11964
|
this.readPoolManager = new ReadPoolManager(PoolManagerAddress[this.chainId], drift);
|
|
11965
|
+
this.readStateView = new ReadStateView(StateViewAddress[this.chainId], drift);
|
|
11194
11966
|
this.readFairLaunch = new ReadFairLaunch(FairLaunchAddress[this.chainId], drift);
|
|
11967
|
+
this.readBidWall = new ReadBidWall(BidWallAddress[this.chainId], drift);
|
|
11195
11968
|
this.readFlaunch = new ReadFlaunch(FlaunchAddress[this.chainId], drift);
|
|
11196
11969
|
this.readQuoter = new ReadQuoter(this.chainId, QuoterAddress[this.chainId], drift);
|
|
11197
11970
|
this.readPermit2 = new ReadPermit2(Permit2Address[this.chainId], drift);
|
|
@@ -11245,11 +12018,11 @@ class ReadFlaunchSDK {
|
|
|
11245
12018
|
return poll();
|
|
11246
12019
|
}
|
|
11247
12020
|
positionInfo(params) {
|
|
11248
|
-
return this.
|
|
12021
|
+
return this.readStateView.positionInfo(params);
|
|
11249
12022
|
}
|
|
11250
12023
|
async currentTick(coinAddress) {
|
|
11251
12024
|
const poolId = this.poolId(coinAddress);
|
|
11252
|
-
const poolState = await this.
|
|
12025
|
+
const poolState = await this.readStateView.poolSlot0({ poolId });
|
|
11253
12026
|
return poolState.tick;
|
|
11254
12027
|
}
|
|
11255
12028
|
async coinPriceInETH(coinAddress) {
|
|
@@ -11265,6 +12038,15 @@ class ReadFlaunchSDK {
|
|
|
11265
12038
|
}
|
|
11266
12039
|
return ethPerCoin.toFixed(18);
|
|
11267
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
|
+
}
|
|
11268
12050
|
async fairLaunchInfo(coinAddress) {
|
|
11269
12051
|
const poolId = this.poolId(coinAddress);
|
|
11270
12052
|
return this.readFairLaunch.fairLaunchInfo({ poolId });
|
|
@@ -11304,7 +12086,48 @@ class ReadFlaunchSDK {
|
|
|
11304
12086
|
});
|
|
11305
12087
|
tickLower = tickUpper - this.TICK_SPACING;
|
|
11306
12088
|
}
|
|
11307
|
-
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({
|
|
11308
12131
|
poolId,
|
|
11309
12132
|
owner: FairLaunchAddress[this.chainId],
|
|
11310
12133
|
tickLower,
|
|
@@ -11322,6 +12145,24 @@ class ReadFlaunchSDK {
|
|
|
11322
12145
|
tickUpper,
|
|
11323
12146
|
};
|
|
11324
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
|
+
}
|
|
11325
12166
|
poolId(coinAddress) {
|
|
11326
12167
|
return getPoolId(orderPoolKey({
|
|
11327
12168
|
currency0: FLETHAddress[this.chainId],
|
|
@@ -11362,6 +12203,7 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
11362
12203
|
async coinBalance(coinAddress) {
|
|
11363
12204
|
const user = await this.drift.getSignerAddress();
|
|
11364
12205
|
const memecoin = new ReadMemecoin(coinAddress, this.drift);
|
|
12206
|
+
await memecoin.contract.cache.clear();
|
|
11365
12207
|
return memecoin.balanceOf(user);
|
|
11366
12208
|
}
|
|
11367
12209
|
async buyCoin(params) {
|
|
@@ -11370,6 +12212,7 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
11370
12212
|
let amountOutMin;
|
|
11371
12213
|
let amountOut;
|
|
11372
12214
|
let amountInMax;
|
|
12215
|
+
await this.readQuoter.contract.cache.clear();
|
|
11373
12216
|
if (params.swapType === "EXACT_IN") {
|
|
11374
12217
|
amountIn = params.amountIn;
|
|
11375
12218
|
if (params.amountOutMin === undefined) {
|
|
@@ -11412,12 +12255,14 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
|
|
|
11412
12255
|
}
|
|
11413
12256
|
async sellCoin(params) {
|
|
11414
12257
|
let ethOutMin;
|
|
12258
|
+
await this.readQuoter.contract.cache.clear();
|
|
11415
12259
|
if (params.ethOutMin === undefined) {
|
|
11416
12260
|
ethOutMin = getAmountWithSlippage(await this.readQuoter.getSellQuoteExactInput(params.coinAddress, params.amountIn), (params.slippagePercent / 100).toFixed(18).toString(), "EXACT_IN");
|
|
11417
12261
|
}
|
|
11418
12262
|
else {
|
|
11419
12263
|
ethOutMin = params.ethOutMin;
|
|
11420
12264
|
}
|
|
12265
|
+
await this.readPermit2.contract.cache.clear();
|
|
11421
12266
|
const { commands, inputs } = memecoinToEthWithPermit2({
|
|
11422
12267
|
chainId: this.chainId,
|
|
11423
12268
|
memecoin: params.coinAddress,
|
|
@@ -11462,5 +12307,5 @@ const FlaunchSDK = {
|
|
|
11462
12307
|
ReadWriteFlaunchSDK,
|
|
11463
12308
|
};
|
|
11464
12309
|
|
|
11465
|
-
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 };
|
|
11466
12311
|
//# sourceMappingURL=index.esm.js.map
|