@mysten/zksend
Advanced tools
Comparing version 0.0.0-experimental-20240903232141 to 0.0.0-experimental-20240905123817
# @mysten/zksend | ||
## 0.0.0-experimental-20240903232141 | ||
## 0.0.0-experimental-20240905123817 | ||
### Patch Changes | ||
- 22844ae: Add network param to zksend links | ||
## 0.11.0 | ||
### Minor Changes | ||
@@ -12,4 +18,4 @@ | ||
- Updated dependencies [569511a] | ||
- @mysten/sui@0.0.0-experimental-20240903232141 | ||
- @mysten/wallet-standard@0.0.0-experimental-20240903232141 | ||
- @mysten/sui@1.8.0 | ||
- @mysten/wallet-standard@0.13.3 | ||
@@ -16,0 +22,0 @@ ## 0.10.6 |
@@ -37,2 +37,3 @@ import { SuiClient } from '@mysten/sui/client'; | ||
sender: string; | ||
network: 'mainnet' | 'testnet'; | ||
keypair: Keypair; | ||
@@ -39,0 +40,0 @@ constructor({ host, path, keypair, network, client, sender, redirect, contract, }: ZkSendLinkBuilderOptions); |
@@ -72,2 +72,3 @@ "use strict"; | ||
this.sender = (0, import_utils.normalizeSuiAddress)(sender); | ||
this.network = network; | ||
if (contract) { | ||
@@ -96,2 +97,5 @@ __privateSet(this, _contract, new import_zk_bag.ZkBag(contract.packageId, contract)); | ||
)}`; | ||
if (this.network !== "mainnet") { | ||
link.searchParams.set("network", this.network); | ||
} | ||
if (__privateGet(this, _redirect)) { | ||
@@ -98,0 +102,0 @@ link.searchParams.set("redirect_url", __privateGet(this, _redirect).url); |
@@ -97,2 +97,3 @@ "use strict"; | ||
keypair, | ||
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet", | ||
host: `${parsed.protocol}//${parsed.host}`, | ||
@@ -109,2 +110,3 @@ path: parsed.pathname, | ||
keypair, | ||
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet", | ||
host: `${parsed.protocol}//${parsed.host}`, | ||
@@ -111,0 +113,0 @@ path: parsed.pathname, |
@@ -37,2 +37,3 @@ import { SuiClient } from '@mysten/sui/client'; | ||
sender: string; | ||
network: 'mainnet' | 'testnet'; | ||
keypair: Keypair; | ||
@@ -39,0 +40,0 @@ constructor({ host, path, keypair, network, client, sender, redirect, contract, }: ZkSendLinkBuilderOptions); |
@@ -49,2 +49,3 @@ var __typeError = (msg) => { | ||
this.sender = normalizeSuiAddress(sender); | ||
this.network = network; | ||
if (contract) { | ||
@@ -73,2 +74,5 @@ __privateSet(this, _contract, new ZkBag(contract.packageId, contract)); | ||
)}`; | ||
if (this.network !== "mainnet") { | ||
link.searchParams.set("network", this.network); | ||
} | ||
if (__privateGet(this, _redirect)) { | ||
@@ -75,0 +79,0 @@ link.searchParams.set("redirect_url", __privateGet(this, _redirect).url); |
@@ -82,2 +82,3 @@ var __typeError = (msg) => { | ||
keypair, | ||
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet", | ||
host: `${parsed.protocol}//${parsed.host}`, | ||
@@ -94,2 +95,3 @@ path: parsed.pathname, | ||
keypair, | ||
network: parsed.searchParams.get("network") === "testnet" ? "testnet" : "mainnet", | ||
host: `${parsed.protocol}//${parsed.host}`, | ||
@@ -96,0 +98,0 @@ path: parsed.pathname, |
{ | ||
"name": "@mysten/zksend", | ||
"version": "0.0.0-experimental-20240903232141", | ||
"version": "0.0.0-experimental-20240905123817", | ||
"description": "TODO: Write Description", | ||
@@ -40,4 +40,4 @@ "license": "Apache-2.0", | ||
"valibot": "^0.36.0", | ||
"@mysten/sui": "0.0.0-experimental-20240903232141", | ||
"@mysten/wallet-standard": "0.0.0-experimental-20240903232141" | ||
"@mysten/sui": "1.8.0", | ||
"@mysten/wallet-standard": "0.13.3" | ||
}, | ||
@@ -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
575140
4795
+ Added@mysten/sui@1.8.0(transitive)
+ Added@mysten/wallet-standard@0.13.3(transitive)
- Removed@mysten/sui@0.0.0-experimental-20240903232141(transitive)
- Removed@mysten/wallet-standard@0.0.0-experimental-20240903232141(transitive)
Updated@mysten/sui@1.8.0