From 33c344dee80cb3a1c8944a9e0962a62828263760 Mon Sep 17 00:00:00 2001 From: Goraniya Karan Date: Sun, 27 Apr 2025 10:25:41 +0530 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20add=20SUI=5FRANDOM=5FOBJECT=5FID=20?= =?UTF-8?q?and=20unit=20test=20=F0=9F=8E=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/typescript/src/utils/constants.ts | 1 + packages/typescript/src/version.ts | 2 +- .../typescript/test/unit/utils/constants.test.ts | 13 +++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 packages/typescript/test/unit/utils/constants.test.ts diff --git a/packages/typescript/src/utils/constants.ts b/packages/typescript/src/utils/constants.ts index 3ac332aef..dbb0b50cf 100644 --- a/packages/typescript/src/utils/constants.ts +++ b/packages/typescript/src/utils/constants.ts @@ -13,3 +13,4 @@ export const SUI_CLOCK_OBJECT_ID = normalizeSuiObjectId('0x6'); export const SUI_SYSTEM_MODULE_NAME = 'sui_system'; export const SUI_TYPE_ARG = `${SUI_FRAMEWORK_ADDRESS}::sui::SUI`; export const SUI_SYSTEM_STATE_OBJECT_ID: string = normalizeSuiObjectId('0x5'); +export const SUI_RANDOM_OBJECT_ID = normalizeSuiObjectId('0x8'); diff --git a/packages/typescript/src/version.ts b/packages/typescript/src/version.ts index b5b3abd77..0587f05e0 100644 --- a/packages/typescript/src/version.ts +++ b/packages/typescript/src/version.ts @@ -4,4 +4,4 @@ // This file is generated by genversion.mjs. Do not edit it directly. export const PACKAGE_VERSION = '1.28.2'; -export const TARGETED_RPC_VERSION = '1.48.0'; +export const TARGETED_RPC_VERSION = '1.49.0'; diff --git a/packages/typescript/test/unit/utils/constants.test.ts b/packages/typescript/test/unit/utils/constants.test.ts new file mode 100644 index 000000000..7599ab79d --- /dev/null +++ b/packages/typescript/test/unit/utils/constants.test.ts @@ -0,0 +1,13 @@ +// Copyright (c) Mysten Labs, Inc. +// SPDX-License-Identifier: Apache-2.0 + +import { SUI_RANDOM_OBJECT_ID } from '../../../src/utils/constants'; +import { describe, expect, it } from 'vitest'; + +describe('SUI Constants', () => { + it('should correctly normalize SUI_RANDOM_OBJECT_ID', () => { + expect(SUI_RANDOM_OBJECT_ID).toBe( + '0x0000000000000000000000000000000000000000000000000000000000000008', + ); + }); +}); From 0230c4d2bc953d2215b78744c0c80352c26604b1 Mon Sep 17 00:00:00 2001 From: Goraniya Karan Date: Sun, 27 Apr 2025 10:26:25 +0530 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20fix=20SDK=20doc=20link=20?= =?UTF-8?q?=F0=9F=97=92=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/docs/content/typescript/install.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/content/typescript/install.mdx b/packages/docs/content/typescript/install.mdx index 1b36bcd01..96f7c2908 100644 --- a/packages/docs/content/typescript/install.mdx +++ b/packages/docs/content/typescript/install.mdx @@ -3,7 +3,7 @@ title: Install Sui TypeScript SDK --- The Sui TypeScript SDK is available in the -[Sui TS SDK monorepo](https://github.com/MystenLabs/ts-sdks/tree/main/sdk) and NPM. +[Sui TS SDK monorepo](https://github.com/MystenLabs/ts-sdks/tree/main/packages/typescript) and NPM. ## Install from NPM