@aptos-labs/wallet-adapter-react 0.2.4 → 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,16 @@
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
+
3
14
  ## 0.2.4
4
15
 
5
16
  ### Patch Changes
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
  }