@1delta/providers 0.0.50 → 0.0.51

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/dist/index.d.mts CHANGED
@@ -364,6 +364,94 @@ declare const customChains: {
364
364
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
365
365
  readonly network: "monad";
366
366
  };
367
+ readonly swellchain: {
368
+ blockExplorers: {
369
+ readonly default: {
370
+ readonly name: "Explorer";
371
+ readonly url: "https://explorer.swellnetwork.io";
372
+ };
373
+ };
374
+ blockTime?: number | undefined | undefined;
375
+ contracts: {
376
+ readonly multicall3: {
377
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
378
+ readonly blockCreated: 1;
379
+ };
380
+ };
381
+ ensTlds?: readonly string[] | undefined;
382
+ id: 1923;
383
+ name: "Swellchain";
384
+ nativeCurrency: {
385
+ readonly decimals: 18;
386
+ readonly name: "Ether";
387
+ readonly symbol: "ETH";
388
+ };
389
+ experimental_preconfirmationTime?: number | undefined | undefined;
390
+ rpcUrls: {
391
+ readonly default: {
392
+ readonly http: readonly ["https://rpc.swellnetwork.io"];
393
+ };
394
+ };
395
+ sourceId?: number | undefined | undefined;
396
+ testnet?: boolean | undefined | undefined;
397
+ custom?: Record<string, unknown> | undefined;
398
+ extendSchema?: Record<string, unknown> | undefined;
399
+ fees?: viem.ChainFees<undefined> | undefined;
400
+ formatters?: undefined;
401
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
402
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
403
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
404
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
405
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
406
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
407
+ }] | undefined;
408
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
409
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
410
+ };
411
+ readonly tacMainnet: {
412
+ blockExplorers: {
413
+ readonly default: {
414
+ readonly name: "Explorer";
415
+ readonly url: "https://explorer.tac.build";
416
+ };
417
+ };
418
+ blockTime?: number | undefined | undefined;
419
+ contracts: {
420
+ readonly multicall3: {
421
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
422
+ readonly blockCreated: 1;
423
+ };
424
+ };
425
+ ensTlds?: readonly string[] | undefined;
426
+ id: 239;
427
+ name: "TAC Mainnet";
428
+ nativeCurrency: {
429
+ readonly decimals: 18;
430
+ readonly name: "Ether";
431
+ readonly symbol: "ETH";
432
+ };
433
+ experimental_preconfirmationTime?: number | undefined | undefined;
434
+ rpcUrls: {
435
+ readonly default: {
436
+ readonly http: readonly ["https://rpc.tac.build"];
437
+ };
438
+ };
439
+ sourceId?: number | undefined | undefined;
440
+ testnet?: boolean | undefined | undefined;
441
+ custom?: Record<string, unknown> | undefined;
442
+ extendSchema?: Record<string, unknown> | undefined;
443
+ fees?: viem.ChainFees<undefined> | undefined;
444
+ formatters?: undefined;
445
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
446
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
447
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
448
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
449
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
450
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
451
+ }] | undefined;
452
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
453
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
454
+ };
367
455
  };
368
456
 
