@txnlab/use-wallet-solid 4.0.0-beta.6 → 4.0.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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _txnlab_use_wallet from '@txnlab/use-wallet';
2
- import { WalletManager, NetworkId, AlgodConfig, WalletMetadata, WalletAccount, WalletState, WalletId } from '@txnlab/use-wallet';
2
+ import { WalletManager, NetworkId, AlgodConfig, WalletState, WalletId } from '@txnlab/use-wallet';
3
3
  export * from '@txnlab/use-wallet';
4
4
  import * as solid_js from 'solid-js';
5
5
  import { JSX } from 'solid-js';
@@ -19,27 +19,15 @@ declare const useNetwork: () => {
19
19
  updateAlgodConfig: (networkId: string, config: Partial<AlgodConfig>) => void;
20
20
  resetNetworkConfig: (networkId: string) => void;
21
21
  };
22
- interface Wallet {
23
- id: () => string;
24
- metadata: () => WalletMetadata;
25
- accounts: () => WalletAccount[];
26
- activeAccount: () => WalletAccount | null;
27
- isConnected: () => boolean;
28
- isActive: () => boolean;
29
- connect: (args?: Record<string, any>) => Promise<WalletAccount[]>;
30
- disconnect: () => Promise<void>;
31
- setActive: () => void;
32
- setActiveAccount: (address: string) => void;
33
- }
34
22
  declare const useWallet: () => {
35
23
  wallets: _txnlab_use_wallet.BaseWallet[];
36
24
  isReady: solid_js.Accessor<boolean>;
37
25
  algodClient: solid_js.Accessor<algosdk.Algodv2>;
38
26
  activeWallet: () => _txnlab_use_wallet.BaseWallet | null;
39
- activeWalletAccounts: () => WalletAccount[] | null;
27
+ activeWalletAccounts: () => _txnlab_use_wallet.WalletAccount[] | null;
40
28
  activeWalletAddresses: () => string[] | null;
41
29
  activeWalletState: () => WalletState | null;
42
- activeAccount: () => WalletAccount | null;
30
+ activeAccount: () => _txnlab_use_wallet.WalletAccount | null;
43
31
  activeAddress: () => string | null;
44
32
  activeWalletId: solid_js.Accessor<WalletId | null>;
45
33
  walletStore: solid_js.Accessor<Partial<Record<WalletId, WalletState>>>;
@@ -49,4 +37,4 @@ declare const useWallet: () => {
49
37
  transactionSigner: (txnGroup: algosdk.Transaction[], indexesToSign: number[]) => Promise<Uint8Array[]>;
50
38
  };
51
39
 
52
- export { type Wallet, WalletProvider, useNetwork, useWallet, useWalletManager };
40
+ export { WalletProvider, useNetwork, useWallet, useWalletManager };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _txnlab_use_wallet from '@txnlab/use-wallet';
2
- import { WalletManager, NetworkId, AlgodConfig, WalletMetadata, WalletAccount, WalletState, WalletId } from '@txnlab/use-wallet';
2
+ import { WalletManager, NetworkId, AlgodConfig, WalletState, WalletId } from '@txnlab/use-wallet';
3
3
  export * from '@txnlab/use-wallet';
4
4
  import * as solid_js from 'solid-js';
5
5
  import { JSX } from 'solid-js';
@@ -19,27 +19,15 @@ declare const useNetwork: () => {
19
19
  updateAlgodConfig: (networkId: string, config: Partial<AlgodConfig>) => void;
20
20
  resetNetworkConfig: (networkId: string) => void;
21
21
  };
22
- interface Wallet {
23
- id: () => string;
24
- metadata: () => WalletMetadata;
25
- accounts: () => WalletAccount[];
26
- activeAccount: () => WalletAccount | null;
27
- isConnected: () => boolean;
28
- isActive: () => boolean;
29
- connect: (args?: Record<string, any>) => Promise<WalletAccount[]>;
30
- disconnect: () => Promise<void>;
31
- setActive: () => void;
32
- setActiveAccount: (address: string) => void;
33
- }
34
22
  declare const useWallet: () => {
35
23
  wallets: _txnlab_use_wallet.BaseWallet[];
36
24
  isReady: solid_js.Accessor<boolean>;
37
25
  algodClient: solid_js.Accessor<algosdk.Algodv2>;
38
26
  activeWallet: () => _txnlab_use_wallet.BaseWallet | null;
39
- activeWalletAccounts: () => WalletAccount[] | null;
27
+ activeWalletAccounts: () => _txnlab_use_wallet.WalletAccount[] | null;
40
28
  activeWalletAddresses: () => string[] | null;
41
29
  activeWalletState: () => WalletState | null;
42
- activeAccount: () => WalletAccount | null;
30
+ activeAccount: () => _txnlab_use_wallet.WalletAccount | null;
43
31
  activeAddress: () => string | null;
44
32
  activeWalletId: solid_js.Accessor<WalletId | null>;
45
33
  walletStore: solid_js.Accessor<Partial<Record<WalletId, WalletState>>>;
@@ -49,4 +37,4 @@ declare const useWallet: () => {
49
37
  transactionSigner: (txnGroup: algosdk.Transaction[], indexesToSign: number[]) => Promise<Uint8Array[]>;
50
38
  };
51
39
 
52
- export { type Wallet, WalletProvider, useNetwork, useWallet, useWalletManager };
40
+ export { WalletProvider, useNetwork, useWallet, useWalletManager };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@txnlab/use-wallet-solid",
3
- "version": "4.0.0-beta.6",
3
+ "version": "4.0.0",
4
4
  "description": "Solid.js library for integrating Algorand wallets into decentralized applications",
5
5
  "author": "Doug Richar <drichar@gmail.com>",
6
6
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  ],
55
55
  "dependencies": {
56
56
  "@tanstack/solid-store": "0.7.0",
57
- "@txnlab/use-wallet": "4.0.0-beta.6"
57
+ "@txnlab/use-wallet": "4.0.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@solidjs/testing-library": "0.8.10",