@1llet.xyz/erc4337-gasless-sdk 0.4.72 → 0.4.73

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
@@ -268,6 +268,8 @@ declare const AVALANCHE: ChainConfig;
268
268
 
269
269
  declare const OPTIMISM: ChainConfig;
270
270
 
271
+ declare const UNICHAIN: ChainConfig;
272
+
271
273
  declare const BASE_MAINNET: ChainConfig$1;
272
274
  declare const OPTIMISM_MAINNET: ChainConfig$1;
273
275
  declare const GNOSIS_MAINNET: ChainConfig$1;
@@ -279,6 +281,7 @@ declare const ARBITRUM_MAINNET: ChainConfig$1;
279
281
  declare const UNICHAIN_MAINNET: ChainConfig$1;
280
282
  declare const MONAD_MAINNET: ChainConfig$1;
281
283
  declare const STELLAR_MAINNET: ChainConfig$1;
284
+ declare const STACKS_MAINNET: ChainConfig$1;
282
285
  declare const CHAIN_CONFIGS: Record<number, ChainConfig$1>;
283
286
 
284
287
  declare const entryPointAbi: readonly [{
@@ -480,6 +483,7 @@ interface BridgeContext {
480
483
  facilitatorPrivateKey?: string;
481
484
  feeRecipient?: string;
482
485
  depositTxHash?: string;
486
+ sourceAA?: AccountAbstraction;
483
487
  }
484
488
  interface BridgeStrategy {
485
489
  name: string;
@@ -493,20 +497,11 @@ declare class TransferManager {
493
497
  constructor();
494
498
  execute(context: BridgeContext, logCallback?: (msg: string) => void): Promise<SettleResponse>;
495
499
  /**
496
- * Special method to orchestrate the Base -> Optimism -> Base demo flow
497
- * entirely within the SDK.
498
- */
499
- executeMultiHopDemo(context: BridgeContext, sourceAA: AccountAbstraction, // We need the actual AA instance to sign
500
- logCallback?: (msg: string) => void, overrides?: {
501
- bundlerUrl?: string;
502
- }): Promise<boolean>;
503
- /**
504
- * Specialized method for Unichain -> Stacks flow.
505
- * 1. Unichain -> Ethereum (CCTP)
500
+ * Specialized method for Base/Unichain -> Stacks flow.
501
+ * 1. EVM (Base/Unichain) -> Ethereum (CCTP)
506
502
  * 2. Ethereum -> Stacks (Stacks Bridge)
507
503
  */
508
- executeUnichainToStacks(context: BridgeContext, sourceAA: AccountAbstraction, ethPrivateKey: string, // Needed for Stacks Bridge execution on Ethereum (Facilitator/Intermediary EOA)
509
- logCallback?: (msg: string) => void): Promise<SettleResponse>;
504
+ executeEVMToStacks(context: BridgeContext, sourceAA: AccountAbstraction, ethPrivateKey: string, logCallback?: (msg: string) => void): Promise<SettleResponse>;
510
505
  }
511
506
 
512
507
  declare class NearStrategy implements BridgeStrategy {
@@ -605,4 +600,4 @@ declare class RouterService {
605
600
  private pollCondition;
606
601
  }
607
602
 
608
- export { ARBITRUM_MAINNET, AVALANCHE, AVALANCHE_MAINNET, AccountAbstraction, type ApprovalSupportResult, BASE, BASE_MAINNET, BASE_SEPOLIA, BSC_MAINNET, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, MONAD_MAINNET, NearStrategy, OPTIMISM, OPTIMISM_MAINNET, POLYGON_MAINNET, RouterService, STELLAR, STELLAR_MAINNET, StargateStrategy, StellarService, type Token, TransferManager, UNICHAIN_MAINNET, UniswapService, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearQuote, getNearSimulation, getStargateSimulation, smartAccountAbi, uniswapService };
603
+ export { ARBITRUM_MAINNET, AVALANCHE, AVALANCHE_MAINNET, AccountAbstraction, type ApprovalSupportResult, BASE, BASE_MAINNET, BASE_SEPOLIA, BSC_MAINNET, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, MONAD_MAINNET, NearStrategy, OPTIMISM, OPTIMISM_MAINNET, POLYGON_MAINNET, RouterService, STACKS_MAINNET, STELLAR, STELLAR_MAINNET, StargateStrategy, StellarService, type Token, TransferManager, UNICHAIN, UNICHAIN_MAINNET, UniswapService, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearQuote, getNearSimulation, getStargateSimulation, smartAccountAbi, uniswapService };
package/dist/index.d.ts CHANGED
@@ -268,6 +268,8 @@ declare const AVALANCHE: ChainConfig;
268
268
 
269
269
  declare const OPTIMISM: ChainConfig;
270
270
 
271
+ declare const UNICHAIN: ChainConfig;
272
+
271
273
  declare const BASE_MAINNET: ChainConfig$1;
272
274
  declare const OPTIMISM_MAINNET: ChainConfig$1;
273
275
  declare const GNOSIS_MAINNET: ChainConfig$1;
@@ -279,6 +281,7 @@ declare const ARBITRUM_MAINNET: ChainConfig$1;
279
281
  declare const UNICHAIN_MAINNET: ChainConfig$1;
280
282
  declare const MONAD_MAINNET: ChainConfig$1;
281
283
  declare const STELLAR_MAINNET: ChainConfig$1;
284
+ declare const STACKS_MAINNET: ChainConfig$1;
282
285
  declare const CHAIN_CONFIGS: Record<number, ChainConfig$1>;
283
286
 
284
287
  declare const entryPointAbi: readonly [{
@@ -480,6 +483,7 @@ interface BridgeContext {
480
483
  facilitatorPrivateKey?: string;
481
484
  feeRecipient?: string;
482
485
  depositTxHash?: string;
486
+ sourceAA?: AccountAbstraction;
483
487
  }
484
488
  interface BridgeStrategy {
485
489
  name: string;
@@ -493,20 +497,11 @@ declare class TransferManager {
493
497
  constructor();
494
498
  execute(context: BridgeContext, logCallback?: (msg: string) => void): Promise<SettleResponse>;
495
499
  /**
496
- * Special method to orchestrate the Base -> Optimism -> Base demo flow
497
- * entirely within the SDK.
498
- */
499
- executeMultiHopDemo(context: BridgeContext, sourceAA: AccountAbstraction, // We need the actual AA instance to sign
500
- logCallback?: (msg: string) => void, overrides?: {
501
- bundlerUrl?: string;
502
- }): Promise<boolean>;
503
- /**
504
- * Specialized method for Unichain -> Stacks flow.
505
- * 1. Unichain -> Ethereum (CCTP)
500
+ * Specialized method for Base/Unichain -> Stacks flow.
501
+ * 1. EVM (Base/Unichain) -> Ethereum (CCTP)
506
502
  * 2. Ethereum -> Stacks (Stacks Bridge)
507
503
  */
508
- executeUnichainToStacks(context: BridgeContext, sourceAA: AccountAbstraction, ethPrivateKey: string, // Needed for Stacks Bridge execution on Ethereum (Facilitator/Intermediary EOA)
509
- logCallback?: (msg: string) => void): Promise<SettleResponse>;
504
+ executeEVMToStacks(context: BridgeContext, sourceAA: AccountAbstraction, ethPrivateKey: string, logCallback?: (msg: string) => void): Promise<SettleResponse>;
510
505
  }
511
506
 
512
507
  declare class NearStrategy implements BridgeStrategy {
@@ -605,4 +600,4 @@ declare class RouterService {
605
600
  private pollCondition;
606
601
  }
607
602
 
608
- export { ARBITRUM_MAINNET, AVALANCHE, AVALANCHE_MAINNET, AccountAbstraction, type ApprovalSupportResult, BASE, BASE_MAINNET, BASE_SEPOLIA, BSC_MAINNET, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, MONAD_MAINNET, NearStrategy, OPTIMISM, OPTIMISM_MAINNET, POLYGON_MAINNET, RouterService, STELLAR, STELLAR_MAINNET, StargateStrategy, StellarService, type Token, TransferManager, UNICHAIN_MAINNET, UniswapService, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearQuote, getNearSimulation, getStargateSimulation, smartAccountAbi, uniswapService };
603
+ export { ARBITRUM_MAINNET, AVALANCHE, AVALANCHE_MAINNET, AccountAbstraction, type ApprovalSupportResult, BASE, BASE_MAINNET, BASE_SEPOLIA, BSC_MAINNET, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, MONAD_MAINNET, NearStrategy, OPTIMISM, OPTIMISM_MAINNET, POLYGON_MAINNET, RouterService, STACKS_MAINNET, STELLAR, STELLAR_MAINNET, StargateStrategy, StellarService, type Token, TransferManager, UNICHAIN, UNICHAIN_MAINNET, UniswapService, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearQuote, getNearSimulation, getStargateSimulation, smartAccountAbi, uniswapService };