@joai/warps-adapter-evm 1.0.1 → 1.2.0

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
@@ -1,4 +1,4 @@
1
- import { WarpChainAsset, ChainAdapterFactory, WarpChainName, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpClientConfig, WarpChainAccount, WarpChainAction, WarpDataLoaderOptions, AdapterWarpExecutor, WarpExecutable, WarpActionExecutionResult, AdapterWarpExplorer, AdapterWarpOutput, Warp, WarpActionIndex, WarpAdapterGenericRemoteTransaction, ResolvedInput, WarpNativeValue, WarpExecutionOutput, AdapterWarpSerializer, WarpSerializer, WarpActionInputType, BaseWarpActionInputType, WarpAdapterGenericType, AdapterWarpWallet, WarpAdapterGenericTransaction, WarpWalletDetails, WarpWalletProvider } from '@joai/warps';
1
+ import { ChainAdapterFactory, WarpChainAsset, WarpChainName, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpClientConfig, WarpChainAccount, WarpChainAction, WarpDataLoaderOptions, AdapterWarpExecutor, WarpExecutable, WarpActionExecutionResult, AdapterWarpExplorer, AdapterWarpOutput, Warp, WarpActionIndex, WarpAdapterGenericRemoteTransaction, ResolvedInput, WarpNativeValue, WarpExecutionOutput, AdapterWarpSerializer, WarpSerializer, WarpActionInputType, BaseWarpActionInputType, WarpAdapterGenericType, AdapterWarpWallet, WarpAdapterGenericTransaction, WarpWalletDetails, WarpWalletProvider } from '@joai/warps';
2
2
  import { ethers } from 'ethers';
3
3
 
4
4
  declare const NativeTokenArb: WarpChainAsset;
@@ -17,6 +17,13 @@ declare const EthereumAdapter: ChainAdapterFactory;
17
17
  declare const NativeTokenPolygon: WarpChainAsset;
18
18
  declare const PolygonAdapter: ChainAdapterFactory;
19
19
 
