@mysten/zksend 1.3.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @mysten/zksend
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [233b207]
8
+ - Updated dependencies [98cb619]
9
+ - Updated dependencies [e39d2a9]
10
+ - Updated dependencies [d4e4406]
11
+ - Updated dependencies [693482d]
12
+ - Updated dependencies [233b207]
13
+ - Updated dependencies [1bf4878]
14
+ - Updated dependencies [1871849]
15
+ - Updated dependencies [19d3a1c]
16
+ - Updated dependencies [52660ab]
17
+ - Updated dependencies [f43f64d]
18
+ - Updated dependencies [f43f64d]
19
+ - Updated dependencies [659c915]
20
+ - Updated dependencies [2cb1611]
21
+ - Updated dependencies [faf8d74]
22
+ - Updated dependencies [f43f64d]
23
+ - Updated dependencies [e39d2a9]
24
+ - @mysten/sui@3.0.0
25
+ - @mysten/wallet-standard@0.22.0
26
+
3
27
  ## 1.3.0
4
28
 
5
29
  ### Minor Changes
package/README.md CHANGED
@@ -102,13 +102,15 @@ You can call the `link.createSendTransaction()` method, which returns a `Transac
102
102
  you can sign and submit.
103
103
 
104
104
  ```ts
105
+ import { fromBase64 } from '@mysten/sui/utils';
106
+
105
107
  const tx = await link.createSendTransaction();
106
108
 
107
- const { bytes, signature } = tx.sign({ client, signer: keypair });
109
+ const { bytes, signature } = await tx.sign({ client, signer: keypair });
108
110
 
109
- const result = await client.executeTransactionBlock({
110
- transactionBlock: bytes,
111
- signature,
111
+ const result = await client.core.executeTransaction({
112
+ transaction: fromBase64(bytes),
113
+ signatures: [signature],
112
114
  });
113
115
  ```
114
116
 
@@ -102,13 +102,14 @@ You can call the `link.createSendTransaction()` method, which returns a `Transac
102
102
  you can sign and submit to the blockchain.
103
103
 
104
104
  ```ts
105
+
105
106
  const tx = await link.createSendTransaction();
106
107
 
107
- const { bytes, signature } = tx.sign({ client, signer: keypair });
108
+ const { bytes, signature } = await tx.sign({ client, signer: keypair });
108
109
 
109
- const result = await client.executeTransactionBlock({
110
- transactionBlock: bytes,
111
- signature,
110
+ const result = await client.core.executeTransaction({
111
+ transaction: fromBase64(bytes),
112
+ signatures: [signature],
112
113
  });
113
114
  ```
114
115
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mysten/zksend",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "Create claimable links for transferring coins and NFTs",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Mysten Labs <build@mystenlabs.com>",
@@ -37,12 +37,12 @@
37
37
  "mitt": "^3.0.1",
38
38
  "nanostores": "^1.4.2",
39
39
  "valibot": "^1.4.2",
40
- "@mysten/wallet-standard": "^0.21.38",
41
- "@mysten/window-wallet-core": "^0.4.1",
42
- "@mysten/utils": "^0.4.2"
40
+ "@mysten/wallet-standard": "^0.22.0",
41
+ "@mysten/utils": "^0.4.2",
42
+ "@mysten/window-wallet-core": "^0.4.1"
43
43
  },
44
44
  "peerDependencies": {
45
- "@mysten/sui": "^2.39.1"
45
+ "@mysten/sui": "^3.0.0"
46
46
  },
47
47
  "scripts": {
48
48
  "clean": "rm -rf tsconfig.tsbuildinfo ./dist",