@1llet.xyz/erc4337-gasless-sdk 0.4.28 → 0.4.30

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { optimism, gnosis, baseSepolia, base, avalanche, worldchain, monad, polygon, arbitrum, bsc, unichain } from 'viem/chains';
1
+ import { gnosis, optimism, baseSepolia, base, avalanche, worldchain, monad, polygon, arbitrum, bsc, unichain } from 'viem/chains';
2
2
  import { createPublicClient, http, createWalletClient, decodeErrorResult, maxUint256, encodeFunctionData, encodeAbiParameters, keccak256, padHex } from 'viem';
3
3
  import { privateKeyToAccount } from 'viem/accounts';
4
4
  import axios from 'axios';
@@ -225,7 +225,6 @@ var erc20Abi = [
225
225
  var BundlerClient = class {
226
226
  constructor(config, entryPointAddress) {
227
227
  this.bundlerUrl = config.bundlerUrl;
228
- this.chainId = config.chain.id;
229
228
  this.entryPointAddress = entryPointAddress;
230
229
  }
231
230
  async call(method, params) {
@@ -308,9 +307,6 @@ var TokenService = class {
308
307
  * Resolve token address from symbol or return address if provided
309
308
  */
310
309
  getTokenAddress(token) {
311
- if (token === "ETH") {
312
- return "0x0000000000000000000000000000000000000000";
313
- }
314
310
  if (token.startsWith("0x")) return token;
315
311
  const info = this.tokens.get(token.toUpperCase());
316
312
  if (!info) throw new Error(`Token ${token} not found in chain config`);
@@ -580,13 +576,6 @@ var AccountAbstraction = class {
580
576
  });
581
577
  return address;
582
578
  }
583
- /**
584
- * Check if the Smart Account is deployed
585
- */
586
- async isAccountDeployed() {
587
- if (!this.smartAccountAddress) throw new Error("Not connected");
588
- return this.userOpBuilder.isAccountDeployed(this.smartAccountAddress);
589
- }
590
579
  // --- Token Methods (Delegated) ---
591
580
  getTokenAddress(token) {
592
581
  return this.tokenService.getTokenAddress(token);
@@ -599,29 +588,11 @@ var AccountAbstraction = class {
599
588
  if (!this.owner) throw new Error("Not connected");
600
589
  return this.tokenService.getBalance(token, this.owner);
601
590
  }
602
- // Deprecated helpers maintained for compatibility
603
- async getUsdcBalance() {
604
- return this.getBalance("USDC");
605
- }
606
- async getEoaUsdcBalance() {
607
- return this.getEoaBalance("USDC");
608
- }
609
591
  async getAllowance(token = "USDC") {
610
592
  if (!this.owner || !this.smartAccountAddress) throw new Error("Not connected");
611
593
  return this.tokenService.getAllowance(token, this.owner, this.smartAccountAddress);
612
594
  }
613
595
  // --- Transactions ---
614
- async deployAccount() {
615
- if (!this.owner || !this.smartAccountAddress) throw new Error("Not connected");
616
- try {
617
- const userOp = await this.userOpBuilder.buildDeployUserOp(this.owner, this.smartAccountAddress);
618
- const signed = await this.signUserOperation(userOp);
619
- const hash = await this.sendUserOperation(signed);
620
- return await this.waitForUserOperation(hash);
621
- } catch (error) {
622
- throw this.decodeError(error);
623
- }
624
- }
625
596
  async sendTransaction(tx) {
626
597
  return this.sendBatchTransaction([tx]);
627
598
  }
@@ -653,10 +624,9 @@ var AccountAbstraction = class {
653
624
  to: this.smartAccountAddress,
654
625
  value: amount,
655
626
  chain: this.chainConfig.chain
656
- // Explicit chain
657
627
  });
658
628
  }
659
- const txHash = await window.ethereum.request({
629
+ return await window.ethereum.request({
660
630
  method: "eth_sendTransaction",
661
631
  params: [{
662
632
  from: this.owner,
@@ -664,7 +634,6 @@ var AccountAbstraction = class {
664
634
  value: "0x" + amount.toString(16)
665
635
  }]
666
636
  });
667
- return txHash;
668
637
  }
669
638
  async transfer(token, recipient, amount) {
670
639
  const tokenAddress = this.getTokenAddress(token);
@@ -698,7 +667,7 @@ var AccountAbstraction = class {
698
667
  chain: this.chainConfig.chain
699
668
  });
700
669
  }
701
- const txHash = await window.ethereum.request({
670
+ return await window.ethereum.request({
702
671
  method: "eth_sendTransaction",
703
672
  params: [{
704
673
  from: this.owner,
@@ -706,7 +675,6 @@ var AccountAbstraction = class {
706
675
  data
707
676
  }]
708
677
  });
709
- return txHash;
710
678
  }
711
679
  if (support.type === "permit") throw new Error("Permit not yet supported");
712
680
  return "NOT_NEEDED";
@@ -718,10 +686,6 @@ var AccountAbstraction = class {
718
686
  // User requested "modularize", but usually expects same public API.
719
687
  // I will expose them as simple delegates if needed, or assume they primarily use sendBatchTransaction.
720
688
  // The previous implementation exposed `buildUserOperationBatch`.
721
- async buildUserOperationBatch(transactions) {
722
- if (!this.owner || !this.smartAccountAddress) throw new Error("Not connected");
723
- return this.userOpBuilder.buildUserOperationBatch(this.owner, this.smartAccountAddress, transactions);
724
- }
725
689
  async signUserOperation(userOp) {
726
690
  if (!this.owner) throw new Error("Not connected");
727
691
  const userOpHash = this.userOpBuilder.getUserOpHash(userOp);
@@ -777,125 +741,282 @@ var AccountAbstraction = class {
777
741
  return this.smartAccountAddress;
778
742
  }
779
743
  };
744
+
745
+ // src/constants/bundler.ts
780
746
  var DEFAULT_BUNDLER_URL = "https://bundler-erc-4337.vercel.app";
781
747
  var BUNDLER_URL = process.env.NEXT_PUBLIC_BUNDLER_URL || process.env.BUNDLER_URL || DEFAULT_BUNDLER_URL;
782
- var BASE_MAINNET = {
783
- chain: base,
784
- bundlerUrl: `${BUNDLER_URL}/rpc?chain=base`,
785
- // Dynamic Bundler URL
786
- // Addresses
787
- entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
788
- factoryAddress: "0xe2584152891E4769025807DEa0cD611F135aDC68",
789
- paymasterAddress: "0x1e13Eb16C565E3f3FDe49A011755e50410bb1F95",
790
- tokens: [
748
+
749
+ // src/chains/Evm/Base.ts
750
+ var BASE = {
751
+ assets: [
791
752
  {
792
- symbol: "USDC",
753
+ name: "USDC",
793
754
  decimals: 6,
794
- address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
755
+ address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
756
+ coingeckoId: "usd-coin"
795
757
  },
796
758
  {
797
- symbol: "ETH",
759
+ name: "ETH",
798
760
  decimals: 18,
799
- address: "0x0000000000000000000000000000000000000000"
761
+ address: "0x0000000000000000000000000000000000000000",
762
+ coingeckoId: "ethereum"
800
763
  }
801
- ]
764
+ ],
765
+ evm: {
766
+ chain: base,
767
+ rpcUrl: "https://base-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
768
+ supports7702: true,
769
+ erc4337: false,
770
+ bundlerUrl: `${BUNDLER_URL}/rpc?chain=base`,
771
+ entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
772
+ factoryAddress: "0xe2584152891E4769025807DEa0cD611F135aDC68",
773
+ paymasterAddress: "0x1e13Eb16C565E3f3FDe49A011755e50410bb1F95"
774
+ },
775
+ crossChainInformation: {
776
+ circleInformation: {
777
+ supportCirclePaymaster: true,
778
+ cCTPInformation: {
779
+ supportCCTP: true,
780
+ domain: 6
781
+ },
782
+ aproxFromFee: 0
783
+ },
784
+ nearIntentInformation: {
785
+ support: true,
786
+ assetsId: [
787
+ {
788
+ assetId: "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",
789
+ name: "USDC",
790
+ decimals: 6
791
+ },
792
+ {
793
+ assetId: "nep141:base.omft.near",
794
+ name: "ETH",
795
+ decimals: 18
796
+ }
797
+ ],
798
+ needMemo: false
799
+ }
800
+ }
802
801
  };
803
- var OPTIMISM_MAINNET = {
804
- chain: optimism,
805
- bundlerUrl: `${BUNDLER_URL}/rpc?chain=optimism`,
806
- // Dynamic Bundler URL
807
- // Addresses
808
- entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
809
- factoryAddress: "0x3CE963866d3Be7Fe4354DBe892Aab52a0a18aeb2",
810
- paymasterAddress: "0x0dB771d11F84E8541AA651363DF14E4401d01216",
811
- tokens: [
802
+ var GNOSIS = {
803
+ assets: [
812
804
  {
813
- symbol: "USDC",
805
+ name: "USDC",
814
806
  decimals: 6,
815
- address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"
807
+ address: "0x2a22f9c3b484c3629090FeED35F17Ff8F88f76F0",
808
+ coingeckoId: "usd-coin"
816
809
  },
817
810
  {
818
- symbol: "USDT",
811
+ name: "USDT",
819
812
  decimals: 6,
820
- address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58"
813
+ address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
814
+ coingeckoId: "tether"
815
+ },
816
+ {
817
+ name: "EURe",
818
+ decimals: 18,
819
+ address: "0x420CA0f9B9b604cE0fd9C18EF134C705e5Fa3430",
820
+ coingeckoId: "monerium-eur-money"
821
+ },
822
+ {
823
+ name: "GNO",
824
+ decimals: 18,
825
+ address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
826
+ coingeckoId: "gnosis"
821
827
  },
822
828
  {
823
- symbol: "OP",
829
+ name: "WETH",
824
830
  decimals: 18,
825
- address: "0x4200000000000000000000000000000000000042"
831
+ address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
832
+ coingeckoId: "ethereum"
826
833
  },
827
834
  {
828
- symbol: "ETH",
835
+ name: "XDAI",
829
836
  decimals: 18,
830
- address: "0x0000000000000000000000000000000000000000"
837
+ address: "0x0000000000000000000000000000000000000000",
838
+ coingeckoId: "xdai"
839
+ }
840
+ ],
841
+ evm: {
842
+ chain: gnosis,
843
+ rpcUrl: gnosis.rpcUrls.default.http[0],
844
+ supports7702: true,
845
+ erc4337: true,
846
+ bundlerUrl: `${BUNDLER_URL}/rpc?chain=gnosis`,
847
+ entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
848
+ factoryAddress: "0xC8a2Fb1f2E686417A131E09be3320cb5431CcD90",
849
+ paymasterAddress: "0x4C36C70d68a7c26326711e8268bb163E3784fA96"
850
+ },
851
+ crossChainInformation: {
852
+ circleInformation: {
853
+ supportCirclePaymaster: false,
854
+ aproxFromFee: 0,
855
+ cCTPInformation: {
856
+ supportCCTP: false,
857
+ domain: 0
858
+ }
859
+ },
860
+ nearIntentInformation: {
861
+ support: true,
862
+ assetsId: [
863
+ {
864
+ assetId: "nep141:gnosis-0x2a22f9c3b484c3629090feed35f17ff8f88f76f0.omft.near",
865
+ name: "USDC",
866
+ decimals: 6
867
+ },
868
+ {
869
+ assetId: "nep141:gnosis-0x4ecaba5870353805a9f068101a40e0f32ed605c6.omft.near",
870
+ name: "USDT",
871
+ decimals: 6
872
+ },
873
+ {
874
+ assetId: "nep141:gnosis-0x420ca0f9b9b604ce0fd9c18ef134c705e5fa3430.omft.near",
875
+ name: "EURe",
876
+ decimals: 18
877
+ },
878
+ {
879
+ assetId: "nep141:gnosis-0x9c58bacc331c9aa871afd802db6379a98e80cedb.omft.near",
880
+ name: "GNO",
881
+ decimals: 18
882
+ },
883
+ {
884
+ assetId: "nep141:gnosis-0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1.omft.near",
885
+ name: "WETH",
886
+ decimals: 18
887
+ },
888
+ {
889
+ assetId: "nep141:gnosis.omft.near",
890
+ name: "XDAI",
891
+ decimals: 18
892
+ }
893
+ ],
894
+ needMemo: false
831
895
  }
832
- ]
896
+ }
833
897
  };
834
- var GNOSIS_MAINNET = {
835
- chain: gnosis,
836
- bundlerUrl: `${BUNDLER_URL}/rpc?chain=gnosis`,
837
- // Dynamic Bundler URL
838
- // Addresses
839
- entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
840
- factoryAddress: "0xC8a2Fb1f2E686417A131E09be3320cb5431CcD90",
841
- paymasterAddress: "0x4C36C70d68a7c26326711e8268bb163E3784fA96",
842
- tokens: [
898
+ var OPTIMISM = {
899
+ assets: [
843
900
  {
844
- symbol: "USDC",
901
+ name: "USDC",
845
902
  decimals: 6,
846
- address: "0x2a22f9c3b484c3629090FeED35F17Ff8F88f76F0"
903
+ address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
904
+ coingeckoId: "usd-coin"
847
905
  },
848
906
  {
849
- symbol: "USDT",
907
+ name: "USDT",
850
908
  decimals: 6,
851
- address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6"
852
- },
853
- {
854
- symbol: "EURe",
855
- decimals: 18,
856
- address: "0x420CA0f9B9b604cE0fd9C18EF134C705e5Fa3430"
909
+ address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
910
+ coingeckoId: "tether"
857
911
  },
858
912
  {
859
- symbol: "GNO",
913
+ name: "OP",
860
914
  decimals: 18,
861
- address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb"
915
+ address: "0x4200000000000000000000000000000000000042",
916
+ coingeckoId: "optimism"
862
917
  },
863
918
  {
864
- symbol: "WETH",
919
+ name: "ETH",
865
920
  decimals: 18,
866
- address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1"
921
+ address: "0x0000000000000000000000000000000000000000",
922
+ coingeckoId: "ethereum"
923
+ }
924
+ ],
925
+ evm: {
926
+ chain: optimism,
927
+ rpcUrl: "https://opt-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
928
+ supports7702: false,
929
+ erc4337: false,
930
+ bundlerUrl: `${BUNDLER_URL}/rpc?chain=optimism`,
931
+ entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
932
+ factoryAddress: "0x3CE963866d3Be7Fe4354DBe892Aab52a0a18aeb2",
933
+ paymasterAddress: "0x0dB771d11F84E8541AA651363DF14E4401d01216"
934
+ },
935
+ crossChainInformation: {
936
+ circleInformation: {
937
+ supportCirclePaymaster: true,
938
+ cCTPInformation: {
939
+ supportCCTP: true,
940
+ domain: 2
941
+ },
942
+ aproxFromFee: 0
867
943
  },
868
- {
869
- symbol: "XDAI",
870
- decimals: 18,
871
- address: "0x0000000000000000000000000000000000000000"
944
+ nearIntentInformation: {
945
+ support: true,
946
+ assetsId: [
947
+ {
948
+ assetId: "nep245:v2_1.omni.hot.tg:10_A2ewyUyDp6qsue1jqZsGypkCxRJ",
949
+ name: "USDC",
950
+ decimals: 6
951
+ },
952
+ {
953
+ assetId: "nep245:v2_1.omni.hot.tg:10_359RPSJVdTxwTJT9TyGssr2rFoWo",
954
+ name: "USDT",
955
+ decimals: 6
956
+ },
957
+ {
958
+ assetId: "nep245:v2_1.omni.hot.tg:10_vLAiSt9KfUGKpw5cD3vsSyNYBo7",
959
+ name: "OP",
960
+ decimals: 18
961
+ },
962
+ {
963
+ assetId: "nep245:v2_1.omni.hot.tg:10_11111111111111111111",
964
+ name: "ETH",
965
+ decimals: 18
966
+ }
967
+ ],
968
+ needMemo: false
872
969
  }
873
- ]
970
+ }
874
971
  };
875
972
  var BASE_SEPOLIA = {
876
- chain: baseSepolia,
877
- bundlerUrl: `${BUNDLER_URL}/rpc?chain=baseSepolia`,
878
- // Dynamic Bundler URL
879
- // Addresses
880
- entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
881
- factoryAddress: "0x9406Cc6185a346906296840746125a0E44976454",
882
- // Paymaster not configured in deployments.ts for Sepolia?
883
- tokens: [
973
+ assets: [
884
974
  {
885
- symbol: "USDC",
975
+ name: "USDC",
886
976
  decimals: 6,
887
- address: "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
977
+ address: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
978
+ coingeckoId: "usd-coin"
888
979
  },
889
980
  {
890
- symbol: "ETH",
981
+ name: "ETH",
891
982
  decimals: 18,
892
- address: "0x0000000000000000000000000000000000000000"
983
+ address: "0x0000000000000000000000000000000000000000",
984
+ coingeckoId: "ethereum"
893
985
  }
894
- ]
895
- };
986
+ ],
987
+ evm: {
988
+ chain: baseSepolia,
989
+ rpcUrl: "https://sepolia.base.org",
990
+ supports7702: true,
991
+ erc4337: true,
992
+ bundlerUrl: `${BUNDLER_URL}/rpc?chain=baseSepolia`,
993
+ entryPointAddress: "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
994
+ factoryAddress: "0x9406Cc6185a346906296840746125a0E44976454"
995
+ // Paymaster optional
996
+ }};
997
+ function mapToSDKConfig(data) {
998
+ if (!data.evm) throw new Error("Non-EVM config used in EVM SDK");
999
+ return {
1000
+ chain: data.evm.chain,
1001
+ rpcUrl: data.evm.rpcUrl || void 0,
1002
+ bundlerUrl: data.evm.bundlerUrl,
1003
+ entryPointAddress: data.evm.entryPointAddress,
1004
+ factoryAddress: data.evm.factoryAddress,
1005
+ paymasterAddress: data.evm.paymasterAddress,
1006
+ tokens: data.assets.map((a) => ({
1007
+ symbol: a.name,
1008
+ decimals: a.decimals,
1009
+ address: a.address
1010
+ }))
1011
+ };
1012
+ }
1013
+ var BASE_MAINNET = mapToSDKConfig(BASE);
1014
+ var OPTIMISM_MAINNET = mapToSDKConfig(OPTIMISM);
1015
+ var GNOSIS_MAINNET = mapToSDKConfig(GNOSIS);
1016
+ var BASE_SEPOLIA2 = mapToSDKConfig(BASE_SEPOLIA);
896
1017
  var CHAIN_CONFIGS = {
897
1018
  [base.id]: BASE_MAINNET,
898
- [baseSepolia.id]: BASE_SEPOLIA,
1019
+ [baseSepolia.id]: BASE_SEPOLIA2,
899
1020
  [gnosis.id]: GNOSIS_MAINNET,
900
1021
  [optimism.id]: OPTIMISM_MAINNET
901
1022
  };
@@ -1036,76 +1157,6 @@ var createRetrieveAttestation = async (transactionHash, chainId, timeout = 6e4)
1036
1157
  await new Promise((resolve) => setTimeout(resolve, FIVE_SECONDS));
1037
1158
  }
1038
1159
  };
1039
- var OPTIMISM = {
1040
- assets: [
1041
- {
1042
- name: "USDC",
1043
- decimals: 6,
1044
- address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
1045
- coingeckoId: "usd-coin"
1046
- },
1047
- {
1048
- name: "USDT",
1049
- decimals: 6,
1050
- address: "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
1051
- coingeckoId: "tether"
1052
- },
1053
- {
1054
- name: "OP",
1055
- decimals: 18,
1056
- address: "0x4200000000000000000000000000000000000042",
1057
- coingeckoId: "optimism"
1058
- },
1059
- {
1060
- name: "ETH",
1061
- decimals: 18,
1062
- address: "0x0000000000000000000000000000000000000000",
1063
- coingeckoId: "ethereum"
1064
- }
1065
- ],
1066
- evm: {
1067
- chain: optimism,
1068
- rpcUrl: "https://opt-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
1069
- supports7702: false,
1070
- erc4337: false
1071
- },
1072
- crossChainInformation: {
1073
- circleInformation: {
1074
- supportCirclePaymaster: true,
1075
- cCTPInformation: {
1076
- supportCCTP: true,
1077
- domain: 2
1078
- },
1079
- aproxFromFee: 0
1080
- },
1081
- nearIntentInformation: {
1082
- support: true,
1083
- assetsId: [
1084
- {
1085
- assetId: "nep245:v2_1.omni.hot.tg:10_A2ewyUyDp6qsue1jqZsGypkCxRJ",
1086
- name: "USDC",
1087
- decimals: 6
1088
- },
1089
- {
1090
- assetId: "nep245:v2_1.omni.hot.tg:10_359RPSJVdTxwTJT9TyGssr2rFoWo",
1091
- name: "USDT",
1092
- decimals: 6
1093
- },
1094
- {
1095
- assetId: "nep245:v2_1.omni.hot.tg:10_vLAiSt9KfUGKpw5cD3vsSyNYBo7",
1096
- name: "OP",
1097
- decimals: 18
1098
- },
1099
- {
1100
- assetId: "nep245:v2_1.omni.hot.tg:10_11111111111111111111",
1101
- name: "ETH",
1102
- decimals: 18
1103
- }
1104
- ],
1105
- needMemo: false
1106
- }
1107
- }
1108
- };
1109
1160
  var ARBITRUM = {
1110
1161
  assets: [
1111
1162
  {
@@ -1176,54 +1227,6 @@ var ARBITRUM = {
1176
1227
  }
1177
1228
  }
1178
1229
  };
1179
- var BASE = {
1180
- assets: [
1181
- {
1182
- name: "USDC",
1183
- decimals: 6,
1184
- address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
1185
- coingeckoId: "usd-coin"
1186
- },
1187
- {
1188
- name: "ETH",
1189
- decimals: 18,
1190
- address: "0x0000000000000000000000000000000000000000",
1191
- coingeckoId: "ethereum"
1192
- }
1193
- ],
1194
- evm: {
1195
- chain: base,
1196
- rpcUrl: "https://base-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN",
1197
- supports7702: true,
1198
- erc4337: false
1199
- },
1200
- crossChainInformation: {
1201
- circleInformation: {
1202
- supportCirclePaymaster: true,
1203
- cCTPInformation: {
1204
- supportCCTP: true,
1205
- domain: 6
1206
- },
1207
- aproxFromFee: 0
1208
- },
1209
- nearIntentInformation: {
1210
- support: true,
1211
- assetsId: [
1212
- {
1213
- assetId: "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",
1214
- name: "USDC",
1215
- decimals: 6
1216
- },
1217
- {
1218
- assetId: "nep141:base.omft.near",
1219
- name: "ETH",
1220
- decimals: 18
1221
- }
1222
- ],
1223
- needMemo: false
1224
- }
1225
- }
1226
- };
1227
1230
  var UNICHAIN = {
1228
1231
  assets: [
1229
1232
  {
@@ -1559,98 +1562,6 @@ var BNB = {
1559
1562
  }
1560
1563
  }
1561
1564
  };
1562
- var GNOSIS = {
1563
- assets: [
1564
- {
1565
- name: "USDC",
1566
- decimals: 6,
1567
- address: "0x2a22f9c3b484c3629090FeED35F17Ff8F88f76F0",
1568
- coingeckoId: "usd-coin"
1569
- },
1570
- {
1571
- name: "USDT",
1572
- decimals: 6,
1573
- address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6",
1574
- coingeckoId: "tether"
1575
- },
1576
- {
1577
- name: "EURe",
1578
- decimals: 18,
1579
- address: "0x420CA0f9B9b604cE0fd9C18EF134C705e5Fa3430",
1580
- coingeckoId: "monerium-eur-money"
1581
- },
1582
- {
1583
- name: "GNO",
1584
- decimals: 18,
1585
- address: "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",
1586
- coingeckoId: "gnosis"
1587
- },
1588
- {
1589
- name: "WETH",
1590
- decimals: 18,
1591
- address: "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
1592
- coingeckoId: "ethereum"
1593
- },
1594
- {
1595
- name: "XDAI",
1596
- decimals: 18,
1597
- address: "0x0000000000000000000000000000000000000000",
1598
- coingeckoId: "xdai"
1599
- }
1600
- ],
1601
- evm: {
1602
- chain: gnosis,
1603
- rpcUrl: gnosis.rpcUrls.default.http[0],
1604
- supports7702: true,
1605
- erc4337: true
1606
- },
1607
- crossChainInformation: {
1608
- circleInformation: {
1609
- supportCirclePaymaster: false,
1610
- aproxFromFee: 0,
1611
- cCTPInformation: {
1612
- supportCCTP: false,
1613
- domain: 0
1614
- }
1615
- },
1616
- nearIntentInformation: {
1617
- support: true,
1618
- assetsId: [
1619
- {
1620
- assetId: "nep141:gnosis-0x2a22f9c3b484c3629090feed35f17ff8f88f76f0.omft.near",
1621
- name: "USDC",
1622
- decimals: 6
1623
- },
1624
- {
1625
- assetId: "nep141:gnosis-0x4ecaba5870353805a9f068101a40e0f32ed605c6.omft.near",
1626
- name: "USDT",
1627
- decimals: 6
1628
- },
1629
- {
1630
- assetId: "nep141:gnosis-0x420ca0f9b9b604ce0fd9c18ef134c705e5fa3430.omft.near",
1631
- name: "EURe",
1632
- decimals: 18
1633
- },
1634
- {
1635
- assetId: "nep141:gnosis-0x9c58bacc331c9aa871afd802db6379a98e80cedb.omft.near",
1636
- name: "GNO",
1637
- decimals: 18
1638
- },
1639
- {
1640
- assetId: "nep141:gnosis-0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1.omft.near",
1641
- name: "WETH",
1642
- decimals: 18
1643
- },
1644
- {
1645
- assetId: "nep141:gnosis.omft.near",
1646
- name: "XDAI",
1647
- decimals: 18
1648
- }
1649
- ],
1650
- needMemo: false
1651
- }
1652
- }
1653
- };
1654
1565
 
1655
1566
  // src/constants/chainsInformation.ts
1656
1567
  var NETWORKS = {
@@ -2028,14 +1939,7 @@ var NearStrategy = class {
2028
1939
  return {
2029
1940
  success: true,
2030
1941
  transactionHash: "PENDING_USER_DEPOSIT",
2031
- // Placeholder or null
2032
1942
  netAmount: quoteResult.amountAtomicNet,
2033
- // Or formatted
2034
- // We might need to extend SettleResponse to include explicit instruction
2035
- // For now, we reuse the existing type.
2036
- // In a real scenario, we'd add `depositAddress` to the response type.
2037
- // Assuming SettleResponse is flexible or we console log it for the user context.
2038
- // To be safe and useful:
2039
1943
  data: {
2040
1944
  depositAddress: quoteResult.depositAddress,
2041
1945
  amountToDeposit: quoteResult.amountAtomicNet,
@@ -2148,6 +2052,6 @@ var TransferManager = class {
2148
2052
  }
2149
2053
  };
2150
2054
 
2151
- export { AccountAbstraction, BASE_MAINNET, BASE_SEPOLIA, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, GNOSIS_MAINNET, NearStrategy, OPTIMISM_MAINNET, TransferManager, entryPointAbi, erc20Abi, smartAccountAbi };
2055
+ export { AccountAbstraction, BASE_MAINNET, BASE_SEPOLIA2 as BASE_SEPOLIA, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, GNOSIS_MAINNET, NearStrategy, OPTIMISM_MAINNET, TransferManager, entryPointAbi, erc20Abi, smartAccountAbi };
2152
2056
  //# sourceMappingURL=index.mjs.map
2153
2057
  //# sourceMappingURL=index.mjs.map