@txnlab/use-wallet 3.11.0 → 3.12.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.cjs +1205 -1183
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1205 -1183
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.cts
CHANGED
|
@@ -636,11 +636,13 @@ type WalletState = {
|
|
|
636
636
|
activeAccount: WalletAccount | null;
|
|
637
637
|
};
|
|
638
638
|
type WalletStateMap = Partial<Record<WalletId, WalletState>>;
|
|
639
|
+
type ManagerStatus = 'initializing' | 'ready';
|
|
639
640
|
interface State {
|
|
640
641
|
wallets: WalletStateMap;
|
|
641
642
|
activeWallet: WalletId | null;
|
|
642
643
|
activeNetwork: NetworkId;
|
|
643
644
|
algodClient: algosdk.Algodv2;
|
|
645
|
+
managerStatus: ManagerStatus;
|
|
644
646
|
}
|
|
645
647
|
declare const defaultState: State;
|
|
646
648
|
|
|
@@ -671,6 +673,8 @@ declare class WalletManager {
|
|
|
671
673
|
set algodClient(algodClient: algosdk.Algodv2);
|
|
672
674
|
private loadPersistedState;
|
|
673
675
|
private savePersistedState;
|
|
676
|
+
get status(): ManagerStatus;
|
|
677
|
+
get isReady(): boolean;
|
|
674
678
|
private initializeWallets;
|
|
675
679
|
get wallets(): BaseWallet[];
|
|
676
680
|
getWallet(walletId: WalletId): BaseWallet | undefined;
|
|
@@ -716,4 +720,4 @@ declare const webpackFallback: {
|
|
|
716
720
|
'magic-sdk': boolean;
|
|
717
721
|
};
|
|
718
722
|
|
|
719
|
-
export { BaseWallet, type BaseWalletConstructor, type CustomProvider, CustomWallet, type CustomWalletOptions, DeflyWallet, type DeflyWalletConnectOptions, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY, LiquidWallet, LogLevel, MagicAuth, type MagicAuthClient, type MagicAuthOptions, type MnemonicOptions, MnemonicWallet, type MultisigMetadata, NetworkId, PeraWallet$1 as PeraWallet, type PeraWalletConnectOptions$1 as PeraWalletConnectOptions, SessionError, SignTxnsError, type SignTxnsResponse, type SignTxnsResult, type SignerTransaction, type State, StorageAdapter, type SupportedWallet, type SupportedWallets, type WalletAccount, type WalletConfig, type WalletConfigMap, WalletConnect, type WalletConnectOptions, type WalletConstructor, WalletId, type WalletIdConfig, WalletManager, type WalletManagerConfig, type WalletManagerOptions, type WalletMap, type WalletMetadata, type WalletOptions, type WalletOptionsMap, type WalletState, type WalletTransaction, type WindowExtended, defaultState, isAVMWebProviderSDKError, webpackFallback };
|
|
723
|
+
export { BaseWallet, type BaseWalletConstructor, type CustomProvider, CustomWallet, type CustomWalletOptions, DeflyWallet, type DeflyWalletConnectOptions, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY, LiquidWallet, LogLevel, MagicAuth, type MagicAuthClient, type MagicAuthOptions, type ManagerStatus, type MnemonicOptions, MnemonicWallet, type MultisigMetadata, NetworkId, PeraWallet$1 as PeraWallet, type PeraWalletConnectOptions$1 as PeraWalletConnectOptions, SessionError, SignTxnsError, type SignTxnsResponse, type SignTxnsResult, type SignerTransaction, type State, StorageAdapter, type SupportedWallet, type SupportedWallets, type WalletAccount, type WalletConfig, type WalletConfigMap, WalletConnect, type WalletConnectOptions, type WalletConstructor, WalletId, type WalletIdConfig, WalletManager, type WalletManagerConfig, type WalletManagerOptions, type WalletMap, type WalletMetadata, type WalletOptions, type WalletOptionsMap, type WalletState, type WalletTransaction, type WindowExtended, defaultState, isAVMWebProviderSDKError, webpackFallback };
|
package/dist/index.d.ts
CHANGED
|
@@ -636,11 +636,13 @@ type WalletState = {
|
|
|
636
636
|
activeAccount: WalletAccount | null;
|
|
637
637
|
};
|
|
638
638
|
type WalletStateMap = Partial<Record<WalletId, WalletState>>;
|
|
639
|
+
type ManagerStatus = 'initializing' | 'ready';
|
|
639
640
|
interface State {
|
|
640
641
|
wallets: WalletStateMap;
|
|
641
642
|
activeWallet: WalletId | null;
|
|
642
643
|
activeNetwork: NetworkId;
|
|
643
644
|
algodClient: algosdk.Algodv2;
|
|
645
|
+
managerStatus: ManagerStatus;
|
|
644
646
|
}
|
|
645
647
|
declare const defaultState: State;
|
|
646
648
|
|
|
@@ -671,6 +673,8 @@ declare class WalletManager {
|
|
|
671
673
|
set algodClient(algodClient: algosdk.Algodv2);
|
|
672
674
|
private loadPersistedState;
|
|
673
675
|
private savePersistedState;
|
|
676
|
+
get status(): ManagerStatus;
|
|
677
|
+
get isReady(): boolean;
|
|
674
678
|
private initializeWallets;
|
|
675
679
|
get wallets(): BaseWallet[];
|
|
676
680
|
getWallet(walletId: WalletId): BaseWallet | undefined;
|
|
@@ -716,4 +720,4 @@ declare const webpackFallback: {
|
|
|
716
720
|
'magic-sdk': boolean;
|
|
717
721
|
};
|
|
718
722
|
|
|
719
|
-
export { BaseWallet, type BaseWalletConstructor, type CustomProvider, CustomWallet, type CustomWalletOptions, DeflyWallet, type DeflyWalletConnectOptions, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY, LiquidWallet, LogLevel, MagicAuth, type MagicAuthClient, type MagicAuthOptions, type MnemonicOptions, MnemonicWallet, type MultisigMetadata, NetworkId, PeraWallet$1 as PeraWallet, type PeraWalletConnectOptions$1 as PeraWalletConnectOptions, SessionError, SignTxnsError, type SignTxnsResponse, type SignTxnsResult, type SignerTransaction, type State, StorageAdapter, type SupportedWallet, type SupportedWallets, type WalletAccount, type WalletConfig, type WalletConfigMap, WalletConnect, type WalletConnectOptions, type WalletConstructor, WalletId, type WalletIdConfig, WalletManager, type WalletManagerConfig, type WalletManagerOptions, type WalletMap, type WalletMetadata, type WalletOptions, type WalletOptionsMap, type WalletState, type WalletTransaction, type WindowExtended, defaultState, isAVMWebProviderSDKError, webpackFallback };
|
|
723
|
+
export { BaseWallet, type BaseWalletConstructor, type CustomProvider, CustomWallet, type CustomWalletOptions, DeflyWallet, type DeflyWalletConnectOptions, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY, LiquidWallet, LogLevel, MagicAuth, type MagicAuthClient, type MagicAuthOptions, type ManagerStatus, type MnemonicOptions, MnemonicWallet, type MultisigMetadata, NetworkId, PeraWallet$1 as PeraWallet, type PeraWalletConnectOptions$1 as PeraWalletConnectOptions, SessionError, SignTxnsError, type SignTxnsResponse, type SignTxnsResult, type SignerTransaction, type State, StorageAdapter, type SupportedWallet, type SupportedWallets, type WalletAccount, type WalletConfig, type WalletConfigMap, WalletConnect, type WalletConnectOptions, type WalletConstructor, WalletId, type WalletIdConfig, WalletManager, type WalletManagerConfig, type WalletManagerOptions, type WalletMap, type WalletMetadata, type WalletOptions, type WalletOptionsMap, type WalletState, type WalletTransaction, type WindowExtended, defaultState, isAVMWebProviderSDKError, webpackFallback };
|