@1llet.xyz/erc4337-gasless-sdk 0.4.12 → 0.4.14

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
@@ -141,6 +141,7 @@ declare class BundlerClient {
141
141
  }
142
142
 
143
143
  declare const BASE_MAINNET: ChainConfig;
144
+ declare const OPTIMISM_MAINNET: ChainConfig;
144
145
  declare const GNOSIS_MAINNET: ChainConfig;
145
146
  declare const BASE_SEPOLIA: ChainConfig;
146
147
  declare const CHAIN_CONFIGS: Record<number, ChainConfig>;
@@ -369,4 +370,4 @@ declare class StandardBridgeStrategy implements BridgeStrategy {
369
370
  execute(context: BridgeContext): Promise<SettleResponse>;
370
371
  }
371
372
 
372
- export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
373
+ export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, OPTIMISM_MAINNET, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
package/dist/index.d.ts CHANGED
@@ -141,6 +141,7 @@ declare class BundlerClient {
141
141
  }
142
142
 
143
143
  declare const BASE_MAINNET: ChainConfig;
144
+ declare const OPTIMISM_MAINNET: ChainConfig;
144
145
  declare const GNOSIS_MAINNET: ChainConfig;
145
146
  declare const BASE_SEPOLIA: ChainConfig;
146
147
  declare const CHAIN_CONFIGS: Record<number, ChainConfig>;
@@ -369,4 +370,4 @@ declare class StandardBridgeStrategy implements BridgeStrategy {
369
370
  execute(context: BridgeContext): Promise<SettleResponse>;
370
371
  }
371
372
 
372
- export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
373
+ export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BridgeManager, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, type ChainConfig, GNOSIS_MAINNET, type GasEstimate, GaslessStrategy, NearStrategy, OPTIMISM_MAINNET, StandardBridgeStrategy, type Token, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, smartAccountAbi };
package/dist/index.js CHANGED
@@ -818,24 +818,33 @@ var CHAIN_CONFIGS = {
818
818
  [chains.gnosis.id]: GNOSIS_MAINNET,
819
819
  [chains.optimism.id]: OPTIMISM_MAINNET
820
820
  };
821
-
822
- // src/constants/facilitator.ts
823
821
  var calculateFee = () => {
824
822
  return BigInt(1e4);
825
823
  };
826
824
  var FACILITATOR_NETWORKS = {
827
- // Example:
828
- // Base: {
829
- // chainId: 8453,
830
- // chain: undefined, // Need importing from viem/chains
831
- // usdc: "0x...",
832
- // usdcName: "USDC",
833
- // usdcVersion: "1",
834
- // domain: 6,
835
- // tokenMessenger: "0x...",
836
- // messageTransmitter: "0x...",
837
- // rpcUrl: "https://..."
838
- // }
825
+ Base: {
826
+ chainId: 8453,
827
+ chain: chains.base,
828
+ usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
829
+ usdcName: "USD Coin",
830
+ usdcVersion: "2",
831
+ domain: 6,
832
+ tokenMessenger: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
833
+ messageTransmitter: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64",
834
+ rpcUrl: "https://base-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN"
835
+ },
836
+ Optimism: {
837
+ chainId: 10,
838
+ chain: chains.optimism,
839
+ usdc: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
840
+ usdcName: "USD Coin",
841
+ usdcVersion: "2",
842
+ domain: 2,
843
+ tokenMessenger: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
844
+ messageTransmitter: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64",
845
+ rpcUrl: "https://opt-mainnet.g.alchemy.com/v2/49fUGmuW05ynCui0VEvDN"
846
+ // Assuming same key works or public
847
+ }
839
848
  };
840
849
 
841
850
  // src/constants/abis.ts
@@ -2146,6 +2155,7 @@ exports.CHAIN_CONFIGS = CHAIN_CONFIGS;
2146
2155
  exports.GNOSIS_MAINNET = GNOSIS_MAINNET;
2147
2156
  exports.GaslessStrategy = GaslessStrategy;
2148
2157
  exports.NearStrategy = NearStrategy;
2158
+ exports.OPTIMISM_MAINNET = OPTIMISM_MAINNET;
2149
2159
  exports.StandardBridgeStrategy = StandardBridgeStrategy;
2150
2160
  exports.entryPointAbi = entryPointAbi;
2151
2161
  exports.erc20Abi = erc20Abi;