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
230
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.11.12 to 0.12.0

8

CHANGELOG.md
# @mysten/zksend
## 0.12.0
### Minor Changes
- 60bdb62: Update graphql query and use stashed host for claim api
- 364a93a: Remove decoding spaces to `+` in zksend wallet url hashes
- 364a93a: Add claimedBy property that is set when claimedAssets are loaded
## 0.11.12

@@ -4,0 +12,0 @@

5

dist/cjs/index.test.d.ts

@@ -5,6 +5,1 @@ export declare const DEMO_BEAR_CONFIG: {

};
export declare const ZK_BAG_CONFIG: {
packageId: string;
bagStoreId: string;
bagStoreTableId: string;
};

3

dist/cjs/links/builder.js

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

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

@@ -138,2 +138,3 @@ network: "mainnet"

transaction,
network: this.network,
client: __privateGet(this, _client),

@@ -140,0 +141,0 @@ contract: __privateGet(this, _contract).ids,

@@ -32,2 +32,3 @@ import { SuiClient } from '@mysten/sui/client';

claimed?: boolean;
claimedBy?: string;
bagObject?: SuiObjectData | null;

@@ -34,0 +35,0 @@ constructor({ network, client, keypair, contract, address, host, path, claimApi, isContractLink, }: ZkSendLinkOptions);

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

keypair,
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
network: options.network ?? parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
host: `${parsed.protocol}//${parsed.host}`,

@@ -110,3 +110,3 @@ path: parsed.pathname,

keypair,
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
network: options.network ?? parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
host: `${parsed.protocol}//${parsed.host}`,

@@ -387,2 +387,3 @@ path: parsed.pathname,

const receiver = typeof input.value === "string" ? input.value : import_bcs.bcs.Address.parse(new Uint8Array(input.value.Pure));
this.claimedBy = receiver;
this.assets = (0, import_utils2.getAssetsFromTransaction)({

@@ -389,0 +390,0 @@ transaction: tx,

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

before: $cursor
filter: { sentAddress: $address, function: $function, kind: PROGRAMMABLE_TX }
filter: { sentAddress: $address, function: $function }
) {

@@ -38,0 +38,0 @@ pageInfo {

@@ -143,8 +143,3 @@ "use strict";

const parsed = new URL(url);
const urlHashData = parsed.hash ? Object.fromEntries(
[...new URLSearchParams(parsed.hash.slice(1))].map(([key, value]) => [
key,
value.replace(/ /g, "+")
])
) : {};
const urlHashData = parsed.hash ? Object.fromEntries([...new URLSearchParams(parsed.hash.slice(1))]) : {};
const request = (0, import_valibot.parse)(import_events.StashedRequest, {

@@ -151,0 +146,0 @@ id: parsed.searchParams.get("id"),

@@ -5,6 +5,1 @@ export declare const DEMO_BEAR_CONFIG: {

};
export declare const ZK_BAG_CONFIG: {
packageId: string;
bagStoreId: string;
bagStoreTableId: string;
};

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

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

@@ -115,2 +115,3 @@ network: "mainnet"

transaction,
network: this.network,
client: __privateGet(this, _client),

@@ -117,0 +118,0 @@ contract: __privateGet(this, _contract).ids,

@@ -32,2 +32,3 @@ import { SuiClient } from '@mysten/sui/client';

claimed?: boolean;
claimedBy?: string;
bagObject?: SuiObjectData | null;

@@ -34,0 +35,0 @@ constructor({ network, client, keypair, contract, address, host, path, claimApi, isContractLink, }: ZkSendLinkOptions);

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

keypair,
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
network: options.network ?? parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
host: `${parsed.protocol}//${parsed.host}`,

@@ -95,3 +95,3 @@ path: parsed.pathname,

keypair,
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
network: options.network ?? parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet",
host: `${parsed.protocol}//${parsed.host}`,

@@ -372,2 +372,3 @@ path: parsed.pathname,

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

@@ -374,0 +375,0 @@ transaction: tx,

@@ -12,3 +12,3 @@ import { bcs } from "@mysten/sui/bcs";

before: $cursor
filter: { sentAddress: $address, function: $function, kind: PROGRAMMABLE_TX }
filter: { sentAddress: $address, function: $function }
) {

@@ -15,0 +15,0 @@ pageInfo {

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

const parsed = new URL(url);
const urlHashData = parsed.hash ? Object.fromEntries(
[...new URLSearchParams(parsed.hash.slice(1))].map(([key, value]) => [
key,
value.replace(/ /g, "+")
])
) : {};
const urlHashData = parsed.hash ? Object.fromEntries([...new URLSearchParams(parsed.hash.slice(1))]) : {};
const request = parse(StashedRequest, {

@@ -124,0 +119,0 @@ id: parsed.searchParams.get("id"),

{
"name": "@mysten/zksend",
"version": "0.11.12",
"version": "0.12.0",
"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

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