Skip to content

Commit

Permalink
[TypeScript SDK] Update package publishing settings (MystenLabs#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
666lcz authored May 9, 2022
1 parent 3b8a9c2 commit 68225a4
Show file tree
Hide file tree
Showing 12 changed files with 323 additions and 301 deletions.
2 changes: 1 addition & 1 deletion explorer/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"react-ace": "^9.5.0",
"react-dom": "^17.0.2",
"react-router-dom": "^6.2.1",
"sui.js": "file:../../sdk/typescript",
"@mysten/sui.js": "file:../../sdk/typescript",
"swr": "^1.2.2",
"web-vitals": "^2.1.4"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { getObjectContent, getObjectExistsResponse } from '@mysten/sui.js';
import React, { useCallback, useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { getObjectContent, getObjectExistsResponse } from 'sui.js';

import { DefaultRpcClient as rpc } from '../../utils/api/DefaultRpcClient';
import { parseImageURL, parseObjectType } from '../../utils/objectUtils';
Expand Down
10 changes: 5 additions & 5 deletions explorer/client/src/components/transaction-card/RecentTxCard.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import cl from 'classnames';
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import {
getSingleTransactionKind,
getTransactionKind,
getTransferTransaction,
getExecutionStatusType,
getTotalGasUsed,
} from 'sui.js';
} from '@mysten/sui.js';
import cl from 'classnames';
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';

import Longtext from '../../components/longtext/Longtext';
import theme from '../../styles/theme.module.css';
Expand All @@ -23,7 +23,7 @@ import type {
TransactionEffectsResponse,
ExecutionStatusType,
TransactionKindName,
} from 'sui.js';
} from '@mysten/sui.js';

import styles from './RecentTxCard.module.css';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { Buffer } from 'buffer';
import cl from 'classnames';
import {
getMoveCallTransaction,
getPublishTransaction,
getTransactionKind,
getTransferTransaction,
} from 'sui.js';
} from '@mysten/sui.js';
import { Buffer } from 'buffer';
import cl from 'classnames';

import Longtext from '../../components/longtext/Longtext';

Expand All @@ -18,7 +18,7 @@ import type {
TransactionKindName,
ExecutionStatusType,
RawObjectRef,
} from 'sui.js';
} from '@mysten/sui.js';

import styles from './TransactionCard.module.css';

Expand Down
4 changes: 2 additions & 2 deletions explorer/client/src/pages/object-result/ObjectResultType.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { getMovePackageContent, getObjectContent } from 'sui.js';
import { getMovePackageContent, getObjectContent } from '@mysten/sui.js';

import { type AddressOwner } from '../../utils/api/DefaultRpcClient';
import { parseObjectType } from '../../utils/objectUtils';
Expand All @@ -12,7 +12,7 @@ import type {
ObjectNotExistsInfo,
ObjectOwner,
ObjectRef,
} from 'sui.js';
} from '@mysten/sui.js';

export type DataType = {
id: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import cl from 'classnames';
import { useEffect, useState } from 'react';
import { useParams } from 'react-router-dom';
import {
getSingleTransactionKind,
getExecutionStatusType,
getTotalGasUsed,
getExecutionDetails,
} from 'sui.js';
} from '@mysten/sui.js';
import cl from 'classnames';
import { useEffect, useState } from 'react';
import { useParams } from 'react-router-dom';

import ErrorResult from '../../components/error-result/ErrorResult';
import TransactionCard from '../../components/transaction-card/TransactionCard';
Expand All @@ -22,7 +22,7 @@ import type {
ExecutionStatusType,
TransactionEffects,
RawObjectRef,
} from 'sui.js';
} from '@mysten/sui.js';

import styles from './TransactionResult.module.css';

Expand Down
2 changes: 1 addition & 1 deletion explorer/client/src/utils/api/DefaultRpcClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { JsonRpcProvider } from 'sui.js';
import { JsonRpcProvider } from '@mysten/sui.js';

import { getEndpoint } from './rpcSetting';

Expand Down
2 changes: 1 addition & 1 deletion explorer/client/src/utils/api/searchUtil.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import { isObjectNotExistsInfo, isObjectRef } from 'sui.js';
import { isObjectNotExistsInfo, isObjectRef } from '@mysten/sui.js';

import { DefaultRpcClient as rpc } from './DefaultRpcClient';

Expand Down
2 changes: 1 addition & 1 deletion explorer/client/src/utils/objectUtils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

import type { ObjectExistsInfo } from 'sui.js';
import type { ObjectExistsInfo } from '@mysten/sui.js';

export function parseImageURL(data: any): string {
return (
Expand Down
Loading

0 comments on commit 68225a4

Please sign in to comment.