@mysten/payment-kit 0.2.17 → 0.2.19
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/dist/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;KAMY,uBAAA;EACX,SAAA;EACA,WAAA;AAAA;AAAA,UAGgB,0BAAA,SAAmC,iBAAA;AAAA,UAEnC,uBAAA;EAChB,MAAA,EAAQ,0BAAA;AAAA;AAAA,KAGG,QAAA;
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":";;;;KAMY,uBAAA;EACX,SAAA;EACA,WAAA;AAAA;AAAA,UAGgB,0BAAA,SAAmC,iBAAA;AAAA,UAEnC,uBAAA;EAChB,MAAA,EAAQ,0BAAA;AAAA;AAAA,KAGG,QAAA;EACT,YAAA;EAAuB,UAAA;AAAA;EAAyB,YAAA;EAAsB,UAAA;AAAA;AAAA,KAE7D,mBAAA;EACX,UAAA;AAAA,IACG,QAAA;AAAA,KAEQ,cAAA;EACX,QAAA;EACA,KAAA;EACA,MAAA;EACA,QAAA;AAAA;AAAA,KAGW,uBAAA,GAA0B,cAAA,GAAiB,QAAA;AAAA,UAEtC,wBAAA;EAChB,GAAA;EACA,wBAAA;EACA,mBAAA;AAAA;AAAA,KAGW,8BAAA;EACX,MAAA;EACA,UAAA,GAAa,iBAAA;AAAA,IACV,cAAA;AAAA,KAEQ,6BAAA,GAAgC,8BAAA,GAAiC,QAAA;AAAA,KAEjE,qBAAA;EACX,YAAA;AAAA;AAAA,KAGW,iCAAA;EACX,uBAAA;AAAA,IACG,mBAAA;AAAA,KAEQ,8BAAA;EACX,oBAAA;AAAA,IACG,mBAAA;AAAA,KAEQ,2BAAA;EACX,QAAA;AAAA,IACG,mBAAA;AAAA,KAEQ,0BAAA;EACX,QAAA;AAAA,IACG,cAAA,GACH,QAAA;AAAA,KAEW,gBAAA;EACX,eAAA;EACA,MAAA;EACA,QAAA;EACA,KAAA;EACA,KAAA;EACA,OAAA;EACA,OAAA;AAAA,IACG,OAAA,CAAQ,QAAA"}
|
package/docs/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Payment Kit
|
|
2
2
|
|
|
3
|
-
> Accept payments in any coin type on the Sui blockchain with built-in duplicate prevention.
|
|
3
|
+
> >- Accept payments in any coin type on the Sui blockchain with built-in duplicate prevention.
|
|
4
4
|
|
|
5
5
|
> **Note:** This package is in active development and should be used with caution. APIs are experimental and
|
|
6
6
|
> subject to breaking changes without notice. We recommend thoroughly testing any implementation
|
package/docs/llms-index.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Payment Kit
|
|
2
2
|
> Accept P2P and merchant payments in any coin type on Sui with @mysten/payment-kit
|
|
3
3
|
|
|
4
|
-
- [Payment Kit](..md): Accept payments in any coin type on the Sui blockchain with built-in duplicate prevention.
|
|
4
|
+
- [Payment Kit](..md): >- Accept payments in any coin type on the Sui blockchain with built-in duplicate prevention.
|
|
5
5
|
- [Getting Started](./getting-started.md): Install and set up Payment Kit for your Sui application.
|
|
6
6
|
- [Payment Kit SDK](./payment-kit-sdk.md): Payment Kit SDK API reference and configuration for the PaymentKitClient.
|
|
7
|
-
- [Payment Processing](./payment-processing.md): Process registry-based and ephemeral payments and handle transaction results on Sui.
|
|
8
|
-
- [Registry Management](./registry-management.md): Create, configure, and manage payment registries and accepted coin types on Sui.
|
|
7
|
+
- [Payment Processing](./payment-processing.md): >- Process registry-based and ephemeral payments and handle transaction results on Sui.
|
|
8
|
+
- [Registry Management](./registry-management.md): >- Create, configure, and manage payment registries and accepted coin types on Sui.
|
package/docs/payment-kit-sdk.md
CHANGED
|
@@ -486,9 +486,7 @@ const tx = new Transaction();
|
|
|
486
486
|
// Add custom logic before payment
|
|
487
487
|
tx.moveCall({
|
|
488
488
|
target: '0xMyPackage::my_module::pre_payment_check',
|
|
489
|
-
arguments: [
|
|
490
|
-
/* ... */
|
|
491
|
-
],
|
|
489
|
+
arguments: [/* ... */],
|
|
492
490
|
});
|
|
493
491
|
|
|
494
492
|
// Add payment command
|
|
@@ -505,9 +503,7 @@ tx.add(
|
|
|
505
503
|
// Add custom logic after payment
|
|
506
504
|
tx.moveCall({
|
|
507
505
|
target: '0xMyPackage::my_module::post_payment_action',
|
|
508
|
-
arguments: [
|
|
509
|
-
/* ... */
|
|
510
|
-
],
|
|
506
|
+
arguments: [/* ... */],
|
|
511
507
|
});
|
|
512
508
|
|
|
513
509
|
await client.signAndExecuteTransaction({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Payment Processing
|
|
2
2
|
|
|
3
|
-
> Process registry-based and ephemeral payments and handle transaction results on Sui.
|
|
3
|
+
> >- Process registry-based and ephemeral payments and handle transaction results on Sui.
|
|
4
4
|
|
|
5
5
|
> **Note:** This package is in active development and should be used with caution. APIs are experimental and
|
|
6
6
|
> subject to breaking changes without notice. We recommend thoroughly testing any implementation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Registry Management
|
|
2
2
|
|
|
3
|
-
> Create, configure, and manage payment registries and accepted coin types on Sui.
|
|
3
|
+
> >- Create, configure, and manage payment registries and accepted coin types on Sui.
|
|
4
4
|
|
|
5
5
|
> **Note:** This package is in active development and should be used with caution. APIs are experimental and
|
|
6
6
|
> subject to breaking changes without notice. We recommend thoroughly testing any implementation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mysten/payment-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sui Payment Kit",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"url": "https://github.com/MystenLabs/ts-sdks/issues/new"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"typescript": "^
|
|
32
|
-
"vitest": "^4.1.
|
|
31
|
+
"typescript": "^7.0.2",
|
|
32
|
+
"vitest": "^4.1.10"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@mysten/bcs": "^2.1.
|
|
35
|
+
"@mysten/bcs": "^2.1.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@mysten/sui": "^2.
|
|
38
|
+
"@mysten/sui": "^2.27.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"clean": "rm -rf tsconfig.tsbuildinfo ./dist",
|