369
457
  declare function getEvmChain(chain: string): {
@@ -718,6 +806,92 @@ declare function getEvmChain(chain: string): {
718
806
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
719
807
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
720
808
  readonly network: "monad";
809
+ } | {
810
+ blockExplorers: {
811
+ readonly default: {
812
+ readonly name: "Explorer";
813
+ readonly url: "https://explorer.swellnetwork.io";
814
+ };
815
+ };
816
+ blockTime?: number | undefined | undefined;
817
+ contracts: {
818
+ readonly multicall3: {
819
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
820
+ readonly blockCreated: 1;
821
+ };
822
+ };
823
+ ensTlds?: readonly string[] | undefined;
824
+ id: 1923;
825
+ name: "Swellchain";
826
+ nativeCurrency: {
827
+ readonly decimals: 18;
828
+ readonly name: "Ether";
829
+ readonly symbol: "ETH";
830
+ };
831
+ experimental_preconfirmationTime?: number | undefined | undefined;
832
+ rpcUrls: {
833
+ readonly default: {
834
+ readonly http: readonly ["https://rpc.swellnetwork.io"];
835
+ };
836
+ };
837
+ sourceId?: number | undefined | undefined;
838
+ testnet?: boolean | undefined | undefined;
839
+ custom?: Record<string, unknown> | undefined;
840
+ extendSchema?: Record<string, unknown> | undefined;
841
+ fees?: viem.ChainFees<undefined> | undefined;
842
+ formatters?: undefined;
843
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
844
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
845
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
846
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
847
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
848
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
849
+ }] | undefined;
850
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
851
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
852
+ } | {
853
+ blockExplorers: {
854
+ readonly default: {
855
+ readonly name: "Explorer";
856
+ readonly url: "https://explorer.tac.build";
857
+ };
858
+ };
859
+ blockTime?: number | undefined | undefined;
860
+ contracts: {
861
+ readonly multicall3: {
862
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
863
+ readonly blockCreated: 1;
864
+ };
865
+ };
866
+ ensTlds?: readonly string[] | undefined;
867
+ id: 239;
868
+ name: "TAC Mainnet";
869
+ nativeCurrency: {
870
+ readonly decimals: 18;
871
+ readonly name: "Ether";
872
+ readonly symbol: "ETH";
873
+ };
874
+ experimental_preconfirmationTime?: number | undefined | undefined;
875
+ rpcUrls: {
876
+ readonly default: {
877
+ readonly http: readonly ["https://rpc.tac.build"];
878
+ };
879
+ };
880
+ sourceId?: number | undefined | undefined;
881
+ testnet?: boolean | undefined | undefined;
882
+ custom?: Record<string, unknown> | undefined;
883
+ extendSchema?: Record<string, unknown> | undefined;
884
+ fees?: viem.ChainFees<undefined> | undefined;
885
+ formatters?: undefined;
886
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
887
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
888
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
889
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
890
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
891
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
892
+ }] | undefined;
893
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
894
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
721
895
  } | {
722
896
  blockExplorers: {
723
897
  readonly default: {
package/dist/index.d.ts CHANGED
@@ -364,6 +364,94 @@ declare const customChains: {
364
364
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
365
365
  readonly network: "monad";
366
366
  };
367
+ readonly swellchain: {
368
+ blockExplorers: {
369
+ readonly default: {
370
+ readonly name: "Explorer";
371
+ readonly url: "https://explorer.swellnetwork.io";
372
+ };
373
+ };
374
+ blockTime?: number | undefined | undefined;
375
+ contracts: {
376
+ readonly multicall3: {
377
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
378
+ readonly blockCreated: 1;
379
+ };
380
+ };
381
+ ensTlds?: readonly string[] | undefined;
382
+ id: 1923;
383
+ name: "Swellchain";
384
+ nativeCurrency: {
385
+ readonly decimals: 18;
386
+ readonly name: "Ether";
387
+ readonly symbol: "ETH";
388
+ };
389
+ experimental_preconfirmationTime?: number | undefined | undefined;
390
+ rpcUrls: {
391
+ readonly default: {
392
+ readonly http: readonly ["https://rpc.swellnetwork.io"];
393
+ };
394
+ };
395
+ sourceId?: number | undefined | undefined;
396
+ testnet?: boolean | undefined | undefined;
397
+ custom?: Record<string, unknown> | undefined;
398
+ extendSchema?: Record<string, unknown> | undefined;
399
+ fees?: viem.ChainFees<undefined> | undefined;
400
+ formatters?: undefined;
401
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
402
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
403
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
404
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
405
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
406
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
407
+ }] | undefined;
408
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
409
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
410
+ };
411
+ readonly tacMainnet: {
412
+ blockExplorers: {
413
+ readonly default: {
414
+ readonly name: "Explorer";
415
+ readonly url: "https://explorer.tac.build";
416
+ };
417
+ };
418
+ blockTime?: number | undefined | undefined;
419
+ contracts: {
420
+ readonly multicall3: {
421
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
422
+ readonly blockCreated: 1;
423
+ };
424
+ };
425
+ ensTlds?: readonly string[] | undefined;
426
+ id: 239;
427
+ name: "TAC Mainnet";
428
+ nativeCurrency: {
429
+ readonly decimals: 18;
430
+ readonly name: "Ether";
431
+ readonly symbol: "ETH";
432
+ };
433
+ experimental_preconfirmationTime?: number | undefined | undefined;
434
+ rpcUrls: {
435
+ readonly default: {
436
+ readonly http: readonly ["https://rpc.tac.build"];
437
+ };
438
+ };
439
+ sourceId?: number | undefined | undefined;
440
+ testnet?: boolean | undefined | undefined;
441
+ custom?: Record<string, unknown> | undefined;
442
+ extendSchema?: Record<string, unknown> | undefined;
443
+ fees?: viem.ChainFees<undefined> | undefined;
444
+ formatters?: undefined;
445
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
446
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
447
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
448
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
449
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
450
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
451
+ }] | undefined;
452
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
453
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
454
+ };
367
455
  };
