@dynamic-labs/stellar 4.58.1 → 4.59.2
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/CHANGELOG.md +29 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -4
- package/src/StellarLocalStorageCache.cjs +65 -0
- package/src/StellarLocalStorageCache.d.ts +29 -0
- package/src/StellarLocalStorageCache.js +61 -0
- package/src/connectors/StellarWalletConnector/StellarWalletConnector.cjs +351 -0
- package/src/connectors/StellarWalletConnector/StellarWalletConnector.d.ts +102 -0
- package/src/connectors/StellarWalletConnector/StellarWalletConnector.js +347 -0
- package/src/connectors/StellarWalletConnector/index.d.ts +1 -0
- package/src/index.cjs +9 -1
- package/src/index.d.ts +5 -2
- package/src/index.js +6 -1
- package/src/injected/fetchInjectedWalletConnectors.cjs +50 -0
- package/src/injected/fetchInjectedWalletConnectors.d.ts +16 -0
- package/src/injected/fetchInjectedWalletConnectors.js +46 -0
- package/src/types/FreighterProvider.d.ts +82 -0
- package/src/types/LobstrProvider.d.ts +33 -0
- package/src/types.d.ts +6 -14
- package/src/wallet/StellarWallet.d.ts +3 -13
- package/src/wallet/index.d.ts +1 -0
- package/src/wallet/isStellarWallet/index.d.ts +1 -0
- package/src/wallet/isStellarWallet/isStellarWallet.cjs +8 -0
- package/src/wallet/isStellarWallet/isStellarWallet.js +4 -0
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { Horizon } from '@stellar/stellar-sdk';
|
|
2
|
-
import { Wallet
|
|
3
|
-
|
|
4
|
-
* Stellar wallet connector interface for type safety.
|
|
5
|
-
* This will be properly typed when StellarWalletConnector is added.
|
|
6
|
-
*/
|
|
7
|
-
type StellarWalletConnectorType = WalletConnectorBase<typeof StellarWallet> & {
|
|
8
|
-
signTransaction(transactionXdr: string): Promise<string>;
|
|
9
|
-
signMessage(message: string): Promise<string | undefined>;
|
|
10
|
-
getNetwork(): Promise<string | undefined>;
|
|
11
|
-
getHorizonServer(): Promise<Horizon.Server>;
|
|
12
|
-
};
|
|
2
|
+
import { Wallet } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
+
import type { StellarWalletConnector } from '../connectors/StellarWalletConnector/StellarWalletConnector';
|
|
13
4
|
/**
|
|
14
5
|
* Stellar wallet implementation that provides chain-specific functionality
|
|
15
6
|
* for interacting with the Stellar blockchain.
|
|
@@ -17,7 +8,7 @@ type StellarWalletConnectorType = WalletConnectorBase<typeof StellarWallet> & {
|
|
|
17
8
|
* This class extends the base Wallet class and provides Stellar-specific
|
|
18
9
|
* methods for transactions, signing, and network operations.
|
|
19
10
|
*/
|
|
20
|
-
export declare class StellarWallet extends Wallet<
|
|
11
|
+
export declare class StellarWallet extends Wallet<StellarWalletConnector> {
|
|
21
12
|
/**
|
|
22
13
|
* Get balance of the wallet.
|
|
23
14
|
* @returns Balance of the wallet in XLM
|
|
@@ -60,4 +51,3 @@ export declare class StellarWallet extends Wallet<StellarWalletConnectorType> {
|
|
|
60
51
|
*/
|
|
61
52
|
getHorizonServer(): Promise<Horizon.Server>;
|
|
62
53
|
}
|
|
63
|
-
export {};
|
package/src/wallet/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './isStellarWallet';
|