@lifi/sdk-provider-sui 4.1.0 → 4.1.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 +15 -0
- package/dist/esm/actions/getSuiNSAddress.d.ts.map +1 -1
- package/dist/esm/actions/getSuiNSAddress.js +2 -1
- package/dist/esm/actions/getSuiNSAddress.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/package.json +3 -3
- package/src/actions/getSuiNSAddress.ts +2 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @lifi/sdk-provider-sui
|
|
2
2
|
|
|
3
|
+
## 4.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#419](https://github.com/lifinance/sdk/pull/419) [`a3be034`](https://github.com/lifinance/sdk/commit/a3be034330f9815d462d526accece8f630c83345) Thanks [@chybisov](https://github.com/chybisov)! - Bump runtime dependencies: @mysten/sui to 2.20.1 and tronweb to 6.4.0.
|
|
8
|
+
|
|
9
|
+
## 4.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#407](https://github.com/lifinance/sdk/pull/407) [`2254196`](https://github.com/lifinance/sdk/commit/2254196129bccec1ba8d3afe8e7a4cb714230831) Thanks [@chybisov](https://github.com/chybisov)! - Use the `getJsonRpcFullnodeUrl` helper for the default Sui fullnode URL in SuiNS resolution instead of a hardcoded string. No behavior change — the helper returns the same mainnet endpoint.
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`e8c8b69`](https://github.com/lifinance/sdk/commit/e8c8b6999ba8ffc127d47ba4a648d0a2792a4870), [`82b6c17`](https://github.com/lifinance/sdk/commit/82b6c17ceadfe3968e27e2c7bb3b8a1a0ded1840), [`2ced1e4`](https://github.com/lifinance/sdk/commit/2ced1e4881923ac14e110b3009150a5bd4f9d318), [`6e1b100`](https://github.com/lifinance/sdk/commit/6e1b1009700561571d0dca864f539129951c162b)]:
|
|
16
|
+
- @lifi/sdk@4.1.0
|
|
17
|
+
|
|
3
18
|
## 4.1.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSuiNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSuiNSAddress.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getSuiNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSuiNSAddress.ts"],"mappings":";;;iBAIsB,eAAA,CACpB,IAAA,UACA,MAAA,WACA,OAAA,GAAU,cAAA,CAAe,OAAA,GACxB,OAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SuiGrpcClient } from "@mysten/sui/grpc";
|
|
2
|
+
import { getJsonRpcFullnodeUrl } from "@mysten/sui/jsonRpc";
|
|
2
3
|
//#region src/actions/getSuiNSAddress.ts
|
|
3
4
|
async function getSuiNSAddress(name, rpcUrl, network) {
|
|
4
5
|
const client = new SuiGrpcClient({
|
|
5
6
|
network: network || "mainnet",
|
|
6
|
-
baseUrl: rpcUrl || "
|
|
7
|
+
baseUrl: rpcUrl || getJsonRpcFullnodeUrl("mainnet")
|
|
7
8
|
});
|
|
8
9
|
try {
|
|
9
10
|
const { response } = await client.nameService.lookupName({ name });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSuiNSAddress.js","names":[],"sources":["../../../src/actions/getSuiNSAddress.ts"],"sourcesContent":["import type { SuiClientTypes } from '@mysten/sui/client'\nimport { SuiGrpcClient } from '@mysten/sui/grpc'\n\nexport async function getSuiNSAddress(\n name: string,\n rpcUrl?: string,\n network?: SuiClientTypes.Network\n): Promise<string | undefined> {\n const client = new SuiGrpcClient({\n network: network || 'mainnet',\n baseUrl: rpcUrl || '
|
|
1
|
+
{"version":3,"file":"getSuiNSAddress.js","names":[],"sources":["../../../src/actions/getSuiNSAddress.ts"],"sourcesContent":["import type { SuiClientTypes } from '@mysten/sui/client'\nimport { SuiGrpcClient } from '@mysten/sui/grpc'\nimport { getJsonRpcFullnodeUrl } from '@mysten/sui/jsonRpc'\n\nexport async function getSuiNSAddress(\n name: string,\n rpcUrl?: string,\n network?: SuiClientTypes.Network\n): Promise<string | undefined> {\n const client = new SuiGrpcClient({\n network: network || 'mainnet',\n baseUrl: rpcUrl || getJsonRpcFullnodeUrl('mainnet'),\n })\n\n try {\n const { response } = await client.nameService.lookupName({ name })\n return response.record?.targetAddress\n } catch (error) {\n console.error('Error resolving SuiNS address:', error)\n return\n }\n}\n"],"mappings":";;;AAIA,eAAsB,gBACpB,MACA,QACA,SAC6B;CAC7B,MAAM,SAAS,IAAI,cAAc;EAC/B,SAAS,WAAW;EACpB,SAAS,UAAU,sBAAsB,SAAS;CACpD,CAAC;CAED,IAAI;EACF,MAAM,EAAE,aAAa,MAAM,OAAO,YAAY,WAAW,EAAE,KAAK,CAAC;EACjE,OAAO,SAAS,QAAQ;CAC1B,SAAS,OAAO;EACd,QAAQ,MAAM,kCAAkC,KAAK;EACrD;CACF;AACF"}
|
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-sui'\nexport const version = '4.1.
|
|
1
|
+
{"version":3,"file":"version.js","names":[],"sources":["../../src/version.ts"],"sourcesContent":["export const name = '@lifi/sdk-provider-sui'\nexport const version = '4.1.2'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/sdk-provider-sui",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "LI.FI Sui SDK Provider for Any-to-Any Cross-Chain-Swap",
|
|
5
5
|
"homepage": "https://github.com/lifinance/sdk",
|
|
6
6
|
"bugs": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@mysten/sui": "^2.
|
|
32
|
-
"@lifi/sdk": "4.0
|
|
31
|
+
"@mysten/sui": "^2.20.1",
|
|
32
|
+
"@lifi/sdk": "4.1.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SuiClientTypes } from '@mysten/sui/client'
|
|
2
2
|
import { SuiGrpcClient } from '@mysten/sui/grpc'
|
|
3
|
+
import { getJsonRpcFullnodeUrl } from '@mysten/sui/jsonRpc'
|
|
3
4
|
|
|
4
5
|
export async function getSuiNSAddress(
|
|
5
6
|
name: string,
|
|
@@ -8,7 +9,7 @@ export async function getSuiNSAddress(
|
|
|
8
9
|
): Promise<string | undefined> {
|
|
9
10
|
const client = new SuiGrpcClient({
|
|
10
11
|
network: network || 'mainnet',
|
|
11
|
-
baseUrl: rpcUrl || '
|
|
12
|
+
baseUrl: rpcUrl || getJsonRpcFullnodeUrl('mainnet'),
|
|
12
13
|
})
|
|
13
14
|
|
|
14
15
|
try {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = '@lifi/sdk-provider-sui'
|
|
2
|
-
export const version = '4.1.
|
|
2
|
+
export const version = '4.1.2'
|