@mysten/sui.js
Advanced tools
Comparing version 0.50.1 to 0.51.0
# @mysten/sui.js | ||
## 0.51.0 | ||
### Minor Changes | ||
- 0cafa94027: Remove deprecated types directory | ||
## 0.50.1 | ||
@@ -4,0 +10,0 @@ |
@@ -1,3 +0,3 @@ | ||
import type { TransactionBlock } from '../builder/index.js'; | ||
import type { Signer } from '../cryptography/index.js'; | ||
import type { TransactionBlock } from '../transactions/index.js'; | ||
import type { SuiTransport } from './http-transport.js'; | ||
@@ -4,0 +4,0 @@ import type { AddressMetrics, AllEpochsAddressMetrics, Checkpoint, CheckpointPage, CoinBalance, CoinMetadata, CoinSupply, CommitteeInfo, DelegatedStake, DevInspectResults, DevInspectTransactionBlockParams, DryRunTransactionBlockParams, DryRunTransactionBlockResponse, DynamicFieldPage, EpochInfo, EpochMetricsPage, EpochPage, ExecuteTransactionBlockParams, GetAllBalancesParams, GetAllCoinsParams, GetBalanceParams, GetCheckpointParams, GetCheckpointsParams, GetCoinMetadataParams, GetCoinsParams, GetCommitteeInfoParams, GetDynamicFieldObjectParams, GetDynamicFieldsParams, GetMoveFunctionArgTypesParams, GetNormalizedMoveFunctionParams, GetNormalizedMoveModuleParams, GetNormalizedMoveModulesByPackageParams, GetNormalizedMoveStructParams, GetObjectParams, GetOwnedObjectsParams, GetProtocolConfigParams, GetStakesByIdsParams, GetStakesParams, GetTotalSupplyParams, GetTransactionBlockParams, MoveCallMetrics, MultiGetObjectsParams, MultiGetTransactionBlocksParams, NetworkMetrics, ObjectRead, Order, PaginatedCoins, PaginatedEvents, PaginatedObjectsResponse, PaginatedTransactionResponse, ProtocolConfig, QueryEventsParams, QueryTransactionBlocksParams, ResolvedNameServiceNames, ResolveNameServiceAddressParams, ResolveNameServiceNamesParams, SubscribeEventParams, SubscribeTransactionParams, SuiEvent, SuiMoveFunctionArgType, SuiMoveNormalizedFunction, SuiMoveNormalizedModule, SuiMoveNormalizedModules, SuiMoveNormalizedStruct, SuiObjectResponse, SuiSystemStateSummary, SuiTransactionBlockResponse, TransactionEffects, TryGetPastObjectParams, Unsubscribe, ValidatorsApy } from './types/index.js'; |
@@ -27,3 +27,3 @@ "use strict"; | ||
var import_bcs = require("@mysten/bcs"); | ||
var import_builder = require("../builder/index.js"); | ||
var import_transactions = require("../transactions/index.js"); | ||
var import_sui_types = require("../utils/sui-types.js"); | ||
@@ -387,3 +387,3 @@ var import_http_transport = require("./http-transport.js"); | ||
let devInspectTxBytes; | ||
if ((0, import_builder.isTransactionBlock)(input.transactionBlock)) { | ||
if ((0, import_transactions.isTransactionBlock)(input.transactionBlock)) { | ||
input.transactionBlock.setSenderIfNotSet(input.sender); | ||
@@ -390,0 +390,0 @@ devInspectTxBytes = (0, import_bcs.toB64)( |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
import type { TransactionBlock } from '../../builder/index.js'; | ||
import type { TransactionBlock } from '../../transactions/index.js'; | ||
import type * as RpcTypes from './generated.js'; | ||
@@ -12,0 +12,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import type { TransactionBlock } from '../builder/TransactionBlock.js'; | ||
import type { DevInspectResults, DryRunTransactionBlockResponse, ExecuteTransactionRequestType, SuiClient, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions } from '../client/index.js'; | ||
import type { SerializedSignature } from '../cryptography/signature.js'; | ||
import type { TransactionBlock } from '../transactions/TransactionBlock.js'; | ||
import type { Signer } from './signer.js'; | ||
@@ -5,0 +5,0 @@ import type { SignedMessage, SignedTransaction } from './types.js'; |
@@ -26,5 +26,5 @@ "use strict"; | ||
var import_bcs2 = require("../bcs/index.js"); | ||
var import_TransactionBlock = require("../builder/TransactionBlock.js"); | ||
var import_TransactionBlockData = require("../builder/TransactionBlockData.js"); | ||
var import_intent = require("../cryptography/intent.js"); | ||
var import_TransactionBlock = require("../transactions/TransactionBlock.js"); | ||
var import_TransactionBlockData = require("../transactions/TransactionBlockData.js"); | ||
class SignerWithProvider { | ||
@@ -31,0 +31,0 @@ /////////////////// |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.50.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.19.0"; | ||
export declare const PACKAGE_VERSION = "0.51.0"; | ||
export declare const TARGETED_RPC_VERSION = "1.21.0"; |
@@ -25,4 +25,4 @@ "use strict"; | ||
module.exports = __toCommonJS(version_exports); | ||
const PACKAGE_VERSION = "0.50.1"; | ||
const TARGETED_RPC_VERSION = "1.19.0"; | ||
const PACKAGE_VERSION = "0.51.0"; | ||
const TARGETED_RPC_VERSION = "1.21.0"; | ||
//# sourceMappingURL=version.js.map |
export { getZkLoginSignature, parseZkLoginSignature } from './signature.js'; | ||
export { toBigEndianBytes } from './utils.js'; | ||
export { computeZkLoginAddressFromSeed } from './address.js'; | ||
export { ZkLoginPublicIdentifier } from './publickey.js'; | ||
export { toZkLoginPublicIdentifier, ZkLoginPublicIdentifier } from './publickey.js'; | ||
export type { ZkLoginSignatureInputs } from './bcs.js'; |
@@ -25,3 +25,4 @@ "use strict"; | ||
parseZkLoginSignature: () => import_signature.parseZkLoginSignature, | ||
toBigEndianBytes: () => import_utils.toBigEndianBytes | ||
toBigEndianBytes: () => import_utils.toBigEndianBytes, | ||
toZkLoginPublicIdentifier: () => import_publickey.toZkLoginPublicIdentifier | ||
}); | ||
@@ -28,0 +29,0 @@ module.exports = __toCommonJS(zklogin_exports); |
@@ -1,3 +0,3 @@ | ||
import type { TransactionBlock } from '../builder/index.js'; | ||
import type { Signer } from '../cryptography/index.js'; | ||
import type { TransactionBlock } from '../transactions/index.js'; | ||
import type { SuiTransport } from './http-transport.js'; | ||
@@ -4,0 +4,0 @@ import type { AddressMetrics, AllEpochsAddressMetrics, Checkpoint, CheckpointPage, CoinBalance, CoinMetadata, CoinSupply, CommitteeInfo, DelegatedStake, DevInspectResults, DevInspectTransactionBlockParams, DryRunTransactionBlockParams, DryRunTransactionBlockResponse, DynamicFieldPage, EpochInfo, EpochMetricsPage, EpochPage, ExecuteTransactionBlockParams, GetAllBalancesParams, GetAllCoinsParams, GetBalanceParams, GetCheckpointParams, GetCheckpointsParams, GetCoinMetadataParams, GetCoinsParams, GetCommitteeInfoParams, GetDynamicFieldObjectParams, GetDynamicFieldsParams, GetMoveFunctionArgTypesParams, GetNormalizedMoveFunctionParams, GetNormalizedMoveModuleParams, GetNormalizedMoveModulesByPackageParams, GetNormalizedMoveStructParams, GetObjectParams, GetOwnedObjectsParams, GetProtocolConfigParams, GetStakesByIdsParams, GetStakesParams, GetTotalSupplyParams, GetTransactionBlockParams, MoveCallMetrics, MultiGetObjectsParams, MultiGetTransactionBlocksParams, NetworkMetrics, ObjectRead, Order, PaginatedCoins, PaginatedEvents, PaginatedObjectsResponse, PaginatedTransactionResponse, ProtocolConfig, QueryEventsParams, QueryTransactionBlocksParams, ResolvedNameServiceNames, ResolveNameServiceAddressParams, ResolveNameServiceNamesParams, SubscribeEventParams, SubscribeTransactionParams, SuiEvent, SuiMoveFunctionArgType, SuiMoveNormalizedFunction, SuiMoveNormalizedModule, SuiMoveNormalizedModules, SuiMoveNormalizedStruct, SuiObjectResponse, SuiSystemStateSummary, SuiTransactionBlockResponse, TransactionEffects, TryGetPastObjectParams, Unsubscribe, ValidatorsApy } from './types/index.js'; |
import { fromB58, toB64, toHEX } from "@mysten/bcs"; | ||
import { isTransactionBlock } from "../builder/index.js"; | ||
import { isTransactionBlock } from "../transactions/index.js"; | ||
import { | ||
@@ -4,0 +4,0 @@ isValidSuiAddress, |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
import type { TransactionBlock } from '../../builder/index.js'; | ||
import type { TransactionBlock } from '../../transactions/index.js'; | ||
import type * as RpcTypes from './generated.js'; | ||
@@ -12,0 +12,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import type { TransactionBlock } from '../builder/TransactionBlock.js'; | ||
import type { DevInspectResults, DryRunTransactionBlockResponse, ExecuteTransactionRequestType, SuiClient, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions } from '../client/index.js'; | ||
import type { SerializedSignature } from '../cryptography/signature.js'; | ||
import type { TransactionBlock } from '../transactions/TransactionBlock.js'; | ||
import type { Signer } from './signer.js'; | ||
@@ -5,0 +5,0 @@ import type { SignedMessage, SignedTransaction } from './types.js'; |
import { fromB64, toB64 } from "@mysten/bcs"; | ||
import { bcs } from "../bcs/index.js"; | ||
import { isTransactionBlock } from "../builder/TransactionBlock.js"; | ||
import { TransactionBlockDataBuilder } from "../builder/TransactionBlockData.js"; | ||
import { IntentScope, messageWithIntent } from "../cryptography/intent.js"; | ||
import { isTransactionBlock } from "../transactions/TransactionBlock.js"; | ||
import { TransactionBlockDataBuilder } from "../transactions/TransactionBlockData.js"; | ||
class SignerWithProvider { | ||
@@ -7,0 +7,0 @@ /////////////////// |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.50.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.19.0"; | ||
export declare const PACKAGE_VERSION = "0.51.0"; | ||
export declare const TARGETED_RPC_VERSION = "1.21.0"; |
@@ -1,3 +0,3 @@ | ||
const PACKAGE_VERSION = "0.50.1"; | ||
const TARGETED_RPC_VERSION = "1.19.0"; | ||
const PACKAGE_VERSION = "0.51.0"; | ||
const TARGETED_RPC_VERSION = "1.21.0"; | ||
export { | ||
@@ -4,0 +4,0 @@ PACKAGE_VERSION, |
export { getZkLoginSignature, parseZkLoginSignature } from './signature.js'; | ||
export { toBigEndianBytes } from './utils.js'; | ||
export { computeZkLoginAddressFromSeed } from './address.js'; | ||
export { ZkLoginPublicIdentifier } from './publickey.js'; | ||
export { toZkLoginPublicIdentifier, ZkLoginPublicIdentifier } from './publickey.js'; | ||
export type { ZkLoginSignatureInputs } from './bcs.js'; |
import { getZkLoginSignature, parseZkLoginSignature } from "./signature.js"; | ||
import { toBigEndianBytes } from "./utils.js"; | ||
import { computeZkLoginAddressFromSeed } from "./address.js"; | ||
import { ZkLoginPublicIdentifier } from "./publickey.js"; | ||
import { toZkLoginPublicIdentifier, ZkLoginPublicIdentifier } from "./publickey.js"; | ||
export { | ||
@@ -10,4 +10,5 @@ ZkLoginPublicIdentifier, | ||
parseZkLoginSignature, | ||
toBigEndianBytes | ||
toBigEndianBytes, | ||
toZkLoginPublicIdentifier | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sdk.mystenlabs.com", | ||
"version": "0.50.1", | ||
"version": "0.51.0", | ||
"license": "Apache-2.0", | ||
@@ -75,4 +75,4 @@ "sideEffects": false, | ||
"./transactions": { | ||
"import": "./dist/esm/builder/export.js", | ||
"require": "./dist/cjs/builder/export.js" | ||
"import": "./dist/esm/transactions/export.js", | ||
"require": "./dist/cjs/transactions/export.js" | ||
}, | ||
@@ -79,0 +79,0 @@ "./utils": { |
@@ -8,5 +8,5 @@ # Docs site | ||
This is the Sui TypeScript SDK built on the Sui | ||
[JSON RPC API](https://github.com/MystenLabs/sui/blob/main/doc/src/build/json-rpc.md). It provides | ||
utility classes and functions for applications to sign transactions and interact with the Sui | ||
network. | ||
[JSON RPC API](https://github.com/MystenLabs/sui/blob/main/docs/content/references/sui-api.mdx). It | ||
provides utility classes and functions for applications to sign transactions and interact with the | ||
Sui network. | ||
@@ -17,8 +17,8 @@ WARNING: Note that we are still iterating on the RPC and SDK API before TestNet, therefore please | ||
## Working with DevNet | ||
## Working with Devnet | ||
The SDK will be published to [npm registry](https://www.npmjs.com/package/@mysten/sui.js) with the | ||
same bi-weekly release cycle as the DevNet validators and | ||
[RPC Server](https://github.com/MystenLabs/sui/blob/main/doc/src/build/json-rpc.md). To use the SDK | ||
in your project, you can do: | ||
same bi-weekly release cycle as the Devnet validators and | ||
[RPC Server](https://github.com/MystenLabs/sui/blob/main/docs/content/references/sui-api.mdx). To | ||
use the SDK in your project, you can do: | ||
@@ -42,3 +42,4 @@ ```bash | ||
Refer to the [JSON RPC](https://github.com/MystenLabs/sui/blob/main/doc/src/build/json-rpc.md) topic | ||
Refer to the | ||
[JSON RPC](https://github.com/MystenLabs/sui/blob/main/docs/content/references/sui-api.mdx) topic | ||
for instructions about how to start a local network and local RPC server. | ||
@@ -98,3 +99,3 @@ | ||
To run E2E tests against DevNet | ||
To run E2E tests against Devnet | ||
@@ -111,3 +112,3 @@ ``` | ||
- local: http://127.0.0.1:9000 | ||
- DevNet: https://fullnode.devnet.sui.io | ||
- Devnet: https://fullnode.devnet.sui.io | ||
@@ -114,0 +115,0 @@ ```typescript |
@@ -17,4 +17,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import type { MoveCallTransaction } from '../builder/Transactions.js'; | ||
import type { SuiObjectRef as SuiObjectRefType } from '../types/objects.js'; | ||
import type { MoveCallTransaction } from '../transactions/Transactions.js'; | ||
import { normalizeSuiAddress, SUI_ADDRESS_LENGTH } from '../utils/sui-types.js'; | ||
@@ -39,2 +38,11 @@ import { TypeTagSerializer } from './type-tag-serializer.js'; | ||
export type SuiObjectRef = { | ||
/** Base64 string representing the object digest */ | ||
objectId: string; | ||
/** Object version */ | ||
version: number | string | bigint; | ||
/** Hex code as string representing the object id */ | ||
digest: string; | ||
}; | ||
/** | ||
@@ -44,5 +52,5 @@ * An object argument. | ||
export type ObjectArg = | ||
| { ImmOrOwned: SuiObjectRefType } | ||
| { ImmOrOwned: SuiObjectRef } | ||
| { Shared: SharedObjectRef } | ||
| { Receiving: SuiObjectRefType }; | ||
| { Receiving: SuiObjectRef }; | ||
@@ -115,3 +123,3 @@ /** | ||
export type GasData = { | ||
payment: SuiObjectRefType[]; | ||
payment: SuiObjectRef[]; | ||
owner: string; // Gas Object's owner | ||
@@ -118,0 +126,0 @@ price: number; |
@@ -5,5 +5,5 @@ // Copyright (c) Mysten Labs, Inc. | ||
import type { TransactionBlock } from '../builder/index.js'; | ||
import { isTransactionBlock } from '../builder/index.js'; | ||
import type { Signer } from '../cryptography/index.js'; | ||
import type { TransactionBlock } from '../transactions/index.js'; | ||
import { isTransactionBlock } from '../transactions/index.js'; | ||
import { | ||
@@ -10,0 +10,0 @@ isValidSuiAddress, |
@@ -13,3 +13,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import type { TransactionBlock } from '../../builder/index.js'; | ||
import type { TransactionBlock } from '../../transactions/index.js'; | ||
import type * as RpcTypes from './generated.js'; | ||
@@ -16,0 +16,0 @@ |
@@ -7,5 +7,2 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { bcs } from '../bcs/index.js'; | ||
import type { TransactionBlock } from '../builder/TransactionBlock.js'; | ||
import { isTransactionBlock } from '../builder/TransactionBlock.js'; | ||
import { TransactionBlockDataBuilder } from '../builder/TransactionBlockData.js'; | ||
import type { | ||
@@ -21,2 +18,5 @@ DevInspectResults, | ||
import type { SerializedSignature } from '../cryptography/signature.js'; | ||
import type { TransactionBlock } from '../transactions/TransactionBlock.js'; | ||
import { isTransactionBlock } from '../transactions/TransactionBlock.js'; | ||
import { TransactionBlockDataBuilder } from '../transactions/TransactionBlockData.js'; | ||
import type { Signer } from './signer.js'; | ||
@@ -23,0 +23,0 @@ import type { SignedMessage, SignedTransaction } from './types.js'; |
@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export const PACKAGE_VERSION = '0.50.1'; | ||
export const TARGETED_RPC_VERSION = '1.19.0'; | ||
export const PACKAGE_VERSION = '0.51.0'; | ||
export const TARGETED_RPC_VERSION = '1.21.0'; |
@@ -7,3 +7,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export { computeZkLoginAddressFromSeed } from './address.js'; | ||
export { ZkLoginPublicIdentifier } from './publickey.js'; | ||
export { toZkLoginPublicIdentifier, ZkLoginPublicIdentifier } from './publickey.js'; | ||
export type { ZkLoginSignatureInputs } from './bcs.js'; |
{ | ||
"private": true, | ||
"import": "../dist/esm/builder/export.js", | ||
"main": "../dist/cjs/builder/export.js", | ||
"import": "../dist/esm/transactions/export.js", | ||
"main": "../dist/cjs/transactions/export.js", | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
521
3483104
488
69106