@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.
Files changed (50) hide show
  1. package/README.md +2 -2
  2. package/dist/abi/BidWall.d.ts +493 -0
  3. package/dist/abi/BidWall.d.ts.map +1 -0
  4. package/dist/abi/FastFlaunchZap.d.ts +27 -31
  5. package/dist/abi/FastFlaunchZap.d.ts.map +1 -1
  6. package/dist/abi/StateView.d.ts +278 -0
  7. package/dist/abi/StateView.d.ts.map +1 -0
  8. package/dist/abi/index.cjs +60 -27
  9. package/dist/abi/index.cjs.map +1 -1
  10. package/dist/abi/index.js +60 -27
  11. package/dist/abi/index.js.map +1 -1
  12. package/dist/addresses/index.cjs +195 -138
  13. package/dist/addresses/index.cjs.map +1 -1
  14. package/dist/addresses/index.js +193 -139
  15. package/dist/addresses/index.js.map +1 -1
  16. package/dist/addresses.d.ts +6 -1
  17. package/dist/addresses.d.ts.map +1 -1
  18. package/dist/clients/BidWallClient.d.ts +25 -0
  19. package/dist/clients/BidWallClient.d.ts.map +1 -0
  20. package/dist/clients/FairLaunchClient.d.ts +1 -1
  21. package/dist/clients/FairLaunchClient.d.ts.map +1 -1
  22. package/dist/clients/FastFlaunchClient.d.ts +3 -5
  23. package/dist/clients/FastFlaunchClient.d.ts.map +1 -1
  24. package/dist/clients/FlaunchClient.d.ts +1 -1
  25. package/dist/clients/FlaunchClient.d.ts.map +1 -1
  26. package/dist/clients/FlaunchPositionManagerClient.d.ts +2 -2
  27. package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -1
  28. package/dist/clients/MemecoinClient.d.ts +1 -1
  29. package/dist/clients/MemecoinClient.d.ts.map +1 -1
  30. package/dist/clients/Permit2Client.d.ts +1 -1
  31. package/dist/clients/Permit2Client.d.ts.map +1 -1
  32. package/dist/clients/PoolManagerClient.d.ts +1 -1
  33. package/dist/clients/PoolManagerClient.d.ts.map +1 -1
  34. package/dist/clients/QuoterClient.d.ts +2 -1
  35. package/dist/clients/QuoterClient.d.ts.map +1 -1
  36. package/dist/clients/StateViewClient.d.ts +33 -0
  37. package/dist/clients/StateViewClient.d.ts.map +1 -0
  38. package/dist/index.cjs.js +1074 -219
  39. package/dist/index.cjs.js.map +1 -1
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.esm.js +1066 -221
  43. package/dist/index.esm.js.map +1 -1
  44. package/dist/index.umd.js +1 -1
  45. package/dist/index.umd.js.map +1 -1
  46. package/dist/sdk/FlaunchSDK.d.ts +31 -9
  47. package/dist/sdk/FlaunchSDK.d.ts.map +1 -1
  48. package/dist/utils/univ4.d.ts +5 -0
  49. package/dist/utils/univ4.d.ts.map +1 -1
  50. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -2745,6 +2745,237 @@ class ReadPoolManager {
2745
2745
  }
2746
2746
  }
2747
2747
 
