@dynamic-labs-sdk/sui 0.0.1-alpha.26 → 0.1.0-alpha.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 +38 -0
- package/index.cjs.js +6 -11
- package/index.esm.js +6 -11
- package/package.json +4 -4
- package/src/errors/NotSuiProviderError/NotSuiProviderError.d.ts +0 -6
- package/src/errors/NotSuiProviderError/NotSuiProviderError.d.ts.map +1 -1
- package/src/getSuiClient/getSuiClient.d.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
## 0.1.0-alpha.0 (2025-09-02)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- add connectAndVerifyWithWalletProvider function ([#385](https://github.com/dynamic-labs/dynamic-sdk/pull/385))
|
|
6
|
+
- add event listening for wallet providers ([#389](https://github.com/dynamic-labs/dynamic-sdk/pull/389))
|
|
7
|
+
|
|
8
|
+
### 🩹 Fixes
|
|
9
|
+
|
|
10
|
+
- sending transaction with solana ([#381](https://github.com/dynamic-labs/dynamic-sdk/pull/381))
|
|
11
|
+
|
|
12
|
+
### 🔧 Refactors
|
|
13
|
+
|
|
14
|
+
- waas sign message defined in waas provider ([#377](https://github.com/dynamic-labs/dynamic-sdk/pull/377))
|
|
15
|
+
- ban chain enum ([#386](https://github.com/dynamic-labs/dynamic-sdk/pull/386))
|
|
16
|
+
- ban misplaced waas exports ([#387](https://github.com/dynamic-labs/dynamic-sdk/pull/387))
|
|
17
|
+
|
|
18
|
+
## 0.0.1-alpha.27 (2025-08-29)
|
|
19
|
+
|
|
20
|
+
### 🚀 Features
|
|
21
|
+
|
|
22
|
+
- allow switching network ([#323](https://github.com/dynamic-labs/dynamic-sdk/pull/323))
|
|
23
|
+
- introduce getBalance and getBalanceForAddress ([#335](https://github.com/dynamic-labs/dynamic-sdk/pull/335))
|
|
24
|
+
- add delegateWaasKeyShares function ([#353](https://github.com/dynamic-labs/dynamic-sdk/pull/353))
|
|
25
|
+
- add updateWaasPassword function ([#354](https://github.com/dynamic-labs/dynamic-sdk/pull/354))
|
|
26
|
+
- add exportWaasClientKeyshares function ([#355](https://github.com/dynamic-labs/dynamic-sdk/pull/355))
|
|
27
|
+
- add importWaasPrivateKey function ([#356](https://github.com/dynamic-labs/dynamic-sdk/pull/356))
|
|
28
|
+
- add refreshWaasWalletAccountShares function ([#357](https://github.com/dynamic-labs/dynamic-sdk/pull/357))
|
|
29
|
+
- add backupWaasKeySharesToGoogleDrive function ([#358](https://github.com/dynamic-labs/dynamic-sdk/pull/358))
|
|
30
|
+
- add exportWaasPrivateKey function ([#359](https://github.com/dynamic-labs/dynamic-sdk/pull/359))
|
|
31
|
+
- add isWaasWalletAccount function ([#365](https://github.com/dynamic-labs/dynamic-sdk/pull/365))
|
|
32
|
+
- add createWalletClientForWalletAccount function ([#367](https://github.com/dynamic-labs/dynamic-sdk/pull/367))
|
|
33
|
+
|
|
34
|
+
### 🔧 Refactors
|
|
35
|
+
|
|
36
|
+
- assert signed session id in getSignedSessionId ([#361](https://github.com/dynamic-labs/dynamic-sdk/pull/361))
|
|
37
|
+
- add consumeMfaTokenIfRequiredForAction function ([#363](https://github.com/dynamic-labs/dynamic-sdk/pull/363))
|
|
38
|
+
|
|
1
39
|
## 0.0.1-alpha.26 (2025-08-27)
|
|
2
40
|
|
|
3
41
|
### 🩹 Fixes
|
package/index.cjs.js
CHANGED
|
@@ -6,15 +6,10 @@ var client = require('@dynamic-labs-sdk/client');
|
|
|
6
6
|
var core = require('@dynamic-labs-sdk/client/core');
|
|
7
7
|
|
|
8
8
|
var name = "@dynamic-labs-sdk/sui";
|
|
9
|
-
var version = "0.0
|
|
9
|
+
var version = "0.1.0-alpha.0";
|
|
10
10
|
|
|
11
11
|
class NotSuiProviderError extends client.BaseError {
|
|
12
|
-
|
|
13
|
-
* Creates a new NotSuiProviderError instance.
|
|
14
|
-
*
|
|
15
|
-
* @param params - Object containing the provider key
|
|
16
|
-
* @param params.providerKey - The key of the provider that is not a SUI provider
|
|
17
|
-
*/ constructor(params){
|
|
12
|
+
constructor(params){
|
|
18
13
|
super({
|
|
19
14
|
cause: null,
|
|
20
15
|
code: 'not_sui_provider_error',
|
|
@@ -36,10 +31,10 @@ class NotSuiProviderError extends client.BaseError {
|
|
|
36
31
|
/**
|
|
37
32
|
* Retrieves a SuiClient from a wallet account.
|
|
38
33
|
*
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @returns
|
|
42
|
-
* @throws
|
|
34
|
+
* @param params.walletAccount - The wallet account to get the SuiClient for.
|
|
35
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
36
|
+
* @returns A promise that resolves to a SuiClient instance
|
|
37
|
+
* @throws NotSuiProviderError If the wallet account's provider is not a SUI provider
|
|
43
38
|
*/ const getSuiClient = async ({ walletAccount }, client = core.getDefaultClient())=>{
|
|
44
39
|
const provider = core.getWalletProviderFromWalletAccount({
|
|
45
40
|
walletAccount
|
package/index.esm.js
CHANGED
|
@@ -4,15 +4,10 @@ import { BaseError } from '@dynamic-labs-sdk/client';
|
|
|
4
4
|
import { getDefaultClient, getWalletProviderFromWalletAccount } from '@dynamic-labs-sdk/client/core';
|
|
5
5
|
|
|
6
6
|
var name = "@dynamic-labs-sdk/sui";
|
|
7
|
-
var version = "0.0
|
|
7
|
+
var version = "0.1.0-alpha.0";
|
|
8
8
|
|
|
9
9
|
class NotSuiProviderError extends BaseError {
|
|
10
|
-
|
|
11
|
-
* Creates a new NotSuiProviderError instance.
|
|
12
|
-
*
|
|
13
|
-
* @param params - Object containing the provider key
|
|
14
|
-
* @param params.providerKey - The key of the provider that is not a SUI provider
|
|
15
|
-
*/ constructor(params){
|
|
10
|
+
constructor(params){
|
|
16
11
|
super({
|
|
17
12
|
cause: null,
|
|
18
13
|
code: 'not_sui_provider_error',
|
|
@@ -34,10 +29,10 @@ class NotSuiProviderError extends BaseError {
|
|
|
34
29
|
/**
|
|
35
30
|
* Retrieves a SuiClient from a wallet account.
|
|
36
31
|
*
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
* @returns
|
|
40
|
-
* @throws
|
|
32
|
+
* @param params.walletAccount - The wallet account to get the SuiClient for.
|
|
33
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
34
|
+
* @returns A promise that resolves to a SuiClient instance
|
|
35
|
+
* @throws NotSuiProviderError If the wallet account's provider is not a SUI provider
|
|
41
36
|
*/ const getSuiClient = async ({ walletAccount }, client = getDefaultClient())=>{
|
|
42
37
|
const provider = getWalletProviderFromWalletAccount({
|
|
43
38
|
walletAccount
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-sdk/sui",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs.js",
|
|
6
6
|
"module": "./index.esm.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dynamic-labs-sdk/client": "0.0
|
|
23
|
-
"@dynamic-labs-sdk/assert-package-version": "0.0
|
|
24
|
-
"@dynamic-labs/sdk-api-core": "
|
|
22
|
+
"@dynamic-labs-sdk/client": "0.1.0-alpha.0",
|
|
23
|
+
"@dynamic-labs-sdk/assert-package-version": "0.1.0-alpha.0",
|
|
24
|
+
"@dynamic-labs/sdk-api-core": "0.0.762",
|
|
25
25
|
"@mysten/wallet-standard": "0.16.4",
|
|
26
26
|
"eventemitter3": "^5.0.1"
|
|
27
27
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { BaseError } from '@dynamic-labs-sdk/client';
|
|
2
2
|
export declare class NotSuiProviderError extends BaseError {
|
|
3
3
|
readonly providerKey: string;
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new NotSuiProviderError instance.
|
|
6
|
-
*
|
|
7
|
-
* @param params - Object containing the provider key
|
|
8
|
-
* @param params.providerKey - The key of the provider that is not a SUI provider
|
|
9
|
-
*/
|
|
10
4
|
constructor(params: {
|
|
11
5
|
providerKey: string;
|
|
12
6
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotSuiProviderError.d.ts","sourceRoot":"","sources":["../../../../../../packages/sui/src/errors/NotSuiProviderError/NotSuiProviderError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,SAAgB,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NotSuiProviderError.d.ts","sourceRoot":"","sources":["../../../../../../packages/sui/src/errors/NotSuiProviderError/NotSuiProviderError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,qBAAa,mBAAoB,SAAQ,SAAS;IAChD,SAAgB,WAAW,EAAE,MAAM,CAAC;gBAExB,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;CAW5C"}
|
|
@@ -5,10 +5,10 @@ type GetSuiClientParams = {
|
|
|
5
5
|
/**
|
|
6
6
|
* Retrieves a SuiClient from a wallet account.
|
|
7
7
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @returns
|
|
11
|
-
* @throws
|
|
8
|
+
* @param params.walletAccount - The wallet account to get the SuiClient for.
|
|
9
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
10
|
+
* @returns A promise that resolves to a SuiClient instance
|
|
11
|
+
* @throws NotSuiProviderError If the wallet account's provider is not a SUI provider
|
|
12
12
|
*/
|
|
13
13
|
export declare const getSuiClient: ({ walletAccount }: GetSuiClientParams, client?: any) => Promise<import("../exports").SuiClient>;
|
|
14
14
|
export {};
|