@mysten/sui
Advanced tools
Comparing version 0.0.0-experimental-20241106004723 to 0.0.0-experimental-20241112205034
# @mysten/sui.js | ||
## 0.0.0-experimental-20241106004723 | ||
## 0.0.0-experimental-20241112205034 | ||
### Patch Changes | ||
- d5a23d7: Add tx.object.option for creatnig object options in transaction builder | ||
## 1.14.2 | ||
### Patch Changes | ||
- e7bc63e: Allow 0 amounts with `coinWithBalance` intent when the wallet has no coin objects of the | ||
@@ -8,0 +14,0 @@ required type. |
@@ -982,2 +982,6 @@ import type { Transaction, TransactionObjectInput } from './Transaction.js'; | ||
}; | ||
option({ type, value }: { | ||
type: string; | ||
value: TransactionObjectInput | null; | ||
}): (tx: Transaction) => import("./Transaction.js").TransactionResult; | ||
}; | ||
@@ -984,0 +988,0 @@ sharedObjectRef: (args_0: { |
@@ -1,2 +0,2 @@ | ||
import type { TransactionObjectInput } from './Transaction.js'; | ||
import type { Transaction, TransactionObjectInput } from './Transaction.js'; | ||
export declare function createObjectMethods<T>(makeObject: (value: TransactionObjectInput) => T): { | ||
@@ -8,2 +8,6 @@ (value: TransactionObjectInput): T; | ||
denyList(): T; | ||
option({ type, value }: { | ||
type: string; | ||
value: TransactionObjectInput | null; | ||
}): (tx: Transaction) => import("./Transaction.js").TransactionResult; | ||
}; |
@@ -32,4 +32,9 @@ "use strict"; | ||
object.denyList = () => object("0x403"); | ||
object.option = ({ type, value }) => (tx) => tx.moveCall({ | ||
typeArguments: [type], | ||
target: `0x1::option::${value === null ? "none" : "some"}`, | ||
arguments: value === null ? [] : [tx.object(value)] | ||
}); | ||
return object; | ||
} | ||
//# sourceMappingURL=object.js.map |
@@ -627,2 +627,6 @@ import type { SerializedBcs } from '@mysten/bcs'; | ||
}; | ||
option({ type, value }: { | ||
type: string; | ||
value: TransactionObjectInput | null; | ||
}): (tx: Transaction) => TransactionResult; | ||
}; | ||
@@ -629,0 +633,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20241106004723"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20241112205034"; | ||
export declare const TARGETED_RPC_VERSION = "1.38.0"; |
@@ -25,4 +25,4 @@ "use strict"; | ||
module.exports = __toCommonJS(version_exports); | ||
const PACKAGE_VERSION = "0.0.0-experimental-20241106004723"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20241112205034"; | ||
const TARGETED_RPC_VERSION = "1.38.0"; | ||
//# sourceMappingURL=version.js.map |
@@ -982,2 +982,6 @@ import type { Transaction, TransactionObjectInput } from './Transaction.js'; | ||
}; | ||
option({ type, value }: { | ||
type: string; | ||
value: TransactionObjectInput | null; | ||
}): (tx: Transaction) => import("./Transaction.js").TransactionResult; | ||
}; | ||
@@ -984,0 +988,0 @@ sharedObjectRef: (args_0: { |
@@ -1,2 +0,2 @@ | ||
import type { TransactionObjectInput } from './Transaction.js'; | ||
import type { Transaction, TransactionObjectInput } from './Transaction.js'; | ||
export declare function createObjectMethods<T>(makeObject: (value: TransactionObjectInput) => T): { | ||
@@ -8,2 +8,6 @@ (value: TransactionObjectInput): T; | ||
denyList(): T; | ||
option({ type, value }: { | ||
type: string; | ||
value: TransactionObjectInput | null; | ||
}): (tx: Transaction) => import("./Transaction.js").TransactionResult; | ||
}; |
@@ -9,2 +9,7 @@ function createObjectMethods(makeObject) { | ||
object.denyList = () => object("0x403"); | ||
object.option = ({ type, value }) => (tx) => tx.moveCall({ | ||
typeArguments: [type], | ||
target: `0x1::option::${value === null ? "none" : "some"}`, | ||
arguments: value === null ? [] : [tx.object(value)] | ||
}); | ||
return object; | ||
@@ -11,0 +16,0 @@ } |
@@ -627,2 +627,6 @@ import type { SerializedBcs } from '@mysten/bcs'; | ||
}; | ||
option({ type, value }: { | ||
type: string; | ||
value: TransactionObjectInput | null; | ||
}): (tx: Transaction) => TransactionResult; | ||
}; | ||
@@ -629,0 +633,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20241106004723"; | ||
export declare const PACKAGE_VERSION = "0.0.0-experimental-20241112205034"; | ||
export declare const TARGETED_RPC_VERSION = "1.38.0"; |
@@ -1,2 +0,2 @@ | ||
const PACKAGE_VERSION = "0.0.0-experimental-20241106004723"; | ||
const PACKAGE_VERSION = "0.0.0-experimental-20241112205034"; | ||
const TARGETED_RPC_VERSION = "1.38.0"; | ||
@@ -3,0 +3,0 @@ export { |
@@ -6,3 +6,3 @@ { | ||
"homepage": "https://sdk.mystenlabs.com", | ||
"version": "0.0.0-experimental-20241106004723", | ||
"version": "0.0.0-experimental-20241112205034", | ||
"license": "Apache-2.0", | ||
@@ -9,0 +9,0 @@ "sideEffects": false, |
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import type { TransactionObjectInput } from './Transaction.js'; | ||
import type { Transaction, TransactionObjectInput } from './Transaction.js'; | ||
@@ -15,4 +15,12 @@ export function createObjectMethods<T>(makeObject: (value: TransactionObjectInput) => T) { | ||
object.denyList = () => object('0x403'); | ||
object.option = | ||
({ type, value }: { type: string; value: TransactionObjectInput | null }) => | ||
(tx: Transaction) => | ||
tx.moveCall({ | ||
typeArguments: [type], | ||
target: `0x1::option::${value === null ? 'none' : 'some'}`, | ||
arguments: value === null ? [] : [tx.object(value)], | ||
}); | ||
return object; | ||
} |
@@ -6,3 +6,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20241106004723'; | ||
export const PACKAGE_VERSION = '0.0.0-experimental-20241112205034'; | ||
export const TARGETED_RPC_VERSION = '1.38.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
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
5302262
92774