@1llet.xyz/erc4337-gasless-sdk 0.4.55 → 0.4.57

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
@@ -366,9 +366,13 @@ interface CircleInformation {
366
366
  cCTPInformation?: CCTPInformation;
367
367
  aproxFromFee: number;
368
368
  }
369
+ interface StargateInformation {
370
+ support: boolean;
371
+ }
369
372
  interface CrossChainInformation {
370
373
  circleInformation?: CircleInformation;
371
374
  nearIntentInformation: NearIntentInformation | null;
375
+ stargateInformation?: StargateInformation;
372
376
  }
373
377
  interface EvmInformation {
374
378
  chain: any;
@@ -389,6 +393,7 @@ interface Asset {
389
393
  decimals: number;
390
394
  address?: Address$1 | string;
391
395
  coingeckoId?: string;
396
+ supportsStargate?: boolean;
392
397
  }
393
398
  interface ChainConfig {
394
399
  assets: Asset[];
@@ -480,4 +485,27 @@ declare class CCTPStrategy implements BridgeStrategy {
480
485
  execute(context: BridgeContext): Promise<SettleResponse>;
481
486
  }
482
487
 
483
- export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, NearStrategy, OPTIMISM_MAINNET, STELLAR, STELLAR_MAINNET, StellarService, type Token, TransferManager, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearSimulation, smartAccountAbi };
488
+ declare class StargateStrategy implements BridgeStrategy {
489
+ name: string;
490
+ canHandle(context: BridgeContext): boolean;
491
+ execute(context: BridgeContext): Promise<SettleResponse>;
492
+ }
493
+ declare function getStargateSimulation(sourceChain: string, destChain: string, amount: string, recipient: string): Promise<{
494
+ success: boolean;
495
+ amountSent: number;
496
+ protocolFee: string;
497
+ netAmountBridged: number;
498
+ estimatedReceived: string;
499
+ minAmount: string;
500
+ error?: undefined;
501
+ } | {
502
+ success: boolean;
503
+ error: any;
504
+ amountSent?: undefined;
505
+ protocolFee?: undefined;
506
+ netAmountBridged?: undefined;
507
+ estimatedReceived?: undefined;
508
+ minAmount?: undefined;
509
+ }>;
510
+
511
+ export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, NearStrategy, OPTIMISM_MAINNET, STELLAR, STELLAR_MAINNET, StargateStrategy, StellarService, type Token, TransferManager, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearSimulation, getStargateSimulation, smartAccountAbi };
package/dist/index.d.ts CHANGED
@@ -366,9 +366,13 @@ interface CircleInformation {
366
366
  cCTPInformation?: CCTPInformation;
367
367
  aproxFromFee: number;
368
368
  }
369
+ interface StargateInformation {
370
+ support: boolean;
371
+ }
369
372
  interface CrossChainInformation {
370
373
  circleInformation?: CircleInformation;
371
374
  nearIntentInformation: NearIntentInformation | null;
375
+ stargateInformation?: StargateInformation;
372
376
  }
373
377
  interface EvmInformation {
374
378
  chain: any;
@@ -389,6 +393,7 @@ interface Asset {
389
393
  decimals: number;
390
394
  address?: Address$1 | string;
391
395
  coingeckoId?: string;
396
+ supportsStargate?: boolean;
392
397
  }
393
398
  interface ChainConfig {
394
399
  assets: Asset[];
@@ -480,4 +485,27 @@ declare class CCTPStrategy implements BridgeStrategy {
480
485
  execute(context: BridgeContext): Promise<SettleResponse>;
481
486
  }
482
487
 
483
- export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, NearStrategy, OPTIMISM_MAINNET, STELLAR, STELLAR_MAINNET, StellarService, type Token, TransferManager, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearSimulation, smartAccountAbi };
488
+ declare class StargateStrategy implements BridgeStrategy {
489
+ name: string;
490
+ canHandle(context: BridgeContext): boolean;
491
+ execute(context: BridgeContext): Promise<SettleResponse>;
492
+ }
493
+ declare function getStargateSimulation(sourceChain: string, destChain: string, amount: string, recipient: string): Promise<{
494
+ success: boolean;
495
+ amountSent: number;
496
+ protocolFee: string;
497
+ netAmountBridged: number;
498
+ estimatedReceived: string;
499
+ minAmount: string;
500
+ error?: undefined;
501
+ } | {
502
+ success: boolean;
503
+ error: any;
504
+ amountSent?: undefined;
505
+ protocolFee?: undefined;
506
+ netAmountBridged?: undefined;
507
+ estimatedReceived?: undefined;
508
+ minAmount?: undefined;
509
+ }>;
510
+
511
+ export { AccountAbstraction, type ApprovalSupportResult, BASE_MAINNET, BASE_SEPOLIA, BundlerClient, CCTPStrategy, CHAIN_CONFIGS, CHAIN_ID_TO_KEY, type ChainConfig$1 as ChainConfig, GNOSIS_MAINNET, type GasEstimate, NearStrategy, OPTIMISM_MAINNET, STELLAR, STELLAR_MAINNET, StargateStrategy, StellarService, type Token, TransferManager, type UserOpReceipt, type UserOperation, entryPointAbi, erc20Abi, getNearSimulation, getStargateSimulation, smartAccountAbi };