2748
+ const StateViewAbi = [
2749
+ {
2750
+ inputs: [
2751
+ {
2752
+ internalType: "contract IPoolManager",
2753
+ name: "_poolManager",
2754
+ type: "address",
2755
+ },
2756
+ ],
2757
+ stateMutability: "nonpayable",
2758
+ type: "constructor",
2759
+ },
2760
+ {
2761
+ inputs: [{ internalType: "PoolId", name: "poolId", type: "bytes32" }],
2762
+ name: "getFeeGrowthGlobals",
2763
+ outputs: [
2764
+ { internalType: "uint256", name: "feeGrowthGlobal0", type: "uint256" },
2765
+ { internalType: "uint256", name: "feeGrowthGlobal1", type: "uint256" },
2766
+ ],
2767
+ stateMutability: "view",
2768
+ type: "function",
2769
+ },
2770
+ {
2771
+ inputs: [
2772
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2773
+ { internalType: "int24", name: "tickLower", type: "int24" },
2774
+ { internalType: "int24", name: "tickUpper", type: "int24" },
2775
+ ],
2776
+ name: "getFeeGrowthInside",
2777
+ outputs: [
2778
+ {
2779
+ internalType: "uint256",
2780
+ name: "feeGrowthInside0X128",
2781
+ type: "uint256",
2782
+ },
2783
+ {
2784
+ internalType: "uint256",
2785
+ name: "feeGrowthInside1X128",
2786
+ type: "uint256",
2787
+ },
2788
+ ],
2789
+ stateMutability: "view",
2790
+ type: "function",
2791
+ },
2792
+ {
2793
+ inputs: [{ internalType: "PoolId", name: "poolId", type: "bytes32" }],
2794
+ name: "getLiquidity",
2795
+ outputs: [{ internalType: "uint128", name: "liquidity", type: "uint128" }],
2796
+ stateMutability: "view",
2797
+ type: "function",
2798
+ },
2799
+ {
2800
+ inputs: [
2801
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2802
+ { internalType: "bytes32", name: "positionId", type: "bytes32" },
2803
+ ],
2804
+ name: "getPositionInfo",
2805
+ outputs: [
2806
+ { internalType: "uint128", name: "liquidity", type: "uint128" },
2807
+ {
2808
+ internalType: "uint256",
2809
+ name: "feeGrowthInside0LastX128",
2810
+ type: "uint256",
2811
+ },
2812
+ {
2813
+ internalType: "uint256",
2814
+ name: "feeGrowthInside1LastX128",
2815
+ type: "uint256",
2816
+ },
2817
+ ],
2818
+ stateMutability: "view",
2819
+ type: "function",
2820
+ },
2821
+ {
2822
+ inputs: [
2823
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2824
+ { internalType: "address", name: "owner", type: "address" },
2825
+ { internalType: "int24", name: "tickLower", type: "int24" },
2826
+ { internalType: "int24", name: "tickUpper", type: "int24" },
2827
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
2828
+ ],
2829
+ name: "getPositionInfo",
2830
+ outputs: [
2831
+ { internalType: "uint128", name: "liquidity", type: "uint128" },
2832
+ {
2833
+ internalType: "uint256",
2834
+ name: "feeGrowthInside0LastX128",
2835
+ type: "uint256",
2836
+ },
2837
+ {
2838
+ internalType: "uint256",
2839
+ name: "feeGrowthInside1LastX128",
2840
+ type: "uint256",
2841
+ },
2842
+ ],
2843
+ stateMutability: "view",
2844
+ type: "function",
2845
+ },
2846
+ {
2847
+ inputs: [
2848
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2849
+ { internalType: "bytes32", name: "positionId", type: "bytes32" },
2850
+ ],
2851
+ name: "getPositionLiquidity",
2852
+ outputs: [{ internalType: "uint128", name: "liquidity", type: "uint128" }],
2853
+ stateMutability: "view",
2854
+ type: "function",
2855
+ },
2856
+ {
2857
+ inputs: [{ internalType: "PoolId", name: "poolId", type: "bytes32" }],
2858
+ name: "getSlot0",
2859
+ outputs: [
2860
+ { internalType: "uint160", name: "sqrtPriceX96", type: "uint160" },
2861
+ { internalType: "int24", name: "tick", type: "int24" },
2862
+ { internalType: "uint24", name: "protocolFee", type: "uint24" },
2863
+ { internalType: "uint24", name: "lpFee", type: "uint24" },
2864
+ ],
2865
+ stateMutability: "view",
2866
+ type: "function",
2867
+ },
2868
+ {
2869
+ inputs: [
2870
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2871
+ { internalType: "int16", name: "tick", type: "int16" },
2872
+ ],
2873
+ name: "getTickBitmap",
2874
+ outputs: [{ internalType: "uint256", name: "tickBitmap", type: "uint256" }],
2875
+ stateMutability: "view",
2876
+ type: "function",
2877
+ },
2878
+ {
2879
+ inputs: [
2880
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2881
+ { internalType: "int24", name: "tick", type: "int24" },
2882
+ ],
2883
+ name: "getTickFeeGrowthOutside",
2884
+ outputs: [
2885
+ {
2886
+ internalType: "uint256",
2887
+ name: "feeGrowthOutside0X128",
2888
+ type: "uint256",
2889
+ },
2890
+ {
2891
+ internalType: "uint256",
2892
+ name: "feeGrowthOutside1X128",
2893
+ type: "uint256",
2894
+ },
2895
+ ],
2896
+ stateMutability: "view",
2897
+ type: "function",
2898
+ },
2899
+ {
2900
+ inputs: [
2901
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2902
+ { internalType: "int24", name: "tick", type: "int24" },
2903
+ ],
2904
+ name: "getTickInfo",
2905
+ outputs: [
2906
+ { internalType: "uint128", name: "liquidityGross", type: "uint128" },
2907
+ { internalType: "int128", name: "liquidityNet", type: "int128" },
2908
+ {
2909
+ internalType: "uint256",
2910
+ name: "feeGrowthOutside0X128",
2911
+ type: "uint256",
2912
+ },
2913
+ {
2914
+ internalType: "uint256",
2915
+ name: "feeGrowthOutside1X128",
2916
+ type: "uint256",
2917
+ },
2918
+ ],
2919
+ stateMutability: "view",
2920
+ type: "function",
2921
+ },
2922
+ {
2923
+ inputs: [
2924
+ { internalType: "PoolId", name: "poolId", type: "bytes32" },
2925
+ { internalType: "int24", name: "tick", type: "int24" },
2926
+ ],
2927
+ name: "getTickLiquidity",
2928
+ outputs: [
2929
+ { internalType: "uint128", name: "liquidityGross", type: "uint128" },
2930
+ { internalType: "int128", name: "liquidityNet", type: "int128" },
2931
+ ],
2932
+ stateMutability: "view",
2933
+ type: "function",
2934
+ },
2935
+ {
2936
+ inputs: [],
2937
+ name: "poolManager",
2938
+ outputs: [
2939
+ { internalType: "contract IPoolManager", name: "", type: "address" },
2940
+ ],
2941
+ stateMutability: "view",
2942
+ type: "function",
2943
+ },
2944
+ ];
2945
+
2946
+ class ReadStateView {
2947
+ constructor(address, drift$1 = drift.createDrift()) {
2948
+ if (!address) {
2949
+ throw new Error("Address is required");
2950
+ }
2951
+ this.contract = drift$1.contract({
2952
+ abi: StateViewAbi,
2953
+ address,
2954
+ });
2955
+ }
2956
+ poolSlot0({ poolId }) {
2957
+ return this.contract.read("getSlot0", {
2958
+ poolId,
2959
+ });
2960
+ }
2961
+ positionInfo({ poolId, owner, tickLower, tickUpper, salt, }) {
2962
+ const saltBytes32 = viem.pad(viem.stringToHex(salt), { size: 32, dir: "right" });
2963
+ return this.contract.read("getPositionInfo", {
2964
+ poolId,
2965
+ owner,
2966
+ tickLower,
2967
+ tickUpper,
2968
+ salt: saltBytes32,
2969
+ });
2970
+ }
2971
+ getTickLiquidity({ poolId, tick }) {
2972
+ return this.contract.read("getTickLiquidity", {
2973
+ poolId,
2974
+ tick,
2975
+ });
2976
+ }
2977
+ }
2978
+
2748
2979
  const FairLaunchAbi = [
2749
2980
  {
2750
2981
  inputs: [
@@ -2913,7 +3144,372 @@ const FairLaunchAbi = [
2913
3144
  type: "tuple",
2914
3145
  },
2915
3146
  ],
2916
- stateMutability: "view",
3147
+ stateMutability: "view",
3148
+ type: "function",
3149
+ },
3150
+ {
3151
+ inputs: [
3152
+ {
3153
+ components: [
3154
+ { internalType: "Currency", name: "currency0", type: "address" },
3155
+ { internalType: "Currency", name: "currency1", type: "address" },
3156
+ { internalType: "uint24", name: "fee", type: "uint24" },
3157
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
3158
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
3159
+ ],
3160
+ internalType: "struct PoolKey",
3161
+ name: "_poolKey",
3162
+ type: "tuple",
3163
+ },
3164
+ { internalType: "int256", name: "_amountSpecified", type: "int256" },
3165
+ { internalType: "bool", name: "_nativeIsZero", type: "bool" },
3166
+ ],
3167
+ name: "fillFromPosition",
3168
+ outputs: [
3169
+ {
3170
+ internalType: "BeforeSwapDelta",
3171
+ name: "beforeSwapDelta_",
3172
+ type: "int256",
3173
+ },
3174
+ { internalType: "BalanceDelta", name: "balanceDelta_", type: "int256" },
3175
+ {
3176
+ components: [
3177
+ { internalType: "uint256", name: "startsAt", type: "uint256" },
3178
+ { internalType: "uint256", name: "endsAt", type: "uint256" },
3179
+ { internalType: "int24", name: "initialTick", type: "int24" },
3180
+ { internalType: "uint256", name: "revenue", type: "uint256" },
3181
+ { internalType: "uint256", name: "supply", type: "uint256" },
3182
+ { internalType: "bool", name: "closed", type: "bool" },
3183
+ ],
3184
+ internalType: "struct FairLaunch.FairLaunchInfo",
3185
+ name: "fairLaunchInfo_",
3186
+ type: "tuple",
3187
+ },
3188
+ ],
3189
+ stateMutability: "nonpayable",
3190
+ type: "function",
3191
+ },
3192
+ {
3193
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
3194
+ name: "inFairLaunchWindow",
3195
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
3196
+ stateMutability: "view",
3197
+ type: "function",
3198
+ },
3199
+ {
3200
+ inputs: [
3201
+ { internalType: "PoolId", name: "_poolId", type: "bytes32" },
3202
+ { internalType: "int256", name: "_revenue", type: "int256" },
3203
+ ],
3204
+ name: "modifyRevenue",
3205
+ outputs: [],
3206
+ stateMutability: "nonpayable",
3207
+ type: "function",
3208
+ },
3209
+ {
3210
+ inputs: [],
3211
+ name: "poolManager",
3212
+ outputs: [
3213
+ { internalType: "contract IPoolManager", name: "", type: "address" },
3214
+ ],
3215
+ stateMutability: "view",
3216
+ type: "function",
3217
+ },
3218
+ {
3219
+ inputs: [],
3220
+ name: "positionManager",
3221
+ outputs: [{ internalType: "address", name: "", type: "address" }],
3222
+ stateMutability: "view",
3223
+ type: "function",
3224
+ },
3225
+ ];
3226
+
3227
+ class ReadFairLaunch {
3228
+ constructor(address, drift$1 = drift.createDrift()) {
3229
+ if (!address) {
3230
+ throw new Error("Address is required");
3231
+ }
3232
+ this.contract = drift$1.contract({
3233
+ abi: FairLaunchAbi,
3234
+ address,
3235
+ });
3236
+ }
3237
+ fairLaunchInfo({ poolId }) {
3238
+ return this.contract.read("fairLaunchInfo", {
3239
+ _poolId: poolId,
3240
+ });
3241
+ }
3242
+ async isFairLaunchActive({ poolId }) {
3243
+ const { closed, endsAt } = await this.fairLaunchInfo({ poolId });
3244
+ if (closed) {
3245
+ return false;
3246
+ }
3247
+ if (new Date().getTime() / 1000 > endsAt) {
3248
+ return false;
3249
+ }
3250
+ return true;
3251
+ }
3252
+ }
3253
+
3254
+ const BidwallAbi = [
3255
+ {
3256
+ inputs: [
3257
+ { internalType: "address", name: "_nativeToken", type: "address" },
3258
+ { internalType: "address", name: "_poolManager", type: "address" },
3259
+ { internalType: "address", name: "_protocolOwner", type: "address" },
3260
+ ],
3261
+ stateMutability: "nonpayable",
3262
+ type: "constructor",
3263
+ },
3264
+ { inputs: [], name: "AlreadyInitialized", type: "error" },
3265
+ { inputs: [], name: "CallerIsNotCreator", type: "error" },
3266
+ { inputs: [], name: "NewOwnerIsZeroAddress", type: "error" },
3267
+ { inputs: [], name: "NoHandoverRequest", type: "error" },
3268
+ { inputs: [], name: "NotPositionManager", type: "error" },
3269
+ { inputs: [], name: "Unauthorized", type: "error" },
3270
+ {
3271
+ anonymous: false,
3272
+ inputs: [
3273
+ {
3274
+ indexed: true,
3275
+ internalType: "PoolId",
3276
+ name: "_poolId",
3277
+ type: "bytes32",
3278
+ },
3279
+ {
3280
+ indexed: false,
3281
+ internalType: "address",
3282
+ name: "_recipient",
3283
+ type: "address",
3284
+ },
3285
+ {
3286
+ indexed: false,
3287
+ internalType: "uint256",
3288
+ name: "_eth",
3289
+ type: "uint256",
3290
+ },
3291
+ ],
3292
+ name: "BidWallClosed",
3293
+ type: "event",
3294
+ },
3295
+ {
3296
+ anonymous: false,
3297
+ inputs: [
3298
+ {
3299
+ indexed: true,
3300
+ internalType: "PoolId",
3301
+ name: "_poolId",
3302
+ type: "bytes32",
3303
+ },
3304
+ {
3305
+ indexed: false,
3306
+ internalType: "uint256",
3307
+ name: "_added",
3308
+ type: "uint256",
3309
+ },
3310
+ {
3311
+ indexed: false,
3312
+ internalType: "uint256",
3313
+ name: "_pending",
3314
+ type: "uint256",
3315
+ },
3316
+ ],
3317
+ name: "BidWallDeposit",
3318
+ type: "event",
3319
+ },
3320
+ {
3321
+ anonymous: false,
3322
+ inputs: [
3323
+ {
3324
+ indexed: true,
3325
+ internalType: "PoolId",
3326
+ name: "_poolId",
3327
+ type: "bytes32",
3328
+ },
3329
+ { indexed: false, internalType: "bool", name: "_disabled", type: "bool" },
3330
+ ],
3331
+ name: "BidWallDisabledStateUpdated",
3332
+ type: "event",
3333
+ },
3334
+ {
3335
+ anonymous: false,
3336
+ inputs: [
3337
+ {
3338
+ indexed: true,
3339
+ internalType: "PoolId",
3340
+ name: "_poolId",
3341
+ type: "bytes32",
3342
+ },
3343
+ {
3344
+ indexed: false,
3345
+ internalType: "uint256",
3346
+ name: "_eth",
3347
+ type: "uint256",
3348
+ },
3349
+ {
3350
+ indexed: false,
3351
+ internalType: "int24",
3352
+ name: "_tickLower",
3353
+ type: "int24",
3354
+ },
3355
+ {
3356
+ indexed: false,
3357
+ internalType: "int24",
3358
+ name: "_tickUpper",
3359
+ type: "int24",
3360
+ },
3361
+ ],
3362
+ name: "BidWallInitialized",
3363
+ type: "event",
3364
+ },
3365
+ {
3366
+ anonymous: false,
3367
+ inputs: [
3368
+ {
3369
+ indexed: true,
3370
+ internalType: "PoolId",
3371
+ name: "_poolId",
3372
+ type: "bytes32",
3373
+ },
3374
+ {
3375
+ indexed: false,
3376
+ internalType: "uint256",
3377
+ name: "_eth",
3378
+ type: "uint256",
3379
+ },
3380
+ {
3381
+ indexed: false,
3382
+ internalType: "int24",
3383
+ name: "_tickLower",
3384
+ type: "int24",
3385
+ },
3386
+ {
3387
+ indexed: false,
3388
+ internalType: "int24",
3389
+ name: "_tickUpper",
3390
+ type: "int24",
3391
+ },
3392
+ ],
3393
+ name: "BidWallRepositioned",
3394
+ type: "event",
3395
+ },
3396
+ {
3397
+ anonymous: false,
3398
+ inputs: [
3399
+ {
3400
+ indexed: true,
3401
+ internalType: "PoolId",
3402
+ name: "_poolId",
3403
+ type: "bytes32",
3404
+ },
3405
+ {
3406
+ indexed: false,
3407
+ internalType: "address",
3408
+ name: "_recipient",
3409
+ type: "address",
3410
+ },
3411
+ {
3412
+ indexed: false,
3413
+ internalType: "uint256",
3414
+ name: "_tokens",
3415
+ type: "uint256",
3416
+ },
3417
+ ],
3418
+ name: "BidWallRewardsTransferred",
3419
+ type: "event",
3420
+ },
3421
+ {
3422
+ anonymous: false,
3423
+ inputs: [
3424
+ {
3425
+ indexed: false,
3426
+ internalType: "uint256",
3427
+ name: "_newSwapFeeThreshold",
3428
+ type: "uint256",
3429
+ },
3430
+ ],
3431
+ name: "FixedSwapFeeThresholdUpdated",
3432
+ type: "event",
3433
+ },
3434
+ {
3435
+ anonymous: false,
3436
+ inputs: [
3437
+ {
3438
+ indexed: true,
3439
+ internalType: "address",
3440
+ name: "pendingOwner",
3441
+ type: "address",
3442
+ },
3443
+ ],
3444
+ name: "OwnershipHandoverCanceled",
3445
+ type: "event",
3446
+ },
3447
+ {
3448
+ anonymous: false,
3449
+ inputs: [
3450
+ {
3451
+ indexed: true,
3452
+ internalType: "address",
3453
+ name: "pendingOwner",
3454
+ type: "address",
3455
+ },
3456
+ ],
3457
+ name: "OwnershipHandoverRequested",
3458
+ type: "event",
3459
+ },
3460
+ {
3461
+ anonymous: false,
3462
+ inputs: [
3463
+ {
3464
+ indexed: true,
3465
+ internalType: "address",
3466
+ name: "oldOwner",
3467
+ type: "address",
3468
+ },
3469
+ {
3470
+ indexed: true,
3471
+ internalType: "address",
3472
+ name: "newOwner",
3473
+ type: "address",
3474
+ },
3475
+ ],
3476
+ name: "OwnershipTransferred",
3477
+ type: "event",
3478
+ },
3479
+ {
3480
+ inputs: [],
3481
+ name: "cancelOwnershipHandover",
3482
+ outputs: [],
3483
+ stateMutability: "payable",
3484
+ type: "function",
3485
+ },
3486
+ {
3487
+ inputs: [
3488
+ {
3489
+ components: [
3490
+ { internalType: "Currency", name: "currency0", type: "address" },
3491
+ { internalType: "Currency", name: "currency1", type: "address" },
3492
+ { internalType: "uint24", name: "fee", type: "uint24" },
3493
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
3494
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
3495
+ ],
3496
+ internalType: "struct PoolKey",
3497
+ name: "_key",
3498
+ type: "tuple",
3499
+ },
3500
+ ],
3501
+ name: "closeBidWall",
3502
+ outputs: [],
3503
+ stateMutability: "nonpayable",
3504
+ type: "function",
3505
+ },
3506
+ {
3507
+ inputs: [
3508
+ { internalType: "address", name: "pendingOwner", type: "address" },
3509
+ ],
3510
+ name: "completeOwnershipHandover",
3511
+ outputs: [],
3512
+ stateMutability: "payable",
2917
3513
  type: "function",
2918
3514
  },
2919
3515
  {
@@ -2930,49 +3526,57 @@ const FairLaunchAbi = [
2930
3526
  name: "_poolKey",
2931
3527
  type: "tuple",
2932
3528
  },
2933
- { internalType: "int256", name: "_amountSpecified", type: "int256" },
3529
+ { internalType: "uint256", name: "_ethSwapAmount", type: "uint256" },
3530
+ { internalType: "int24", name: "_currentTick", type: "int24" },
2934
3531
  { internalType: "bool", name: "_nativeIsZero", type: "bool" },
2935
3532
  ],
2936
- name: "fillFromPosition",
2937
- outputs: [
2938
- {
2939
- internalType: "BeforeSwapDelta",
2940
- name: "beforeSwapDelta_",
2941
- type: "int256",
2942
- },
2943
- { internalType: "BalanceDelta", name: "balanceDelta_", type: "int256" },
2944
- {
2945
- components: [
2946
- { internalType: "uint256", name: "startsAt", type: "uint256" },
2947
- { internalType: "uint256", name: "endsAt", type: "uint256" },
2948
- { internalType: "int24", name: "initialTick", type: "int24" },
2949
- { internalType: "uint256", name: "revenue", type: "uint256" },
2950
- { internalType: "uint256", name: "supply", type: "uint256" },
2951
- { internalType: "bool", name: "closed", type: "bool" },
2952
- ],
2953
- internalType: "struct FairLaunch.FairLaunchInfo",
2954
- name: "fairLaunchInfo_",
2955
- type: "tuple",
2956
- },
2957
- ],
3533
+ name: "deposit",
3534
+ outputs: [],
2958
3535
  stateMutability: "nonpayable",
2959
3536
  type: "function",
2960
3537
  },
