@vleap/warps-adapter-evm 0.2.0-beta.70 → 0.2.0-beta.71

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.cts CHANGED
@@ -14,6 +14,9 @@ declare const createEvmAdapter: (chainName: WarpChainName, chainInfos: Record<Wa
14
14
  declare const NativeTokenEth: WarpChainAsset;
15
15
  declare const EthereumAdapter: ChainAdapterFactory;
16
16
 
17
+ declare const NativeTokenPolygon: WarpChainAsset;
18
+ declare const PolygonAdapter: ChainAdapterFactory;
19
+
17
20
  declare const WarpEvmConstants: {
18
21
  GasLimit: {
19
22
  Default: number;
@@ -51,7 +54,13 @@ declare enum BaseExplorers {
51
54
  BlockscoutBase = "blockscout_base",
52
55
  BlockscoutBaseSepolia = "blockscout_base_sepolia"
53
56
  }
54
- type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers;
57
+ declare enum PolygonExplorers {
58
+ Polygonscan = "polygonscan",
59
+ PolygonscanMumbai = "polygonscan_mumbai",
60
+ BlockscoutPolygon = "blockscout_polygon",
61
+ BlockscoutPolygonMumbai = "blockscout_polygon_mumbai"
62
+ }
63
+ type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers | PolygonExplorers;
55
64
  declare const EvmExplorers: {
56
65
  readonly ethereum: {
57
66
  readonly mainnet: readonly [EthereumExplorers.Etherscan, EthereumExplorers.Ethplorer, EthereumExplorers.Blockscout];
@@ -68,6 +77,11 @@ declare const EvmExplorers: {
68
77
  readonly testnet: readonly [BaseExplorers.BasescanSepolia, BaseExplorers.BlockscoutBaseSepolia];
69
78
  readonly devnet: readonly [BaseExplorers.BasescanSepolia, BaseExplorers.BlockscoutBaseSepolia];
70
79
  };
80
+ readonly polygon: {
81
+ readonly mainnet: readonly [PolygonExplorers.Polygonscan, PolygonExplorers.BlockscoutPolygon];
82
+ readonly testnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
83
+ readonly devnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
84
+ };
71
85
  };
72
86
  declare const ExplorerUrls: Record<ExplorerName, string>;
73
87
  declare const EvmChainIds: {
@@ -160,6 +174,7 @@ declare class WarpEvmDataLoader implements AdapterWarpDataLoader {
160
174
  private cache;
161
175
  private uniswapService;
162
176
  constructor(config: WarpClientConfig, chain: WarpChainInfo);
177
+ private getRequiredConfirmations;
163
178
  getAccount(address: string): Promise<WarpChainAccount>;
164
179
  getAccountAssets(address: string): Promise<WarpChainAsset[]>;
165
180
  getAsset(identifier: string): Promise<WarpChainAsset | null>;
@@ -270,7 +285,7 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
270
285
  getPublicKey(): string | null;
271
286
  registerX402Handlers(client: unknown): Promise<Record<string, () => void>>;
272
287
  private createProvider;
273
- private initializeCache;
288
+ private getAddressAsync;
274
289
  private createProviderForOperation;
275
290
  private normalizeFees;
276
291
  private parseBigInt;
@@ -278,4 +293,4 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
278
293
  private normalizePriorityFee;
279
294
  }
280
295
 
281
- export { ArbitrumAdapter, ArbitrumExplorers, BaseAdapter, BaseExplorers, EthereumAdapter, EthereumExplorers, EvmChainIdMap, EvmChainIds, EvmExplorers, type ExplorerName, ExplorerUrls, KnownTokens, NativeTokenArb, NativeTokenBase, NativeTokenEth, SupportedEvmChainIds, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata, type UniswapToken, type UniswapTokenList, WarpEvmConstants, WarpEvmDataLoader, WarpEvmExecutor, WarpEvmExplorer, WarpEvmOutput, WarpEvmSerializer, WarpEvmWallet, createEvmAdapter, findKnownTokenById, getAllEvmAdapters, getAllEvmChainNames, getKnownTokensForChain };
296
+ export { ArbitrumAdapter, ArbitrumExplorers, BaseAdapter, BaseExplorers, EthereumAdapter, EthereumExplorers, EvmChainIdMap, EvmChainIds, EvmExplorers, type ExplorerName, ExplorerUrls, KnownTokens, NativeTokenArb, NativeTokenBase, NativeTokenEth, NativeTokenPolygon, PolygonAdapter, PolygonExplorers, SupportedEvmChainIds, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata, type UniswapToken, type UniswapTokenList, WarpEvmConstants, WarpEvmDataLoader, WarpEvmExecutor, WarpEvmExplorer, WarpEvmOutput, WarpEvmSerializer, WarpEvmWallet, createEvmAdapter, findKnownTokenById, getAllEvmAdapters, getAllEvmChainNames, getKnownTokensForChain };
package/dist/index.d.ts CHANGED
@@ -14,6 +14,9 @@ declare const createEvmAdapter: (chainName: WarpChainName, chainInfos: Record<Wa
14
14
  declare const NativeTokenEth: WarpChainAsset;
15
15
  declare const EthereumAdapter: ChainAdapterFactory;
16
16
 
17
+ declare const NativeTokenPolygon: WarpChainAsset;
18
+ declare const PolygonAdapter: ChainAdapterFactory;
19
+
17
20
  declare const WarpEvmConstants: {
18
21
  GasLimit: {
19
22
  Default: number;
@@ -51,7 +54,13 @@ declare enum BaseExplorers {
51
54
  BlockscoutBase = "blockscout_base",
52
55
  BlockscoutBaseSepolia = "blockscout_base_sepolia"
53
56
  }
54
- type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers;
57
+ declare enum PolygonExplorers {
58
+ Polygonscan = "polygonscan",
59
+ PolygonscanMumbai = "polygonscan_mumbai",
60
+ BlockscoutPolygon = "blockscout_polygon",
61
+ BlockscoutPolygonMumbai = "blockscout_polygon_mumbai"
62
+ }
63
+ type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers | PolygonExplorers;
55
64
  declare const EvmExplorers: {
56
65
  readonly ethereum: {
57
66
  readonly mainnet: readonly [EthereumExplorers.Etherscan, EthereumExplorers.Ethplorer, EthereumExplorers.Blockscout];
@@ -68,6 +77,11 @@ declare const EvmExplorers: {
68
77
  readonly testnet: readonly [BaseExplorers.BasescanSepolia, BaseExplorers.BlockscoutBaseSepolia];
69
78
  readonly devnet: readonly [BaseExplorers.BasescanSepolia, BaseExplorers.BlockscoutBaseSepolia];
70
79
  };
80
+ readonly polygon: {
81
+ readonly mainnet: readonly [PolygonExplorers.Polygonscan, PolygonExplorers.BlockscoutPolygon];
82
+ readonly testnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
83
+ readonly devnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
84
+ };
71
85
  };
72
86
  declare const ExplorerUrls: Record<ExplorerName, string>;
73
87
  declare const EvmChainIds: {
@@ -160,6 +174,7 @@ declare class WarpEvmDataLoader implements AdapterWarpDataLoader {
160
174
  private cache;
161
175
  private uniswapService;
162
176
  constructor(config: WarpClientConfig, chain: WarpChainInfo);
177
+ private getRequiredConfirmations;
163
178
  getAccount(address: string): Promise<WarpChainAccount>;
164
179
  getAccountAssets(address: string): Promise<WarpChainAsset[]>;
165
180
  getAsset(identifier: string): Promise<WarpChainAsset | null>;
@@ -270,7 +285,7 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
270
285
  getPublicKey(): string | null;
271
286
  registerX402Handlers(client: unknown): Promise<Record<string, () => void>>;
272
287
  private createProvider;
273
- private initializeCache;
288
+ private getAddressAsync;
274
289
  private createProviderForOperation;
275
290
  private normalizeFees;
276
291
  private parseBigInt;
@@ -278,4 +293,4 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
278
293
  private normalizePriorityFee;
279
294
  }
280
295
 
281
- export { ArbitrumAdapter, ArbitrumExplorers, BaseAdapter, BaseExplorers, EthereumAdapter, EthereumExplorers, EvmChainIdMap, EvmChainIds, EvmExplorers, type ExplorerName, ExplorerUrls, KnownTokens, NativeTokenArb, NativeTokenBase, NativeTokenEth, SupportedEvmChainIds, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata, type UniswapToken, type UniswapTokenList, WarpEvmConstants, WarpEvmDataLoader, WarpEvmExecutor, WarpEvmExplorer, WarpEvmOutput, WarpEvmSerializer, WarpEvmWallet, createEvmAdapter, findKnownTokenById, getAllEvmAdapters, getAllEvmChainNames, getKnownTokensForChain };
296
+ export { ArbitrumAdapter, ArbitrumExplorers, BaseAdapter, BaseExplorers, EthereumAdapter, EthereumExplorers, EvmChainIdMap, EvmChainIds, EvmExplorers, type ExplorerName, ExplorerUrls, KnownTokens, NativeTokenArb, NativeTokenBase, NativeTokenEth, NativeTokenPolygon, PolygonAdapter, PolygonExplorers, SupportedEvmChainIds, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata, type UniswapToken, type UniswapTokenList, WarpEvmConstants, WarpEvmDataLoader, WarpEvmExecutor, WarpEvmExplorer, WarpEvmOutput, WarpEvmSerializer, WarpEvmWallet, createEvmAdapter, findKnownTokenById, getAllEvmAdapters, getAllEvmChainNames, getKnownTokensForChain };