@vleap/warps-adapter-fastset 0.1.0-beta.46 → 0.1.0-beta.48
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 +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +258 -610
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -610
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WarpChainAsset,
|
|
1
|
+
import { WarpChainAsset, ChainAdapterFactory, AdapterWarpExecutor, WarpClientConfig, WarpChainInfo, WarpExecutable, WarpAdapterGenericTransaction, AdapterWarpWallet, WarpWalletProvider, WarpWalletDetails } from '@vleap/warps';
|
|
2
2
|
|
|
3
3
|
declare const NativeTokenSet: WarpChainAsset;
|
|
4
|
-
declare const
|
|
4
|
+
declare const FastsetAdapter: ChainAdapterFactory;
|
|
5
5
|
|
|
6
6
|
declare class WarpFastsetExecutor implements AdapterWarpExecutor {
|
|
7
7
|
private readonly config;
|
|
@@ -18,16 +18,22 @@ declare class WarpFastsetWallet implements AdapterWarpWallet {
|
|
|
18
18
|
private config;
|
|
19
19
|
private chain;
|
|
20
20
|
private client;
|
|
21
|
+
private walletProvider;
|
|
22
|
+
private cachedAddress;
|
|
23
|
+
private cachedPublicKey;
|
|
21
24
|
constructor(config: WarpClientConfig, chain: WarpChainInfo);
|
|
22
25
|
signTransaction(tx: WarpAdapterGenericTransaction): Promise<WarpAdapterGenericTransaction>;
|
|
23
|
-
signMessage(message: string): Promise<string>;
|
|
24
26
|
signTransactions(txs: WarpAdapterGenericTransaction[]): Promise<WarpAdapterGenericTransaction[]>;
|
|
27
|
+
signMessage(message: string): Promise<string>;
|
|
25
28
|
sendTransaction(tx: WarpAdapterGenericTransaction): Promise<string>;
|
|
26
29
|
sendTransactions(txs: WarpAdapterGenericTransaction[]): Promise<string[]>;
|
|
27
|
-
create(mnemonic: string): WarpWalletDetails;
|
|
28
|
-
generate(): WarpWalletDetails;
|
|
30
|
+
create(mnemonic: string, provider: WarpWalletProvider): WarpWalletDetails;
|
|
31
|
+
generate(provider: WarpWalletProvider): WarpWalletDetails;
|
|
29
32
|
getAddress(): string | null;
|
|
30
33
|
getPublicKey(): string | null;
|
|
34
|
+
private createProvider;
|
|
35
|
+
private initializeCache;
|
|
36
|
+
private createProviderForOperation;
|
|
31
37
|
}
|
|
32
38
|
|
|
33
|
-
export { NativeTokenSet, WarpFastsetExecutor, WarpFastsetWallet
|
|
39
|
+
export { FastsetAdapter, NativeTokenSet, WarpFastsetExecutor, WarpFastsetWallet };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WarpChainAsset,
|
|
1
|
+
import { WarpChainAsset, ChainAdapterFactory, AdapterWarpExecutor, WarpClientConfig, WarpChainInfo, WarpExecutable, WarpAdapterGenericTransaction, AdapterWarpWallet, WarpWalletProvider, WarpWalletDetails } from '@vleap/warps';
|
|
2
2
|
|
|
3
3
|
declare const NativeTokenSet: WarpChainAsset;
|
|
4
|
-
declare const
|
|
4
|
+
declare const FastsetAdapter: ChainAdapterFactory;
|
|
5
5
|
|
|
6
6
|
declare class WarpFastsetExecutor implements AdapterWarpExecutor {
|
|
7
7
|
private readonly config;
|
|
@@ -18,16 +18,22 @@ declare class WarpFastsetWallet implements AdapterWarpWallet {
|
|
|
18
18
|
private config;
|
|
19
19
|
private chain;
|
|
20
20
|
private client;
|
|
21
|
+
private walletProvider;
|
|
22
|
+
private cachedAddress;
|
|
23
|
+
private cachedPublicKey;
|
|
21
24
|
constructor(config: WarpClientConfig, chain: WarpChainInfo);
|
|
22
25
|
signTransaction(tx: WarpAdapterGenericTransaction): Promise<WarpAdapterGenericTransaction>;
|
|
23
|
-
signMessage(message: string): Promise<string>;
|
|
24
26
|
signTransactions(txs: WarpAdapterGenericTransaction[]): Promise<WarpAdapterGenericTransaction[]>;
|
|
27
|
+
signMessage(message: string): Promise<string>;
|
|
25
28
|
sendTransaction(tx: WarpAdapterGenericTransaction): Promise<string>;
|
|
26
29
|
sendTransactions(txs: WarpAdapterGenericTransaction[]): Promise<string[]>;
|
|
27
|
-
create(mnemonic: string): WarpWalletDetails;
|
|
28
|
-
generate(): WarpWalletDetails;
|
|
30
|
+
create(mnemonic: string, provider: WarpWalletProvider): WarpWalletDetails;
|
|
31
|
+
generate(provider: WarpWalletProvider): WarpWalletDetails;
|
|
29
32
|
getAddress(): string | null;
|
|
30
33
|
getPublicKey(): string | null;
|
|
34
|
+
private createProvider;
|
|
35
|
+
private initializeCache;
|
|
36
|
+
private createProviderForOperation;
|
|
31
37
|
}
|
|
32
38
|
|
|
33
|
-
export { NativeTokenSet, WarpFastsetExecutor, WarpFastsetWallet
|
|
39
|
+
export { FastsetAdapter, NativeTokenSet, WarpFastsetExecutor, WarpFastsetWallet };
|