@aptos-labs/wallet-adapter-react 0.2.3 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @aptos-labs/wallet-adapter-react
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 06a2e0d: Add support to submit BCS transaction
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [06a2e0d]
12
+ - @aptos-labs/wallet-adapter-core@2.0.0
13
+
14
+ ## 0.2.4
15
+
16
+ ### Patch Changes
17
+
18
+ - e03f79c: Update Blocto and Martian package version and fix a minor autoConnect bug
19
+
3
20
  ## 0.2.3
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -10,6 +10,7 @@ The react provider supports all [wallet standard](https://aptos.dev/guides/walle
10
10
 
11
11
  ##### Standard functions
12
12
 
13
+ ```
13
14
  connect
14
15
  disconnect
15
16
  connected
@@ -17,11 +18,14 @@ account
17
18
  network
18
19
  signAndSubmitTransaction
19
20
  signMessage
21
+ ```
20
22
 
21
23
  ##### Feature functions
22
24
 
25
+ ```
23
26
  signTransaction
24
27
  signMessageAndVerify
28
+ ```
25
29
 
26
30
  ### Usage
27
31
 
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- import { AccountInfo, NetworkInfo, WalletName, WalletInfo, Wallet, SignMessagePayload, SignMessageResponse } from '@aptos-labs/wallet-adapter-core';
1
+ import { AccountInfo, NetworkInfo, WalletName, WalletInfo, Wallet, TransactionPayload, SignMessagePayload, SignMessageResponse } from '@aptos-labs/wallet-adapter-core';
2
2
  export { NetworkName, WalletName, WalletReadyState } from '@aptos-labs/wallet-adapter-core';
3
- import { Types } from 'aptos';
4
3
  import { ReactNode, FC } from 'react';
5
4
 
6
5
  interface WalletContextState {
7
6
  connected: boolean;
7
+ isLoading: boolean;
8
8
  account: AccountInfo | null;
9
9
  network: NetworkInfo | null;
10
10
  connect(walletName: WalletName): void;
11
11
  disconnect(): void;
12
12
  wallet: WalletInfo | null;
13
13
  wallets: Wallet[];
14
- signAndSubmitTransaction<T extends Types.TransactionPayload, V>(transaction: T, options?: V): Promise<any>;
15
- signTransaction<T extends Types.TransactionPayload, V>(transaction: T, options?: V): Promise<any>;
14
+ signAndSubmitTransaction<T extends TransactionPayload, V>(transaction: T, options?: V): Promise<any>;
15
+ signTransaction<T extends TransactionPayload, V>(transaction: T, options?: V): Promise<any>;
16
16
  signMessage(message: SignMessagePayload): Promise<SignMessageResponse | null>;
17
17
  signMessageAndVerify(message: SignMessagePayload): Promise<boolean>;
18
18
  }