@mysten/kiosk 1.2.4 → 1.2.6
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 +23 -0
- package/docs/advanced-examples.md +2 -1
- package/docs/from-v1.md +7 -1
- package/docs/index.md +1 -1
- package/docs/kiosk-client/introduction.md +3 -1
- package/docs/kiosk-client/kiosk-transaction/examples.md +1 -1
- package/docs/kiosk-client/kiosk-transaction/kiosk-transaction.md +1 -1
- package/docs/kiosk-client/kiosk-transaction/managing.md +1 -1
- package/docs/kiosk-client/kiosk-transaction/purchasing.md +1 -1
- package/docs/kiosk-client/querying.md +1 -1
- package/docs/kiosk-client/transfer-policy-transaction/introduction.md +1 -1
- package/docs/kiosk-client/transfer-policy-transaction/using-the-manager.md +1 -1
- package/docs/llms-index.md +10 -9
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @mysten/kiosk
|
|
2
2
|
|
|
3
|
+
## 1.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f7de3e5: Restore docs in published tarballs.
|
|
8
|
+
- Updated dependencies [f7de3e5]
|
|
9
|
+
- @mysten/bcs@2.0.5
|
|
10
|
+
- @mysten/sui@2.16.2
|
|
11
|
+
- @mysten/utils@0.3.3
|
|
12
|
+
|
|
13
|
+
## 1.2.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 9e067cf: Validate the new per-package release flow end-to-end across every public @mysten package.
|
|
18
|
+
No functional changes — empty patch bump to force the orchestrator to dispatch every
|
|
19
|
+
release-<pkg>.yml workflow with `dry_run=false` so each package publishes via OIDC trusted
|
|
20
|
+
publishing.
|
|
21
|
+
- Updated dependencies [9e067cf]
|
|
22
|
+
- @mysten/bcs@2.0.4
|
|
23
|
+
- @mysten/sui@2.16.1
|
|
24
|
+
- @mysten/utils@0.3.2
|
|
25
|
+
|
|
3
26
|
## 1.2.4
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
For these examples, assume you have the following data and functions available:
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
+
|
|
10
11
|
// a constant for bullshark's type.
|
|
11
12
|
const bullsharkType = `${packageId}::suifrens::SuiFren<${packageId}::bullshark::Bullshark>`;
|
|
12
13
|
// a constant for capy's type.
|
|
@@ -97,4 +98,4 @@ async function mixFrens(firstFrenObjectId: string, secondFrenObjectId: string, c
|
|
|
97
98
|
// sign and execute transaction.
|
|
98
99
|
await signAndExecuteTransaction({ tx: tx });
|
|
99
100
|
}
|
|
100
|
-
```
|
|
101
|
+
```
|
package/docs/from-v1.md
CHANGED
|
@@ -22,6 +22,7 @@ The following example is from the original Kiosk SDK V1 documentation.
|
|
|
22
22
|
### Before
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
+
|
|
25
26
|
const placeAndListToKiosk = async () => {
|
|
26
27
|
const kiosk = 'SomeKioskId';
|
|
27
28
|
const kioskCap = 'KioskCapObjectId';
|
|
@@ -43,6 +44,7 @@ const placeAndListToKiosk = async () => {
|
|
|
43
44
|
Using the new SDK, you can build the same transaction as follows:
|
|
44
45
|
|
|
45
46
|
```typescript
|
|
47
|
+
|
|
46
48
|
// You need to do this only once and re-use it in the application.
|
|
47
49
|
const client = new SuiJsonRpcClient({
|
|
48
50
|
url: getJsonRpcFullnodeUrl('mainnet'),
|
|
@@ -75,6 +77,7 @@ The following example is from the original Kiosk SDK V1 documentation.
|
|
|
75
77
|
### Before
|
|
76
78
|
|
|
77
79
|
```typescript
|
|
80
|
+
|
|
78
81
|
const createKiosk = async () => {
|
|
79
82
|
const accountAddress = '0xSomeSuiAddress';
|
|
80
83
|
|
|
@@ -93,6 +96,7 @@ const createKiosk = async () => {
|
|
|
93
96
|
Using the new SDK, you can build the same transaction as follows:
|
|
94
97
|
|
|
95
98
|
```typescript
|
|
99
|
+
|
|
96
100
|
// You need to do this only once and re-use it in the application.
|
|
97
101
|
const client = new SuiJsonRpcClient({
|
|
98
102
|
url: getJsonRpcFullnodeUrl('mainnet'),
|
|
@@ -192,6 +196,7 @@ Using the new SDK, you can build the same transaction as follows:
|
|
|
192
196
|
> This works with both personal and non-personal kiosks.
|
|
193
197
|
|
|
194
198
|
```typescript
|
|
199
|
+
|
|
195
200
|
// You need to do this only once and re-use it in the application.
|
|
196
201
|
const client = new SuiJsonRpcClient({
|
|
197
202
|
url: getJsonRpcFullnodeUrl('mainnet'),
|
|
@@ -289,6 +294,7 @@ const attachStrongRoyalties = async () => {
|
|
|
289
294
|
On the new SDK, the same transaction can be built as follows:
|
|
290
295
|
|
|
291
296
|
```typescript
|
|
297
|
+
|
|
292
298
|
// You need to do this only once and re-use it in the application.
|
|
293
299
|
const client = new SuiJsonRpcClient({
|
|
294
300
|
url: getJsonRpcFullnodeUrl('mainnet'),
|
|
@@ -311,4 +317,4 @@ const adjustPolicy = async () => {
|
|
|
311
317
|
// ... continue to sign and execute the transaction
|
|
312
318
|
// ...
|
|
313
319
|
};
|
|
314
|
-
```
|
|
320
|
+
```
|
package/docs/index.md
CHANGED
|
@@ -19,4 +19,4 @@ using `$extend(kiosk())` to access kiosk functionality through `client.kiosk`.
|
|
|
19
19
|
> The Kiosk SDK requires `SuiJsonRpcClient` or `SuiGraphQLClient`. It does not work with
|
|
20
20
|
> `SuiGrpcClient` because it uses event queries that are not available in gRPC.
|
|
21
21
|
|
|
22
|
-
- [Read more about setting up the Kiosk client extension](/kiosk/kiosk-client/introduction)
|
|
22
|
+
- [Read more about setting up the Kiosk client extension](/kiosk/kiosk-client/introduction)
|
|
@@ -19,6 +19,7 @@ Mysten Kiosk rules and extensions are not supported in Devnet due to network wip
|
|
|
19
19
|
require constantly changing the package IDs).
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
|
+
|
|
22
23
|
const client = new SuiJsonRpcClient({
|
|
23
24
|
url: getJsonRpcFullnodeUrl('testnet'),
|
|
24
25
|
network: 'testnet',
|
|
@@ -34,6 +35,7 @@ To use all the functionality of Kiosk SDK outside of `mainnet` and `testnet`, pa
|
|
|
34
35
|
for the rules and extensions you want to use.
|
|
35
36
|
|
|
36
37
|
```typescript
|
|
38
|
+
|
|
37
39
|
const client = new SuiJsonRpcClient({
|
|
38
40
|
url: getJsonRpcFullnodeUrl('devnet'),
|
|
39
41
|
network: 'devnet',
|
|
@@ -47,4 +49,4 @@ const client = new SuiJsonRpcClient({
|
|
|
47
49
|
},
|
|
48
50
|
}),
|
|
49
51
|
);
|
|
50
|
-
```
|
|
52
|
+
```
|
package/docs/llms-index.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# Kiosk
|
|
2
|
-
|
|
3
2
|
> Interact with on-chain commerce applications
|
|
4
3
|
|
|
5
4
|
- [Kiosk SDK](..md): TypeScript SDK for interacting with Sui Kiosk onchain commerce.
|
|
6
|
-
- [Kiosk Client](./kiosk-client/introduction.md): Introduction to the KioskClient extension for
|
|
7
|
-
|
|
8
|
-
- [
|
|
9
|
-
|
|
10
|
-
- [
|
|
11
|
-
|
|
12
|
-
- [
|
|
13
|
-
|
|
5
|
+
- [Kiosk Client](./kiosk-client/introduction.md): Introduction to the KioskClient extension for querying and managing kiosks on Sui.
|
|
6
|
+
- [Querying](./kiosk-client/querying.md): Query kiosk contents, owned kiosks, items, and transfer policies using the Kiosk SDK.
|
|
7
|
+
- [KioskTransaction](./kiosk-client/kiosk-transaction/kiosk-transaction.md): Build kiosk transactions for listing, purchasing, and managing items on Sui.
|
|
8
|
+
- [Managing Owned Kiosk](./kiosk-client/kiosk-transaction/managing.md): Manage kiosk items by placing, listing, delisting, and withdrawing using the Kiosk SDK.
|
|
9
|
+
- [Purchasing from a kiosk](./kiosk-client/kiosk-transaction/purchasing.md): Purchase items from kiosks with automatic transfer policy rule resolution.
|
|
10
|
+
- [Examples](./kiosk-client/kiosk-transaction/examples.md): Practical code examples for kiosk transactions including minting, listing, and purchasing.
|
|
11
|
+
- [TransferPolicyTransaction](./kiosk-client/transfer-policy-transaction/introduction.md): Create and manage transfer policies for kiosk items using the Kiosk SDK.
|
|
12
|
+
- [Using the manager](./kiosk-client/transfer-policy-transaction/using-the-manager.md): Use the TransferPolicyTransaction manager to add rules and withdraw profits.
|
|
13
|
+
- [Advanced Examples](./advanced-examples.md): Advanced Kiosk SDK usage patterns and code examples for complex scenarios.
|
|
14
|
+
- [Migrating from Kiosk SDK V1](./from-v1.md): Migrate from Kiosk SDK v1 to the current version with the builder-pattern API.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@mysten/kiosk",
|
|
3
3
|
"author": "Mysten Labs <build@mystenlabs.com>",
|
|
4
4
|
"description": "Sui Kiosk library",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.6",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.mjs",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"url": "https://github.com/MystenLabs/ts-sdks/issues/new"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@mysten/
|
|
36
|
-
"@mysten/
|
|
35
|
+
"@mysten/utils": "^0.3.3",
|
|
36
|
+
"@mysten/bcs": "^2.0.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"cross-env": "^10.1.0",
|
|
@@ -42,16 +42,14 @@
|
|
|
42
42
|
"typescript": "^5.9.3",
|
|
43
43
|
"vite": "^8.0.5",
|
|
44
44
|
"vitest": "^4.0.17",
|
|
45
|
-
"wait-on": "^9.0.3"
|
|
46
|
-
"@mysten/codegen": "^0.10.3",
|
|
47
|
-
"@mysten/sui": "^2.16.0"
|
|
45
|
+
"wait-on": "^9.0.3"
|
|
48
46
|
},
|
|
49
47
|
"peerDependencies": {
|
|
50
|
-
"@mysten/sui": "^2.16.
|
|
48
|
+
"@mysten/sui": "^2.16.2"
|
|
51
49
|
},
|
|
52
50
|
"scripts": {
|
|
53
51
|
"build": "rm -rf dist && tsc --noEmit && tsdown",
|
|
54
|
-
"build:docs": "
|
|
52
|
+
"build:docs": "node ../docs/scripts/build-docs.ts",
|
|
55
53
|
"codegen": "sui-ts-codegen generate && pnpm lint:fix",
|
|
56
54
|
"test": "echo 'No unit tests for kiosk SDK'",
|
|
57
55
|
"pre-commit": "pnpm prettier:fix && pnpm lint && pnpm build",
|