@dynamic-labs/waas-sui 4.95.0 → 4.95.2
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,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.95.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.95.1...v4.95.2) (2026-07-30)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **ethereum-aa:** resolve chainId from network for ZeroDev v2 multichain projects ([#12106](https://github.com/dynamic-labs/dynamic-auth/issues/12106)) ([76f18b0](https://github.com/dynamic-labs/dynamic-auth/commit/76f18b0a861aa916f949a919e65a185c6c32673f)), closes [#12105](https://github.com/dynamic-labs/dynamic-auth/issues/12105) [#12105](https://github.com/dynamic-labs/dynamic-auth/issues/12105)
|
|
8
|
+
|
|
9
|
+
### [4.95.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.95.0...v4.95.1) (2026-07-28)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **sui:** stop using Sui Foundation fullnode URLs in WaaS and extension connectors ([#12110](https://github.com/dynamic-labs/dynamic-auth/issues/12110)) ([5c5539d](https://github.com/dynamic-labs/dynamic-auth/commit/5c5539dfe9db321b078e2a0bfda71aebce99837b))
|
|
15
|
+
|
|
2
16
|
## [4.95.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.94.0...v4.95.0) (2026-07-28)
|
|
3
17
|
|
|
4
18
|
|
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.95.
|
|
3
|
+
"version": "4.95.2",
|
|
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",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.1",
|
|
25
25
|
"@mysten/sui": "1.45.2",
|
|
26
26
|
"@mysten/wallet-standard": "0.19.9",
|
|
27
|
-
"@dynamic-labs/assert-package-version": "4.95.
|
|
28
|
-
"@dynamic-labs/logger": "4.95.
|
|
29
|
-
"@dynamic-labs/rpc-providers": "4.95.
|
|
30
|
-
"@dynamic-labs/sui-core": "4.95.
|
|
31
|
-
"@dynamic-labs/types": "4.95.
|
|
32
|
-
"@dynamic-labs/utils": "4.95.
|
|
33
|
-
"@dynamic-labs/waas": "4.95.
|
|
34
|
-
"@dynamic-labs/wallet-book": "4.95.
|
|
35
|
-
"@dynamic-labs/wallet-connector-core": "4.95.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.95.2",
|
|
28
|
+
"@dynamic-labs/logger": "4.95.2",
|
|
29
|
+
"@dynamic-labs/rpc-providers": "4.95.2",
|
|
30
|
+
"@dynamic-labs/sui-core": "4.95.2",
|
|
31
|
+
"@dynamic-labs/types": "4.95.2",
|
|
32
|
+
"@dynamic-labs/utils": "4.95.2",
|
|
33
|
+
"@dynamic-labs/waas": "4.95.2",
|
|
34
|
+
"@dynamic-labs/wallet-book": "4.95.2",
|
|
35
|
+
"@dynamic-labs/wallet-connector-core": "4.95.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {}
|
|
38
38
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
|
-
var client = require('@mysten/sui/client');
|
|
8
7
|
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
9
8
|
var suiCore = require('@dynamic-labs/sui-core');
|
|
10
9
|
var utils = require('@dynamic-labs/utils');
|
|
@@ -158,9 +157,11 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
158
157
|
createAndSignTransaction(transaction) {
|
|
159
158
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
160
159
|
var _a, _b, _c, _d;
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
const client = yield this.getSuiClient();
|
|
161
|
+
if (!client) {
|
|
162
|
+
throw new utils.DynamicError('No Sui client available', 'no_sui_client_available');
|
|
163
|
+
}
|
|
164
|
+
const txBytes = yield transaction.build({ client });
|
|
164
165
|
const txString = Buffer.from(txBytes).toString('hex');
|
|
165
166
|
const walletClient = yield this.getWaasWalletClient();
|
|
166
167
|
if (!this.activeAccountAddress) {
|
|
@@ -189,7 +190,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
189
190
|
transaction: txString,
|
|
190
191
|
});
|
|
191
192
|
return {
|
|
192
|
-
client
|
|
193
|
+
client,
|
|
193
194
|
signedTx: {
|
|
194
195
|
bytes: txBytes,
|
|
195
196
|
signature: signedTx,
|
|
@@ -227,9 +228,11 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
227
228
|
});
|
|
228
229
|
}
|
|
229
230
|
getSuiClient() {
|
|
231
|
+
const _super = Object.create(null, {
|
|
232
|
+
getSuiClient: { get: () => super.getSuiClient }
|
|
233
|
+
});
|
|
230
234
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
|
|
232
|
-
return new client.SuiClient({ url: client.getFullnodeUrl(networkName) });
|
|
235
|
+
return _super.getSuiClient.call(this);
|
|
233
236
|
});
|
|
234
237
|
}
|
|
235
238
|
getWalletClientByAddress(_a) {
|
|
@@ -235,7 +235,7 @@ export declare class DynamicWaasSuiConnector extends DynamicWaasSuiConnector_bas
|
|
|
235
235
|
private createAndSignTransaction;
|
|
236
236
|
signTransaction(transaction: Transaction): Promise<SignedTransaction>;
|
|
237
237
|
signAndExecuteTransaction(transaction: Transaction): Promise<SuiTransactionBlockResponse>;
|
|
238
|
-
getSuiClient(): Promise<SuiClient>;
|
|
238
|
+
getSuiClient(): Promise<SuiClient | undefined>;
|
|
239
239
|
getWalletClientByAddress({ accountAddress, }: {
|
|
240
240
|
accountAddress: string;
|
|
241
241
|
}): Promise<DynamicWalletClient>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
3
|
-
import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';
|
|
4
3
|
import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
5
4
|
import { SuiWalletConnector, SuiUiTransaction } from '@dynamic-labs/sui-core';
|
|
6
5
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
@@ -154,8 +153,10 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
154
153
|
createAndSignTransaction(transaction) {
|
|
155
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
155
|
var _a, _b, _c, _d;
|
|
157
|
-
const
|
|
158
|
-
|
|
156
|
+
const client = yield this.getSuiClient();
|
|
157
|
+
if (!client) {
|
|
158
|
+
throw new DynamicError('No Sui client available', 'no_sui_client_available');
|
|
159
|
+
}
|
|
159
160
|
const txBytes = yield transaction.build({ client });
|
|
160
161
|
const txString = Buffer.from(txBytes).toString('hex');
|
|
161
162
|
const walletClient = yield this.getWaasWalletClient();
|
|
@@ -223,9 +224,11 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
223
224
|
});
|
|
224
225
|
}
|
|
225
226
|
getSuiClient() {
|
|
227
|
+
const _super = Object.create(null, {
|
|
228
|
+
getSuiClient: { get: () => super.getSuiClient }
|
|
229
|
+
});
|
|
226
230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
-
|
|
228
|
-
return new SuiClient({ url: getFullnodeUrl(networkName) });
|
|
231
|
+
return _super.getSuiClient.call(this);
|
|
229
232
|
});
|
|
230
233
|
}
|
|
231
234
|
getWalletClientByAddress(_a) {
|