@dynamic-labs/waas-sui 4.18.7 → 4.19.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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.19.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.8...v4.19.0) (2025-05-23)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* expose 7702 kernel and add viem controller ([#8786](https://github.com/dynamic-labs/dynamic-auth/issues/8786)) ([eea710e](https://github.com/dynamic-labs/dynamic-auth/commit/eea710e238ccbc36e6be37d8f7493954b99858ef))
|
|
8
|
+
* use browser wallet client & iframe for waas operations ([#8697](https://github.com/dynamic-labs/dynamic-auth/issues/8697)) ([13a47b1](https://github.com/dynamic-labs/dynamic-auth/commit/13a47b1c9a2984f08682e833ca8c87605a3a872f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **global-wallet:** close popup when page unloads to prevent orphaned popup windows ([#8787](https://github.com/dynamic-labs/dynamic-auth/issues/8787)) ([441b04c](https://github.com/dynamic-labs/dynamic-auth/commit/441b04ca04a02feb37473e43bca0e66c5d772ce2))
|
|
14
|
+
* override network when requesting BTC networks in useTokenBalances ([#8773](https://github.com/dynamic-labs/dynamic-auth/issues/8773)) ([fd07d09](https://github.com/dynamic-labs/dynamic-auth/commit/fd07d09de970c7e6f85b251a88854e8eca57e249))
|
|
15
|
+
* remove libmpc executor dependency global wallet ([#8792](https://github.com/dynamic-labs/dynamic-auth/issues/8792)) ([7502585](https://github.com/dynamic-labs/dynamic-auth/commit/75025859d2f952915322cf65504117ec2506152b))
|
|
16
|
+
* standardize font on headers ([#8734](https://github.com/dynamic-labs/dynamic-auth/issues/8734)) ([9f0900c](https://github.com/dynamic-labs/dynamic-auth/commit/9f0900cb7c4294201cc952ae7538648bdea83ff5))
|
|
17
|
+
|
|
18
|
+
### [4.18.8](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.7...v4.18.8) (2025-05-22)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* allow closing widget right after login ([#8760](https://github.com/dynamic-labs/dynamic-auth/issues/8760)) ([a9afff0](https://github.com/dynamic-labs/dynamic-auth/commit/a9afff0ab2a685853b39aed88e10bf1e700e4c8c))
|
|
23
|
+
* user wallets turning empty when linking new wallets ([#8775](https://github.com/dynamic-labs/dynamic-auth/issues/8775)) ([04215f5](https://github.com/dynamic-labs/dynamic-auth/commit/04215f5307e16ec4e1a7ff235a0d7df2340c3447))
|
|
24
|
+
|
|
2
25
|
### [4.18.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.18.6...v4.18.7) (2025-05-21)
|
|
3
26
|
|
|
4
27
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-sui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-wallet/
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.76",
|
|
22
22
|
"@mysten/sui": "1.24.0",
|
|
23
23
|
"@mysten/wallet-standard": "0.13.29",
|
|
24
|
-
"@dynamic-labs/sui": "4.
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
26
|
-
"@dynamic-labs/logger": "4.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
28
|
-
"@dynamic-labs/types": "4.
|
|
29
|
-
"@dynamic-labs/utils": "4.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
24
|
+
"@dynamic-labs/sui": "4.19.0",
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.19.0",
|
|
26
|
+
"@dynamic-labs/logger": "4.19.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.19.0",
|
|
28
|
+
"@dynamic-labs/types": "4.19.0",
|
|
29
|
+
"@dynamic-labs/utils": "4.19.0",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.19.0",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.19.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {}
|
|
34
34
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
|
-
var
|
|
7
|
+
var browserWalletClient = require('@dynamic-labs-wallet/browser-wallet-client');
|
|
8
8
|
var client = require('@mysten/sui/client');
|
|
9
9
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
10
10
|
var utils = require('@dynamic-labs/utils');
|
|
@@ -106,10 +106,11 @@ class DynamicWaasSuiConnector extends sui.SuiWalletConnector {
|
|
|
106
106
|
if (!this.baseApiUrl) {
|
|
107
107
|
throw new Error('Base API URL is required');
|
|
108
108
|
}
|
|
109
|
-
return new
|
|
109
|
+
return new browserWalletClient.DynamicWalletClient({
|
|
110
110
|
authToken,
|
|
111
111
|
baseApiUrl: this.baseApiUrl,
|
|
112
112
|
baseMPCRelayApiUrl: this.relayUrl || 'relay.dynamic-preprod.xyz',
|
|
113
|
+
chainName: 'SUI',
|
|
113
114
|
environmentId: this.environmentId,
|
|
114
115
|
});
|
|
115
116
|
}
|
|
@@ -167,8 +168,8 @@ class DynamicWaasSuiConnector extends sui.SuiWalletConnector {
|
|
|
167
168
|
throw new Error('Active account address is required');
|
|
168
169
|
}
|
|
169
170
|
const signedTx = yield walletClient.signTransaction({
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
senderAddress: this.activeAccountAddress,
|
|
172
|
+
transaction: txString,
|
|
172
173
|
});
|
|
173
174
|
return {
|
|
174
175
|
client: client$1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
2
|
import { SuiClient, SuiTransactionBlockResponse } from '@mysten/sui/client';
|
|
3
3
|
import { Transaction } from '@mysten/sui/transactions';
|
|
4
4
|
import { SignedTransaction } from '@mysten/wallet-standard';
|
|
@@ -32,16 +32,16 @@ export declare class DynamicWaasSuiConnector extends SuiWalletConnector implemen
|
|
|
32
32
|
setRelayUrl(relayUrl: string): void;
|
|
33
33
|
private setActiveAccountAddress;
|
|
34
34
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
35
|
-
createDynamicWaasClient():
|
|
36
|
-
getWaasWalletClient():
|
|
35
|
+
createDynamicWaasClient(): DynamicWalletClient;
|
|
36
|
+
getWaasWalletClient(): DynamicWalletClient;
|
|
37
37
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
38
38
|
createWalletAccount({ thresholdSignatureScheme, }?: {
|
|
39
39
|
thresholdSignatureScheme?: string;
|
|
40
40
|
}): Promise<{
|
|
41
|
+
chainName: string;
|
|
41
42
|
accountAddress: string;
|
|
42
43
|
publicKeyHex: string;
|
|
43
|
-
rawPublicKey:
|
|
44
|
-
clientKeyShares: any[];
|
|
44
|
+
rawPublicKey: string | Uint8Array | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
signMessage(message: string): Promise<string>;
|
|
47
47
|
private createAndSignTransaction;
|
|
@@ -50,8 +50,8 @@ export declare class DynamicWaasSuiConnector extends SuiWalletConnector implemen
|
|
|
50
50
|
getSuiClient(): Promise<SuiClient>;
|
|
51
51
|
getWalletClientByAddress({ accountAddress, }: {
|
|
52
52
|
accountAddress: string;
|
|
53
|
-
}):
|
|
54
|
-
getWalletClient():
|
|
53
|
+
}): DynamicWalletClient;
|
|
54
|
+
getWalletClient(): DynamicWalletClient | undefined;
|
|
55
55
|
exportPrivateKey(): Promise<void>;
|
|
56
56
|
importPrivateKey(): Promise<void>;
|
|
57
57
|
exportClientKeyshares({ accountAddress, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
3
|
-
import {
|
|
3
|
+
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
4
4
|
import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';
|
|
5
5
|
import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
|
|
6
6
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
@@ -102,10 +102,11 @@ class DynamicWaasSuiConnector extends SuiWalletConnector {
|
|
|
102
102
|
if (!this.baseApiUrl) {
|
|
103
103
|
throw new Error('Base API URL is required');
|
|
104
104
|
}
|
|
105
|
-
return new
|
|
105
|
+
return new DynamicWalletClient({
|
|
106
106
|
authToken,
|
|
107
107
|
baseApiUrl: this.baseApiUrl,
|
|
108
108
|
baseMPCRelayApiUrl: this.relayUrl || 'relay.dynamic-preprod.xyz',
|
|
109
|
+
chainName: 'SUI',
|
|
109
110
|
environmentId: this.environmentId,
|
|
110
111
|
});
|
|
111
112
|
}
|
|
@@ -163,8 +164,8 @@ class DynamicWaasSuiConnector extends SuiWalletConnector {
|
|
|
163
164
|
throw new Error('Active account address is required');
|
|
164
165
|
}
|
|
165
166
|
const signedTx = yield walletClient.signTransaction({
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
senderAddress: this.activeAccountAddress,
|
|
168
|
+
transaction: txString,
|
|
168
169
|
});
|
|
169
170
|
return {
|
|
170
171
|
client,
|