368
456
 
369
457
  declare function getEvmChain(chain: string): {
@@ -718,6 +806,92 @@ declare function getEvmChain(chain: string): {
718
806
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
719
807
  verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
720
808
  readonly network: "monad";
809
+ } | {
810
+ blockExplorers: {
811
+ readonly default: {
812
+ readonly name: "Explorer";
813
+ readonly url: "https://explorer.swellnetwork.io";
814
+ };
815
+ };
816
+ blockTime?: number | undefined | undefined;
817
+ contracts: {
818
+ readonly multicall3: {
819
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
820
+ readonly blockCreated: 1;
821
+ };
822
+ };
823
+ ensTlds?: readonly string[] | undefined;
824
+ id: 1923;
825
+ name: "Swellchain";
826
+ nativeCurrency: {
827
+ readonly decimals: 18;
828
+ readonly name: "Ether";
829
+ readonly symbol: "ETH";
830
+ };
831
+ experimental_preconfirmationTime?: number | undefined | undefined;
832
+ rpcUrls: {
833
+ readonly default: {
834
+ readonly http: readonly ["https://rpc.swellnetwork.io"];
835
+ };
836
+ };
837
+ sourceId?: number | undefined | undefined;
838
+ testnet?: boolean | undefined | undefined;
839
+ custom?: Record<string, unknown> | undefined;
840
+ extendSchema?: Record<string, unknown> | undefined;
841
+ fees?: viem.ChainFees<undefined> | undefined;
842
+ formatters?: undefined;
843
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
844
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
845
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
846
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
847
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
848
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
849
+ }] | undefined;
850
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
851
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
852
+ } | {
853
+ blockExplorers: {
854
+ readonly default: {
855
+ readonly name: "Explorer";
856
+ readonly url: "https://explorer.tac.build";
857
+ };
858
+ };
859
+ blockTime?: number | undefined | undefined;
860
+ contracts: {
861
+ readonly multicall3: {
862
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
863
+ readonly blockCreated: 1;
864
+ };
865
+ };
866
+ ensTlds?: readonly string[] | undefined;
867
+ id: 239;
868
+ name: "TAC Mainnet";
869
+ nativeCurrency: {
870
+ readonly decimals: 18;
871
+ readonly name: "Ether";
872
+ readonly symbol: "ETH";
873
+ };
874
+ experimental_preconfirmationTime?: number | undefined | undefined;
875
+ rpcUrls: {
876
+ readonly default: {
877
+ readonly http: readonly ["https://rpc.tac.build"];
878
+ };
879
+ };
880
+ sourceId?: number | undefined | undefined;
881
+ testnet?: boolean | undefined | undefined;
882
+ custom?: Record<string, unknown> | undefined;
883
+ extendSchema?: Record<string, unknown> | undefined;
884
+ fees?: viem.ChainFees<undefined> | undefined;
885
+ formatters?: undefined;
886
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
887
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
888
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
889
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
890
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
891
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
892
+ }] | undefined;
893
+ serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
894
+ verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
721
895
  } | {
722
896
  blockExplorers: {
723
897
  readonly default: {
package/dist/index.js CHANGED
@@ -21636,13 +21636,61 @@ var monadMainnet = defineChain({
21636
21636
  }
21637
21637
  }
21638
21638
  });
21639
+ var swellchain = defineChain({
21640
+ id: 1923,
21641
+ name: "Swellchain",
21642
+ nativeCurrency: {
21643
+ decimals: 18,
21644
+ name: "Ether",
21645
+ symbol: "ETH"
21646
+ },
21647
+ rpcUrls: {
21648
+ default: {
21649
+ http: ["https://rpc.swellnetwork.io"]
21650
+ }
21651
+ },
21652
+ blockExplorers: {
21653
+ default: { name: "Explorer", url: "https://explorer.swellnetwork.io" }
21654
+ },
21655
+ contracts: {
21656
+ multicall3: {
21657
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
21658
+ blockCreated: 1
21659
+ }
21660
+ }
21661
+ });
21662
+ var tacMainnet = defineChain({
21663
+ id: 239,
21664
+ name: "TAC Mainnet",
21665
+ nativeCurrency: {
21666
+ decimals: 18,
21667
+ name: "Ether",
21668
+ symbol: "ETH"
21669
+ },
21670
+ rpcUrls: {
21671
+ default: {
21672
+ http: ["https://rpc.tac.build"]
21673
+ }
21674
+ },
21675
+ blockExplorers: {
21676
+ default: { name: "Explorer", url: "https://explorer.tac.build" }
21677
+ },
21678
+ contracts: {
21679
+ multicall3: {
21680
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
21681
+ blockCreated: 1
21682
+ }
21683
+ }
21684
+ });
21639
21685
  var customChains = {
21640
21686
  artela,
21641
21687
  botanix,
21642
21688
  crossfi,
21643
21689
  GraphLinq,
21644
21690
  hyperEvm,
21645
- monadMainnet
21691
+ monadMainnet,
21692
+ swellchain,
21693
+ tacMainnet
21646
21694
  };
21647
21695
 
21648
21696
  // src/chains/chainMapping.ts
@@ -24857,6 +24905,10 @@ function getEvmChain(chain) {
24857
24905
  return worldchain;
24858
24906
  case import_chain_registry.Chain.MONAD_MAINNET:
24859
24907
  return customChains.monadMainnet;
24908
+ case import_chain_registry.Chain.SWELLCHAIN:
24909
+ return customChains.swellchain;
24910
+ case import_chain_registry.Chain.TAC_MAINNET:
24911
+ return customChains.tacMainnet;
24860
24912
  case import_chain_registry.Chain.ZKLINK_NOVA_MAINNET:
24861
24913
  return {
24862
24914
  ...zkLinkNova,
@@ -24962,11 +25014,11 @@ var LIST_OVERRIDES = {
24962
25014
  "https://scroll-rpc.publicnode.com"
24963
25015
  ],
24964
25016
  [import_chain_registry2.Chain.SONIC_MAINNET]: [
24965
- "https://sonic.api.onfinality.io/public",
24966
25017
  "https://sonic-rpc.publicnode.com",
24967
25018
  "https://rpc.soniclabs.com",
24968
25019
  "https://sonic.drpc.org",
24969
- "https://sonic-json-rpc.stakely.io"
25020
+ "https://sonic-json-rpc.stakely.io",
25021
+ "https://sonic.api.onfinality.io/public"
24970
25022
  ],
24971
25023
  [import_chain_registry2.Chain.KAIA_MAINNET]: [
24972
25024
  "https://public-en.node.kaia.io",
@@ -25133,6 +25185,18 @@ var LIST_OVERRIDES = {
25133
25185
  "https://rpc.hyperlend.finance",
25134
25186
  "https://rpc.hyperliquid.xyz/evm"
25135
25187
  ],
25188
+ [import_chain_registry2.Chain.SWELLCHAIN]: [
25189
+ "https://rpc.swellnetwork.io",
25190
+ "https://swell-mainnet.alt.technology",
25191
+ "https://rpc.sentio.xyz/swell-mainnet",
25192
+ "https://rpc.ankr.com/swell"
25193
+ ],
25194
+ [import_chain_registry2.Chain.TAC_MAINNET]: [
25195
+ "https://rpc.ankr.com/tac",
25196
+ "https://rpc.tac.build",
25197
+ "https://tac.therpc.io",
25198
+ "https://ws.rpc.tac.build"
25199
+ ],
25136
25200
  [import_chain_registry2.Chain.UNICHAIN]: [
25137
25201
  "https://mainnet.unichain.org",
25138
25202
  "https://rpc.sentio.xyz/unichain-mainnet",
@@ -25282,17 +25346,30 @@ function isTransportError(e) {
25282
25346
  return msg.includes("is not a constructor") || msg.includes("Dynamic require") || msg.includes("is not supported") || msg.includes("wrong json-rpc response") || msg.includes("there is neither result nor error");
25283
25347
  }
25284
25348
  function isHttpError(e) {
25349
+ const err = e;
25350
+ const code = err?.code ?? err?.cause?.code;
25351
+ if (code === "ECONNRESET" || code === "ETIMEDOUT" || code === "ENOTFOUND")
25352
+ return true;
25353
+ if (err?.status === 401 || err?.status === 429 || err?.status >= 500)
25354
+ return true;
25285
25355
  if (e instanceof BaseError2) {
25286
- let err = e;
25287
- while (err) {
25288
- const status = err.status;
25356
+ let current = e;
25357
+ while (current) {
25358
+ const status = current.status;
25289
25359
  if (status && status >= 400) return true;
25290
- const details = err.details ?? "";
25291
- if (details.includes("rate-limit") || details.includes("Too Many Requests") || details.includes("Bad gateway") || details.includes("<!DOCTYPE html>"))
25360
+ const details = current.details ?? "";
25361
+ const message = current.message ?? "";
25362
+ const combined = `${message} ${details}`;
25363
+ if (combined.includes("rate-limit") || combined.includes("Too Many Requests") || combined.includes("Bad gateway") || combined.includes("<!DOCTYPE html>") || combined.includes("HTTP request failed") || combined.includes("not whitelisted") || combined.includes("timed out") || combined.includes("timeout") || combined.includes("took too long") || combined.includes("-32601"))
25292
25364
  return true;
25293
- err = err.cause ?? null;
25365
+ current = current.cause ?? null;
25294
25366
  }
25295
25367
  }
25368
+ if (e instanceof Error) {
25369
+ const combined = `${e.message ?? ""} ${e.details ?? ""}`;
25370
+ if (combined.includes("HTTP request failed") || combined.includes("fetch failed") || combined.includes("not whitelisted") || combined.includes("timed out") || combined.includes("timeout") || combined.includes("took too long") || combined.includes("-32601"))
25371
+ return true;
25372
+ }
25296
25373
  return false;
25297
25374
  }
25298
25375
  function isOutOfGasError(e) {
package/dist/index.mjs CHANGED
@@ -7926,13 +7926,61 @@ var monadMainnet = defineChain({
7926
7926
  }
7927
7927
  }
7928
7928
  });
7929
+ var swellchain = defineChain({
7930
+ id: 1923,
7931
+ name: "Swellchain",
7932
+ nativeCurrency: {
7933
+ decimals: 18,
7934
+ name: "Ether",
7935
+ symbol: "ETH"
7936
+ },
7937
+ rpcUrls: {
7938
+ default: {
7939
+ http: ["https://rpc.swellnetwork.io"]
7940
+ }
7941
+ },
7942
+ blockExplorers: {
7943
+ default: { name: "Explorer", url: "https://explorer.swellnetwork.io" }
7944
+ },
7945
+ contracts: {
7946
+ multicall3: {
7947
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
7948
+ blockCreated: 1
7949
+ }
7950
+ }
7951
+ });
7952
+ var tacMainnet = defineChain({
7953
+ id: 239,
7954
+ name: "TAC Mainnet",
7955
+ nativeCurrency: {
7956
+ decimals: 18,
7957
+ name: "Ether",
7958
+ symbol: "ETH"
7959
+ },
7960
+ rpcUrls: {
7961
+ default: {
7962
+ http: ["https://rpc.tac.build"]
7963
+ }
7964
+ },
7965
+ blockExplorers: {
7966
+ default: { name: "Explorer", url: "https://explorer.tac.build" }
7967
+ },
7968
+ contracts: {
7969
+ multicall3: {
7970
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
7971
+ blockCreated: 1
7972
+ }
7973
+ }
7974
+ });
7929
7975
  var customChains = {
7930
7976
  artela,
7931
7977
  botanix,
7932
7978
  crossfi,
7933
7979
  GraphLinq,
7934
7980
  hyperEvm,
7935
- monadMainnet
7981
+ monadMainnet,
7982
+ swellchain,
7983
+ tacMainnet
7936
7984
  };
7937
7985
 
7938
7986
  // src/chains/chainMapping.ts
@@ -11097,6 +11145,10 @@ function getEvmChain(chain) {
11097
11145
  return worldchain;
11098
11146
  case Chain.MONAD_MAINNET:
11099
11147
  return customChains.monadMainnet;
11148
+ case Chain.SWELLCHAIN:
11149
+ return customChains.swellchain;
11150
+ case Chain.TAC_MAINNET:
11151
+ return customChains.tacMainnet;
11100
11152
  case Chain.ZKLINK_NOVA_MAINNET:
11101
11153
  return {
11102
11154
  ...zkLinkNova,
@@ -11202,11 +11254,11 @@ var LIST_OVERRIDES = {
11202
11254
  "https://scroll-rpc.publicnode.com"
11203
11255
  ],
11204
11256
  [Chain2.SONIC_MAINNET]: [
11205
- "https://sonic.api.onfinality.io/public",
11206
11257
  "https://sonic-rpc.publicnode.com",
11207
11258
  "https://rpc.soniclabs.com",
11208
11259
  "https://sonic.drpc.org",
11209
- "https://sonic-json-rpc.stakely.io"
11260
+ "https://sonic-json-rpc.stakely.io",
11261
+ "https://sonic.api.onfinality.io/public"
11210
11262
  ],
11211
11263
  [Chain2.KAIA_MAINNET]: [
11212
11264
  "https://public-en.node.kaia.io",
@@ -11373,6 +11425,18 @@ var LIST_OVERRIDES = {
11373
11425
  "https://rpc.hyperlend.finance",
11374
11426
  "https://rpc.hyperliquid.xyz/evm"
11375
11427
  ],
11428
+ [Chain2.SWELLCHAIN]: [
11429
+ "https://rpc.swellnetwork.io",
11430
+ "https://swell-mainnet.alt.technology",
11431
+ "https://rpc.sentio.xyz/swell-mainnet",
11432
+ "https://rpc.ankr.com/swell"
11433
+ ],
11434
+ [Chain2.TAC_MAINNET]: [
11435
+ "https://rpc.ankr.com/tac",
11436
+ "https://rpc.tac.build",
11437
+ "https://tac.therpc.io",
11438
+ "https://ws.rpc.tac.build"
11439
+ ],
11376
11440
  [Chain2.UNICHAIN]: [
11377
11441
  "https://mainnet.unichain.org",
11378
11442
  "https://rpc.sentio.xyz/unichain-mainnet",
@@ -11522,17 +11586,30 @@ function isTransportError(e) {
11522
11586
  return msg.includes("is not a constructor") || msg.includes("Dynamic require") || msg.includes("is not supported") || msg.includes("wrong json-rpc response") || msg.includes("there is neither result nor error");
11523
11587
  }
11524
11588
  function isHttpError(e) {
11589
+ const err = e;
11590
+ const code = err?.code ?? err?.cause?.code;
11591
+ if (code === "ECONNRESET" || code === "ETIMEDOUT" || code === "ENOTFOUND")
11592
+ return true;
11593
+ if (err?.status === 401 || err?.status === 429 || err?.status >= 500)
11594
+ return true;
11525
11595
  if (e instanceof BaseError) {
11526
- let err = e;
11527
- while (err) {
11528
- const status = err.status;
11596
+ let current = e;
11597
+ while (current) {
11598
+ const status = current.status;
11529
11599
  if (status && status >= 400) return true;
11530
- const details = err.details ?? "";
11531
- if (details.includes("rate-limit") || details.includes("Too Many Requests") || details.includes("Bad gateway") || details.includes("<!DOCTYPE html>"))
11600
+ const details = current.details ?? "";
11601
+ const message = current.message ?? "";
11602
+ const combined = `${message} ${details}`;
11603
+ if (combined.includes("rate-limit") || combined.includes("Too Many Requests") || combined.includes("Bad gateway") || combined.includes("<!DOCTYPE html>") || combined.includes("HTTP request failed") || combined.includes("not whitelisted") || combined.includes("timed out") || combined.includes("timeout") || combined.includes("took too long") || combined.includes("-32601"))
11532
11604
  return true;
11533
- err = err.cause ?? null;
11605
+ current = current.cause ?? null;
11534
11606
  }
11535
11607
  }
11608
+ if (e instanceof Error) {
11609
+ const combined = `${e.message ?? ""} ${e.details ?? ""}`;
11610
+ if (combined.includes("HTTP request failed") || combined.includes("fetch failed") || combined.includes("not whitelisted") || combined.includes("timed out") || combined.includes("timeout") || combined.includes("took too long") || combined.includes("-32601"))
11611
+ return true;
11612
+ }
11536
11613
  return false;
11537
11614
  }
11538
11615
  function isOutOfGasError(e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1delta/providers",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -18,8 +18,8 @@
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
20
  "vitest": "^4.0.18",
21
- "@1delta/data-sdk": "0.0.17",
22
- "@1delta/chain-registry": "0.0.4"
21
+ "@1delta/chain-registry": "0.0.4",
22
+ "@1delta/data-sdk": "0.0.17"
23
23
  },
24
24
  "devDependencies": {
25
25
  "tsup": "^8.5.1",
@@ -304,6 +304,10 @@ export function getEvmChain(chain: string) {
304
304
  return worldchain
305
305
  case Chain.MONAD_MAINNET:
306
306
  return customChains.monadMainnet
307
+ case Chain.SWELLCHAIN:
308
+ return customChains.swellchain
309
+ case Chain.TAC_MAINNET:
310
+ return customChains.tacMainnet
307
311
  case Chain.ZKLINK_NOVA_MAINNET:
308
312
  return {
309
313
  ...zkLinkNova,
@@ -192,6 +192,54 @@ const monadMainnet = defineChain({
192
192
  },
193
193
  })
194
194
 
195
+ const swellchain = defineChain({
196
+ id: 1923,
197
+ name: 'Swellchain',
198
+ nativeCurrency: {
199
+ decimals: 18,
200
+ name: 'Ether',
201
+ symbol: 'ETH',
202
+ },
203
+ rpcUrls: {
204
+ default: {
205
+ http: ['https://rpc.swellnetwork.io'],
206
+ },
207
+ },
208
+ blockExplorers: {
209
+ default: { name: 'Explorer', url: 'https://explorer.swellnetwork.io' },
210
+ },
211
+ contracts: {
212
+ multicall3: {
213
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
214
+ blockCreated: 1,
215
+ },
216
+ },
217
+ })
218
+
219
+ const tacMainnet = defineChain({
220
+ id: 239,
221
+ name: 'TAC Mainnet',
222
+ nativeCurrency: {
223
+ decimals: 18,
224
+ name: 'Ether',
225
+ symbol: 'ETH',
226
+ },
227
+ rpcUrls: {
228
+ default: {
229
+ http: ['https://rpc.tac.build'],
230
+ },
231
+ },
232
+ blockExplorers: {
233
+ default: { name: 'Explorer', url: 'https://explorer.tac.build' },
234
+ },
235
+ contracts: {
236
+ multicall3: {
237
+ address: '0xcA11bde05977b3631167028862bE2a173976CA11',
238
+ blockCreated: 1,
239
+ },
240
+ },
241
+ })
242
+
195
243
  export const customChains = {
196
244
  artela,
197
245
  botanix,
@@ -199,4 +247,6 @@ export const customChains = {
199
247
  GraphLinq,
200
248
  hyperEvm,
201
249
  monadMainnet,
250
+ swellchain,
251
+ tacMainnet,
202
252
  } as const
@@ -22,22 +22,61 @@ function isTransportError(e: unknown): boolean {
22
22
 
23
23
  /** Return true if the error is an HTTP-level failure (429, 502, 503, etc.) rather than a contract/RPC error */
24
24
  function isHttpError(e: unknown): boolean {
25
+ // Check connection-level error codes on the error and its cause chain
26
+ const err = e as any
27
+ const code = err?.code ?? err?.cause?.code
28
+ if (
29
+ code === 'ECONNRESET' ||
30
+ code === 'ETIMEDOUT' ||
31
+ code === 'ENOTFOUND'
32
+ )
33
+ return true
34
+
35
+ // Check numeric status on the error itself (non-BaseError cases)
36
+ if (err?.status === 401 || err?.status === 429 || err?.status >= 500)
37
+ return true
38
+
39
+ // Walk the BaseError cause chain for status codes and detail strings
25
40
  if (e instanceof BaseError) {
26
- let err: any = e
27
- while (err) {
28
- const status = err.status as number | undefined
41
+ let current: any = e
42
+ while (current) {
43
+ const status = current.status as number | undefined
29
44
  if (status && status >= 400) return true
30
- const details: string = err.details ?? ''
45
+ const details: string = current.details ?? ''
46
+ const message: string = current.message ?? ''
47
+ const combined = `${message} ${details}`
31
48
  if (
32
- details.includes('rate-limit') ||
33
- details.includes('Too Many Requests') ||
34
- details.includes('Bad gateway') ||
35
- details.includes('<!DOCTYPE html>')
49
+ combined.includes('rate-limit') ||
50
+ combined.includes('Too Many Requests') ||
51
+ combined.includes('Bad gateway') ||
52
+ combined.includes('<!DOCTYPE html>') ||
53
+ combined.includes('HTTP request failed') ||
54
+ combined.includes('not whitelisted') ||
55
+ combined.includes('timed out') ||
56
+ combined.includes('timeout') ||
57
+ combined.includes('took too long') ||
58
+ combined.includes('-32601')
36
59
  )
37
60
  return true
38
- err = err.cause ?? null
61
+ current = current.cause ?? null
39
62
  }
40
63
  }
64
+
65
+ // Fallback: check message + details as strings for non-BaseError errors
66
+ if (e instanceof Error) {
67
+ const combined = `${e.message ?? ''} ${(e as any).details ?? ''}`
68
+ if (
69
+ combined.includes('HTTP request failed') ||
70
+ combined.includes('fetch failed') ||
71
+ combined.includes('not whitelisted') ||
72
+ combined.includes('timed out') ||
73
+ combined.includes('timeout') ||
74
+ combined.includes('took too long') ||
75
+ combined.includes('-32601')
76
+ )
77
+ return true
78
+ }
79
+
41
80
  return false
42
81
  }
43
82
 
@@ -91,11 +91,11 @@ export const LIST_OVERRIDES: Record<string, string[]> = {
91
91
  'https://scroll-rpc.publicnode.com',
92
92
  ],
93
93
  [Chain.SONIC_MAINNET]: [
94
- 'https://sonic.api.onfinality.io/public',
95
94
  'https://sonic-rpc.publicnode.com',
96
95
  'https://rpc.soniclabs.com',
97
96
  'https://sonic.drpc.org',
98
97
  'https://sonic-json-rpc.stakely.io',
98
+ 'https://sonic.api.onfinality.io/public',
99
99
  ],
100
100
  [Chain.KAIA_MAINNET]: [
101
101
  'https://public-en.node.kaia.io',
@@ -262,6 +262,18 @@ export const LIST_OVERRIDES: Record<string, string[]> = {
262
262
  'https://rpc.hyperlend.finance',
263
263
  'https://rpc.hyperliquid.xyz/evm',
264
264
  ],
265
+ [Chain.SWELLCHAIN]: [
266
+ 'https://rpc.swellnetwork.io',
267
+ 'https://swell-mainnet.alt.technology',
268
+ 'https://rpc.sentio.xyz/swell-mainnet',
269
+ 'https://rpc.ankr.com/swell',
270
+ ],
271
+ [Chain.TAC_MAINNET]: [
272
+ 'https://rpc.ankr.com/tac',
273
+ 'https://rpc.tac.build',
274
+ 'https://tac.therpc.io',
275
+ 'https://ws.rpc.tac.build',
276
+ ],
265
277
  [Chain.UNICHAIN]: [
266
278
  'https://mainnet.unichain.org',
267
279
  'https://rpc.sentio.xyz/unichain-mainnet',