@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/WalletCore.d.ts +4 -0
- package/dist/WalletCore.d.ts.map +1 -1
- package/dist/index.js +2214 -980
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2074 -956
- package/dist/index.mjs.map +1 -1
- package/dist/sdkWallets.d.ts.map +1 -1
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +6 -4
- package/src/WalletCore.ts +4 -0
- package/src/sdkWallets.ts +10 -0
- package/src/utils/types.ts +2 -1
- package/src/version.ts +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const WALLET_ADAPTER_CORE_VERSION = "5.
|
|
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
|
+
"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": "^
|
|
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
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
|
|
package/src/utils/types.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const WALLET_ADAPTER_CORE_VERSION = "5.
|
|
1
|
+
export const WALLET_ADAPTER_CORE_VERSION = "5.4.0";
|