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

@mysten/zksend

Package Overview
Dependencies
Maintainers
0
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/zksend - npm Package Compare versions

Comparing version 0.0.0-experimental-20241117003247 to 0.0.0-experimental-20241118181132

8

CHANGELOG.md
# @mysten/zksend
## 0.0.0-experimental-20241117003247
## 0.0.0-experimental-20241118181132
### Patch Changes
- 4bac808: Improve error handling of links that have not been indexed yet
- 4bac808: Fix bcs parsing of createLinks query after GraphQL api change
- Updated dependencies [938fb6e]
- @mysten/sui@0.0.0-experimental-20241117003247
- @mysten/wallet-standard@0.0.0-experimental-20241117003247
- @mysten/sui@0.0.0-experimental-20241118181132
- @mysten/wallet-standard@0.0.0-experimental-20241118181132

@@ -11,0 +13,0 @@ ## 0.12.1

@@ -42,3 +42,3 @@ "use strict";

const DEFAULT_ZK_SEND_LINK_OPTIONS = {
host: "https://zksend.com",
host: "https://getstashed.com",
path: "/claim",

@@ -150,2 +150,7 @@ network: "mainnet"

}
if (!this.assets) {
throw new Error(
"Link assets could not be loaded. Link has not been indexed or has already been claimed"
);
}
if (!__privateGet(this, _contract)) {

@@ -272,3 +277,5 @@ const bytes2 = await this.createClaimTransaction(address).build({

this.bagObject = bagField.data;
this.claimed = !bagField.data;
if (this.bagObject) {
this.claimed = false;
}
};

@@ -283,7 +290,2 @@ loadBag_fn = async function({

}
this.assets = {
balances: [],
nfts: [],
coins: []
};
if (!this.bagObject || !this.claimed) {

@@ -322,2 +324,7 @@ await __privateMethod(this, _ZkSendLink_instances, loadBagObject_fn).call(this);

});
this.assets = {
balances: [],
nfts: [],
coins: []
};
const balances = /* @__PURE__ */ new Map();

@@ -392,2 +399,3 @@ objectsResponse.forEach((object, i) => {

const receiver = typeof input.value === "string" ? input.value : import_bcs.bcs.Address.parse(new Uint8Array(input.value.Pure));
this.claimed = true;
this.claimedBy = receiver;

@@ -394,0 +402,0 @@ this.assets = (0, import_utils2.getAssetsFromTransaction)({

@@ -81,4 +81,4 @@ "use strict";

}
const kind = import_bcs.bcs.SenderSignedData.parse((0, import_utils.fromBase64)(node.bcs))?.[0]?.intentMessage.value.V1.kind;
if (!kind.ProgrammableTransaction) {
const kind = import_bcs.bcs.TransactionData.parse((0, import_utils.fromBase64)(node.bcs)).V1.kind;
if (!kind?.ProgrammableTransaction) {
return null;

@@ -85,0 +85,0 @@ }

@@ -27,3 +27,3 @@ var __typeError = (msg) => {

const DEFAULT_ZK_SEND_LINK_OPTIONS = {
host: "https://zksend.com",
host: "https://getstashed.com",
path: "/claim",

@@ -135,2 +135,7 @@ network: "mainnet"

}
if (!this.assets) {
throw new Error(
"Link assets could not be loaded. Link has not been indexed or has already been claimed"
);
}
if (!__privateGet(this, _contract)) {

@@ -257,3 +262,5 @@ const bytes2 = await this.createClaimTransaction(address).build({

this.bagObject = bagField.data;
this.claimed = !bagField.data;
if (this.bagObject) {
this.claimed = false;
}
};

@@ -268,7 +275,2 @@ loadBag_fn = async function({

}
this.assets = {
balances: [],
nfts: [],
coins: []
};
if (!this.bagObject || !this.claimed) {

@@ -307,2 +309,7 @@ await __privateMethod(this, _ZkSendLink_instances, loadBagObject_fn).call(this);

});
this.assets = {
balances: [],
nfts: [],
coins: []
};
const balances = /* @__PURE__ */ new Map();

@@ -377,2 +384,3 @@ objectsResponse.forEach((object, i) => {

const receiver = typeof input.value === "string" ? input.value : bcs.Address.parse(new Uint8Array(input.value.Pure));
this.claimed = true;
this.claimedBy = receiver;

@@ -379,0 +387,0 @@ this.assets = getAssetsFromTransaction({

@@ -58,4 +58,4 @@ import { bcs } from "@mysten/sui/bcs";

}
const kind = bcs.SenderSignedData.parse(fromBase64(node.bcs))?.[0]?.intentMessage.value.V1.kind;
if (!kind.ProgrammableTransaction) {
const kind = bcs.TransactionData.parse(fromBase64(node.bcs)).V1.kind;
if (!kind?.ProgrammableTransaction) {
return null;

@@ -62,0 +62,0 @@ }

{
"name": "@mysten/zksend",
"version": "0.0.0-experimental-20241117003247",
"version": "0.0.0-experimental-20241118181132",
"description": "TODO: Write Description",

@@ -40,4 +40,4 @@ "license": "Apache-2.0",

"valibot": "^0.36.0",
"@mysten/sui": "0.0.0-experimental-20241117003247",
"@mysten/wallet-standard": "0.0.0-experimental-20241117003247"
"@mysten/sui": "0.0.0-experimental-20241118181132",
"@mysten/wallet-standard": "0.0.0-experimental-20241118181132"
},

@@ -44,0 +44,0 @@ "scripts": {

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