@vleap/warps-adapter-evm 0.2.0-alpha.22 → 0.2.0-alpha.23
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 +7 -21
- package/dist/index.d.ts +7 -21
- package/dist/index.js +235 -233
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +235 -233
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WarpChainAsset, AdapterFactory, WarpClientConfig, Adapter, WarpChain, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpChainAccount,
|
|
1
|
+
import { WarpChainAsset, AdapterFactory, WarpClientConfig, Adapter, WarpChain, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpChainAccount, WarpChainAction, WarpDataLoaderOptions, AdapterWarpExecutor, WarpExecutable, WarpExecution, WarpActionInputType, AdapterWarpExplorer, AdapterWarpResults, Warp, ResolvedInput, WarpExecutionResults, AdapterWarpSerializer, WarpSerializer, WarpNativeValue, BaseWarpActionInputType, WarpAdapterGenericType } from '@vleap/warps';
|
|
2
2
|
import { ethers } from 'ethers';
|
|
3
3
|
|
|
4
4
|
declare const NativeTokenArb: WarpChainAsset;
|
|
@@ -88,7 +88,7 @@ declare class EvmLogoService {
|
|
|
88
88
|
static getCacheSize(): number;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
interface TokenMetadata
|
|
91
|
+
interface TokenMetadata {
|
|
92
92
|
name: string;
|
|
93
93
|
symbol: string;
|
|
94
94
|
decimals: number;
|
|
@@ -97,7 +97,7 @@ interface TokenMetadata$1 {
|
|
|
97
97
|
interface TokenBalance {
|
|
98
98
|
tokenAddress: string;
|
|
99
99
|
balance: bigint;
|
|
100
|
-
metadata: TokenMetadata
|
|
100
|
+
metadata: TokenMetadata;
|
|
101
101
|
}
|
|
102
102
|
interface TokenInfo {
|
|
103
103
|
name?: string;
|
|
@@ -116,12 +116,6 @@ interface TokenListResponse {
|
|
|
116
116
|
}>;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
interface TokenMetadata {
|
|
120
|
-
name: string;
|
|
121
|
-
symbol: string;
|
|
122
|
-
decimals: number;
|
|
123
|
-
logoUrl?: string;
|
|
124
|
-
}
|
|
125
119
|
declare class WarpEvmDataLoader implements AdapterWarpDataLoader {
|
|
126
120
|
private readonly config;
|
|
127
121
|
private readonly chain;
|
|
@@ -129,22 +123,14 @@ declare class WarpEvmDataLoader implements AdapterWarpDataLoader {
|
|
|
129
123
|
constructor(config: WarpClientConfig, chain: WarpChainInfo);
|
|
130
124
|
getAccount(address: string): Promise<WarpChainAccount>;
|
|
131
125
|
getAccountAssets(address: string): Promise<WarpChainAsset[]>;
|
|
126
|
+
getAsset(identifier: string): Promise<WarpChainAsset | null>;
|
|
127
|
+
getAction(identifier: string, awaitCompleted?: boolean): Promise<WarpChainAction | null>;
|
|
132
128
|
getAccountActions(address: string, options?: WarpDataLoaderOptions): Promise<WarpChainAction[]>;
|
|
133
129
|
private getERC20TokenBalances;
|
|
134
130
|
private getTokenBalance;
|
|
135
131
|
private getTokenMetadata;
|
|
136
132
|
private detectTokensFromEvents;
|
|
137
|
-
|
|
138
|
-
getTokenBalanceForAddress(address: string, tokenAddress: string): Promise<bigint>;
|
|
139
|
-
getMultipleTokenBalances(address: string, tokenAddresses: string[]): Promise<Map<string, bigint>>;
|
|
140
|
-
getAccountTokens(address: string): Promise<WarpChainAsset[]>;
|
|
141
|
-
getTokenMetadataPublic(tokenAddress: string): Promise<TokenMetadata | null>;
|
|
142
|
-
getChainInfo(): Promise<{
|
|
143
|
-
chainId: string;
|
|
144
|
-
blockTime: number;
|
|
145
|
-
}>;
|
|
146
|
-
getAsset(identifier: string): Promise<WarpChainAsset | null>;
|
|
147
|
-
getAction(identifier: string, awaitCompleted?: boolean): Promise<WarpChainAction | null>;
|
|
133
|
+
private getLogoUrl;
|
|
148
134
|
}
|
|
149
135
|
|
|
150
136
|
declare class WarpEvmExecutor implements AdapterWarpExecutor {
|
|
@@ -218,4 +204,4 @@ declare class WarpEvmSerializer implements AdapterWarpSerializer {
|
|
|
218
204
|
private parseNativeValue;
|
|
219
205
|
}
|
|
220
206
|
|
|
221
|
-
export { ArbitrumExplorers, BaseExplorers, EthereumExplorers, EvmExplorers, EvmLogoService, type ExplorerName, ExplorerUrls, NativeTokenArb, NativeTokenBase, NativeTokenEth, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata
|
|
207
|
+
export { ArbitrumExplorers, BaseExplorers, EthereumExplorers, EvmExplorers, EvmLogoService, type ExplorerName, ExplorerUrls, NativeTokenArb, NativeTokenBase, NativeTokenEth, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata, WarpEvmConstants, WarpEvmDataLoader, WarpEvmExecutor, WarpEvmExplorer, WarpEvmResults, WarpEvmSerializer, createEvmAdapter, getAllEvmAdapters, getAllEvmChainNames, getArbitrumAdapter, getBaseAdapter, getEthereumAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WarpChainAsset, AdapterFactory, WarpClientConfig, Adapter, WarpChain, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpChainAccount,
|
|
1
|
+
import { WarpChainAsset, AdapterFactory, WarpClientConfig, Adapter, WarpChain, WarpChainEnv, WarpChainInfo, AdapterWarpDataLoader, WarpChainAccount, WarpChainAction, WarpDataLoaderOptions, AdapterWarpExecutor, WarpExecutable, WarpExecution, WarpActionInputType, AdapterWarpExplorer, AdapterWarpResults, Warp, ResolvedInput, WarpExecutionResults, AdapterWarpSerializer, WarpSerializer, WarpNativeValue, BaseWarpActionInputType, WarpAdapterGenericType } from '@vleap/warps';
|
|
2
2
|
import { ethers } from 'ethers';
|
|
3
3
|
|
|
4
4
|
declare const NativeTokenArb: WarpChainAsset;
|
|
@@ -88,7 +88,7 @@ declare class EvmLogoService {
|
|
|
88
88
|
static getCacheSize(): number;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
interface TokenMetadata
|
|
91
|
+
interface TokenMetadata {
|
|
92
92
|
name: string;
|
|
93
93
|
symbol: string;
|
|
94
94
|
decimals: number;
|
|
@@ -97,7 +97,7 @@ interface TokenMetadata$1 {
|
|
|
97
97
|
interface TokenBalance {
|
|
98
98
|
tokenAddress: string;
|
|
99
99
|
balance: bigint;
|
|
100
|
-
metadata: TokenMetadata
|
|
100
|
+
metadata: TokenMetadata;
|
|
101
101
|
}
|
|
102
102
|
interface TokenInfo {
|
|
103
103
|
name?: string;
|
|
@@ -116,12 +116,6 @@ interface TokenListResponse {
|
|
|
116
116
|
}>;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
interface TokenMetadata {
|
|
120
|
-
name: string;
|
|
121
|
-
symbol: string;
|
|
122
|
-
decimals: number;
|
|
123
|
-
logoUrl?: string;
|
|
124
|
-
}
|
|
125
119
|
declare class WarpEvmDataLoader implements AdapterWarpDataLoader {
|
|
126
120
|
private readonly config;
|
|
127
121
|
private readonly chain;
|
|
@@ -129,22 +123,14 @@ declare class WarpEvmDataLoader implements AdapterWarpDataLoader {
|
|
|
129
123
|
constructor(config: WarpClientConfig, chain: WarpChainInfo);
|
|
130
124
|
getAccount(address: string): Promise<WarpChainAccount>;
|
|
131
125
|
getAccountAssets(address: string): Promise<WarpChainAsset[]>;
|
|
126
|
+
getAsset(identifier: string): Promise<WarpChainAsset | null>;
|
|
127
|
+
getAction(identifier: string, awaitCompleted?: boolean): Promise<WarpChainAction | null>;
|
|
132
128
|
getAccountActions(address: string, options?: WarpDataLoaderOptions): Promise<WarpChainAction[]>;
|
|
133
129
|
private getERC20TokenBalances;
|
|
134
130
|
private getTokenBalance;
|
|
135
131
|
private getTokenMetadata;
|
|
136
132
|
private detectTokensFromEvents;
|
|
137
|
-
|
|
138
|
-
getTokenBalanceForAddress(address: string, tokenAddress: string): Promise<bigint>;
|
|
139
|
-
getMultipleTokenBalances(address: string, tokenAddresses: string[]): Promise<Map<string, bigint>>;
|
|
140
|
-
getAccountTokens(address: string): Promise<WarpChainAsset[]>;
|
|
141
|
-
getTokenMetadataPublic(tokenAddress: string): Promise<TokenMetadata | null>;
|
|
142
|
-
getChainInfo(): Promise<{
|
|
143
|
-
chainId: string;
|
|
144
|
-
blockTime: number;
|
|
145
|
-
}>;
|
|
146
|
-
getAsset(identifier: string): Promise<WarpChainAsset | null>;
|
|
147
|
-
getAction(identifier: string, awaitCompleted?: boolean): Promise<WarpChainAction | null>;
|
|
133
|
+
private getLogoUrl;
|
|
148
134
|
}
|
|
149
135
|
|
|
150
136
|
declare class WarpEvmExecutor implements AdapterWarpExecutor {
|
|
@@ -218,4 +204,4 @@ declare class WarpEvmSerializer implements AdapterWarpSerializer {
|
|
|
218
204
|
private parseNativeValue;
|
|
219
205
|
}
|
|
220
206
|
|
|
221
|
-
export { ArbitrumExplorers, BaseExplorers, EthereumExplorers, EvmExplorers, EvmLogoService, type ExplorerName, ExplorerUrls, NativeTokenArb, NativeTokenBase, NativeTokenEth, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata
|
|
207
|
+
export { ArbitrumExplorers, BaseExplorers, EthereumExplorers, EvmExplorers, EvmLogoService, type ExplorerName, ExplorerUrls, NativeTokenArb, NativeTokenBase, NativeTokenEth, type TokenBalance, type TokenInfo, type TokenListResponse, type TokenMetadata, WarpEvmConstants, WarpEvmDataLoader, WarpEvmExecutor, WarpEvmExplorer, WarpEvmResults, WarpEvmSerializer, createEvmAdapter, getAllEvmAdapters, getAllEvmChainNames, getArbitrumAdapter, getBaseAdapter, getEthereumAdapter };
|