@t2000/sdk 5.0.0 → 5.1.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/dist/browser.cjs +293 -51
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +293 -51
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +132 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +133 -52
- package/dist/index.js.map +1 -1
- package/dist/{types-CgZWnHhs.d.cts → types-C01EGu76.d.cts} +8 -0
- package/dist/{types-CgZWnHhs.d.ts → types-C01EGu76.d.ts} +8 -0
- package/package.json +3 -4
|
@@ -792,6 +792,14 @@ interface PayResult {
|
|
|
792
792
|
status: number;
|
|
793
793
|
body: unknown;
|
|
794
794
|
paid: boolean;
|
|
795
|
+
/**
|
|
796
|
+
* Which payment dialect settled the call. `'x402'` = the sign-then-settle
|
|
797
|
+
* x402 `sui-exact` scheme (client signs, gateway settles); `'legacy'` = the
|
|
798
|
+
* pre-x402 MPP digest dialect (client broadcasts, retries with the digest).
|
|
799
|
+
* Undefined when nothing was paid (free/cached endpoint). See
|
|
800
|
+
* SUIMPP_X402_SCHEME.md.
|
|
801
|
+
*/
|
|
802
|
+
dialect?: 'x402' | 'legacy';
|
|
795
803
|
cost?: number;
|
|
796
804
|
/**
|
|
797
805
|
* SUI gas cost actually paid on chain. Zero for gasless payments —
|
|
@@ -792,6 +792,14 @@ interface PayResult {
|
|
|
792
792
|
status: number;
|
|
793
793
|
body: unknown;
|
|
794
794
|
paid: boolean;
|
|
795
|
+
/**
|
|
796
|
+
* Which payment dialect settled the call. `'x402'` = the sign-then-settle
|
|
797
|
+
* x402 `sui-exact` scheme (client signs, gateway settles); `'legacy'` = the
|
|
798
|
+
* pre-x402 MPP digest dialect (client broadcasts, retries with the digest).
|
|
799
|
+
* Undefined when nothing was paid (free/cached endpoint). See
|
|
800
|
+
* SUIMPP_X402_SCHEME.md.
|
|
801
|
+
*/
|
|
802
|
+
dialect?: 'x402' | 'legacy';
|
|
795
803
|
cost?: number;
|
|
796
804
|
/**
|
|
797
805
|
* SUI gas cost actually paid on chain. Zero for gasless payments —
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t2000/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "TypeScript SDK for Agent Wallets on Sui — gasless USDC + USDsui transfers, Cetus swap routing, NAVI lending (programmatic), MPP paid API access, zkLogin compatible.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -47,10 +47,9 @@
|
|
|
47
47
|
"@mysten/sui": "^2.17.0",
|
|
48
48
|
"@mysten/suins": "^1.1.1",
|
|
49
49
|
"@mysten/zklogin": "^0.8.1",
|
|
50
|
-
"@suimpp/mpp": "^0.
|
|
50
|
+
"@suimpp/mpp": "^0.8.1",
|
|
51
51
|
"bn.js": "^5.2.1",
|
|
52
|
-
"eventemitter3": "^5"
|
|
53
|
-
"mppx": "^0.4.9"
|
|
52
|
+
"eventemitter3": "^5"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@types/bn.js": "^5.1.5",
|