20
+ declare const NativeTokenSomi: WarpChainAsset;
21
+ declare const NativeTokenStt: WarpChainAsset;
22
+ declare const SomniaAdapter: ChainAdapterFactory;
23
+
24
+ declare const NativeTokenTempo: WarpChainAsset;
25
+ declare const TempoAdapter: ChainAdapterFactory;
26
+
20
27
  declare const WarpEvmConstants: {
21
28
  GasLimit: {
22
29
  Default: number;
@@ -60,7 +67,12 @@ declare enum PolygonExplorers {
60
67
  BlockscoutPolygon = "blockscout_polygon",
61
68
  BlockscoutPolygonMumbai = "blockscout_polygon_mumbai"
62
69
  }
63
- type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers | PolygonExplorers;
70
+ declare enum TempoExplorers {
71
+ TempoExplorer = "tempo_explorer",
72
+ TempoExplorerTestnet = "tempo_explorer_testnet",
73
+ TempoExplorerDevnet = "tempo_explorer_devnet"
74
+ }
75
+ type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers | PolygonExplorers | TempoExplorers;
64
76
  declare const EvmExplorers: {
65
77
  readonly ethereum: {
66
78
  readonly mainnet: readonly [EthereumExplorers.Etherscan, EthereumExplorers.Ethplorer, EthereumExplorers.Blockscout];
@@ -82,6 +94,11 @@ declare const EvmExplorers: {
82
94
  readonly testnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
83
95
  readonly devnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
84
96
  };
97
+ readonly tempo: {
98
+ readonly mainnet: readonly [TempoExplorers.TempoExplorer];
99
+ readonly testnet: readonly [TempoExplorers.TempoExplorerTestnet];
100
+ readonly devnet: readonly [TempoExplorers.TempoExplorerDevnet];
101
+ };
85
102
  };
86
103
  declare const ExplorerUrls: Record<ExplorerName, string>;
87
104
  declare const EvmChainIds: {
@@ -106,6 +123,11 @@ declare const EvmChainIds: {
106
123
  readonly Mainnet: 10;
107
124
  readonly Sepolia: 11155420;
108
125
  };
126
+ readonly Tempo: {
127
+ readonly Mainnet: 4217;
128
+ readonly Moderato: 42431;
129
+ readonly Devnet: 31318;
130
+ };
109
131
  };
110
132
  declare const EvmChainIdMap: Record<string, number>;
111
133
  declare const SupportedEvmChainIds: number[];
@@ -281,6 +303,7 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
281
303
  importFromPrivateKey(privateKey: string): Promise<WarpWalletDetails>;
282
304
  export(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
283
305
  generate(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
306
+ delete(provider: WarpWalletProvider, externalId: string): Promise<void>;
284
307
  getAddress(): string | null;
285
308
  getPublicKey(): string | null;
286
309
  registerX402Handlers(client: unknown): Promise<Record<string, () => void>>;
@@ -293,4 +316,4 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
293
316
  private normalizePriorityFee;
294
317
  }
295
318
 
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 };
319
+ export { ArbitrumAdapter, ArbitrumExplorers, BaseAdapter, BaseExplorers, EthereumAdapter, EthereumExplorers, EvmChainIdMap, EvmChainIds, EvmExplorers, type ExplorerName, ExplorerUrls, KnownTokens, NativeTokenArb, NativeTokenBase, NativeTokenEth, NativeTokenPolygon, NativeTokenSomi, NativeTokenStt, NativeTokenTempo, PolygonAdapter, PolygonExplorers, SomniaAdapter, SupportedEvmChainIds, TempoAdapter, TempoExplorers, 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
@@ -1,4 +1,4 @@
1
- import { WarpChainAsset, ChainAdapterFactory, WarpChainName, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpClientConfig, WarpChainAccount, WarpChainAction, WarpDataLoaderOptions, AdapterWarpExecutor, WarpExecutable, WarpActionExecutionResult, AdapterWarpExplorer, AdapterWarpOutput, Warp, WarpActionIndex, WarpAdapterGenericRemoteTransaction, ResolvedInput, WarpNativeValue, WarpExecutionOutput, AdapterWarpSerializer, WarpSerializer, WarpActionInputType, BaseWarpActionInputType, WarpAdapterGenericType, AdapterWarpWallet, WarpAdapterGenericTransaction, WarpWalletDetails, WarpWalletProvider } from '@joai/warps';
1
+ import { ChainAdapterFactory, WarpChainAsset, WarpChainName, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpClientConfig, WarpChainAccount, WarpChainAction, WarpDataLoaderOptions, AdapterWarpExecutor, WarpExecutable, WarpActionExecutionResult, AdapterWarpExplorer, AdapterWarpOutput, Warp, WarpActionIndex, WarpAdapterGenericRemoteTransaction, ResolvedInput, WarpNativeValue, WarpExecutionOutput, AdapterWarpSerializer, WarpSerializer, WarpActionInputType, BaseWarpActionInputType, WarpAdapterGenericType, AdapterWarpWallet, WarpAdapterGenericTransaction, WarpWalletDetails, WarpWalletProvider } from '@joai/warps';
2
2
  import { ethers } from 'ethers';
3
3
 
4
4
  declare const NativeTokenArb: WarpChainAsset;
@@ -17,6 +17,13 @@ declare const EthereumAdapter: ChainAdapterFactory;
17
17
  declare const NativeTokenPolygon: WarpChainAsset;
18
18
  declare const PolygonAdapter: ChainAdapterFactory;
19
19
 
20
+ declare const NativeTokenSomi: WarpChainAsset;
21
+ declare const NativeTokenStt: WarpChainAsset;
22
+ declare const SomniaAdapter: ChainAdapterFactory;
23
+
24
+ declare const NativeTokenTempo: WarpChainAsset;
25
+ declare const TempoAdapter: ChainAdapterFactory;
26
+
20
27
  declare const WarpEvmConstants: {
21
28
  GasLimit: {
22
29
  Default: number;
@@ -60,7 +67,12 @@ declare enum PolygonExplorers {
60
67
  BlockscoutPolygon = "blockscout_polygon",
61
68
  BlockscoutPolygonMumbai = "blockscout_polygon_mumbai"
62
69
  }
63
- type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers | PolygonExplorers;
70
+ declare enum TempoExplorers {
71
+ TempoExplorer = "tempo_explorer",
72
+ TempoExplorerTestnet = "tempo_explorer_testnet",
73
+ TempoExplorerDevnet = "tempo_explorer_devnet"
74
+ }
75
+ type ExplorerName = EthereumExplorers | ArbitrumExplorers | BaseExplorers | PolygonExplorers | TempoExplorers;
64
76
  declare const EvmExplorers: {
65
77
  readonly ethereum: {
66
78
  readonly mainnet: readonly [EthereumExplorers.Etherscan, EthereumExplorers.Ethplorer, EthereumExplorers.Blockscout];
@@ -82,6 +94,11 @@ declare const EvmExplorers: {
82
94
  readonly testnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
83
95
  readonly devnet: readonly [PolygonExplorers.PolygonscanMumbai, PolygonExplorers.BlockscoutPolygonMumbai];
84
96
  };
97
+ readonly tempo: {
98
+ readonly mainnet: readonly [TempoExplorers.TempoExplorer];
99
+ readonly testnet: readonly [TempoExplorers.TempoExplorerTestnet];
100
+ readonly devnet: readonly [TempoExplorers.TempoExplorerDevnet];
101
+ };
85
102
  };
86
103
  declare const ExplorerUrls: Record<ExplorerName, string>;
87
104
  declare const EvmChainIds: {
@@ -106,6 +123,11 @@ declare const EvmChainIds: {
106
123
  readonly Mainnet: 10;
107
124
  readonly Sepolia: 11155420;
108
125
  };
126
+ readonly Tempo: {
127
+ readonly Mainnet: 4217;
128
+ readonly Moderato: 42431;
129
+ readonly Devnet: 31318;
130
+ };
109
131
  };
110
132
  declare const EvmChainIdMap: Record<string, number>;
111
133
  declare const SupportedEvmChainIds: number[];
@@ -281,6 +303,7 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
281
303
  importFromPrivateKey(privateKey: string): Promise<WarpWalletDetails>;
282
304
  export(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
283
305
  generate(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
306
+ delete(provider: WarpWalletProvider, externalId: string): Promise<void>;
284
307
  getAddress(): string | null;
285
308
  getPublicKey(): string | null;
286
309
  registerX402Handlers(client: unknown): Promise<Record<string, () => void>>;
@@ -293,4 +316,4 @@ declare class WarpEvmWallet implements AdapterWarpWallet {
293
316
  private normalizePriorityFee;
294
317
  }
295
318
 
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 };
319
+ export { ArbitrumAdapter, ArbitrumExplorers, BaseAdapter, BaseExplorers, EthereumAdapter, EthereumExplorers, EvmChainIdMap, EvmChainIds, EvmExplorers, type ExplorerName, ExplorerUrls, KnownTokens, NativeTokenArb, NativeTokenBase, NativeTokenEth, NativeTokenPolygon, NativeTokenSomi, NativeTokenStt, NativeTokenTempo, PolygonAdapter, PolygonExplorers, SomniaAdapter, SupportedEvmChainIds, TempoAdapter, TempoExplorers, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata, type UniswapToken, type UniswapTokenList, WarpEvmConstants, WarpEvmDataLoader, WarpEvmExecutor, WarpEvmExplorer, WarpEvmOutput, WarpEvmSerializer, WarpEvmWallet, createEvmAdapter, findKnownTokenById, getAllEvmAdapters, getAllEvmChainNames, getKnownTokensForChain };