@t2000/cli 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/{chunk-3DGYEM62.js → chunk-7MFY5PQG.js} +14 -4
- package/dist/{chunk-3DGYEM62.js.map → chunk-7MFY5PQG.js.map} +1 -1
- package/dist/client-YLNZOE5Z.js +146 -0
- package/dist/client-YLNZOE5Z.js.map +1 -0
- package/dist/{dist-546IUBM4.js → dist-FQOCT4Z4.js} +2 -2
- package/dist/{dist-UFYDHMQG.js → dist-L7I3XOJK.js} +108 -30
- package/dist/{dist-UFYDHMQG.js.map → dist-L7I3XOJK.js.map} +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/dist/client-QOEU3RTY.js +0 -85
- package/dist/client-QOEU3RTY.js.map +0 -1
- /package/dist/{dist-546IUBM4.js.map → dist-FQOCT4Z4.js.map} +0 -0
|
@@ -17205,6 +17205,9 @@ var KeypairSigner = class {
|
|
|
17205
17205
|
async signTransaction(txBytes) {
|
|
17206
17206
|
return this.keypair.signTransaction(txBytes);
|
|
17207
17207
|
}
|
|
17208
|
+
async signPersonalMessage(messageBytes) {
|
|
17209
|
+
return this.keypair.signPersonalMessage(messageBytes);
|
|
17210
|
+
}
|
|
17208
17211
|
/** Access the underlying keypair for APIs that still require it directly. */
|
|
17209
17212
|
getKeypair() {
|
|
17210
17213
|
return this.keypair;
|
|
@@ -17231,6 +17234,9 @@ var ZkLoginSigner = class {
|
|
|
17231
17234
|
})
|
|
17232
17235
|
};
|
|
17233
17236
|
}
|
|
17237
|
+
async signPersonalMessage(_messageBytes) {
|
|
17238
|
+
throw new Error("ZkLoginSigner.signPersonalMessage is not yet implemented. Use KeypairSigner for sdk.pay() until grief-protection signing is wired for zkLogin.");
|
|
17239
|
+
}
|
|
17234
17240
|
isExpired(currentEpoch) {
|
|
17235
17241
|
return currentEpoch >= this.maxEpoch;
|
|
17236
17242
|
}
|
|
@@ -22237,7 +22243,7 @@ var T2000 = class _T2000 extends import_index.default {
|
|
|
22237
22243
|
this.enforcer.assertNotLocked();
|
|
22238
22244
|
this.enforcer.check({ operation: "pay", amount: options.maxPrice ?? 1 });
|
|
22239
22245
|
const { Mppx } = await import("./client-I5AZIDKN.js");
|
|
22240
|
-
const { sui } = await import("./client-
|
|
22246
|
+
const { sui, USDC } = await import("./client-YLNZOE5Z.js");
|
|
22241
22247
|
const client = this.client;
|
|
22242
22248
|
const signer = this._signer;
|
|
22243
22249
|
const signerAddress = signer.getAddress();
|
|
@@ -22245,10 +22251,14 @@ var T2000 = class _T2000 extends import_index.default {
|
|
|
22245
22251
|
polyfill: false,
|
|
22246
22252
|
methods: [sui({
|
|
22247
22253
|
client,
|
|
22248
|
-
|
|
22254
|
+
currency: USDC,
|
|
22255
|
+
signer: {
|
|
22256
|
+
toSuiAddress: () => signerAddress,
|
|
22257
|
+
signPersonalMessage: (bytes) => signer.signPersonalMessage(bytes)
|
|
22258
|
+
},
|
|
22249
22259
|
execute: async (tx) => {
|
|
22250
22260
|
const result = await executeTx(client, signer, () => tx);
|
|
22251
|
-
return { digest: result.digest
|
|
22261
|
+
return { digest: result.digest };
|
|
22252
22262
|
}
|
|
22253
22263
|
})]
|
|
22254
22264
|
});
|
|
@@ -24330,4 +24340,4 @@ axios/dist/node/axios.cjs:
|
|
|
24330
24340
|
@scure/bip39/index.js:
|
|
24331
24341
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
24332
24342
|
*/
|
|
24333
|
-
//# sourceMappingURL=chunk-
|
|
24343
|
+
//# sourceMappingURL=chunk-7MFY5PQG.js.map
|