Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/docs/content/typescript/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions packages/typescript/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
2 changes: 1 addition & 1 deletion packages/typescript/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
13 changes: 13 additions & 0 deletions packages/typescript/test/unit/utils/constants.test.ts
Original file line number Diff line number Diff line change
@@ -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',
);
});
});