@t2000/cli 2.12.0 → 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.
@@ -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-QOEU3RTY.js");
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
- signer: { toSuiAddress: () => signerAddress },
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, effects: result.effects };
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-XQSJMXDP.js.map
24343
+ //# sourceMappingURL=chunk-7MFY5PQG.js.map