@aptos-labs/wallet-adapter-core 5.3.0 → 5.4.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/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const WALLET_ADAPTER_CORE_VERSION = "5.3.0";
1
+ export declare const WALLET_ADAPTER_CORE_VERSION = "5.4.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-core",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Aptos Wallet Adapter Core",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "license": "Apache-2.0",
9
9
  "exports": {
10
+ "types": "./dist/index.d.ts",
10
11
  "require": "./dist/index.js",
11
- "import": "./dist/index.mjs",
12
- "types": "./dist/index.d.ts"
12
+ "import": "./dist/index.mjs"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -28,12 +28,13 @@
28
28
  "Aptos Wallet"
29
29
  ],
30
30
  "devDependencies": {
31
+ "@swc/core": "^1.11.16",
31
32
  "@types/jest": "^29.2.4",
32
33
  "@types/node": "^20.10.4",
33
34
  "eslint": "^8.15.0",
34
35
  "jest": "^29.3.1",
35
36
  "ts-jest": "^29.0.3",
36
- "tsup": "^5.10.1",
37
+ "tsup": "^8.4.0",
37
38
  "typescript": "^4.5.3",
38
39
  "@aptos-labs/eslint-config-adapter": "0.0.2",
39
40
  "@aptos-labs/wallet-adapter-tsconfig": "0.0.2"
@@ -43,6 +44,7 @@
43
44
  "@aptos-labs/wallet-standard": "^0.3.0",
44
45
  "@atomrigslab/aptos-wallet-adapter": "^0.1.20",
45
46
  "@mizuwallet-sdk/aptos-wallet-adapter": "^0.3.2",
47
+ "@msafe/aptos-aip62-wallet": "^1.0.17",
46
48
  "buffer": "^6.0.3",
47
49
  "eventemitter3": "^4.0.7",
48
50
  "tweetnacl": "^1.0.3"
package/src/WalletCore.ts CHANGED
@@ -117,6 +117,10 @@ export interface DappConfig {
117
117
  manifestURL: string;
118
118
  appId?: string;
119
119
  };
120
+ msafeWalletConfig?: {
121
+ appId?: string;
122
+ appUrl?: string;
123
+ };
120
124
  }
121
125
 
122
126
  export declare interface WalletCoreEvents {
package/src/sdkWallets.ts CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  import { Network } from "@aptos-labs/ts-sdk";
6
6
  import { DevTWallet, TWallet } from "@atomrigslab/aptos-wallet-adapter";
7
7
  import { MizuWallet } from "@mizuwallet-sdk/aptos-wallet-adapter";
8
+ import { MSafeWallet } from "@msafe/aptos-aip62-wallet";
8
9
  import { DappConfig, AdapterWallet } from "./WalletCore";
9
10
 
10
11
  export function getSDKWallets(dappConfig?: DappConfig) {
@@ -50,6 +51,15 @@ export function getSDKWallets(dappConfig?: DappConfig) {
50
51
  sdkWallets.push(new DevTWallet() as any);
51
52
  }
52
53
 
54
+ if (dappConfig?.network) {
55
+ sdkWallets.push(
56
+ new MSafeWallet({
57
+ ...dappConfig?.msafeWalletConfig,
58
+ network: dappConfig.network,
59
+ })
60
+ );
61
+ }
62
+
53
63
  // Add new SDK wallet plugins (ones that should be installed as packages) here:
54
64
  // Ex. sdkWallets.push(new YourSDKWallet(dappConfig))
55
65
 
@@ -32,7 +32,8 @@ export type AvailableWallets =
32
32
  | "Mizu Wallet"
33
33
  | "OKX Wallet"
34
34
  | "Continue with Google"
35
- | "Continue with Apple";
35
+ | "Continue with Apple"
36
+ | "MSafe Wallet";
36
37
 
37
38
  export type InputTransactionData = {
38
39
  sender?: AccountAddressInput;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const WALLET_ADAPTER_CORE_VERSION = "5.3.0";
1
+ export const WALLET_ADAPTER_CORE_VERSION = "5.4.0";