2961
3538
  {
2962
3539
  inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
2963
- name: "inFairLaunchWindow",
3540
+ name: "isBidWallEnabled",
2964
3541
  outputs: [{ internalType: "bool", name: "", type: "bool" }],
2965
3542
  stateMutability: "view",
2966
3543
  type: "function",
2967
3544
  },
3545
+ {
3546
+ inputs: [],
3547
+ name: "nativeToken",
3548
+ outputs: [{ internalType: "address", name: "", type: "address" }],
3549
+ stateMutability: "view",
3550
+ type: "function",
3551
+ },
3552
+ {
3553
+ inputs: [],
3554
+ name: "owner",
3555
+ outputs: [{ internalType: "address", name: "result", type: "address" }],
3556
+ stateMutability: "view",
3557
+ type: "function",
3558
+ },
2968
3559
  {
2969
3560
  inputs: [
2970
- { internalType: "PoolId", name: "_poolId", type: "bytes32" },
2971
- { internalType: "int256", name: "_revenue", type: "int256" },
3561
+ { internalType: "address", name: "pendingOwner", type: "address" },
2972
3562
  ],
2973
- name: "modifyRevenue",
2974
- outputs: [],
2975
- stateMutability: "nonpayable",
3563
+ name: "ownershipHandoverExpiresAt",
3564
+ outputs: [{ internalType: "uint256", name: "result", type: "uint256" }],
3565
+ stateMutability: "view",
3566
+ type: "function",
3567
+ },
3568
+ {
3569
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
3570
+ name: "poolInfo",
3571
+ outputs: [
3572
+ { internalType: "bool", name: "disabled", type: "bool" },
3573
+ { internalType: "bool", name: "initialized", type: "bool" },
3574
+ { internalType: "int24", name: "tickLower", type: "int24" },
3575
+ { internalType: "int24", name: "tickUpper", type: "int24" },
3576
+ { internalType: "uint256", name: "pendingETHFees", type: "uint256" },
3577
+ { internalType: "uint256", name: "cumulativeSwapFees", type: "uint256" },
3578
+ ],
3579
+ stateMutability: "view",
2976
3580
  type: "function",
2977
3581
  },
2978
3582
  {
@@ -2984,106 +3588,197 @@ const FairLaunchAbi = [
2984
3588
  stateMutability: "view",
2985
3589
  type: "function",
2986
3590
  },
3591
+ {
3592
+ inputs: [{ internalType: "PoolId", name: "_poolId", type: "bytes32" }],
3593
+ name: "position",
3594
+ outputs: [
3595
+ { internalType: "uint256", name: "amount0_", type: "uint256" },
3596
+ { internalType: "uint256", name: "amount1_", type: "uint256" },
3597
+ { internalType: "uint256", name: "pendingEth_", type: "uint256" },
3598
+ ],
3599
+ stateMutability: "view",
3600
+ type: "function",
3601
+ },
2987
3602
  {
2988
3603
  inputs: [],
2989
3604
  name: "positionManager",
2990
- outputs: [{ internalType: "address", name: "", type: "address" }],
3605
+ outputs: [
3606
+ { internalType: "contract PositionManager", name: "", type: "address" },
3607
+ ],
2991
3608
  stateMutability: "view",
2992
3609
  type: "function",
2993
3610
  },
3611
+ {
3612
+ inputs: [],
3613
+ name: "renounceOwnership",
3614
+ outputs: [],
3615
+ stateMutability: "payable",
3616
+ type: "function",
3617
+ },
3618
+ {
3619
+ inputs: [],
3620
+ name: "requestOwnershipHandover",
3621
+ outputs: [],
3622
+ stateMutability: "payable",
3623
+ type: "function",
3624
+ },
3625
+ {
3626
+ inputs: [
3627
+ {
3628
+ components: [
3629
+ { internalType: "Currency", name: "currency0", type: "address" },
3630
+ { internalType: "Currency", name: "currency1", type: "address" },
3631
+ { internalType: "uint24", name: "fee", type: "uint24" },
3632
+ { internalType: "int24", name: "tickSpacing", type: "int24" },
3633
+ { internalType: "contract IHooks", name: "hooks", type: "address" },
3634
+ ],
3635
+ internalType: "struct PoolKey",
3636
+ name: "_key",
3637
+ type: "tuple",
3638
+ },
3639
+ { internalType: "bool", name: "_disable", type: "bool" },
3640
+ ],
3641
+ name: "setDisabledState",
3642
+ outputs: [],
3643
+ stateMutability: "nonpayable",
3644
+ type: "function",
3645
+ },
3646
+ {
3647
+ inputs: [
3648
+ { internalType: "uint256", name: "swapFeeThreshold", type: "uint256" },
3649
+ ],
3650
+ name: "setSwapFeeThreshold",
3651
+ outputs: [],
3652
+ stateMutability: "nonpayable",
3653
+ type: "function",
3654
+ },
3655
+ {
3656
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
3657
+ name: "transferOwnership",
3658
+ outputs: [],
3659
+ stateMutability: "payable",
3660
+ type: "function",
3661
+ },
2994
3662
  ];
2995
3663
 
