@mysten/zksend
Advanced tools
Comparing version 0.11.12 to 0.12.0
# @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,6 +5,1 @@ export declare const DEMO_BEAR_CONFIG: { | ||
}; | ||
export declare const ZK_BAG_CONFIG: { | ||
packageId: string; | ||
bagStoreId: string; | ||
bagStoreTableId: string; | ||
}; |
@@ -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
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
581105
4811