@mysten/sui
Advanced tools
Comparing version 0.0.0-experimental-20240531194956 to 0.0.0-experimental-20240603183408
# @mysten/sui.js | ||
## 0.0.0-experimental-20240531194956 | ||
## 0.0.0-experimental-20240603183408 | ||
### Patch Changes | ||
- 369b924343: Fix serializing bcs<u8> inputs from pure strings in v1 json | ||
- Updated dependencies [369b924343] | ||
- @mysten/bcs@0.0.0-experimental-20240603183408 | ||
## 1.0.4 | ||
### Patch Changes | ||
- f1e828f557: Export types needed for defining Transaction plugins | ||
- Updated dependencies [f1e828f557] | ||
- @mysten/bcs@0.0.0-experimental-20240531194956 | ||
- @mysten/bcs@1.0.1 | ||
@@ -11,0 +19,0 @@ ## 1.0.3 |
@@ -37,7 +37,7 @@ "use strict"; | ||
MoveCall(input) { | ||
const [pkg, mod, fn] = "target" in input ? input.target.split("::") : [input.package, input.module, input.function]; | ||
const [pkg, mod = "", fn = ""] = "target" in input ? input.target.split("::") : [input.package, input.module, input.function]; | ||
return { | ||
$kind: "MoveCall", | ||
MoveCall: { | ||
package: (0, import_sui_types.normalizeSuiObjectId)(pkg), | ||
package: pkg, | ||
module: mod, | ||
@@ -44,0 +44,0 @@ function: fn, |
@@ -66,2 +66,8 @@ "use strict"; | ||
if ("vector" in typeSignature) { | ||
if (typeSignature.vector === "u8") { | ||
return import_bcs.bcs.vector(import_bcs.bcs.U8).transform({ | ||
input: (val) => typeof val === "string" ? new TextEncoder().encode(val) : val, | ||
output: (val) => val | ||
}); | ||
} | ||
const type = getPureBcsSchema(typeSignature.vector); | ||
@@ -68,0 +74,0 @@ return type ? import_bcs.bcs.vector(type) : null; |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240531194956"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240603183408"; | ||
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-20240531194956"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20240603183408"; | ||
const TARGETED_RPC_VERSION = "1.27.0"; | ||
//# sourceMappingURL=version.js.map |
@@ -13,7 +13,7 @@ import { toB64 } from "@mysten/bcs"; | ||
MoveCall(input) { | ||
const [pkg, mod, fn] = "target" in input ? input.target.split("::") : [input.package, input.module, input.function]; | ||
const [pkg, mod = "", fn = ""] = "target" in input ? input.target.split("::") : [input.package, input.module, input.function]; | ||
return { | ||
$kind: "MoveCall", | ||
MoveCall: { | ||
package: normalizeSuiObjectId(pkg), | ||
package: pkg, | ||
module: mod, | ||
@@ -20,0 +20,0 @@ function: fn, |
@@ -40,2 +40,8 @@ import { bcs } from "../bcs/index.js"; | ||
if ("vector" in typeSignature) { | ||
if (typeSignature.vector === "u8") { | ||
return bcs.vector(bcs.U8).transform({ | ||
input: (val) => typeof val === "string" ? new TextEncoder().encode(val) : val, | ||
output: (val) => val | ||
}); | ||
} | ||
const type = getPureBcsSchema(typeSignature.vector); | ||
@@ -42,0 +48,0 @@ return type ? bcs.vector(type) : null; |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240531194956"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20240603183408"; | ||
export declare const TARGETED_RPC_VERSION = "1.27.0"; |
@@ -1,2 +0,2 @@ | ||
const PACKAGE_VERSION = "0.0.0-experimental-20240531194956"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20240603183408"; | ||
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-20240531194956", | ||
"version": "0.0.0-experimental-20240603183408", | ||
"license": "Apache-2.0", | ||
@@ -136,3 +136,3 @@ "sideEffects": false, | ||
"valibot": "^0.25.0", | ||
"@mysten/bcs": "0.0.0-experimental-20240531194956" | ||
"@mysten/bcs": "0.0.0-experimental-20240603183408" | ||
}, | ||
@@ -139,0 +139,0 @@ "scripts": { |
@@ -49,3 +49,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
): TransactionShape<'MoveCall'> { | ||
const [pkg, mod, fn] = | ||
const [pkg, mod = '', fn = ''] = | ||
'target' in input ? input.target.split('::') : [input.package, input.module, input.function]; | ||
@@ -56,3 +56,3 @@ | ||
MoveCall: { | ||
package: normalizeSuiObjectId(pkg), | ||
package: pkg, | ||
module: mod, | ||
@@ -59,0 +59,0 @@ function: fn, |
@@ -61,2 +61,9 @@ // Copyright (c) Mysten Labs, Inc. | ||
if ('vector' in typeSignature) { | ||
if (typeSignature.vector === 'u8') { | ||
return bcs.vector(bcs.U8).transform({ | ||
input: (val: string | Uint8Array) => | ||
typeof val === 'string' ? new TextEncoder().encode(val) : val, | ||
output: (val) => val, | ||
}); | ||
} | ||
const type = getPureBcsSchema(typeSignature.vector); | ||
@@ -63,0 +70,0 @@ return type ? bcs.vector(type) : null; |
@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20240531194956'; | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20240603183408'; | ||
export const TARGETED_RPC_VERSION = '1.27.0'; |
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
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
5357914
95759
+ Added@mysten/bcs@0.0.0-experimental-20240603183408(transitive)
- Removed@mysten/bcs@0.0.0-experimental-20240531194956(transitive)