2996
- class ReadFairLaunch {
3664
+ class ReadBidWall {
2997
3665
  constructor(address, drift$1 = drift.createDrift()) {
2998
3666
  if (!address) {
2999
3667
  throw new Error("Address is required");
3000
3668
  }
3001
3669
  this.contract = drift$1.contract({
3002
- abi: FairLaunchAbi,
3670
+ abi: BidwallAbi,
3003
3671
  address,
3004
3672
  });
3005
3673
  }
3006
- fairLaunchInfo({ poolId }) {
3007
- return this.contract.read("fairLaunchInfo", {
3674
+ position({ poolId }) {
3675
+ return this.contract.read("position", {
3008
3676
  _poolId: poolId,
3009
3677
  });
3010
3678
  }
3011
- async isFairLaunchActive({ poolId }) {
3012
- const { closed, endsAt } = await this.fairLaunchInfo({ poolId });
3013
- if (closed) {
3014
- return false;
3015
- }
3016
- if (new Date().getTime() / 1000 > endsAt) {
3017
- return false;
3018
- }
3019
- return true;
3679
+ poolInfo({ poolId }) {
3680
+ return this.contract.read("poolInfo", {
3681
+ _poolId: poolId,
3682
+ });
3020
3683
  }
3021
3684
  }
3022
3685
 
3023
3686
  const FastFlaunchZapAbi = [
3024
3687
  {
3688
+ type: "constructor",
3025
3689
  inputs: [
3026
3690
  {
3027
- internalType: "contract PositionManager",
3028
3691
  name: "_positionManager",
3029
3692
  type: "address",
3693
+ internalType: "contract PositionManager",
3030
3694
  },
3031
3695
  ],
3032
3696
  stateMutability: "nonpayable",
3033
- type: "constructor",
3034
3697
  },
3035
3698
  {
3699
+ type: "function",
3700
+ name: "FAIR_LAUNCH_SUPPLY",
3036
3701
  inputs: [],
3037
- name: "fairLaunchSupply",
3038
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3702
+ outputs: [
3703
+ {
3704
+ name: "",
3705
+ type: "uint256",
3706
+ internalType: "uint256",
3707
+ },
3708
+ ],
3039
3709
  stateMutability: "view",
3710
+ },
3711
+ {
3040
3712
  type: "function",
3713
+ name: "USDC_MARKET_CAP",
3714
+ inputs: [],
3715
+ outputs: [
3716
+ {
3717
+ name: "",
3718
+ type: "uint256",
3719
+ internalType: "uint256",
3720
+ },
3721
+ ],
3722
+ stateMutability: "view",
3041
3723
  },
3042
3724
  {
3725
+ type: "function",
3726
+ name: "flaunch",
3043
3727
  inputs: [
3044
3728
  {
3729
+ name: "_params",
3730
+ type: "tuple",
3731
+ internalType: "struct FastFlaunchZap.FastFlaunchParams",
3045
3732
  components: [
3046
- { internalType: "string", name: "name", type: "string" },
3047
- { internalType: "string", name: "symbol", type: "string" },
3048
- { internalType: "string", name: "tokenUri", type: "string" },
3049
- { internalType: "address", name: "creator", type: "address" },
3050
3733
  {
3051
- internalType: "uint24",
3052
- name: "creatorFeeAllocation",
3053
- type: "uint24",
3734
+ name: "name",
3735
+ type: "string",
3736
+ internalType: "string",
3737
+ },
3738
+ {
3739
+ name: "symbol",
3740
+ type: "string",
3741
+ internalType: "string",
3742
+ },
3743
+ {
3744
+ name: "tokenUri",
3745
+ type: "string",
3746
+ internalType: "string",
3747
+ },
3748
+ {
3749
+ name: "creator",
3750
+ type: "address",
3751
+ internalType: "address",
3054
3752
  },
3055
3753
  ],
3056
- internalType: "struct FastFlaunchZap.FastFlaunchParams",
3057
- name: "_params",
3058
- type: "tuple",
3059
3754
  },
3060
3755
  ],
3061
- name: "flaunch",
3062
- outputs: [{ internalType: "address", name: "memecoin_", type: "address" }],
3756
+ outputs: [
3757
+ {
3758
+ name: "memecoin_",
3759
+ type: "address",
3760
+ internalType: "address",
3761
+ },
3762
+ ],
3063
3763
  stateMutability: "nonpayable",
3064
- type: "function",
3065
3764
  },
3066
3765
  {
3067
- inputs: [],
3766
+ type: "function",
3068
3767
  name: "positionManager",
3768
+ inputs: [],
3069
3769
  outputs: [
3070
- { internalType: "contract PositionManager", name: "", type: "address" },
3770
+ {
3771
+ name: "",
3772
+ type: "address",
3773
+ internalType: "contract PositionManager",
3774
+ },
3071
3775
  ],
3072
3776
  stateMutability: "view",
3073
- type: "function",
3074
- },
3075
- {
3076
- inputs: [],
3077
- name: "usdcMarketCap",
3078
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3079
- stateMutability: "view",
3080
- type: "function",
3081
3777
  },
3082
3778
  ];
3083
3779
 
3084
3780
  class ReadFastFlaunchZap {
3085
3781
  constructor(address, drift$1 = drift.createDrift()) {
3086
- this.drift = drift$1;
3087
3782
  if (!address) {
3088
3783
  throw new Error("Address is required");
3089
3784
  }
@@ -3097,19 +3792,17 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
3097
3792
  constructor(address, drift$1 = drift.createDrift()) {
3098
3793
  super(address, drift$1);
3099
3794
  }
3100
- fastFlaunch({ name, symbol, tokenUri, creator, creatorFeeAllocationPercent, }) {
3101
- const creatorFeeAllocationInBps = creatorFeeAllocationPercent * 100;
3795
+ fastFlaunch({ name, symbol, tokenUri, creator }) {
3102
3796
  return this.contract.write("flaunch", {
3103
3797
  _params: {
3104
3798
  name,
3105
3799
  symbol,
3106
3800
  tokenUri,
3107
3801
  creator,
3108
- creatorFeeAllocation: creatorFeeAllocationInBps,
3109
3802
  },
3110
3803
  });
3111
3804
  }
3112
- async fastFlaunchIPFS({ name, symbol, creator, creatorFeeAllocationPercent, metadata, pinataConfig, }) {
3805
+ async fastFlaunchIPFS({ name, symbol, creator, metadata, pinataConfig, }) {
3113
3806
  const tokenUri = await generateTokenUri(name, {
3114
3807
  metadata,
3115
3808
  pinataConfig,
@@ -3119,7 +3812,6 @@ class ReadWriteFastFlaunchZap extends ReadFastFlaunchZap {
3119
3812
  symbol,
3120
3813
  tokenUri,
3121
3814
  creator,
3122
- creatorFeeAllocationPercent,
3123
3815
  });
3124
3816
  }
3125
3817
  }
@@ -4613,7 +5305,7 @@ function defineChain(chain) {
4613
5305
  };
4614
5306
  }
4615
5307
 
4616
- const version = '2.23.5';
5308
+ const version = '2.23.11';
4617
5309
 
4618
5310
  let errorConfig = {
4619
5311
  getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
@@ -7358,7 +8050,7 @@ const chainConfig$1 = {
7358
8050
  serializers: serializers$1,
7359
8051
  };
7360
8052
 
7361
- const sourceId$J = 1; // mainnet
8053
+ const sourceId$K = 1; // mainnet
7362
8054
  /*#__PURE__*/ defineChain({
7363
8055
  ...chainConfig$1,
7364
8056
  id: 888888888,
@@ -7379,27 +8071,27 @@ const sourceId$J = 1; // mainnet
7379
8071
  contracts: {
7380
8072
  ...chainConfig$1.contracts,
7381
8073
  l2OutputOracle: {
7382
- [sourceId$J]: {
8074
+ [sourceId$K]: {
7383
8075
  address: '0xB09DC08428C8b4EFB4ff9C0827386CDF34277996',
7384
8076
  },
7385
8077
  },
7386
8078
  portal: {
7387
- [sourceId$J]: {
8079
+ [sourceId$K]: {
7388
8080
  address: '0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68',
7389
8081
  blockCreated: 19070571,
7390
8082
  },
7391
8083
  },
7392
8084
  l1StandardBridge: {
7393
- [sourceId$J]: {
8085
+ [sourceId$K]: {
7394
8086
  address: '0xd5e3eDf5b68135D559D572E26bF863FBC1950033',
7395
8087
  blockCreated: 19070571,
7396
8088
  },
7397
8089
  },
7398
8090
  },
7399
- sourceId: sourceId$J,
8091
+ sourceId: sourceId$K,
7400
8092
  });
7401
8093
 
7402
- const sourceId$I = 11_155_111; // sepolia
8094
+ const sourceId$J = 11_155_111; // sepolia
7403
8095
  /*#__PURE__*/ defineChain({
7404
8096
  ...chainConfig$1,
7405
8097
  id: 28122024,
@@ -7420,27 +8112,27 @@ const sourceId$I = 11_155_111; // sepolia
7420
8112
  contracts: {
7421
8113
  ...chainConfig$1.contracts,
7422
8114
  l2OutputOracle: {
7423
- [sourceId$I]: {
8115
+ [sourceId$J]: {
7424
8116
  address: '0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB',
7425
8117
  },
7426
8118
  },
7427
8119
  portal: {
7428
- [sourceId$I]: {
8120
+ [sourceId$J]: {
7429
8121
  address: '0xfa1d9E26A6aCD7b22115D27572c1221B9803c960',
7430
8122
  blockCreated: 4972908,
7431
8123
  },
7432
8124
  },
7433
8125
  l1StandardBridge: {
7434
- [sourceId$I]: {
8126
+ [sourceId$J]: {
7435
8127
  address: '0xF6Bc0146d3c74D48306e79Ae134A260E418C9335',
7436
8128
  blockCreated: 4972908,
7437
8129
  },
7438
8130
  },
7439
8131
  },
7440
- sourceId: sourceId$I,
8132
+ sourceId: sourceId$J,
7441
8133
  });
7442
8134
 
7443
- const sourceId$H = 1; // mainnet
8135
+ const sourceId$I = 1; // mainnet
7444
8136
  const base = /*#__PURE__*/ defineChain({
7445
8137
  ...chainConfig$1,
7446
8138
  id: 8453,
@@ -7461,12 +8153,12 @@ const base = /*#__PURE__*/ defineChain({
7461
8153
  contracts: {
7462
8154
  ...chainConfig$1.contracts,
7463
8155
  disputeGameFactory: {
7464
- [sourceId$H]: {
8156
+ [sourceId$I]: {
7465
8157
  address: '0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e',
7466
8158
  },
7467
8159
  },
7468
8160
  l2OutputOracle: {
7469
- [sourceId$H]: {
8161
+ [sourceId$I]: {
7470
8162
  address: '0x56315b90c40730925ec5485cf004d835058518A0',
7471
8163
  },
7472
8164
  },
@@ -7475,22 +8167,22 @@ const base = /*#__PURE__*/ defineChain({
7475
8167
  blockCreated: 5022,
7476
8168
  },
7477
8169
  portal: {
7478
- [sourceId$H]: {
8170
+ [sourceId$I]: {
7479
8171
  address: '0x49048044D57e1C92A77f79988d21Fa8fAF74E97e',
7480
8172
  blockCreated: 17482143,
7481
8173
  },
7482
8174
  },
7483
8175
  l1StandardBridge: {
7484
- [sourceId$H]: {
8176
+ [sourceId$I]: {
7485
8177
  address: '0x3154Cf16ccdb4C6d922629664174b904d80F2C35',
7486
8178
  blockCreated: 17482143,
7487
8179
  },
7488
8180
  },
7489
8181
  },
7490
- sourceId: sourceId$H,
8182
+ sourceId: sourceId$I,
7491
8183
  });
7492
8184
 
7493
- const sourceId$G = 5; // goerli
8185
+ const sourceId$H = 5; // goerli
7494
8186
  /*#__PURE__*/ defineChain({
7495
8187
  ...chainConfig$1,
7496
8188
  id: 84531,
@@ -7509,7 +8201,7 @@ const sourceId$G = 5; // goerli
7509
8201
  contracts: {
7510
8202
  ...chainConfig$1.contracts,
7511
8203
  l2OutputOracle: {
7512
- [sourceId$G]: {
8204
+ [sourceId$H]: {
7513
8205
  address: '0x2A35891ff30313CcFa6CE88dcf3858bb075A2298',
7514
8206
  },
7515
8207
  },
@@ -7518,21 +8210,21 @@ const sourceId$G = 5; // goerli
7518
8210
  blockCreated: 1376988,
7519
8211
  },
7520
8212
  portal: {
7521
- [sourceId$G]: {
8213
+ [sourceId$H]: {
7522
8214
  address: '0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA',
7523
8215
  },
7524
8216
  },
7525
8217
  l1StandardBridge: {
7526
- [sourceId$G]: {
8218
+ [sourceId$H]: {
7527
8219
  address: '0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a',
7528
8220
  },
7529
8221
  },
7530
8222
  },
7531
8223
  testnet: true,
7532
- sourceId: sourceId$G,
8224
+ sourceId: sourceId$H,
7533
8225
  });
7534
8226
 
7535
- const sourceId$F = 11_155_111; // sepolia
8227
+ const sourceId$G = 11_155_111; // sepolia
7536
8228
  const baseSepolia = /*#__PURE__*/ defineChain({
7537
8229
  ...chainConfig$1,
7538
8230
  id: 84532,
@@ -7554,23 +8246,23 @@ const baseSepolia = /*#__PURE__*/ defineChain({
7554
8246
  contracts: {
7555
8247
  ...chainConfig$1.contracts,
7556
8248
  disputeGameFactory: {
7557
- [sourceId$F]: {
8249
+ [sourceId$G]: {
7558
8250
  address: '0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1',
7559
8251
  },
7560
8252
  },
7561
8253
  l2OutputOracle: {
7562
- [sourceId$F]: {
8254
+ [sourceId$G]: {
7563
8255
  address: '0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254',
7564
8256
  },
7565
8257
  },
7566
8258
  portal: {
7567
- [sourceId$F]: {
8259
+ [sourceId$G]: {
7568
8260
  address: '0x49f53e41452c74589e85ca1677426ba426459e85',
7569
8261
  blockCreated: 4446677,
7570
8262
  },
7571
8263
  },
7572
8264
  l1StandardBridge: {
7573
- [sourceId$F]: {
8265
+ [sourceId$G]: {
7574
8266
  address: '0xfd0Bf71F60660E2f608ed56e1659C450eB113120',
7575
8267
  blockCreated: 4446677,
7576
8268
  },
@@ -7581,7 +8273,7 @@ const baseSepolia = /*#__PURE__*/ defineChain({
7581
8273
  },
7582
8274
  },
7583
8275
  testnet: true,
7584
- sourceId: sourceId$F,
8276
+ sourceId: sourceId$G,
7585
8277
  });
7586
8278
 
7587
8279
  defineChain({
@@ -7602,7 +8294,7 @@ defineChain({
7602
8294
  },
7603
8295
  });
7604
8296
 
7605
- const sourceId$E = 1; // mainnet
8297
+ const sourceId$F = 1; // mainnet
7606
8298
  /*#__PURE__*/ defineChain({
7607
8299
  ...chainConfig$1,
7608
8300
  id: 81457,
@@ -7629,10 +8321,10 @@ const sourceId$E = 1; // mainnet
7629
8321
  blockCreated: 212929,
7630
8322
  },
7631
8323
  },
7632
- sourceId: sourceId$E,
8324
+ sourceId: sourceId$F,
7633
8325
  });
7634
8326
 
7635
- const sourceId$D = 1; // mainnet
8327
+ const sourceId$E = 1; // mainnet
7636
8328
  defineChain({
7637
8329
  ...chainConfig$1,
7638
8330
  id: 60808,
@@ -7661,22 +8353,22 @@ defineChain({
7661
8353
  blockCreated: 23131,
7662
8354
  },
7663
8355
  l2OutputOracle: {
7664
- [sourceId$D]: {
8356
+ [sourceId$E]: {
7665
8357
  address: '0xdDa53E23f8a32640b04D7256e651C1db98dB11C1',
7666
8358
  blockCreated: 4462615,
7667
8359
  },
7668
8360
  },
7669
8361
  portal: {
7670
- [sourceId$D]: {
8362
+ [sourceId$E]: {
7671
8363
  address: '0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E',
7672
8364
  blockCreated: 4462615,
7673
8365
  },
7674
8366
  },
7675
8367
  },
7676
- sourceId: sourceId$D,
8368
+ sourceId: sourceId$E,
7677
8369
  });
7678
8370
 
7679
- const sourceId$C = 11_155_111; // sepolia
8371
+ const sourceId$D = 11_155_111; // sepolia
7680
8372
  defineChain({
7681
8373
  ...chainConfig$1,
7682
8374
  id: 808813,
@@ -7705,20 +8397,20 @@ defineChain({
7705
8397
  blockCreated: 35677,
7706
8398
  },
7707
8399
  l2OutputOracle: {
7708
- [sourceId$C]: {
8400
+ [sourceId$D]: {
7709
8401
  address: '0x14D0069452b4AE2b250B395b8adAb771E4267d2f',
7710
8402
  blockCreated: 4462615,
7711
8403
  },
7712
8404
  },
7713
8405
  portal: {
7714
- [sourceId$C]: {
8406
+ [sourceId$D]: {
7715
8407
  address: '0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4',
7716
8408
  blockCreated: 4462615,
7717
8409
  },
7718
8410
  },
7719
8411
  },
7720
8412
  testnet: true,
7721
- sourceId: sourceId$C,
8413
+ sourceId: sourceId$D,
7722
8414
  });
7723
8415
 
7724
8416
  /**
@@ -7977,7 +8669,7 @@ const chainConfig = {
7977
8669
  fees,
7978
8670
  };
7979
8671
 
7980
- const sourceId$B = 17000; // holsky
8672
+ const sourceId$C = 17000; // holsky
7981
8673
  // source https://storage.googleapis.com/cel2-rollup-files/alfajores/deployment-l1.json
7982
8674
  /*#__PURE__*/ defineChain({
7983
8675
  ...chainConfig,
@@ -8007,25 +8699,25 @@ const sourceId$B = 17000; // holsky
8007
8699
  blockCreated: 14569001,
8008
8700
  },
8009
8701
  portal: {
8010
- [sourceId$B]: {
8702
+ [sourceId$C]: {
8011
8703
  address: '0x82527353927d8D069b3B452904c942dA149BA381',
8012
8704
  blockCreated: 2411324,
8013
8705
  },
8014
8706
  },
8015
8707
  disputeGameFactory: {
8016
- [sourceId$B]: {
8708
+ [sourceId$C]: {
8017
8709
  address: '0xE28AAdcd9883746c0e5068F58f9ea06027b214cb',
8018
8710
  blockCreated: 2411324,
8019
8711
  },
8020
8712
  },
8021
8713
  l2OutputOracle: {
8022
- [sourceId$B]: {
8714
+ [sourceId$C]: {
8023
8715
  address: '0x4a2635e9e4f6e45817b1D402ac4904c1d1752438',
8024
8716
  blockCreated: 2411324,
8025
8717
  },
8026
8718
  },
8027
8719
  l1StandardBridge: {
8028
- [sourceId$B]: {
8720
+ [sourceId$C]: {
8029
8721
  address: '0xD1B0E0581973c9eB7f886967A606b9441A897037',
8030
8722
  blockCreated: 2411324,
8031
8723
  },
@@ -8148,7 +8840,7 @@ defineChain({
8148
8840
  testnet: true,
8149
8841
  });
8150
8842
 
8151
- const sourceId$A = 1; // mainnet
8843
+ const sourceId$B = 1; // mainnet
8152
8844
  /*#__PURE__*/ defineChain({
8153
8845
  id: 478,
8154
8846
  name: 'Form Network',
@@ -8172,27 +8864,27 @@ const sourceId$A = 1; // mainnet
8172
8864
  contracts: {
8173
8865
  ...chainConfig$1.contracts,
8174
8866
  addressManager: {
8175
- [sourceId$A]: {
8867
+ [sourceId$B]: {
8176
8868
  address: '0x15c249E46A2F924C2dB3A1560CF86729bAD1f07B',
8177
8869
  },
8178
8870
  },
8179
8871
  l1CrossDomainMessenger: {
8180
- [sourceId$A]: {
8872
+ [sourceId$B]: {
8181
8873
  address: '0xF333158DCCad1dF6C3F0a3aEe8BC31fA94d9eD5c',
8182
8874
  },
8183
8875
  },
8184
8876
  l2OutputOracle: {
8185
- [sourceId$A]: {
8877
+ [sourceId$B]: {
8186
8878
  address: '0x4ccAAF69F41c5810cA875183648B577CaCf1F67E',
8187
8879
  },
8188
8880
  },
8189
8881
  portal: {
8190
- [sourceId$A]: {
8882
+ [sourceId$B]: {
8191
8883
  address: '0x4E259Ee5F4136408908160dD32295A5031Fa426F',
8192
8884
  },
8193
8885
  },
8194
8886
  l1StandardBridge: {
8195
- [sourceId$A]: {
8887
+ [sourceId$B]: {
8196
8888
  address: '0xdc20aA63D3DE59574E065957190D8f24e0F7B8Ba',
8197
8889
  },
8198
8890
  },
@@ -8200,10 +8892,10 @@ const sourceId$A = 1; // mainnet
8200
8892
  address: '0xcA11bde05977b3631167028862bE2a173976CA11',
8201
8893
  },
8202
8894
  },
8203
- sourceId: sourceId$A,
8895
+ sourceId: sourceId$B,
8204
8896
  });
8205
8897
 
8206
- const sourceId$z = 11_155_111; // sepolia
8898
+ const sourceId$A = 11_155_111; // sepolia
8207
8899
  /*#__PURE__*/ defineChain({
8208
8900
  id: 132_902,
8209
8901
  name: 'Form Testnet',
@@ -8227,27 +8919,27 @@ const sourceId$z = 11_155_111; // sepolia
8227
8919
  contracts: {
8228
8920
  ...chainConfig$1.contracts,
8229
8921
  addressManager: {
8230
- [sourceId$z]: {
8922
+ [sourceId$A]: {
8231
8923
  address: '0xd5C38fa934f7fd7477D4800F4f38a1c5BFdF1373',
8232
8924
  },
8233
8925
  },
8234
8926
  l1CrossDomainMessenger: {
8235
- [sourceId$z]: {
8927
+ [sourceId$A]: {
8236
8928
  address: '0x37A68565c4BE9700b3E3Ec60cC4416cAC3052FAa',
8237
8929
  },
8238
8930
  },
8239
8931
  l2OutputOracle: {
8240
- [sourceId$z]: {
8932
+ [sourceId$A]: {
8241
8933
  address: '0x9eA2239E65a59EC9C7F1ED4C116dD58Da71Fc1e2',
8242
8934
  },
8243
8935
  },
8244
8936
  portal: {
8245
- [sourceId$z]: {
8937
+ [sourceId$A]: {
8246
8938
  address: '0x60377e3cE15dF4CCA24c4beF076b60314240b032',
8247
8939
  },
8248
8940
  },
8249
8941
  l1StandardBridge: {
8250
- [sourceId$z]: {
8942
+ [sourceId$A]: {
8251
8943
  address: '0xD4531f633942b2725896F47cD2aFd260b44Ab1F7',
8252
8944
  },
8253
8945
  },
@@ -8256,10 +8948,10 @@ const sourceId$z = 11_155_111; // sepolia
8256
8948
  },
8257
8949
  },
8258
8950
  testnet: true,
8259
- sourceId: sourceId$z,
8951
+ sourceId: sourceId$A,
8260
8952
  });
8261
8953
 
8262
- const sourceId$y = 1; // mainnet
8954
+ const sourceId$z = 1; // mainnet
8263
8955
  /*#__PURE__*/ defineChain({
8264
8956
  ...chainConfig$1,
8265
8957
  id: 252,
@@ -8280,7 +8972,7 @@ const sourceId$y = 1; // mainnet
8280
8972
  contracts: {
8281
8973
  ...chainConfig$1.contracts,
8282
8974
  l2OutputOracle: {
8283
- [sourceId$y]: {
8975
+ [sourceId$z]: {
8284
8976
  address: '0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4',
8285
8977
  },
8286
8978
  },
@@ -8288,22 +8980,22 @@ const sourceId$y = 1; // mainnet
8288
8980
  address: '0xca11bde05977b3631167028862be2a173976ca11',
8289
8981
  },
8290
8982
  portal: {
8291
- [sourceId$y]: {
8983
+ [sourceId$z]: {
8292
8984
  address: '0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D',
8293
8985
  blockCreated: 19135323,
8294
8986
  },
8295
8987
  },
8296
8988
  l1StandardBridge: {
8297
- [sourceId$y]: {
8989
+ [sourceId$z]: {
8298
8990
  address: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
8299
8991
  blockCreated: 19135323,
8300
8992
  },
8301
8993
  },
8302
8994
  },
8303
- sourceId: sourceId$y,
8995
+ sourceId: sourceId$z,
8304
8996
  });
8305
8997
 
8306
- const sourceId$x = 17000; // holesky
8998
+ const sourceId$y = 17000; // holesky
8307
8999
  /*#__PURE__*/ defineChain({
8308
9000
  ...chainConfig$1,
8309
9001
  id: 2522,
@@ -8324,7 +9016,7 @@ const sourceId$x = 17000; // holesky
8324
9016
  contracts: {
8325
9017
  ...chainConfig$1.contracts,
8326
9018
  l2OutputOracle: {
8327
- [sourceId$x]: {
9019
+ [sourceId$y]: {
8328
9020
  address: '0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32',
8329
9021
  },
8330
9022
  },
@@ -8332,22 +9024,22 @@ const sourceId$x = 17000; // holesky
8332
9024
  address: '0xca11bde05977b3631167028862be2a173976ca11',
8333
9025
  },
8334
9026
  portal: {
8335
- [sourceId$x]: {
9027
+ [sourceId$y]: {
8336
9028
  address: '0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d',
8337
9029
  blockCreated: 318416,
8338
9030
  },
8339
9031
  },
8340
9032
  l1StandardBridge: {
8341
- [sourceId$x]: {
9033
+ [sourceId$y]: {
8342
9034
  address: '0x0BaafC217162f64930909aD9f2B27125121d6332',
8343
9035
  blockCreated: 318416,
8344
9036
  },
8345
9037
  },
8346
9038
  },
8347
- sourceId: sourceId$x,
9039
+ sourceId: sourceId$y,
8348
9040
  });
8349
9041
 
8350
- const sourceId$w = 1; // mainnet
9042
+ const sourceId$x = 1; // mainnet
8351
9043
  /*#__PURE__*/ defineChain({
8352
9044
  ...chainConfig$1,
8353
9045
  id: 33979,
@@ -8367,10 +9059,10 @@ const sourceId$w = 1; // mainnet
8367
9059
  contracts: {
8368
9060
  ...chainConfig$1.contracts,
8369
9061
  },
8370
- sourceId: sourceId$w,
9062
+ sourceId: sourceId$x,
8371
9063
  });
8372
9064
 
8373
- const sourceId$v = 11_155_111; // sepolia
9065
+ const sourceId$w = 11_155_111; // sepolia
8374
9066
  defineChain({
8375
9067
  ...chainConfig$1,
8376
9068
  id: 3397901,
@@ -8396,16 +9088,16 @@ defineChain({
8396
9088
  blockCreated: 1620204,
8397
9089
  },
8398
9090
  },
8399
- sourceId: sourceId$v,
9091
+ sourceId: sourceId$w,
8400
9092
  });
8401
9093
 
8402
- const sourceId$u = 17000; // Holesky testnet
9094
+ const sourceId$v = 17000; // Holesky testnet
8403
9095
  defineChain({
8404
9096
  ...chainConfig$1,
8405
9097
  name: 'Garnet Testnet',
8406
9098
  testnet: true,
8407
9099
  id: 17069,
8408
- sourceId: sourceId$u,
9100
+ sourceId: sourceId$v,
8409
9101
  nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
8410
9102
  rpcUrls: {
8411
9103
  default: {
@@ -8425,19 +9117,19 @@ defineChain({
8425
9117
  address: '0xca11bde05977b3631167028862be2a173976ca11',
8426
9118
  },
8427
9119
  portal: {
8428
- [sourceId$u]: {
9120
+ [sourceId$v]: {
8429
9121
  address: '0x57ee40586fbE286AfC75E67cb69511A6D9aF5909',
8430
9122
  blockCreated: 1274684,
8431
9123
  },
8432
9124
  },
8433
9125
  l2OutputOracle: {
8434
- [sourceId$u]: {
9126
+ [sourceId$v]: {
8435
9127
  address: '0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B',
8436
9128
  blockCreated: 1274684,
8437
9129
  },
8438
9130
  },
8439
9131
  l1StandardBridge: {
8440
- [sourceId$u]: {
9132
+ [sourceId$v]: {
8441
9133
  address: '0x09bcDd311FE398F80a78BE37E489f5D440DB95DE',
8442
9134
  blockCreated: 1274684,
8443
9135
  },
@@ -8445,7 +9137,7 @@ defineChain({
8445
9137
  },
8446
9138
  });
8447
9139
 
8448
- const sourceId$t = 1; // mainnet
9140
+ const sourceId$u = 1; // mainnet
8449
9141
  /*#__PURE__*/ defineChain({
8450
9142
  ...chainConfig$1,
8451
9143
  id: 57073,
@@ -8473,26 +9165,26 @@ const sourceId$t = 1; // mainnet
8473
9165
  contracts: {
8474
9166
  ...chainConfig$1.contracts,
8475
9167
  disputeGameFactory: {
8476
- [sourceId$t]: {
9168
+ [sourceId$u]: {
8477
9169
  address: '0x10d7b35078d3baabb96dd45a9143b94be65b12cd',
8478
9170
  },
8479
9171
  },
8480
9172
  portal: {
8481
- [sourceId$t]: {
9173
+ [sourceId$u]: {
8482
9174
  address: '0x5d66c1782664115999c47c9fa5cd031f495d3e4f',
8483
9175
  },
8484
9176
  },
8485
9177
  l1StandardBridge: {
8486
- [sourceId$t]: {
9178
+ [sourceId$u]: {
8487
9179
  address: '0x88ff1e5b602916615391f55854588efcbb7663f0',
8488
9180
  },
8489
9181
  },
8490
9182
  },
8491
9183
  testnet: false,
8492
- sourceId: sourceId$t,
9184
+ sourceId: sourceId$u,
8493
9185
  });
8494
9186
 
8495
- const sourceId$s = 11_155_111; // sepolia
9187
+ const sourceId$t = 11_155_111; // sepolia
8496
9188
  /*#__PURE__*/ defineChain({
8497
9189
  ...chainConfig$1,
8498
9190
  id: 763373,
@@ -8513,23 +9205,23 @@ const sourceId$s = 11_155_111; // sepolia
8513
9205
  contracts: {
8514
9206
  ...chainConfig$1.contracts,
8515
9207
  disputeGameFactory: {
8516
- [sourceId$s]: {
9208
+ [sourceId$t]: {
8517
9209
  address: '0x860e626c700af381133d9f4af31412a2d1db3d5d',
8518
9210
  },
8519
9211
  },
8520
9212
  portal: {
8521
- [sourceId$s]: {
9213
+ [sourceId$t]: {
8522
9214
  address: '0x5c1d29c6c9c8b0800692acc95d700bcb4966a1d7',
8523
9215
  },
8524
9216
  },
8525
9217
  l1StandardBridge: {
8526
- [sourceId$s]: {
9218
+ [sourceId$t]: {
8527
9219
  address: '0x33f60714bbd74d62b66d79213c348614de51901c',
8528
9220
  },
8529
9221
  },
8530
9222
  },
8531
9223
  testnet: true,
8532
- sourceId: sourceId$s,
9224
+ sourceId: sourceId$t,
8533
9225
  });
8534
9226
 
8535
9227
  defineChain({
@@ -8558,7 +9250,7 @@ defineChain({
8558
9250
  testnet: true,
8559
9251
  });
8560
9252
 
8561
- const sourceId$r = 1; // mainnet
9253
+ const sourceId$s = 1; // mainnet
8562
9254
  /*#__PURE__*/ defineChain({
8563
9255
  ...chainConfig$1,
8564
9256
  id: 1135,
@@ -8587,25 +9279,25 @@ const sourceId$r = 1; // mainnet
8587
9279
  address: '0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0',
8588
9280
  },
8589
9281
  l2OutputOracle: {
8590
- [sourceId$r]: {
9282
+ [sourceId$s]: {
8591
9283
  address: '0x113cB99283AF242Da0A0C54347667edF531Aa7d6',
8592
9284
  },
8593
9285
  },
8594
9286
  portal: {
8595
- [sourceId$r]: {
9287
+ [sourceId$s]: {
8596
9288
  address: '0x26dB93F8b8b4f7016240af62F7730979d353f9A7',
8597
9289
  },
8598
9290
  },
8599
9291
  l1StandardBridge: {
8600
- [sourceId$r]: {
9292
+ [sourceId$s]: {
8601
9293
  address: '0x2658723Bf70c7667De6B25F99fcce13A16D25d08',
8602
9294
  },
8603
9295
  },
8604
9296
  },
8605
- sourceId: sourceId$r,
9297
+ sourceId: sourceId$s,
8606
9298
  });
8607
9299
 
8608
- const sourceId$q = 11_155_111; // sepolia
9300
+ const sourceId$r = 11_155_111; // sepolia
8609
9301
  /*#__PURE__*/ defineChain({
8610
9302
  ...chainConfig$1,
8611
9303
  id: 4202,
@@ -8627,7 +9319,7 @@ const sourceId$q = 11_155_111; // sepolia
8627
9319
  contracts: {
8628
9320
  ...chainConfig$1.contracts,
8629
9321
  l2OutputOracle: {
8630
- [sourceId$q]: {
9322
+ [sourceId$r]: {
8631
9323
  address: '0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348',
8632
9324
  },
8633
9325
  },
@@ -8635,21 +9327,21 @@ const sourceId$q = 11_155_111; // sepolia
8635
9327
  address: '0xca11bde05977b3631167028862be2a173976ca11',
8636
9328
  },
8637
9329
  portal: {
8638
- [sourceId$q]: {
9330
+ [sourceId$r]: {
8639
9331
  address: '0xe3d90F21490686Ec7eF37BE788E02dfC12787264',
8640
9332
  },
8641
9333
  },
8642
9334
  l1StandardBridge: {
8643
- [sourceId$q]: {
9335
+ [sourceId$r]: {
8644
9336
  address: '0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5',
8645
9337
  },
8646
9338
  },
8647
9339
  },
8648
9340
  testnet: true,
8649
- sourceId: sourceId$q,
9341
+ sourceId: sourceId$r,
8650
9342
  });
8651
9343
 
8652
- const sourceId$p = 1; // mainnet
9344
+ const sourceId$q = 1; // mainnet
8653
9345
  /*#__PURE__*/ defineChain({
8654
9346
  ...chainConfig$1,
8655
9347
  id: 1750,
@@ -8675,7 +9367,7 @@ const sourceId$p = 1; // mainnet
8675
9367
  contracts: {
8676
9368
  ...chainConfig$1.contracts,
8677
9369
  l2OutputOracle: {
8678
- [sourceId$p]: {
9370
+ [sourceId$q]: {
8679
9371
  address: '0x3B1F7aDa0Fcc26B13515af752Dd07fB1CAc11426',
8680
9372
  },
8681
9373
  },
@@ -8684,20 +9376,20 @@ const sourceId$p = 1; // mainnet
8684
9376
  blockCreated: 0,
8685
9377
  },
8686
9378
  portal: {
8687
- [sourceId$p]: {
9379
+ [sourceId$q]: {
8688
9380
  address: '0x3F37aBdE2C6b5B2ed6F8045787Df1ED1E3753956',
8689
9381
  },
8690
9382
  },
8691
9383
  l1StandardBridge: {
8692
- [sourceId$p]: {
9384
+ [sourceId$q]: {
8693
9385
  address: '0x6d0f65D59b55B0FEC5d2d15365154DcADC140BF3',
8694
9386
  },
8695
9387
  },
8696
9388
  },
8697
- sourceId: sourceId$p,
9389
+ sourceId: sourceId$q,
8698
9390
  });
8699
9391
 
8700
- const sourceId$o = 1; // mainnet
9392
+ const sourceId$p = 1; // mainnet
8701
9393
  /*#__PURE__*/ defineChain({
8702
9394
  ...chainConfig$1,
8703
9395
  id: 34443,
@@ -8721,25 +9413,25 @@ const sourceId$o = 1; // mainnet
8721
9413
  blockCreated: 2465882,
8722
9414
  },
8723
9415
  l2OutputOracle: {
8724
- [sourceId$o]: {
9416
+ [sourceId$p]: {
8725
9417
  address: '0x4317ba146D4933D889518a3e5E11Fe7a53199b04',
8726
9418
  },
8727
9419
  },
8728
9420
  portal: {
8729
- [sourceId$o]: {
9421
+ [sourceId$p]: {
8730
9422
  address: '0x8B34b14c7c7123459Cf3076b8Cb929BE097d0C07',
8731
9423
  },
8732
9424
  },
8733
9425
  l1StandardBridge: {
8734
- [sourceId$o]: {
9426
+ [sourceId$p]: {
8735
9427
  address: '0x735aDBbE72226BD52e818E7181953f42E3b0FF21',
8736
9428
  },
8737
9429
  },
8738
9430
  },
8739
- sourceId: sourceId$o,
9431
+ sourceId: sourceId$p,
8740
9432
  });
8741
9433
 
8742
- const sourceId$n = 11_155_111; // sepolia
9434
+ const sourceId$o = 11_155_111; // sepolia
8743
9435
  /*#__PURE__*/ defineChain({
8744
9436
  ...chainConfig$1,
8745
9437
  id: 919,
@@ -8760,19 +9452,19 @@ const sourceId$n = 11_155_111; // sepolia
8760
9452
  contracts: {
8761
9453
  ...chainConfig$1.contracts,
8762
9454
  l2OutputOracle: {
8763
- [sourceId$n]: {
9455
+ [sourceId$o]: {
8764
9456
  address: '0x2634BD65ba27AB63811c74A63118ACb312701Bfa',
8765
9457
  blockCreated: 3778393,
8766
9458
  },
8767
9459
  },
8768
9460
  portal: {
8769
- [sourceId$n]: {
9461
+ [sourceId$o]: {
8770
9462
  address: '0x320e1580effF37E008F1C92700d1eBa47c1B23fD',
8771
9463
  blockCreated: 3778395,
8772
9464
  },
8773
9465
  },
8774
9466
  l1StandardBridge: {
8775
- [sourceId$n]: {
9467
+ [sourceId$o]: {
8776
9468
  address: '0xbC5C679879B2965296756CD959C3C739769995E2',
8777
9469
  blockCreated: 3778392,
8778
9470
  },
@@ -8783,10 +9475,10 @@ const sourceId$n = 11_155_111; // sepolia
8783
9475
  },
8784
9476
  },
8785
9477
  testnet: true,
8786
- sourceId: sourceId$n,
9478
+ sourceId: sourceId$o,
8787
9479
  });
8788
9480
 
8789
- const sourceId$m = 56; // bsc mainnet
9481
+ const sourceId$n = 56; // bsc mainnet
8790
9482
  /*#__PURE__*/ defineChain({
8791
9483
  id: 204,
8792
9484
  name: 'opBNB',
@@ -8812,25 +9504,25 @@ const sourceId$m = 56; // bsc mainnet
8812
9504
  blockCreated: 512881,
8813
9505
  },
8814
9506
  l2OutputOracle: {
8815
- [sourceId$m]: {
9507
+ [sourceId$n]: {
8816
9508
  address: '0x153CAB79f4767E2ff862C94aa49573294B13D169',
8817
9509
  },
8818
9510
  },
8819
9511
  portal: {
8820
- [sourceId$m]: {
9512
+ [sourceId$n]: {
8821
9513
  address: '0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519',
8822
9514
  },
8823
9515
  },
8824
9516
  l1StandardBridge: {
8825
- [sourceId$m]: {
9517
+ [sourceId$n]: {
8826
9518
  address: '0xF05F0e4362859c3331Cb9395CBC201E3Fa6757Ea',
8827
9519
  },
8828
9520
  },
8829
9521
  },
8830
- sourceId: sourceId$m,
9522
+ sourceId: sourceId$n,
8831
9523
  });
8832
9524
 
8833
- const sourceId$l = 97; // bsc testnet
9525
+ const sourceId$m = 97; // bsc testnet
8834
9526
  /*#__PURE__*/ defineChain({
8835
9527
  id: 5611,
8836
9528
  name: 'opBNB Testnet',
@@ -8855,26 +9547,26 @@ const sourceId$l = 97; // bsc testnet
8855
9547
  blockCreated: 3705108,
8856
9548
  },
8857
9549
  l2OutputOracle: {
8858
- [sourceId$l]: {
9550
+ [sourceId$m]: {
8859
9551
  address: '0xFf2394Bb843012562f4349C6632a0EcB92fC8810',
8860
9552
  },
8861
9553
  },
8862
9554
  portal: {
8863
- [sourceId$l]: {
9555
+ [sourceId$m]: {
8864
9556
  address: '0x4386C8ABf2009aC0c263462Da568DD9d46e52a31',
8865
9557
  },
8866
9558
  },
8867
9559
  l1StandardBridge: {
8868
- [sourceId$l]: {
9560
+ [sourceId$m]: {
8869
9561
  address: '0x677311Fd2cCc511Bbc0f581E8d9a07B033D5E840',
8870
9562
  },
8871
9563
  },
8872
9564
  },
8873
9565
  testnet: true,
8874
- sourceId: sourceId$l,
9566
+ sourceId: sourceId$m,
8875
9567
  });
8876
9568
 
8877
- const sourceId$k = 1; // mainnet
9569
+ const sourceId$l = 1; // mainnet
8878
9570
  /*#__PURE__*/ defineChain({
8879
9571
  ...chainConfig$1,
8880
9572
  id: 10,
@@ -8895,12 +9587,12 @@ const sourceId$k = 1; // mainnet
8895
9587
  contracts: {
8896
9588
  ...chainConfig$1.contracts,
8897
9589
  disputeGameFactory: {
8898
- [sourceId$k]: {
9590
+ [sourceId$l]: {
8899
9591
  address: '0xe5965Ab5962eDc7477C8520243A95517CD252fA9',
8900
9592
  },
8901
9593
  },
8902
9594
  l2OutputOracle: {
8903
- [sourceId$k]: {
9595
+ [sourceId$l]: {
8904
9596
  address: '0xdfe97868233d1aa22e815a266982f2cf17685a27',
8905
9597
  },
8906
9598
  },
@@ -8909,20 +9601,20 @@ const sourceId$k = 1; // mainnet
8909
9601
  blockCreated: 4286263,
8910
9602
  },
8911
9603
  portal: {
8912
- [sourceId$k]: {
9604
+ [sourceId$l]: {
8913
9605
  address: '0xbEb5Fc579115071764c7423A4f12eDde41f106Ed',
8914
9606
  },
8915
9607
  },
8916
9608
  l1StandardBridge: {
8917
- [sourceId$k]: {
9609
+ [sourceId$l]: {
8918
9610
  address: '0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1',
8919
9611
  },
8920
9612
  },
8921
9613
  },
8922
- sourceId: sourceId$k,
9614
+ sourceId: sourceId$l,
8923
9615
  });
8924
9616
 
8925
- const sourceId$j = 5; // goerli
9617
+ const sourceId$k = 5; // goerli
8926
9618
  /*#__PURE__*/ defineChain({
8927
9619
  ...chainConfig$1,
8928
9620
  id: 420,
@@ -8943,7 +9635,7 @@ const sourceId$j = 5; // goerli
8943
9635
  contracts: {
8944
9636
  ...chainConfig$1.contracts,
8945
9637
  l2OutputOracle: {
8946
- [sourceId$j]: {
9638
+ [sourceId$k]: {
8947
9639
  address: '0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0',
8948
9640
  },
8949
9641
  },
@@ -8952,21 +9644,21 @@ const sourceId$j = 5; // goerli
8952
9644
  blockCreated: 49461,
8953
9645
  },
8954
9646
  portal: {
8955
- [sourceId$j]: {
9647
+ [sourceId$k]: {
8956
9648
  address: '0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383',
8957
9649
  },
8958
9650
  },
8959
9651
  l1StandardBridge: {
8960
- [sourceId$j]: {
9652
+ [sourceId$k]: {
8961
9653
  address: '0x636Af16bf2f682dD3109e60102b8E1A089FedAa8',
8962
9654
  },
8963
9655
  },
8964
9656
  },
8965
9657
  testnet: true,
8966
- sourceId: sourceId$j,
9658
+ sourceId: sourceId$k,
8967
9659
  });
8968
9660
 
8969
- const sourceId$i = 11_155_111; // sepolia
9661
+ const sourceId$j = 11_155_111; // sepolia
8970
9662
  /*#__PURE__*/ defineChain({
8971
9663
  ...chainConfig$1,
8972
9664
  id: 11155420,
@@ -8987,12 +9679,12 @@ const sourceId$i = 11_155_111; // sepolia
8987
9679
  contracts: {
8988
9680
  ...chainConfig$1.contracts,
8989
9681
  disputeGameFactory: {
8990
- [sourceId$i]: {
9682
+ [sourceId$j]: {
8991
9683
  address: '0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1',
8992
9684
  },
8993
9685
  },
8994
9686
  l2OutputOracle: {
8995
- [sourceId$i]: {
9687
+ [sourceId$j]: {
8996
9688
  address: '0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F',
8997
9689
  },
8998
9690
  },
@@ -9001,18 +9693,48 @@ const sourceId$i = 11_155_111; // sepolia
9001
9693
  blockCreated: 1620204,
9002
9694
  },
9003
9695
  portal: {
9004
- [sourceId$i]: {
9696
+ [sourceId$j]: {
9005
9697
  address: '0x16Fc5058F25648194471939df75CF27A2fdC48BC',
9006
9698
  },
9007
9699
  },
9008
9700
  l1StandardBridge: {
9009
- [sourceId$i]: {
9701
+ [sourceId$j]: {
9010
9702
  address: '0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1',
9011
9703
  },
9012
9704
  },
9013
9705
  },
9014
9706
  testnet: true,
9707
+ sourceId: sourceId$j,
9708
+ });
9709
+
9710
+ const sourceId$i = 11155111; // Sepolia testnet
9711
+ defineChain({
9712
+ ...chainConfig$1,
9713
+ name: 'Pyrope Testnet',
9714
+ testnet: true,
9715
+ id: 695569,
9015
9716
  sourceId: sourceId$i,
9717
+ nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
9718
+ rpcUrls: {
9719
+ default: {
9720
+ http: ['https://rpc.pyropechain.com'],
9721
+ webSocket: ['wss://rpc.pyropechain.com'],
9722
+ },
9723
+ },
9724
+ blockExplorers: {
9725
+ default: {
9726
+ name: 'Blockscout',
9727
+ url: 'https://pyrope.blockscout.com',
9728
+ },
9729
+ },
9730
+ contracts: {
9731
+ ...chainConfig$1.contracts,
9732
+ l1StandardBridge: {
9733
+ [sourceId$i]: {
9734
+ address: '0xC24932c31D9621aE9e792576152B7ef010cFC2F8',
9735
+ },
9736
+ },
9737
+ },
9016
9738
  });
9017
9739
 
9018
9740
  const sourceId$h = 1; // Ethereum mainnet
@@ -9900,9 +10622,13 @@ const FlaunchAddress = {
9900
10622
  [base.id]: "0xCc7A4A00072ccbeEEbd999edc812C0ce498Fb63B",
9901
10623
  [baseSepolia.id]: "0x7D375C9133721083DF7b7e5Cb0Ed8Fc78862dfe3",
9902
10624
  };
10625
+ const BidWallAddress = {
10626
+ [base.id]: "0x66681f10BA90496241A25e33380004f30Dfd8aa8",
10627
+ [baseSepolia.id]: "0xa2107050ACEf4809c88Ab744F8e667605db5ACDB",
10628
+ };
9903
10629
  const FastFlaunchZapAddress = {
9904
10630
  [base.id]: viem.zeroAddress, // FIXME: update with real address when deployed
9905
- [baseSepolia.id]: "0x36831b3085fdefc576c15d6d6675d52a647a02c0",
10631
+ [baseSepolia.id]: "0x251e97446a7019E5DA4860d4CF47291321C693D0",
9906
10632
  };
9907
10633
  const PoolManagerAddress = {
9908
10634
  [base.id]: "0x498581fF718922c3f8e6A244956aF099B2652b2b",
@@ -9916,10 +10642,30 @@ const QuoterAddress = {
9916
10642
  [base.id]: "0x0d5e0f971ed27fbff6c2837bf31316121532048d",
9917
10643
  [baseSepolia.id]: "0x4a6513c898fe1b2d0e78d3b0e0a4a151589b1cba",
9918
10644
  };
10645
+ const StateViewAddress = {
10646
+ [base.id]: "0xA3c0c9b65baD0b08107Aa264b0f3dB444b867A71",
10647
+ [baseSepolia.id]: "0x571291b572ed32ce6751a2Cb2486EbEe8DEfB9B4",
10648
+ };
9919
10649
  const Permit2Address = {
9920
10650
  [base.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
9921
10651
  [baseSepolia.id]: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
9922
10652
  };
10653
+ const USDCETHPoolKeys = {
10654
+ [base.id]: {
10655
+ currency0: viem.zeroAddress,
10656
+ currency1: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
10657
+ fee: 500,
10658
+ tickSpacing: 10,
10659
+ hooks: viem.zeroAddress,
10660
+ },
10661
+ [baseSepolia.id]: {
10662
+ currency0: viem.zeroAddress,
10663
+ currency1: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
10664
+ fee: 0,
10665
+ tickSpacing: 30,
10666
+ hooks: viem.zeroAddress,
10667
+ },
10668
+ };
9923
10669
 
9924
10670
  class ReadQuoter {
9925
10671
  constructor(chainId, address, drift$1 = drift.createDrift()) {
@@ -10007,8 +10753,33 @@ class ReadQuoter {
10007
10753
  });
10008
10754
  return res.amountIn;
10009
10755
  }
10756
+ async getETHUSDCPrice() {
10757
+ const amountIn = viem.parseEther("1");
10758
+ const res = await this.contract.simulateWrite("quoteExactInput", {
10759
+ params: {
10760
+ exactAmount: amountIn,
10761
+ exactCurrency: viem.zeroAddress,
10762
+ path: [
10763
+ {
10764
+ fee: USDCETHPoolKeys[this.chainId].fee,
10765
+ tickSpacing: USDCETHPoolKeys[this.chainId].tickSpacing,
10766
+ hooks: USDCETHPoolKeys[this.chainId].hooks,
10767
+ hookData: "0x",
10768
+ intermediateCurrency: USDCETHPoolKeys[this.chainId].currency1,
10769
+ },
10770
+ ],
10771
+ },
10772
+ });
10773
+ return Number(Number(viem.formatUnits(res.amountOut, 6)).toFixed(2));
10774
+ }
10010
10775
  }
10011
10776
 
10777
+ // our min/max tick range that is valid for the tick spacing (60)
10778
+ const TickFinder = {
10779
+ MIN_TICK: -887220,
10780
+ MAX_TICK: 887220,
10781
+ };
10782
+ const TICK_SPACING = 60;
10012
10783
  const getPoolId = (poolKey) => {
10013
10784
  // Pack the data in the same order as Solidity struct
10014
10785
  const packed = viem.concat([
@@ -11194,12 +11965,14 @@ class ReadPermit2 {
11194
11965
 
11195
11966
  class ReadFlaunchSDK {
11196
11967
  constructor(chainId, drift$1 = drift.createDrift()) {
11197
- this.TICK_SPACING = 60;
11968
+ this.TICK_SPACING = TICK_SPACING;
11198
11969
  this.chainId = chainId;
11199
11970
  this.drift = drift$1;
11200
11971
  this.readPositionManager = new ReadFlaunchPositionManager(FlaunchPositionManagerAddress[this.chainId], drift$1);
11201
11972
  this.readPoolManager = new ReadPoolManager(PoolManagerAddress[this.chainId], drift$1);
11973
+ this.readStateView = new ReadStateView(StateViewAddress[this.chainId], drift$1);
11202
11974
  this.readFairLaunch = new ReadFairLaunch(FairLaunchAddress[this.chainId], drift$1);
11975
+ this.readBidWall = new ReadBidWall(BidWallAddress[this.chainId], drift$1);
11203
11976
  this.readFlaunch = new ReadFlaunch(FlaunchAddress[this.chainId], drift$1);
11204
11977
  this.readQuoter = new ReadQuoter(this.chainId, QuoterAddress[this.chainId], drift$1);
11205
11978
  this.readPermit2 = new ReadPermit2(Permit2Address[this.chainId], drift$1);
@@ -11253,11 +12026,11 @@ class ReadFlaunchSDK {
11253
12026
  return poll();
11254
12027
  }
11255
12028
  positionInfo(params) {
11256
- return this.readPoolManager.positionInfo(params);
12029
+ return this.readStateView.positionInfo(params);
11257
12030
  }
11258
12031
  async currentTick(coinAddress) {
11259
12032
  const poolId = this.poolId(coinAddress);
11260
- const poolState = await this.readPoolManager.poolSlot0({ poolId });
12033
+ const poolState = await this.readStateView.poolSlot0({ poolId });
11261
12034
  return poolState.tick;
11262
12035
  }
11263
12036
  async coinPriceInETH(coinAddress) {
@@ -11273,6 +12046,15 @@ class ReadFlaunchSDK {
11273
12046
  }
11274
12047
  return ethPerCoin.toFixed(18);
11275
12048
  }
12049
+ // optionally pass in a drift instance to get the price from Base Mainnet
12050
+ async getETHUSDCPrice(drift) {
12051
+ if (drift) {
12052
+ const chainId = await drift.getChainId();
12053
+ const quoter = new ReadQuoter(chainId, QuoterAddress[chainId], drift);
12054
+ return quoter.getETHUSDCPrice();
12055
+ }
12056
+ return this.readQuoter.getETHUSDCPrice();
12057
+ }
11276
12058
  async fairLaunchInfo(coinAddress) {
11277
12059
  const poolId = this.poolId(coinAddress);
11278
12060
  return this.readFairLaunch.fairLaunchInfo({ poolId });
@@ -11312,7 +12094,48 @@ class ReadFlaunchSDK {
11312
12094
  });
11313
12095
  tickLower = tickUpper - this.TICK_SPACING;
11314
12096
  }
11315
- const { liquidity } = await this.readPoolManager.positionInfo({
12097
+ const { liquidity } = await this.readStateView.positionInfo({
12098
+ poolId,
12099
+ owner: FairLaunchAddress[this.chainId],
12100
+ tickLower,
12101
+ tickUpper,
12102
+ salt: "",
12103
+ });
12104
+ const { amount0, amount1 } = calculateUnderlyingTokenBalances(liquidity, tickLower, tickUpper, currentTick);
12105
+ const [flETHAmount, coinAmount] = isFLETHZero
12106
+ ? [amount0, amount1]
12107
+ : [amount1, amount0];
12108
+ return {
12109
+ flETHAmount,
12110
+ coinAmount,
12111
+ tickLower,
12112
+ tickUpper,
12113
+ };
12114
+ }
12115
+ async fairLaunchCoinOnlyPosition(coinAddress) {
12116
+ const poolId = this.poolId(coinAddress);
12117
+ const initialTick = await this.initialTick(coinAddress);
12118
+ const currentTick = await this.currentTick(coinAddress);
12119
+ const isFLETHZero = this.flETHIsCurrencyZero(coinAddress);
12120
+ let tickLower;
12121
+ let tickUpper;
12122
+ if (isFLETHZero) {
12123
+ tickLower = TickFinder.MIN_TICK;
12124
+ tickUpper = getValidTick({
12125
+ tick: initialTick - 1,
12126
+ roundDown: true,
12127
+ tickSpacing: this.TICK_SPACING,
12128
+ });
12129
+ }
12130
+ else {
12131
+ tickLower = getValidTick({
12132
+ tick: initialTick + 1,
12133
+ roundDown: false,
12134
+ tickSpacing: this.TICK_SPACING,
12135
+ });
12136
+ tickUpper = TickFinder.MAX_TICK;
12137
+ }
12138
+ const { liquidity } = await this.readStateView.positionInfo({
11316
12139
  poolId,
11317
12140
  owner: FairLaunchAddress[this.chainId],
11318
12141
  tickLower,
@@ -11330,6 +12153,24 @@ class ReadFlaunchSDK {
11330
12153
  tickUpper,
11331
12154
  };
11332
12155
  }
12156
+ async bidWallPosition(coinAddress) {
12157
+ const poolId = this.poolId(coinAddress);
12158
+ const isFLETHZero = this.flETHIsCurrencyZero(coinAddress);
12159
+ const { amount0_: amount0, amount1_: amount1, pendingEth_: pendingEth, } = await this.readBidWall.position({ poolId });
12160
+ const { tickLower, tickUpper } = await this.readBidWall.poolInfo({
12161
+ poolId,
12162
+ });
12163
+ const [flETHAmount, coinAmount] = isFLETHZero
12164
+ ? [amount0, amount1]
12165
+ : [amount1, amount0];
12166
+ return {
12167
+ flETHAmount,
12168
+ coinAmount,
12169
+ pendingEth,
12170
+ tickLower,
12171
+ tickUpper,
12172
+ };
12173
+ }
11333
12174
  poolId(coinAddress) {
11334
12175
  return getPoolId(orderPoolKey({
11335
12176
  currency0: FLETHAddress[this.chainId],
@@ -11370,6 +12211,7 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
11370
12211
  async coinBalance(coinAddress) {
11371
12212
  const user = await this.drift.getSignerAddress();
11372
12213
  const memecoin = new ReadMemecoin(coinAddress, this.drift);
12214
+ await memecoin.contract.cache.clear();
11373
12215
  return memecoin.balanceOf(user);
11374
12216
  }
11375
12217
  async buyCoin(params) {
@@ -11378,6 +12220,7 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
11378
12220
  let amountOutMin;
11379
12221
  let amountOut;
11380
12222
  let amountInMax;
12223
+ await this.readQuoter.contract.cache.clear();
11381
12224
  if (params.swapType === "EXACT_IN") {
11382
12225
  amountIn = params.amountIn;
11383
12226
  if (params.amountOutMin === undefined) {
@@ -11420,12 +12263,14 @@ class ReadWriteFlaunchSDK extends ReadFlaunchSDK {
11420
12263
  }
11421
12264
  async sellCoin(params) {
11422
12265
  let ethOutMin;
12266
+ await this.readQuoter.contract.cache.clear();
11423
12267
  if (params.ethOutMin === undefined) {
11424
12268
  ethOutMin = getAmountWithSlippage(await this.readQuoter.getSellQuoteExactInput(params.coinAddress, params.amountIn), (params.slippagePercent / 100).toFixed(18).toString(), "EXACT_IN");
11425
12269
  }
11426
12270
  else {
11427
12271
  ethOutMin = params.ethOutMin;
11428
12272
  }
12273
+ await this.readPermit2.contract.cache.clear();
11429
12274
  const { commands, inputs } = memecoinToEthWithPermit2({
11430
12275
  chainId: this.chainId,
11431
12276
  memecoin: params.coinAddress,
@@ -11470,6 +12315,7 @@ const FlaunchSDK = {
11470
12315
  ReadWriteFlaunchSDK,
11471
12316
  };
11472
12317
 
12318
+ exports.BidWallAddress = BidWallAddress;
11473
12319
  exports.FLETHAddress = FLETHAddress;
11474
12320
  exports.FLETHHooksAddress = FLETHHooksAddress;
11475
12321
  exports.FairLaunchAbi = FairLaunchAbi;
@@ -11487,9 +12333,18 @@ exports.PoolManagerAddress = PoolManagerAddress;
11487
12333
  exports.QuoterAddress = QuoterAddress;
11488
12334
  exports.ReadFlaunchSDK = ReadFlaunchSDK;
11489
12335
  exports.ReadWriteFlaunchSDK = ReadWriteFlaunchSDK;
12336
+ exports.StateViewAddress = StateViewAddress;
12337
+ exports.TICK_SPACING = TICK_SPACING;
12338
+ exports.TickFinder = TickFinder;
12339
+ exports.USDCETHPoolKeys = USDCETHPoolKeys;
11490
12340
  exports.UniversalRouterAddress = UniversalRouterAddress;
11491
12341
  exports.bytes32ToUint256 = bytes32ToUint256;
12342
+ exports.calculateUnderlyingTokenBalances = calculateUnderlyingTokenBalances;
11492
12343
  exports.generateTokenUri = generateTokenUri;
12344
+ exports.getPoolId = getPoolId;
12345
+ exports.getSqrtPriceX96FromTick = getSqrtPriceX96FromTick;
12346
+ exports.getValidTick = getValidTick;
12347
+ exports.orderPoolKey = orderPoolKey;
11493
12348
  exports.resolveIPFS = resolveIPFS;
11494
12349
  exports.uint256ToBytes32 = uint256ToBytes32;
11495
12350
  exports.uploadFileToIPFS = uploadFileToIPFS;