@t2000/sdk 2.11.1 → 2.13.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/adapters/descriptors.d.cts +1 -1
- package/dist/adapters/descriptors.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/browser.cjs +6 -0
- 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 +6 -0
- package/dist/browser.js.map +1 -1
- package/dist/{descriptors-BnbL3xN8.d.cts → descriptors-DqIb4AnV.d.cts} +1 -1
- package/dist/{descriptors-BnbL3xN8.d.ts → descriptors-DqIb4AnV.d.ts} +1 -1
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -6
- package/dist/index.d.ts +4 -6
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/{types-DmXSwjQ1.d.cts → types-BY6ovQGK.d.cts} +16 -0
- package/dist/{types-CvBZ1IrA.d.ts → types-WeZQDV54.d.ts} +16 -0
- package/package.json +2 -2
|
@@ -12,6 +12,14 @@ interface TransactionSigner {
|
|
|
12
12
|
signTransaction(txBytes: Uint8Array): Promise<{
|
|
13
13
|
signature: string;
|
|
14
14
|
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Sign an arbitrary personal message. Required by `@suimpp/mpp` 0.7+ for
|
|
17
|
+
* grief-protection proofs (sender identity verification on settled payments).
|
|
18
|
+
*/
|
|
19
|
+
signPersonalMessage(messageBytes: Uint8Array): Promise<{
|
|
20
|
+
signature: string;
|
|
21
|
+
bytes?: string;
|
|
22
|
+
}>;
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
declare class KeypairSigner implements TransactionSigner {
|
|
@@ -21,6 +29,10 @@ declare class KeypairSigner implements TransactionSigner {
|
|
|
21
29
|
signTransaction(txBytes: Uint8Array): Promise<{
|
|
22
30
|
signature: string;
|
|
23
31
|
}>;
|
|
32
|
+
signPersonalMessage(messageBytes: Uint8Array): Promise<{
|
|
33
|
+
signature: string;
|
|
34
|
+
bytes: string;
|
|
35
|
+
}>;
|
|
24
36
|
/** Access the underlying keypair for APIs that still require it directly. */
|
|
25
37
|
getKeypair(): Ed25519Keypair;
|
|
26
38
|
}
|
|
@@ -48,6 +60,10 @@ declare class ZkLoginSigner implements TransactionSigner {
|
|
|
48
60
|
signTransaction(txBytes: Uint8Array): Promise<{
|
|
49
61
|
signature: string;
|
|
50
62
|
}>;
|
|
63
|
+
signPersonalMessage(_messageBytes: Uint8Array): Promise<{
|
|
64
|
+
signature: string;
|
|
65
|
+
bytes: string;
|
|
66
|
+
}>;
|
|
51
67
|
isExpired(currentEpoch: number): boolean;
|
|
52
68
|
}
|
|
53
69
|
|
|
@@ -12,6 +12,14 @@ interface TransactionSigner {
|
|
|
12
12
|
signTransaction(txBytes: Uint8Array): Promise<{
|
|
13
13
|
signature: string;
|
|
14
14
|
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Sign an arbitrary personal message. Required by `@suimpp/mpp` 0.7+ for
|
|
17
|
+
* grief-protection proofs (sender identity verification on settled payments).
|
|
18
|
+
*/
|
|
19
|
+
signPersonalMessage(messageBytes: Uint8Array): Promise<{
|
|
20
|
+
signature: string;
|
|
21
|
+
bytes?: string;
|
|
22
|
+
}>;
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
declare class KeypairSigner implements TransactionSigner {
|
|
@@ -21,6 +29,10 @@ declare class KeypairSigner implements TransactionSigner {
|
|
|
21
29
|
signTransaction(txBytes: Uint8Array): Promise<{
|
|
22
30
|
signature: string;
|
|
23
31
|
}>;
|
|
32
|
+
signPersonalMessage(messageBytes: Uint8Array): Promise<{
|
|
33
|
+
signature: string;
|
|
34
|
+
bytes: string;
|
|
35
|
+
}>;
|
|
24
36
|
/** Access the underlying keypair for APIs that still require it directly. */
|
|
25
37
|
getKeypair(): Ed25519Keypair;
|
|
26
38
|
}
|
|
@@ -48,6 +60,10 @@ declare class ZkLoginSigner implements TransactionSigner {
|
|
|
48
60
|
signTransaction(txBytes: Uint8Array): Promise<{
|
|
49
61
|
signature: string;
|
|
50
62
|
}>;
|
|
63
|
+
signPersonalMessage(_messageBytes: Uint8Array): Promise<{
|
|
64
|
+
signature: string;
|
|
65
|
+
bytes: string;
|
|
66
|
+
}>;
|
|
51
67
|
isExpired(currentEpoch: number): boolean;
|
|
52
68
|
}
|
|
53
69
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t2000/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "TypeScript SDK for AI agent bank accounts on Sui — send, save, borrow, swap. NAVI lending + Cetus aggregator routing, sponsored gas, zkLogin compatible.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@mysten/zklogin": "^0.8.1",
|
|
57
57
|
"@naviprotocol/lending": "^1.4.0",
|
|
58
58
|
"@pythnetwork/pyth-sui-js": "^2.4.0",
|
|
59
|
-
"@suimpp/mpp": "^0.
|
|
59
|
+
"@suimpp/mpp": "^0.7.0",
|
|
60
60
|
"bn.js": "^5.2.1",
|
|
61
61
|
"eventemitter3": "^5",
|
|
62
62
|
"mppx": "^0.4.9"
|