@lifi/sdk-provider-sui 4.1.0 → 4.1.1

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,5 +1,14 @@
1
1
  # @lifi/sdk-provider-sui
2
2
 
3
+ ## 4.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+
9
+ - 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)]:
10
+ - @lifi/sdk@4.1.0
11
+
3
12
  ## 4.1.0
4
13
 
5
14
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"getSuiNSAddress.d.ts","names":[],"sources":["../../../src/actions/getSuiNSAddress.ts"],"mappings":";;;iBAGsB,eAAA,CACpB,IAAA,UACA,MAAA,WACA,OAAA,GAAU,cAAA,CAAe,OAAA,GACxB,OAAA"}
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 || "https://fullnode.mainnet.sui.io:443"
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 || 'https://fullnode.mainnet.sui.io:443',\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":";;AAGA,eAAsB,gBACpB,MACA,QACA,SAC6B;CAC7B,MAAM,SAAS,IAAI,cAAc;EAC/B,SAAS,WAAW;EACpB,SAAS,UAAU;CACrB,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"}
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"}
@@ -1,6 +1,6 @@
1
1
  //#region src/version.d.ts
2
2
  declare const name = "@lifi/sdk-provider-sui";
3
- declare const version = "4.1.0";
3
+ declare const version = "4.1.1";
4
4
  //#endregion
5
5
  export { name, version };
6
6
  //# sourceMappingURL=version.d.ts.map
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  const name = "@lifi/sdk-provider-sui";
3
- const version = "4.1.0";
3
+ const version = "4.1.1";
4
4
  //#endregion
5
5
  export { name, version };
6
6
 
@@ -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.0'\n"],"mappings":";AAAA,MAAa,OAAO;AACpB,MAAa,UAAU"}
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'\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.0",
3
+ "version": "4.1.1",
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": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@mysten/sui": "^2.19.0",
32
- "@lifi/sdk": "4.0.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 || 'https://fullnode.mainnet.sui.io:443',
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.0'
2
+ export const version = '4.1.1'