Socket
Socket
Sign inDemoInstall

@mysten/sui

Package Overview
Dependencies
Maintainers
7
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/sui - npm Package Compare versions

Comparing version 0.0.0-experimental-20240529040124 to 0.0.0-experimental-20240529095306

10

CHANGELOG.md
# @mysten/sui.js
## 0.0.0-experimental-20240529040124
## 0.0.0-experimental-20240529095306
### Patch Changes
- 6fc6235984: Fix parsing of struct tags
## 1.0.0
### Major Changes

@@ -14,3 +20,3 @@

- Updated dependencies [a92b03de42]
- @mysten/bcs@0.0.0-experimental-20240529040124
- @mysten/bcs@1.0.0

@@ -17,0 +23,0 @@ ## 0.54.1

9

dist/cjs/bcs/bcs.js

@@ -115,3 +115,3 @@ "use strict";

});
const TypeTag = import_bcs.bcs.enum("TypeTag", {
const InnerTypeTag = import_bcs.bcs.enum("TypeTag", {
bool: null,

@@ -123,3 +123,3 @@ u8: null,

signer: null,
vector: import_bcs.bcs.lazy(() => TypeTag),
vector: import_bcs.bcs.lazy(() => InnerTypeTag),
struct: import_bcs.bcs.lazy(() => StructTag),

@@ -129,3 +129,4 @@ u16: null,

u256: null
}).transform({
});
const TypeTag = InnerTypeTag.transform({
input: (typeTag) => typeof typeTag === "string" ? import_type_tag_serializer.TypeTagSerializer.parseFromStr(typeTag, true) : typeTag,

@@ -233,3 +234,3 @@ output: (typeTag) => import_type_tag_serializer.TypeTagSerializer.tagToString(typeTag)

name: import_bcs.bcs.string(),
typeParams: import_bcs.bcs.vector(TypeTag)
typeParams: import_bcs.bcs.vector(InnerTypeTag)
});

@@ -236,0 +237,0 @@ const GasData = import_bcs.bcs.struct("GasData", {

@@ -1,2 +0,2 @@

export declare const PACKAGE_VERSION = "0.0.0-experimental-20240529040124";
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240529095306";
export declare const TARGETED_RPC_VERSION = "1.27.0";

@@ -25,4 +25,4 @@ "use strict";

module.exports = __toCommonJS(version_exports);
const PACKAGE_VERSION = "0.0.0-experimental-20240529040124";
const PACKAGE_VERSION = "0.0.0-experimental-20240529095306";
const TARGETED_RPC_VERSION = "1.27.0";
//# sourceMappingURL=version.js.map

@@ -63,3 +63,3 @@ import { bcs, fromB58, fromB64, fromHEX, toB58, toB64, toHEX } from "@mysten/bcs";

});
const TypeTag = bcs.enum("TypeTag", {
const InnerTypeTag = bcs.enum("TypeTag", {
bool: null,

@@ -71,3 +71,3 @@ u8: null,

signer: null,
vector: bcs.lazy(() => TypeTag),
vector: bcs.lazy(() => InnerTypeTag),
struct: bcs.lazy(() => StructTag),

@@ -77,3 +77,4 @@ u16: null,

u256: null
}).transform({
});
const TypeTag = InnerTypeTag.transform({
input: (typeTag) => typeof typeTag === "string" ? TypeTagSerializer.parseFromStr(typeTag, true) : typeTag,

@@ -181,3 +182,3 @@ output: (typeTag) => TypeTagSerializer.tagToString(typeTag)

name: bcs.string(),
typeParams: bcs.vector(TypeTag)
typeParams: bcs.vector(InnerTypeTag)
});

@@ -184,0 +185,0 @@ const GasData = bcs.struct("GasData", {

@@ -1,2 +0,2 @@

export declare const PACKAGE_VERSION = "0.0.0-experimental-20240529040124";
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240529095306";
export declare const TARGETED_RPC_VERSION = "1.27.0";

@@ -1,2 +0,2 @@

const PACKAGE_VERSION = "0.0.0-experimental-20240529040124";
const PACKAGE_VERSION = "0.0.0-experimental-20240529095306";
const TARGETED_RPC_VERSION = "1.27.0";

@@ -3,0 +3,0 @@ export {

@@ -6,3 +6,3 @@ {

"homepage": "https://sdk.mystenlabs.com",
"version": "0.0.0-experimental-20240529040124",
"version": "0.0.0-experimental-20240529095306",
"license": "Apache-2.0",

@@ -136,3 +136,3 @@ "sideEffects": false,

"valibot": "^0.25.0",
"@mysten/bcs": "0.0.0-experimental-20240529040124"
"@mysten/bcs": "1.0.0"
},

@@ -139,0 +139,0 @@ "scripts": {

@@ -81,17 +81,17 @@ // Copyright (c) Mysten Labs, Inc.

export const TypeTag: BcsType<string, string | TypeTagType> = (
bcs.enum('TypeTag', {
bool: null,
u8: null,
u64: null,
u128: null,
address: null,
signer: null,
vector: bcs.lazy(() => TypeTag),
struct: bcs.lazy(() => StructTag),
u16: null,
u32: null,
u256: null,
}) as BcsType<TypeTagType>
).transform({
const InnerTypeTag: BcsType<TypeTagType, TypeTagType> = bcs.enum('TypeTag', {
bool: null,
u8: null,
u64: null,
u128: null,
address: null,
signer: null,
vector: bcs.lazy(() => InnerTypeTag),
struct: bcs.lazy(() => StructTag),
u16: null,
u32: null,
u256: null,
}) as BcsType<TypeTagType>;
export const TypeTag = InnerTypeTag.transform({
input: (typeTag: string | TypeTagType) =>

@@ -210,3 +210,3 @@ typeof typeTag === 'string' ? TypeTagSerializer.parseFromStr(typeTag, true) : typeTag,

name: bcs.string(),
typeParams: bcs.vector(TypeTag),
typeParams: bcs.vector(InnerTypeTag),
});

@@ -213,0 +213,0 @@

@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc.

export const PACKAGE_VERSION = '0.0.0-experimental-20240529040124';
export const PACKAGE_VERSION = '0.0.0-experimental-20240529095306';
export const TARGETED_RPC_VERSION = '1.27.0';

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 too big to display

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc