Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mysten/sui

Package Overview
Dependencies
Maintainers
7
Versions
93
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-20241106004723 to 0.0.0-experimental-20241112205034

8

CHANGELOG.md
# @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 @@ /**

2

dist/cjs/version.d.ts

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

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