@mysten/sui
Advanced tools
Comparing version 1.0.0 to 1.0.1
# @mysten/sui.js | ||
## 1.0.1 | ||
### Patch Changes | ||
- 6fc6235984: Fix parsing of struct tags | ||
## 1.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -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 = "1.0.0"; | ||
export declare const PACKAGE_VERSION = "1.0.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.27.0"; |
@@ -25,4 +25,4 @@ "use strict"; | ||
module.exports = __toCommonJS(version_exports); | ||
const PACKAGE_VERSION = "1.0.0"; | ||
const PACKAGE_VERSION = "1.0.1"; | ||
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 = "1.0.0"; | ||
export declare const PACKAGE_VERSION = "1.0.1"; | ||
export declare const TARGETED_RPC_VERSION = "1.27.0"; |
@@ -1,2 +0,2 @@ | ||
const PACKAGE_VERSION = "1.0.0"; | ||
const PACKAGE_VERSION = "1.0.1"; | ||
const TARGETED_RPC_VERSION = "1.27.0"; | ||
@@ -3,0 +3,0 @@ export { |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sdk.mystenlabs.com", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "Apache-2.0", | ||
@@ -9,0 +9,0 @@ "sideEffects": false, |
@@ -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 = '1.0.0'; | ||
export const PACKAGE_VERSION = '1.0.1'; | ||
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
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
5347827
95605