@txnlab/use-wallet 4.3.0 → 4.3.1
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 +347 -465
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -24
- package/dist/index.d.ts +2 -24
- package/dist/index.js +345 -462
- package/dist/index.js.map +1 -1
- package/package.json +10 -15
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Store } from '@tanstack/store';
|
|
2
|
-
import algosdk
|
|
2
|
+
import algosdk from 'algosdk';
|
|
3
3
|
import AVMWebProviderSDK from '@agoralabs-sh/avm-web-provider';
|
|
4
|
-
import { LiquidAuthClient, LiquidOptions } from '@algorandfoundation/liquid-auth-use-wallet-client';
|
|
5
|
-
export { LiquidOptions } from '@algorandfoundation/liquid-auth-use-wallet-client';
|
|
6
4
|
import { InstanceWithExtensions, SDKBase } from '@magic-sdk/provider';
|
|
7
5
|
import { AlgorandExtension } from '@magic-ext/algorand';
|
|
8
6
|
import { MagicUserMetadata } from 'magic-sdk';
|
|
@@ -357,22 +355,6 @@ declare class KmdWallet extends BaseWallet {
|
|
|
357
355
|
private fetchAccounts;
|
|
358
356
|
}
|
|
359
357
|
|
|
360
|
-
declare class LiquidWallet extends BaseWallet {
|
|
361
|
-
protected store: Store<State>;
|
|
362
|
-
authClient: LiquidAuthClient | undefined | null;
|
|
363
|
-
private options;
|
|
364
|
-
constructor({ id, store, subscribe, getAlgodClient, options, metadata }: WalletConstructor<WalletId.LIQUID>);
|
|
365
|
-
static defaultMetadata: {
|
|
366
|
-
name: string;
|
|
367
|
-
icon: string;
|
|
368
|
-
};
|
|
369
|
-
private initializeClient;
|
|
370
|
-
connect: (_args?: Record<string, any>) => Promise<WalletAccount[]>;
|
|
371
|
-
disconnect: () => Promise<void>;
|
|
372
|
-
resumeSession: () => Promise<void>;
|
|
373
|
-
signTransactions: <T extends Transaction[] | Uint8Array[]>(txnGroup: T | T[], indexesToSign?: number[]) => Promise<(Uint8Array | null)[]>;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
358
|
interface LuteConnectOptions {
|
|
377
359
|
siteName?: string;
|
|
378
360
|
}
|
|
@@ -554,7 +536,6 @@ declare enum WalletId {
|
|
|
554
536
|
EXODUS = "exodus",
|
|
555
537
|
KIBISIS = "kibisis",
|
|
556
538
|
KMD = "kmd",
|
|
557
|
-
LIQUID = "liquid",
|
|
558
539
|
LUTE = "lute",
|
|
559
540
|
MAGIC = "magic",
|
|
560
541
|
MNEMONIC = "mnemonic",
|
|
@@ -570,7 +551,6 @@ type WalletMap = {
|
|
|
570
551
|
[WalletId.EXODUS]: typeof ExodusWallet;
|
|
571
552
|
[WalletId.KIBISIS]: typeof KibisisWallet;
|
|
572
553
|
[WalletId.KMD]: typeof KmdWallet;
|
|
573
|
-
[WalletId.LIQUID]: typeof LiquidWallet;
|
|
574
554
|
[WalletId.LUTE]: typeof LuteWallet;
|
|
575
555
|
[WalletId.MAGIC]: typeof MagicAuth;
|
|
576
556
|
[WalletId.MNEMONIC]: typeof MnemonicWallet;
|
|
@@ -586,7 +566,6 @@ type WalletOptionsMap = {
|
|
|
586
566
|
[WalletId.EXODUS]: ExodusOptions;
|
|
587
567
|
[WalletId.KIBISIS]: Record<string, never>;
|
|
588
568
|
[WalletId.KMD]: KmdOptions;
|
|
589
|
-
[WalletId.LIQUID]: LiquidOptions;
|
|
590
569
|
[WalletId.LUTE]: LuteConnectOptions;
|
|
591
570
|
[WalletId.MAGIC]: MagicAuthOptions;
|
|
592
571
|
[WalletId.MNEMONIC]: MnemonicOptions;
|
|
@@ -835,7 +814,6 @@ declare class StorageAdapter {
|
|
|
835
814
|
*/
|
|
836
815
|
declare const webpackFallback: {
|
|
837
816
|
'@agoralabs-sh/avm-web-provider': boolean;
|
|
838
|
-
'@algorandfoundation/liquid-auth-use-wallet-client': boolean;
|
|
839
817
|
'@blockshake/defly-connect': boolean;
|
|
840
818
|
'@magic-ext/algorand': boolean;
|
|
841
819
|
'@perawallet/connect': boolean;
|
|
@@ -845,4 +823,4 @@ declare const webpackFallback: {
|
|
|
845
823
|
'magic-sdk': boolean;
|
|
846
824
|
};
|
|
847
825
|
|
|
848
|
-
export { type AlgodConfig, BaseWallet, type BaseWalletConstructor, BiatecWallet, type CustomProvider, CustomWallet, type CustomWalletOptions, DEFAULT_NETWORK_CONFIG, DEFAULT_STATE, DEFLY_WEB_PROVIDER_ID, DeflyWallet, type DeflyWalletConnectOptions, DeflyWebWallet, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY,
|
|
826
|
+
export { type AlgodConfig, BaseWallet, type BaseWalletConstructor, BiatecWallet, type CustomProvider, CustomWallet, type CustomWalletOptions, DEFAULT_NETWORK_CONFIG, DEFAULT_STATE, DEFLY_WEB_PROVIDER_ID, DeflyWallet, type DeflyWalletConnectOptions, DeflyWebWallet, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY, LogLevel, type LuteConnectOptions, LuteWallet, MagicAuth, type MagicAuthClient, type MagicAuthOptions, type ManagerStatus, type MnemonicOptions, MnemonicWallet, type MultisigMetadata, type NetworkConfig, NetworkConfigBuilder, NetworkId, PeraWallet, type PeraWalletConnectOptions, ScopeType, SessionError, type SignData, SignDataError, type SignDataResponse, type SignMetadata, SignTxnsError, type SignTxnsResponse, type SignTxnsResult, type SignerTransaction, type Siwa, type State, StorageAdapter, type SupportedWallet, type SupportedWallets, W3Wallet, type W3WalletProvider, 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, webpackFallback };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Store } from '@tanstack/store';
|
|
2
|
-
import algosdk
|
|
2
|
+
import algosdk from 'algosdk';
|
|
3
3
|
import AVMWebProviderSDK from '@agoralabs-sh/avm-web-provider';
|
|
4
|
-
import { LiquidAuthClient, LiquidOptions } from '@algorandfoundation/liquid-auth-use-wallet-client';
|
|
5
|
-
export { LiquidOptions } from '@algorandfoundation/liquid-auth-use-wallet-client';
|
|
6
4
|
import { InstanceWithExtensions, SDKBase } from '@magic-sdk/provider';
|
|
7
5
|
import { AlgorandExtension } from '@magic-ext/algorand';
|
|
8
6
|
import { MagicUserMetadata } from 'magic-sdk';
|
|
@@ -357,22 +355,6 @@ declare class KmdWallet extends BaseWallet {
|
|
|
357
355
|
private fetchAccounts;
|
|
358
356
|
}
|
|
359
357
|
|
|
360
|
-
declare class LiquidWallet extends BaseWallet {
|
|
361
|
-
protected store: Store<State>;
|
|
362
|
-
authClient: LiquidAuthClient | undefined | null;
|
|
363
|
-
private options;
|
|
364
|
-
constructor({ id, store, subscribe, getAlgodClient, options, metadata }: WalletConstructor<WalletId.LIQUID>);
|
|
365
|
-
static defaultMetadata: {
|
|
366
|
-
name: string;
|
|
367
|
-
icon: string;
|
|
368
|
-
};
|
|
369
|
-
private initializeClient;
|
|
370
|
-
connect: (_args?: Record<string, any>) => Promise<WalletAccount[]>;
|
|
371
|
-
disconnect: () => Promise<void>;
|
|
372
|
-
resumeSession: () => Promise<void>;
|
|
373
|
-
signTransactions: <T extends Transaction[] | Uint8Array[]>(txnGroup: T | T[], indexesToSign?: number[]) => Promise<(Uint8Array | null)[]>;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
358
|
interface LuteConnectOptions {
|
|
377
359
|
siteName?: string;
|
|
378
360
|
}
|
|
@@ -554,7 +536,6 @@ declare enum WalletId {
|
|
|
554
536
|
EXODUS = "exodus",
|
|
555
537
|
KIBISIS = "kibisis",
|
|
556
538
|
KMD = "kmd",
|
|
557
|
-
LIQUID = "liquid",
|
|
558
539
|
LUTE = "lute",
|
|
559
540
|
MAGIC = "magic",
|
|
560
541
|
MNEMONIC = "mnemonic",
|
|
@@ -570,7 +551,6 @@ type WalletMap = {
|
|
|
570
551
|
[WalletId.EXODUS]: typeof ExodusWallet;
|
|
571
552
|
[WalletId.KIBISIS]: typeof KibisisWallet;
|
|
572
553
|
[WalletId.KMD]: typeof KmdWallet;
|
|
573
|
-
[WalletId.LIQUID]: typeof LiquidWallet;
|
|
574
554
|
[WalletId.LUTE]: typeof LuteWallet;
|
|
575
555
|
[WalletId.MAGIC]: typeof MagicAuth;
|
|
576
556
|
[WalletId.MNEMONIC]: typeof MnemonicWallet;
|
|
@@ -586,7 +566,6 @@ type WalletOptionsMap = {
|
|
|
586
566
|
[WalletId.EXODUS]: ExodusOptions;
|
|
587
567
|
[WalletId.KIBISIS]: Record<string, never>;
|
|
588
568
|
[WalletId.KMD]: KmdOptions;
|
|
589
|
-
[WalletId.LIQUID]: LiquidOptions;
|
|
590
569
|
[WalletId.LUTE]: LuteConnectOptions;
|
|
591
570
|
[WalletId.MAGIC]: MagicAuthOptions;
|
|
592
571
|
[WalletId.MNEMONIC]: MnemonicOptions;
|
|
@@ -835,7 +814,6 @@ declare class StorageAdapter {
|
|
|
835
814
|
*/
|
|
836
815
|
declare const webpackFallback: {
|
|
837
816
|
'@agoralabs-sh/avm-web-provider': boolean;
|
|
838
|
-
'@algorandfoundation/liquid-auth-use-wallet-client': boolean;
|
|
839
817
|
'@blockshake/defly-connect': boolean;
|
|
840
818
|
'@magic-ext/algorand': boolean;
|
|
841
819
|
'@perawallet/connect': boolean;
|
|
@@ -845,4 +823,4 @@ declare const webpackFallback: {
|
|
|
845
823
|
'magic-sdk': boolean;
|
|
846
824
|
};
|
|
847
825
|
|
|
848
|
-
export { type AlgodConfig, BaseWallet, type BaseWalletConstructor, BiatecWallet, type CustomProvider, CustomWallet, type CustomWalletOptions, DEFAULT_NETWORK_CONFIG, DEFAULT_STATE, DEFLY_WEB_PROVIDER_ID, DeflyWallet, type DeflyWalletConnectOptions, DeflyWebWallet, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY,
|
|
826
|
+
export { type AlgodConfig, BaseWallet, type BaseWalletConstructor, BiatecWallet, type CustomProvider, CustomWallet, type CustomWalletOptions, DEFAULT_NETWORK_CONFIG, DEFAULT_STATE, DEFLY_WEB_PROVIDER_ID, DeflyWallet, type DeflyWalletConnectOptions, DeflyWebWallet, type EnableResult, type Exodus, type ExodusOptions, ExodusWallet, ICON, type JsonRpcRequest, KIBISIS_AVM_WEB_PROVIDER_ID, KibisisWallet, type KmdOptions, KmdWallet, LOCAL_STORAGE_MNEMONIC_KEY, LogLevel, type LuteConnectOptions, LuteWallet, MagicAuth, type MagicAuthClient, type MagicAuthOptions, type ManagerStatus, type MnemonicOptions, MnemonicWallet, type MultisigMetadata, type NetworkConfig, NetworkConfigBuilder, NetworkId, PeraWallet, type PeraWalletConnectOptions, ScopeType, SessionError, type SignData, SignDataError, type SignDataResponse, type SignMetadata, SignTxnsError, type SignTxnsResponse, type SignTxnsResult, type SignerTransaction, type Siwa, type State, StorageAdapter, type SupportedWallet, type SupportedWallets, W3Wallet, type W3WalletProvider, 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, webpackFallback };
|