@mysten/zksend 1.1.0 → 1.1.2
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 +25 -0
- package/docs/composable-claim.md +2 -1
- package/docs/index.md +4 -3
- package/docs/link-builder.md +12 -10
- package/docs/llms-index.md +3 -5
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @mysten/zksend
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f7de3e5: Restore docs in published tarballs.
|
|
8
|
+
- Updated dependencies [f7de3e5]
|
|
9
|
+
- @mysten/sui@2.16.2
|
|
10
|
+
- @mysten/utils@0.3.3
|
|
11
|
+
- @mysten/wallet-standard@0.20.3
|
|
12
|
+
- @mysten/window-wallet-core@0.1.6
|
|
13
|
+
|
|
14
|
+
## 1.1.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 9e067cf: Validate the new per-package release flow end-to-end across every public @mysten package.
|
|
19
|
+
No functional changes — empty patch bump to force the orchestrator to dispatch every
|
|
20
|
+
release-<pkg>.yml workflow with `dry_run=false` so each package publishes via OIDC trusted
|
|
21
|
+
publishing.
|
|
22
|
+
- Updated dependencies [9e067cf]
|
|
23
|
+
- @mysten/sui@2.16.1
|
|
24
|
+
- @mysten/utils@0.3.2
|
|
25
|
+
- @mysten/wallet-standard@0.20.2
|
|
26
|
+
- @mysten/window-wallet-core@0.1.5
|
|
27
|
+
|
|
3
28
|
## 1.1.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/docs/composable-claim.md
CHANGED
|
@@ -18,6 +18,7 @@ transaction.
|
|
|
18
18
|
- **`finalize`** — consumes the claim proof. Must be added after every asset is claimed.
|
|
19
19
|
|
|
20
20
|
```ts
|
|
21
|
+
|
|
21
22
|
const tx = new Transaction();
|
|
22
23
|
tx.setSender(claimLink.keypair!.toSuiAddress());
|
|
23
24
|
|
|
@@ -66,4 +67,4 @@ const result = await client.core.executeTransaction({
|
|
|
66
67
|
transaction: txBytes,
|
|
67
68
|
signatures: [linkSig.signature, sponsorSig.signature],
|
|
68
69
|
});
|
|
69
|
-
```
|
|
70
|
+
```
|
package/docs/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# zkSend SDK
|
|
2
2
|
|
|
3
|
-
> Send Sui assets
|
|
3
|
+
> Send Sui assets through shareable claim links using the zkSend SDK.
|
|
4
4
|
|
|
5
5
|
The zkSend SDK provides tools for interacting with the zkSend primitive. It provides functionality
|
|
6
6
|
to create your own zkSend Claim Links, with support for any publicly transferrable asset.
|
|
@@ -16,11 +16,12 @@ npm i @mysten/zksend @mysten/sui
|
|
|
16
16
|
To use the zkSend SDK, create a Sui client and extend it with the zkSend extension:
|
|
17
17
|
|
|
18
18
|
```ts
|
|
19
|
+
|
|
19
20
|
const client = new SuiGrpcClient({
|
|
20
21
|
network: 'mainnet',
|
|
21
22
|
baseUrl: 'https://fullnode.mainnet.sui.io:443',
|
|
22
23
|
}).$extend(zksend());
|
|
23
24
|
```
|
|
24
25
|
|
|
25
|
-
The zkSend SDK supports
|
|
26
|
-
correct contract IDs based on the client's network.
|
|
26
|
+
The zkSend SDK supports Mainnet and Testnet networks. The extension automatically configures the
|
|
27
|
+
correct contract IDs based on the client's network.
|
package/docs/link-builder.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# Creating zkSend Links
|
|
2
2
|
|
|
3
|
-
> Create and customize zkSend claim links
|
|
3
|
+
> Create and customize zkSend claim links for sending Sui assets.
|
|
4
4
|
|
|
5
|
-
> **Warning:** Products and services that incorporate zkSend links
|
|
6
|
-
>
|
|
7
|
-
>
|
|
8
|
-
>
|
|
9
|
-
>
|
|
10
|
-
> circumstances.
|
|
5
|
+
> **Warning:** Products and services that incorporate zkSend links might be subject to financial regulations,
|
|
6
|
+
> including obtaining money transmitter licenses in jurisdictions where you provide your services.
|
|
7
|
+
> It is the developer's responsibility to ensure compliance with all relevant laws and obtain any
|
|
8
|
+
> necessary licenses. The information provided by Mysten Labs is not legal advice, and developers
|
|
9
|
+
> should consult with a qualified legal professional to address their specific circumstances.
|
|
11
10
|
|
|
12
11
|
## Limitations
|
|
13
12
|
|
|
@@ -20,6 +19,7 @@ You can start creating your own zkSend link using the `linkBuilder` method on th
|
|
|
20
19
|
extension:
|
|
21
20
|
|
|
22
21
|
```ts
|
|
22
|
+
|
|
23
23
|
const client = new SuiGrpcClient({
|
|
24
24
|
network: 'mainnet',
|
|
25
25
|
baseUrl: 'https://fullnode.mainnet.sui.io:443',
|
|
@@ -42,7 +42,8 @@ params:
|
|
|
42
42
|
You can add non-SUI coins to the link by calling `link.addClaimableBalance()`. This method takes the
|
|
43
43
|
following params:
|
|
44
44
|
|
|
45
|
-
- **`coinType`** (required) - The coin type of the coin to add to the link (
|
|
45
|
+
- **`coinType`** (required) - The coin type of the coin to add to the link (for example,
|
|
46
|
+
`0x2::sui::SUI`).
|
|
46
47
|
- **`amount`** (required) - The amount of the coin to add to the link. Represented in the base unit
|
|
47
48
|
of the coin.
|
|
48
49
|
|
|
@@ -66,6 +67,7 @@ You can create objects to add to links in the same transaction the link is creat
|
|
|
66
67
|
- **`type`** (required) - The move type of the object you are adding
|
|
67
68
|
|
|
68
69
|
```ts
|
|
70
|
+
|
|
69
71
|
const tx = new Transaction();
|
|
70
72
|
|
|
71
73
|
const link = client.zksend.linkBuilder({
|
|
@@ -123,7 +125,7 @@ await link.create({
|
|
|
123
125
|
|
|
124
126
|
## Claiming a link
|
|
125
127
|
|
|
126
|
-
To claim a link
|
|
128
|
+
To claim a link through the SDK you can use the `loadLinkFromUrl` method:
|
|
127
129
|
|
|
128
130
|
```ts
|
|
129
131
|
// Load a link instance from a URL
|
|
@@ -188,4 +190,4 @@ const result = await client.signAndExecuteTransaction({
|
|
|
188
190
|
if (result.$kind === 'FailedTransaction') {
|
|
189
191
|
throw new Error(`Link creation failed: ${result.FailedTransaction.status.error?.message}`);
|
|
190
192
|
}
|
|
191
|
-
```
|
|
193
|
+
```
|
package/docs/llms-index.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# ZkSend
|
|
2
|
-
|
|
3
2
|
> Send Sui with a link
|
|
4
3
|
|
|
5
|
-
- [zkSend SDK](..md): Send Sui assets
|
|
6
|
-
- [Creating zkSend Links](./link-builder.md): Create and customize zkSend claim links
|
|
7
|
-
- [Composable Claims](./composable-claim.md): Claim a zkSend link and use the assets in the same
|
|
8
|
-
transaction
|
|
4
|
+
- [zkSend SDK](..md): Send Sui assets through shareable claim links using the zkSend SDK.
|
|
5
|
+
- [Creating zkSend Links](./link-builder.md): Create and customize zkSend claim links for sending Sui assets.
|
|
6
|
+
- [Composable Claims](./composable-claim.md): Claim a zkSend link and use the assets in the same transaction
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mysten/zksend",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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>",
|
|
@@ -31,24 +31,25 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^25.0.8",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
|
-
"vitest": "^4.0.17"
|
|
35
|
-
"@mysten/sui": "^2.16.0"
|
|
34
|
+
"vitest": "^4.0.17"
|
|
36
35
|
},
|
|
37
36
|
"dependencies": {
|
|
38
37
|
"mitt": "^3.0.1",
|
|
39
38
|
"nanostores": "^1.1.0",
|
|
40
39
|
"valibot": "^1.2.0",
|
|
41
|
-
"@mysten/utils": "^0.3.
|
|
42
|
-
"@mysten/wallet-standard": "^0.20.
|
|
43
|
-
"@mysten/window-wallet-core": "^0.1.
|
|
40
|
+
"@mysten/utils": "^0.3.3",
|
|
41
|
+
"@mysten/wallet-standard": "^0.20.3",
|
|
42
|
+
"@mysten/window-wallet-core": "^0.1.6"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {
|
|
46
|
-
"@mysten/sui": "^2.16.
|
|
45
|
+
"@mysten/sui": "^2.16.2"
|
|
47
46
|
},
|
|
48
47
|
"scripts": {
|
|
49
48
|
"clean": "rm -rf tsconfig.tsbuildinfo ./dist",
|
|
50
49
|
"build": "rm -rf dist && tsc --noEmit && tsdown",
|
|
51
|
-
"build:docs": "
|
|
50
|
+
"build:docs": "node ../docs/scripts/build-docs.ts",
|
|
51
|
+
"test": "pnpm test:typecheck",
|
|
52
|
+
"test:typecheck": "tsc -b ./test",
|
|
52
53
|
"prettier:check": "prettier -c --ignore-unknown .",
|
|
53
54
|
"prettier:fix": "prettier -w --ignore-unknown .",
|
|
54
55
|
"oxlint:check": "oxlint .",
|