@mysten/zksend
Advanced tools
Comparing version 0.0.0-experimental-20240110001144 to 0.0.0-experimental-20240110025336
# @mysten/zksend | ||
## 0.0.0-experimental-20240110001144 | ||
## 0.0.0-experimental-20240110025336 | ||
@@ -9,2 +9,6 @@ ### Minor Changes | ||
### Patch Changes | ||
- c1f6cfff47: Fix import paths | ||
## 0.1.1 | ||
@@ -11,0 +15,0 @@ |
@@ -1,5 +0,5 @@ | ||
import type { TransactionObjectInput } from '@mysten/sui.js/src/builder'; | ||
import { TransactionBlock } from '@mysten/sui.js/src/builder'; | ||
import { SuiClient } from '@mysten/sui.js/src/client'; | ||
import type { Keypair } from '@mysten/sui.js/src/cryptography'; | ||
import { SuiClient } from '@mysten/sui.js/client'; | ||
import type { Keypair } from '@mysten/sui.js/cryptography'; | ||
import type { TransactionObjectInput } from '@mysten/sui.js/transactions'; | ||
import { TransactionBlock } from '@mysten/sui.js/transactions'; | ||
export interface ZkSendLinkBuilderOptions { | ||
@@ -6,0 +6,0 @@ host?: string; |
@@ -47,6 +47,5 @@ "use strict"; | ||
module.exports = __toCommonJS(links_exports); | ||
var import_url = require("url"); | ||
var import_client = require("@mysten/sui.js/client"); | ||
var import_ed25519 = require("@mysten/sui.js/keypairs/ed25519"); | ||
var import_builder = require("@mysten/sui.js/src/builder"); | ||
var import_client = require("@mysten/sui.js/src/client"); | ||
var import_transactions = require("@mysten/sui.js/transactions"); | ||
var import_utils = require("@mysten/sui.js/utils"); | ||
@@ -84,3 +83,3 @@ var _host, _path, _keypair, _objects, _mist, _gasFee, _estimateClaimGasFee, estimateClaimGasFee_fn, _client, _keypair2, _initiallyOwnedObjects, _ownedBalances, _ownedObjects, _loadOwnedObjects, loadOwnedObjects_fn, _loadOwnedBalances, loadOwnedBalances_fn, _loadInitialTransactionData, loadInitialTransactionData_fn; | ||
getLink() { | ||
const link = new import_url.URL(__privateGet(this, _host)); | ||
const link = new URL(__privateGet(this, _host)); | ||
link.pathname = __privateGet(this, _path); | ||
@@ -99,3 +98,3 @@ link.hash = __privateGet(this, _keypair).export().privateKey; | ||
createSendTransaction() { | ||
const txb = new import_builder.TransactionBlock(); | ||
const txb = new import_transactions.TransactionBlock(); | ||
const address = __privateGet(this, _keypair).toSuiAddress(); | ||
@@ -139,3 +138,3 @@ const objectsToTransfer = [...__privateGet(this, _objects)].map((id) => txb.object(id)); | ||
static async fromUrl(url, options) { | ||
const parsed = new import_url.URL(url); | ||
const parsed = new URL(url); | ||
const keypair = import_ed25519.Ed25519Keypair.fromSecretKey((0, import_utils.fromB64)(parsed.hash.slice(1))); | ||
@@ -185,3 +184,3 @@ const link = new _ZkSendLink({ | ||
const claimAll = !options?.coinTypes && !options?.objects; | ||
const txb = new import_builder.TransactionBlock(); | ||
const txb = new import_transactions.TransactionBlock(); | ||
const coinTypes = new Set( | ||
@@ -188,0 +187,0 @@ options?.coinTypes?.map((type) => (0, import_utils.normalizeStructTag)(`0x2::coin::Coin<${type}>`)) ?? [] |
@@ -57,4 +57,4 @@ "use strict"; | ||
module.exports = __toCommonJS(wallet_exports); | ||
var import_bcs = require("@mysten/sui.js/bcs"); | ||
var import_client = require("@mysten/sui.js/client"); | ||
var import_bcs = require("@mysten/sui.js/src/bcs/index.js"); | ||
var import_utils = require("@mysten/sui.js/utils"); | ||
@@ -61,0 +61,0 @@ var import_wallet_standard = require("@mysten/wallet-standard"); |
@@ -47,7 +47,7 @@ import type { Output } from 'valibot'; | ||
}, undefined, { | ||
name: string; | ||
origin: string; | ||
type: "connect" | "sign-transaction-block" | "sign-personal-message"; | ||
id: string; | ||
name: string; | ||
data: {}; | ||
origin: string; | ||
}>; | ||
@@ -54,0 +54,0 @@ export interface ZkSendRequestTypes extends Record<string, Record<string, string>> { |
@@ -19,7 +19,7 @@ import type { Output } from 'valibot'; | ||
getRequestData(): { | ||
name: string; | ||
origin: string; | ||
type: "connect" | "sign-transaction-block" | "sign-personal-message"; | ||
id: string; | ||
name: string; | ||
data: {}; | ||
origin: string; | ||
}; | ||
@@ -26,0 +26,0 @@ sendMessage(payload: ZkSendResponsePayload): void; |
@@ -1,5 +0,5 @@ | ||
import type { TransactionObjectInput } from '@mysten/sui.js/src/builder'; | ||
import { TransactionBlock } from '@mysten/sui.js/src/builder'; | ||
import { SuiClient } from '@mysten/sui.js/src/client'; | ||
import type { Keypair } from '@mysten/sui.js/src/cryptography'; | ||
import { SuiClient } from '@mysten/sui.js/client'; | ||
import type { Keypair } from '@mysten/sui.js/cryptography'; | ||
import type { TransactionObjectInput } from '@mysten/sui.js/transactions'; | ||
import { TransactionBlock } from '@mysten/sui.js/transactions'; | ||
export interface ZkSendLinkBuilderOptions { | ||
@@ -6,0 +6,0 @@ host?: string; |
@@ -24,6 +24,5 @@ var __accessCheck = (obj, member, msg) => { | ||
var _host, _path, _keypair, _objects, _mist, _gasFee, _estimateClaimGasFee, estimateClaimGasFee_fn, _client, _keypair2, _initiallyOwnedObjects, _ownedBalances, _ownedObjects, _loadOwnedObjects, loadOwnedObjects_fn, _loadOwnedBalances, loadOwnedBalances_fn, _loadInitialTransactionData, loadInitialTransactionData_fn; | ||
import { URL } from "url"; | ||
import { getFullnodeUrl, SuiClient } from "@mysten/sui.js/client"; | ||
import { Ed25519Keypair } from "@mysten/sui.js/keypairs/ed25519"; | ||
import { TransactionBlock } from "@mysten/sui.js/src/builder"; | ||
import { getFullnodeUrl, SuiClient } from "@mysten/sui.js/src/client"; | ||
import { TransactionBlock } from "@mysten/sui.js/transactions"; | ||
import { | ||
@@ -30,0 +29,0 @@ fromB64, |
@@ -24,4 +24,4 @@ var __accessCheck = (obj, member, msg) => { | ||
var _events, _accounts, _client, _name, _signTransactionBlock, _signPersonalMessage, _on, _setAccount, setAccount_fn, _connect, _disconnect; | ||
import { bcs } from "@mysten/sui.js/bcs"; | ||
import { getFullnodeUrl, SuiClient } from "@mysten/sui.js/client"; | ||
import { bcs } from "@mysten/sui.js/src/bcs/index.js"; | ||
import { toB64 } from "@mysten/sui.js/utils"; | ||
@@ -28,0 +28,0 @@ import { getWallets, ReadonlyWalletAccount, SUI_MAINNET_CHAIN } from "@mysten/wallet-standard"; |
{ | ||
"name": "@mysten/zksend", | ||
"version": "0.0.0-experimental-20240110001144", | ||
"version": "0.0.0-experimental-20240110025336", | ||
"description": "TODO: Write Description", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
263149
2015