@ledgerhq/live-cli 24.25.0-nightly.0 → 24.25.0-nightly.1

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.
Files changed (2) hide show
  1. package/lib/cli.js +764 -716
  2. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -513744,7 +513744,7 @@ var require_package7 = __commonJS({
513744
513744
  module2.exports = {
513745
513745
  name: "@ledgerhq/live-common",
513746
513746
  description: "Common ground for the Ledger Live apps",
513747
- version: "34.50.0-nightly.0",
513747
+ version: "34.50.0-nightly.1",
513748
513748
  repository: {
513749
513749
  type: "git",
513750
513750
  url: "https://github.com/LedgerHQ/ledger-live.git"
@@ -514079,7 +514079,7 @@ var require_package8 = __commonJS({
514079
514079
  "package.json"(exports2, module2) {
514080
514080
  module2.exports = {
514081
514081
  name: "@ledgerhq/live-cli",
514082
- version: "24.25.0-nightly.0",
514082
+ version: "24.25.0-nightly.1",
514083
514083
  description: "ledger-live CLI version",
514084
514084
  repository: {
514085
514085
  type: "git",
@@ -807486,11 +807486,11 @@ var signer_default11 = getAddress_default10;
807486
807486
  // ../../libs/coin-modules/coin-sui/lib-es/logic/craftTransaction.js
807487
807487
  var import_bignumber302 = __toESM(require("bignumber.js"));
807488
807488
 
807489
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/version.js
807490
- var PACKAGE_VERSION = "1.37.1";
807491
- var TARGETED_RPC_VERSION = "1.54.0";
807489
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/version.js
807490
+ var PACKAGE_VERSION = "1.38.0";
807491
+ var TARGETED_RPC_VERSION = "1.57.0";
807492
807492
 
807493
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/errors.js
807493
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/errors.js
807494
807494
  var CODE_TO_ERROR_TYPE = {
807495
807495
  "-32700": "ParseError",
807496
807496
  "-32701": "OversizedRequest",
@@ -807526,7 +807526,7 @@ var SuiHTTPStatusError = class extends SuiHTTPTransportError {
807526
807526
  }
807527
807527
  };
807528
807528
 
807529
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/rpc-websocket-client.js
807529
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/rpc-websocket-client.js
807530
807530
  var __typeError = (msg) => {
807531
807531
  throw TypeError(msg);
807532
807532
  };
@@ -807705,7 +807705,7 @@ var RpcSubscription = class {
807705
807705
  }
807706
807706
  };
807707
807707
 
807708
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/http-transport.js
807708
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/http-transport.js
807709
807709
  var __typeError2 = (msg) => {
807710
807710
  throw TypeError(msg);
807711
807711
  };
@@ -807803,11 +807803,11 @@ getWebsocketClient_fn = function() {
807803
807803
  return __privateGet2(this, _websocketClient);
807804
807804
  };
807805
807805
 
807806
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/b58.js
807806
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/b58.js
807807
807807
  var toBase58 = (buffer2) => base583.encode(buffer2);
807808
807808
  var fromBase58 = (str) => base583.decode(str);
807809
807809
 
807810
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/b64.js
807810
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/b64.js
807811
807811
  function fromBase64(base64String2) {
807812
807812
  return Uint8Array.from(atob(base64String2), (char) => char.charCodeAt(0));
807813
807813
  }
@@ -807824,7 +807824,7 @@ function toBase64(bytes5) {
807824
807824
  return btoa(output3);
807825
807825
  }
807826
807826
 
807827
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/hex.js
807827
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/hex.js
807828
807828
  function fromHex2(hexStr) {
807829
807829
  const normalized = hexStr.startsWith("0x") ? hexStr.slice(2) : hexStr;
807830
807830
  const padded = normalized.length % 2 === 0 ? normalized : `0${normalized}`;
@@ -807838,14 +807838,14 @@ function toHex4(bytes5) {
807838
807838
  return bytes5.reduce((str, byte) => str + byte.toString(16).padStart(2, "0"), "");
807839
807839
  }
807840
807840
 
807841
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/chunk.js
807841
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/chunk.js
807842
807842
  function chunk3(array5, size3) {
807843
807843
  return Array.from({ length: Math.ceil(array5.length / size3) }, (_15, i54) => {
807844
807844
  return array5.slice(i54 * size3, (i54 + 1) * size3);
807845
807845
  });
807846
807846
  }
807847
807847
 
807848
- // ../../node_modules/.pnpm/@mysten+utils@0.1.1/node_modules/@mysten/utils/dist/esm/dataloader.js
807848
+ // ../../node_modules/.pnpm/@mysten+utils@0.2.0/node_modules/@mysten/utils/dist/esm/dataloader.js
807849
807849
  var DataLoader = class {
807850
807850
  constructor(batchLoadFn, options24) {
807851
807851
  if (typeof batchLoadFn !== "function") {
@@ -808141,7 +808141,7 @@ function isArrayLike2(x23) {
808141
808141
  return typeof x23 === "object" && x23 !== null && "length" in x23 && typeof x23.length === "number" && (x23.length === 0 || x23.length > 0 && Object.prototype.hasOwnProperty.call(x23, x23.length - 1));
808142
808142
  }
808143
808143
 
808144
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/uleb.js
808144
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/uleb.js
808145
808145
  function ulebEncode(num) {
808146
808146
  const arr = [];
808147
808147
  let len = 0;
@@ -808176,7 +808176,7 @@ function ulebDecode(arr) {
808176
808176
  };
808177
808177
  }
808178
808178
 
808179
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/reader.js
808179
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/reader.js
808180
808180
  var BcsReader = class {
808181
808181
  /**
808182
808182
  * @param {Uint8Array} data Data to use as a buffer.
@@ -808289,7 +808289,7 @@ var BcsReader = class {
808289
808289
  }
808290
808290
  };
808291
808291
 
808292
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/utils.js
808292
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/utils.js
808293
808293
  function encodeStr(data12, encoding) {
808294
808294
  switch (encoding) {
808295
808295
  case "base58":
@@ -808326,7 +808326,7 @@ function splitGenericParameters(str, genericSeparators = ["<", ">"]) {
808326
808326
  return tok;
808327
808327
  }
808328
808328
 
808329
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/writer.js
808329
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/writer.js
808330
808330
  var BcsWriter = class {
808331
808331
  constructor({
808332
808332
  initialSize = 1024,
@@ -808482,7 +808482,7 @@ function toLittleEndian(bigint2, size3) {
808482
808482
  return result2;
808483
808483
  }
808484
808484
 
808485
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/bcs-type.js
808485
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/bcs-type.js
808486
808486
  var __typeError3 = (msg) => {
808487
808487
  throw TypeError(msg);
808488
808488
  };
@@ -808561,11 +808561,11 @@ function isSerializedBcs(obj2) {
808561
808561
  return !!obj2 && typeof obj2 === "object" && obj2[SERIALIZED_BCS_BRAND] === true;
808562
808562
  }
808563
808563
  var SerializedBcs = class {
808564
- constructor(type4, schema3) {
808564
+ constructor(schema3, bytes5) {
808565
808565
  __privateAdd3(this, _schema);
808566
808566
  __privateAdd3(this, _bytes);
808567
- __privateSet3(this, _schema, type4);
808568
- __privateSet3(this, _bytes, schema3);
808567
+ __privateSet3(this, _schema, schema3);
808568
+ __privateSet3(this, _bytes, bytes5);
808569
808569
  }
808570
808570
  // Used to brand SerializedBcs so that they can be identified, even between multiple copies
808571
808571
  // of the @mysten/bcs package are installed
@@ -808834,7 +808834,7 @@ var BcsTuple = class extends BcsType {
808834
808834
  }
808835
808835
  };
808836
808836
 
808837
- // ../../node_modules/.pnpm/@mysten+bcs@1.7.0/node_modules/@mysten/bcs/dist/esm/bcs.js
808837
+ // ../../node_modules/.pnpm/@mysten+bcs@1.8.0/node_modules/@mysten/bcs/dist/esm/bcs.js
808838
808838
  function fixedArray(size3, type4, options24) {
808839
808839
  return new BcsType({
808840
808840
  read: (reader) => {
@@ -809221,7 +809221,7 @@ var bcs = {
809221
809221
  }
809222
809222
  };
809223
809223
 
809224
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/cache.js
809224
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/cache.js
809225
809225
  var __typeError4 = (msg) => {
809226
809226
  throw TypeError(msg);
809227
809227
  };
@@ -809288,7 +809288,7 @@ _prefix = /* @__PURE__ */ new WeakMap();
809288
809288
  _cache = /* @__PURE__ */ new WeakMap();
809289
809289
  var ClientCache = _ClientCache;
809290
809290
 
809291
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/client.js
809291
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/client.js
809292
809292
  var Experimental_BaseClient = class {
809293
809293
  constructor({
809294
809294
  network,
@@ -809315,7 +809315,7 @@ var Experimental_BaseClient = class {
809315
809315
  }
809316
809316
  };
809317
809317
 
809318
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/suins.js
809318
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/suins.js
809319
809319
  var SUI_NS_NAME_REGEX = /^(?!.*(^(?!@)|[-.@])($|[-.@]))(?:[a-z0-9-]{0,63}(?:\.[a-z0-9-]{0,63})*)?@[a-z0-9-]{0,63}$/i;
809320
809320
  var SUI_NS_DOMAIN_REGEX = /^(?!.*(^|[-.])($|[-.]))(?:[a-z0-9-]{0,63}\.)+sui$/i;
809321
809321
  var MAX_SUI_NS_NAME_LENGTH = 235;
@@ -809349,7 +809349,7 @@ function normalizeSuiNSName(name2, format6 = "at") {
809349
809349
  return `${parts.slice(0, -1).join(".")}@${parts[parts.length - 1]}`;
809350
809350
  }
809351
809351
 
809352
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/move-registry.js
809352
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/move-registry.js
809353
809353
  var NAME_PATTERN = /^([a-z0-9]+(?:-[a-z0-9]+)*)$/;
809354
809354
  var VERSION_REGEX = /^\d+$/;
809355
809355
  var MAX_APP_SIZE = 64;
@@ -809374,7 +809374,7 @@ var isValidNamedType = (type4) => {
809374
809374
  return true;
809375
809375
  };
809376
809376
 
809377
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/sui-types.js
809377
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/sui-types.js
809378
809378
  var TX_DIGEST_LENGTH = 32;
809379
809379
  function isValidTransactionDigest(value5) {
809380
809380
  try {
@@ -809435,7 +809435,7 @@ function getHexByteLength(value5) {
809435
809435
  return /^(0x|0X)/.test(value5) ? (value5.length - 2) / 2 : value5.length / 2;
809436
809436
  }
809437
809437
 
809438
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/type-tag-serializer.js
809438
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/type-tag-serializer.js
809439
809439
  var VECTOR_REGEX = /^vector<(.+)>$/;
809440
809440
  var STRUCT_REGEX = /^([^:]+)::([^:]+)::([^<]+)(<(.+)>)?/;
809441
809441
  var TypeTagSerializer = class _TypeTagSerializer {
@@ -809524,7 +809524,7 @@ var TypeTagSerializer = class _TypeTagSerializer {
809524
809524
  }
809525
809525
  };
809526
809526
 
809527
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/bcs.js
809527
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/bcs.js
809528
809528
  function unsafe_u64(options24) {
809529
809529
  return bcs.u64({
809530
809530
  name: "unsafe_u64",
@@ -809796,7 +809796,7 @@ var PasskeyAuthenticator = bcs.struct("PasskeyAuthenticator", {
809796
809796
  userSignature: bcs.vector(bcs.u8())
809797
809797
  });
809798
809798
 
809799
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/effects.js
809799
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/effects.js
809800
809800
  var PackageUpgradeError = bcs.enum("PackageUpgradeError", {
809801
809801
  UnableToFetchPackage: bcs.struct("UnableToFetchPackage", { packageId: Address9 }),
809802
809802
  NotAPackage: bcs.struct("NotAPackage", { objectId: Address9 }),
@@ -809982,7 +809982,7 @@ var TransactionEffects = bcs.enum("TransactionEffects", {
809982
809982
  V2: TransactionEffectsV2
809983
809983
  });
809984
809984
 
809985
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/pure.js
809985
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/pure.js
809986
809986
  function pureBcsSchemaFromTypeName(name2) {
809987
809987
  switch (name2) {
809988
809988
  case "u8":
@@ -810017,7 +810017,7 @@ function pureBcsSchemaFromTypeName(name2) {
810017
810017
  throw new Error(`Invalid Pure type name: ${name2}`);
810018
810018
  }
810019
810019
 
810020
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/index.js
810020
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/bcs/index.js
810021
810021
  var suiBcs = {
810022
810022
  ...bcs,
810023
810023
  U8: bcs.u8(),
@@ -810770,7 +810770,7 @@ function pipe2(...pipe22) {
810770
810770
  };
810771
810771
  }
810772
810772
 
810773
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/data/internal.js
810773
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/data/internal.js
810774
810774
  function safeEnum(options24) {
810775
810775
  const unionOptions = Object.entries(options24).map(([key2, value5]) => object6({ [key2]: value5 }));
810776
810776
  return pipe2(
@@ -810799,12 +810799,12 @@ var JsonU64 = pipe2(
810799
810799
  }
810800
810800
  }, "Invalid u64")
810801
810801
  );
810802
- var ObjectRef = object6({
810802
+ var ObjectRefSchema = object6({
810803
810803
  objectId: SuiAddress,
810804
810804
  version: JsonU64,
810805
810805
  digest: string4()
810806
810806
  });
810807
- var Argument2 = pipe2(
810807
+ var ArgumentSchema = pipe2(
810808
810808
  union4([
810809
810809
  object6({ GasCoin: literal4(true) }),
810810
810810
  object6({ Input: pipe2(number6(), integer()), type: optional3(literal4("pure")) }),
@@ -810818,20 +810818,20 @@ var Argument2 = pipe2(
810818
810818
  }))
810819
810819
  // Defined manually to add `type?: 'pure' | 'object'` to Input
810820
810820
  );
810821
- var GasData2 = object6({
810821
+ var GasDataSchema = object6({
810822
810822
  budget: nullable3(JsonU64),
810823
810823
  price: nullable3(JsonU64),
810824
810824
  owner: nullable3(SuiAddress),
810825
- payment: nullable3(array4(ObjectRef))
810825
+ payment: nullable3(array4(ObjectRefSchema))
810826
810826
  });
810827
- var StructTag2 = object6({
810827
+ var StructTagSchema = object6({
810828
810828
  address: string4(),
810829
810829
  module: string4(),
810830
810830
  name: string4(),
810831
810831
  // type_params in rust, should be updated to use camelCase
810832
810832
  typeParams: array4(string4())
810833
810833
  });
810834
- var OpenMoveTypeSignatureBody = union4([
810834
+ var OpenMoveTypeSignatureBodySchema = union4([
810835
810835
  literal4("address"),
810836
810836
  literal4("bool"),
810837
810837
  literal4("u8"),
@@ -810840,48 +810840,48 @@ var OpenMoveTypeSignatureBody = union4([
810840
810840
  literal4("u64"),
810841
810841
  literal4("u128"),
810842
810842
  literal4("u256"),
810843
- object6({ vector: lazy(() => OpenMoveTypeSignatureBody) }),
810843
+ object6({ vector: lazy(() => OpenMoveTypeSignatureBodySchema) }),
810844
810844
  object6({
810845
810845
  datatype: object6({
810846
810846
  package: string4(),
810847
810847
  module: string4(),
810848
810848
  type: string4(),
810849
- typeParameters: array4(lazy(() => OpenMoveTypeSignatureBody))
810849
+ typeParameters: array4(lazy(() => OpenMoveTypeSignatureBodySchema))
810850
810850
  })
810851
810851
  }),
810852
810852
  object6({ typeParameter: pipe2(number6(), integer()) })
810853
810853
  ]);
810854
- var OpenMoveTypeSignature = object6({
810854
+ var OpenMoveTypeSignatureSchema = object6({
810855
810855
  ref: nullable3(union4([literal4("&"), literal4("&mut")])),
810856
- body: OpenMoveTypeSignatureBody
810856
+ body: OpenMoveTypeSignatureBodySchema
810857
810857
  });
810858
- var ProgrammableMoveCall2 = object6({
810858
+ var ProgrammableMoveCallSchema = object6({
810859
810859
  package: ObjectID,
810860
810860
  module: string4(),
810861
810861
  function: string4(),
810862
810862
  // snake case in rust
810863
810863
  typeArguments: array4(string4()),
810864
- arguments: array4(Argument2),
810865
- _argumentTypes: optional3(nullable3(array4(OpenMoveTypeSignature)))
810864
+ arguments: array4(ArgumentSchema),
810865
+ _argumentTypes: optional3(nullable3(array4(OpenMoveTypeSignatureSchema)))
810866
810866
  });
810867
810867
  var $Intent = object6({
810868
810868
  name: string4(),
810869
- inputs: record3(string4(), union4([Argument2, array4(Argument2)])),
810869
+ inputs: record3(string4(), union4([ArgumentSchema, array4(ArgumentSchema)])),
810870
810870
  data: record3(string4(), unknown5())
810871
810871
  });
810872
- var Command2 = safeEnum({
810873
- MoveCall: ProgrammableMoveCall2,
810872
+ var CommandSchema = safeEnum({
810873
+ MoveCall: ProgrammableMoveCallSchema,
810874
810874
  TransferObjects: object6({
810875
- objects: array4(Argument2),
810876
- address: Argument2
810875
+ objects: array4(ArgumentSchema),
810876
+ address: ArgumentSchema
810877
810877
  }),
810878
810878
  SplitCoins: object6({
810879
- coin: Argument2,
810880
- amounts: array4(Argument2)
810879
+ coin: ArgumentSchema,
810880
+ amounts: array4(ArgumentSchema)
810881
810881
  }),
810882
810882
  MergeCoins: object6({
810883
- destination: Argument2,
810884
- sources: array4(Argument2)
810883
+ destination: ArgumentSchema,
810884
+ sources: array4(ArgumentSchema)
810885
810885
  }),
810886
810886
  Publish: object6({
810887
810887
  modules: array4(BCSBytes),
@@ -810889,28 +810889,28 @@ var Command2 = safeEnum({
810889
810889
  }),
810890
810890
  MakeMoveVec: object6({
810891
810891
  type: nullable3(string4()),
810892
- elements: array4(Argument2)
810892
+ elements: array4(ArgumentSchema)
810893
810893
  }),
810894
810894
  Upgrade: object6({
810895
810895
  modules: array4(BCSBytes),
810896
810896
  dependencies: array4(ObjectID),
810897
810897
  package: ObjectID,
810898
- ticket: Argument2
810898
+ ticket: ArgumentSchema
810899
810899
  }),
810900
810900
  $Intent
810901
810901
  });
810902
- var ObjectArg2 = safeEnum({
810903
- ImmOrOwnedObject: ObjectRef,
810902
+ var ObjectArgSchema = safeEnum({
810903
+ ImmOrOwnedObject: ObjectRefSchema,
810904
810904
  SharedObject: object6({
810905
810905
  objectId: ObjectID,
810906
810906
  // snake case in rust
810907
810907
  initialSharedVersion: JsonU64,
810908
810908
  mutable: boolean4()
810909
810909
  }),
810910
- Receiving: ObjectRef
810910
+ Receiving: ObjectRefSchema
810911
810911
  });
810912
- var CallArg2 = safeEnum({
810913
- Object: ObjectArg2,
810912
+ var CallArgSchema = safeEnum({
810913
+ Object: ObjectArgSchema,
810914
810914
  Pure: object6({
810915
810915
  bytes: BCSBytes
810916
810916
  }),
@@ -810921,11 +810921,12 @@ var CallArg2 = safeEnum({
810921
810921
  objectId: ObjectID,
810922
810922
  version: optional3(nullable3(JsonU64)),
810923
810923
  digest: optional3(nullable3(string4())),
810924
- initialSharedVersion: optional3(nullable3(JsonU64))
810924
+ initialSharedVersion: optional3(nullable3(JsonU64)),
810925
+ mutable: optional3(nullable3(boolean4()))
810925
810926
  })
810926
810927
  });
810927
810928
  var NormalizedCallArg = safeEnum({
810928
- Object: ObjectArg2,
810929
+ Object: ObjectArgSchema,
810929
810930
  Pure: object6({
810930
810931
  bytes: BCSBytes
810931
810932
  })
@@ -810934,16 +810935,16 @@ var TransactionExpiration2 = safeEnum({
810934
810935
  None: literal4(true),
810935
810936
  Epoch: JsonU64
810936
810937
  });
810937
- var TransactionData2 = object6({
810938
+ var TransactionDataSchema = object6({
810938
810939
  version: literal4(2),
810939
810940
  sender: nullish(SuiAddress),
810940
810941
  expiration: nullish(TransactionExpiration2),
810941
- gasData: GasData2,
810942
- inputs: array4(CallArg2),
810943
- commands: array4(Command2)
810942
+ gasData: GasDataSchema,
810943
+ inputs: array4(CallArgSchema),
810944
+ commands: array4(CommandSchema)
810944
810945
  });
810945
810946
 
810946
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/Commands.js
810947
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/Commands.js
810947
810948
  var Commands = {
810948
810949
  MoveCall(input) {
810949
810950
  const [pkg, mod5 = "", fn4 = ""] = "target" in input ? input.target.split("::") : [input.package, input.module, input.function];
@@ -810962,8 +810963,8 @@ var Commands = {
810962
810963
  return {
810963
810964
  $kind: "TransferObjects",
810964
810965
  TransferObjects: {
810965
- objects: objects.map((o41) => parse12(Argument2, o41)),
810966
- address: parse12(Argument2, address3)
810966
+ objects: objects.map((o41) => parse12(ArgumentSchema, o41)),
810967
+ address: parse12(ArgumentSchema, address3)
810967
810968
  }
810968
810969
  };
810969
810970
  },
@@ -810971,8 +810972,8 @@ var Commands = {
810971
810972
  return {
810972
810973
  $kind: "SplitCoins",
810973
810974
  SplitCoins: {
810974
- coin: parse12(Argument2, coin),
810975
- amounts: amounts.map((o41) => parse12(Argument2, o41))
810975
+ coin: parse12(ArgumentSchema, coin),
810976
+ amounts: amounts.map((o41) => parse12(ArgumentSchema, o41))
810976
810977
  }
810977
810978
  };
810978
810979
  },
@@ -810980,8 +810981,8 @@ var Commands = {
810980
810981
  return {
810981
810982
  $kind: "MergeCoins",
810982
810983
  MergeCoins: {
810983
- destination: parse12(Argument2, destination),
810984
- sources: sources.map((o41) => parse12(Argument2, o41))
810984
+ destination: parse12(ArgumentSchema, destination),
810985
+ sources: sources.map((o41) => parse12(ArgumentSchema, o41))
810985
810986
  }
810986
810987
  };
810987
810988
  },
@@ -811013,7 +811014,7 @@ var Commands = {
811013
811014
  ),
811014
811015
  dependencies: dependencies.map((dep2) => normalizeSuiObjectId(dep2)),
811015
811016
  package: packageId,
811016
- ticket: parse12(Argument2, ticket)
811017
+ ticket: parse12(ArgumentSchema, ticket)
811017
811018
  }
811018
811019
  };
811019
811020
  },
@@ -811025,7 +811026,7 @@ var Commands = {
811025
811026
  $kind: "MakeMoveVec",
811026
811027
  MakeMoveVec: {
811027
811028
  type: type4 ?? null,
811028
- elements: elements.map((o41) => parse12(Argument2, o41))
811029
+ elements: elements.map((o41) => parse12(ArgumentSchema, o41))
811029
811030
  }
811030
811031
  };
811031
811032
  },
@@ -811041,7 +811042,7 @@ var Commands = {
811041
811042
  inputs: Object.fromEntries(
811042
811043
  Object.entries(inputs).map(([key2, value5]) => [
811043
811044
  key2,
811044
- Array.isArray(value5) ? value5.map((o41) => parse12(Argument2, o41)) : parse12(Argument2, value5)
811045
+ Array.isArray(value5) ? value5.map((o41) => parse12(ArgumentSchema, o41)) : parse12(ArgumentSchema, value5)
811045
811046
  ])
811046
811047
  ),
811047
811048
  data: data12
@@ -811050,23 +811051,23 @@ var Commands = {
811050
811051
  }
811051
811052
  };
811052
811053
 
811053
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/data/v1.js
811054
- var ObjectRef2 = object6({
811054
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/data/v1.js
811055
+ var ObjectRef = object6({
811055
811056
  digest: string4(),
811056
811057
  objectId: string4(),
811057
811058
  version: union4([pipe2(number6(), integer()), string4(), bigint()])
811058
811059
  });
811059
- var ObjectArg3 = safeEnum({
811060
- ImmOrOwned: ObjectRef2,
811060
+ var ObjectArg2 = safeEnum({
811061
+ ImmOrOwned: ObjectRef,
811061
811062
  Shared: object6({
811062
811063
  objectId: ObjectID,
811063
811064
  initialSharedVersion: JsonU64,
811064
811065
  mutable: boolean4()
811065
811066
  }),
811066
- Receiving: ObjectRef2
811067
+ Receiving: ObjectRef
811067
811068
  });
811068
811069
  var NormalizedCallArg2 = safeEnum({
811069
- Object: ObjectArg3,
811070
+ Object: ObjectArg2,
811070
811071
  Pure: array4(pipe2(number6(), integer()))
811071
811072
  });
811072
811073
  var TransactionInput2 = union4([
@@ -811108,12 +811109,12 @@ var TypeTag2 = union4([
811108
811109
  object6({ address: nullable3(literal4(true)) }),
811109
811110
  object6({ signer: nullable3(literal4(true)) }),
811110
811111
  object6({ vector: lazy(() => TypeTag2) }),
811111
- object6({ struct: lazy(() => StructTag3) }),
811112
+ object6({ struct: lazy(() => StructTag2) }),
811112
811113
  object6({ u16: nullable3(literal4(true)) }),
811113
811114
  object6({ u32: nullable3(literal4(true)) }),
811114
811115
  object6({ u256: nullable3(literal4(true)) })
811115
811116
  ]);
811116
- var StructTag3 = object6({
811117
+ var StructTag2 = object6({
811117
811118
  address: string4(),
811118
811119
  module: string4(),
811119
811120
  name: string4(),
@@ -811122,7 +811123,7 @@ var StructTag3 = object6({
811122
811123
  var GasConfig = object6({
811123
811124
  budget: optional3(StringEncodedBigint),
811124
811125
  price: optional3(StringEncodedBigint),
811125
- payment: optional3(array4(ObjectRef2)),
811126
+ payment: optional3(array4(ObjectRef)),
811126
811127
  owner: optional3(string4())
811127
811128
  });
811128
811129
  var TransactionArgumentTypes = [
@@ -811341,7 +811342,7 @@ function convertTransactionArgument(arg, inputs) {
811341
811342
  throw new Error(`Invalid argument ${Object.keys(arg)}`);
811342
811343
  }
811343
811344
  function transactionDataFromV1(data12) {
811344
- return parse12(TransactionData2, {
811345
+ return parse12(TransactionDataSchema, {
811345
811346
  version: 2,
811346
811347
  sender: data12.sender ?? null,
811347
811348
  expiration: data12.expiration ? "Epoch" in data12.expiration ? { Epoch: data12.expiration.Epoch } : { None: true } : null,
@@ -811500,50 +811501,50 @@ function parseV1TransactionArgument(arg) {
811500
811501
  }
811501
811502
  }
811502
811503
 
811503
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/data/v2.js
811504
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/data/v2.js
811504
811505
  function enumUnion(options24) {
811505
811506
  return union4(
811506
811507
  Object.entries(options24).map(([key2, value5]) => object6({ [key2]: value5 }))
811507
811508
  );
811508
811509
  }
811509
- var Argument3 = enumUnion({
811510
+ var Argument2 = enumUnion({
811510
811511
  GasCoin: literal4(true),
811511
811512
  Input: pipe2(number6(), integer()),
811512
811513
  Result: pipe2(number6(), integer()),
811513
811514
  NestedResult: tuple3([pipe2(number6(), integer()), pipe2(number6(), integer())])
811514
811515
  });
811515
- var GasData3 = object6({
811516
+ var GasData2 = object6({
811516
811517
  budget: nullable3(JsonU64),
811517
811518
  price: nullable3(JsonU64),
811518
811519
  owner: nullable3(SuiAddress),
811519
- payment: nullable3(array4(ObjectRef))
811520
+ payment: nullable3(array4(ObjectRefSchema))
811520
811521
  });
811521
- var ProgrammableMoveCall3 = object6({
811522
+ var ProgrammableMoveCall2 = object6({
811522
811523
  package: ObjectID,
811523
811524
  module: string4(),
811524
811525
  function: string4(),
811525
811526
  // snake case in rust
811526
811527
  typeArguments: array4(string4()),
811527
- arguments: array4(Argument3)
811528
+ arguments: array4(Argument2)
811528
811529
  });
811529
811530
  var $Intent2 = object6({
811530
811531
  name: string4(),
811531
- inputs: record3(string4(), union4([Argument3, array4(Argument3)])),
811532
+ inputs: record3(string4(), union4([Argument2, array4(Argument2)])),
811532
811533
  data: record3(string4(), unknown5())
811533
811534
  });
811534
- var Command3 = enumUnion({
811535
- MoveCall: ProgrammableMoveCall3,
811535
+ var Command2 = enumUnion({
811536
+ MoveCall: ProgrammableMoveCall2,
811536
811537
  TransferObjects: object6({
811537
- objects: array4(Argument3),
811538
- address: Argument3
811538
+ objects: array4(Argument2),
811539
+ address: Argument2
811539
811540
  }),
811540
811541
  SplitCoins: object6({
811541
- coin: Argument3,
811542
- amounts: array4(Argument3)
811542
+ coin: Argument2,
811543
+ amounts: array4(Argument2)
811543
811544
  }),
811544
811545
  MergeCoins: object6({
811545
- destination: Argument3,
811546
- sources: array4(Argument3)
811546
+ destination: Argument2,
811547
+ sources: array4(Argument2)
811547
811548
  }),
811548
811549
  Publish: object6({
811549
811550
  modules: array4(BCSBytes),
@@ -811551,28 +811552,28 @@ var Command3 = enumUnion({
811551
811552
  }),
811552
811553
  MakeMoveVec: object6({
811553
811554
  type: nullable3(string4()),
811554
- elements: array4(Argument3)
811555
+ elements: array4(Argument2)
811555
811556
  }),
811556
811557
  Upgrade: object6({
811557
811558
  modules: array4(BCSBytes),
811558
811559
  dependencies: array4(ObjectID),
811559
811560
  package: ObjectID,
811560
- ticket: Argument3
811561
+ ticket: Argument2
811561
811562
  }),
811562
811563
  $Intent: $Intent2
811563
811564
  });
811564
- var ObjectArg4 = enumUnion({
811565
- ImmOrOwnedObject: ObjectRef,
811565
+ var ObjectArg3 = enumUnion({
811566
+ ImmOrOwnedObject: ObjectRefSchema,
811566
811567
  SharedObject: object6({
811567
811568
  objectId: ObjectID,
811568
811569
  // snake case in rust
811569
811570
  initialSharedVersion: JsonU64,
811570
811571
  mutable: boolean4()
811571
811572
  }),
811572
- Receiving: ObjectRef
811573
+ Receiving: ObjectRefSchema
811573
811574
  });
811574
- var CallArg3 = enumUnion({
811575
- Object: ObjectArg4,
811575
+ var CallArg2 = enumUnion({
811576
+ Object: ObjectArg3,
811576
811577
  Pure: object6({
811577
811578
  bytes: BCSBytes
811578
811579
  }),
@@ -811583,24 +811584,25 @@ var CallArg3 = enumUnion({
811583
811584
  objectId: ObjectID,
811584
811585
  version: optional3(nullable3(JsonU64)),
811585
811586
  digest: optional3(nullable3(string4())),
811586
- initialSharedVersion: optional3(nullable3(JsonU64))
811587
+ initialSharedVersion: optional3(nullable3(JsonU64)),
811588
+ mutable: optional3(nullable3(boolean4()))
811587
811589
  })
811588
811590
  });
811589
811591
  var TransactionExpiration4 = enumUnion({
811590
811592
  None: literal4(true),
811591
811593
  Epoch: JsonU64
811592
811594
  });
811593
- var SerializedTransactionDataV2 = object6({
811595
+ var SerializedTransactionDataV2Schema = object6({
811594
811596
  version: literal4(2),
811595
811597
  sender: nullish(SuiAddress),
811596
811598
  expiration: nullish(TransactionExpiration4),
811597
- gasData: GasData3,
811598
- inputs: array4(CallArg3),
811599
- commands: array4(Command3),
811599
+ gasData: GasData2,
811600
+ inputs: array4(CallArg2),
811601
+ commands: array4(Command2),
811600
811602
  digest: optional3(nullable3(string4()))
811601
811603
  });
811602
811604
 
811603
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/Inputs.js
811605
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/Inputs.js
811604
811606
  function Pure(data12) {
811605
811607
  return {
811606
811608
  $kind: "Pure",
@@ -811656,7 +811658,7 @@ var Inputs = {
811656
811658
  }
811657
811659
  };
811658
811660
 
811659
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/constants.js
811661
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/constants.js
811660
811662
  var MIST_PER_SUI = BigInt(1e9);
811661
811663
  var MOVE_STDLIB_ADDRESS = "0x1";
811662
811664
  var SUI_FRAMEWORK_ADDRESS = "0x2";
@@ -811664,7 +811666,7 @@ var SUI_CLOCK_OBJECT_ID = normalizeSuiObjectId("0x6");
811664
811666
  var SUI_TYPE_ARG = `${SUI_FRAMEWORK_ADDRESS}::sui::SUI`;
811665
811667
  var SUI_SYSTEM_STATE_OBJECT_ID = normalizeSuiObjectId("0x5");
811666
811668
 
811667
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/dynamic-fields.js
811669
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/utils/dynamic-fields.js
811668
811670
  function deriveDynamicFieldID(parentId, typeTag, key2) {
811669
811671
  const address3 = suiBcs.Address.serialize(parentId).toBytes();
811670
811672
  const tag = suiBcs.TypeTag.serialize(typeTag).toBytes();
@@ -811680,7 +811682,7 @@ function deriveDynamicFieldID(parentId, typeTag, key2) {
811680
811682
  return `0x${toHex4(hash10.digest().slice(0, 32))}`;
811681
811683
  }
811682
811684
 
811683
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/serializer.js
811685
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/serializer.js
811684
811686
  var OBJECT_MODULE_NAME = "object";
811685
811687
  var ID_STRUCT_NAME = "ID";
811686
811688
  var STD_ASCII_MODULE_NAME = "ascii";
@@ -811806,7 +811808,7 @@ function normalizedTypeToMoveTypeSignatureBody(type4) {
811806
811808
  throw new Error(`Unexpected type ${JSON.stringify(type4)}`);
811807
811809
  }
811808
811810
 
811809
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/transports/json-rpc-resolver.js
811811
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/transports/json-rpc-resolver.js
811810
811812
  var MAX_OBJECTS_PER_FETCH = 50;
811811
811813
  var GAS_SAFE_OVERHEAD = 1000n;
811812
811814
  var MAX_GAS = 5e10;
@@ -811876,7 +811878,9 @@ async function setGasPayment(transactionData, client) {
811876
811878
  if (!paymentCoins.length) {
811877
811879
  throw new Error("No valid gas coins found for the transaction.");
811878
811880
  }
811879
- transactionData.gasConfig.payment = paymentCoins.map((payment) => parse12(ObjectRef, payment));
811881
+ transactionData.gasConfig.payment = paymentCoins.map(
811882
+ (payment) => parse12(ObjectRefSchema, payment)
811883
+ );
811880
811884
  }
811881
811885
  }
811882
811886
  async function resolveObjectReferences(transactionData, client) {
@@ -811935,7 +811939,7 @@ async function resolveObjectReferences(transactionData, client) {
811935
811939
  updated = Inputs.SharedObjectRef({
811936
811940
  objectId: id7,
811937
811941
  initialSharedVersion: input.UnresolvedObject.initialSharedVersion || object7?.initialSharedVersion,
811938
- mutable: isUsedAsMutable(transactionData, index)
811942
+ mutable: input.UnresolvedObject.mutable || isUsedAsMutable(transactionData, index)
811939
811943
  });
811940
811944
  } else if (isUsedAsReceiving(transactionData, index)) {
811941
811945
  updated = Inputs.ReceivingRef(
@@ -811969,7 +811973,7 @@ async function normalizeInputs(transactionData, client) {
811969
811973
  return null;
811970
811974
  });
811971
811975
  const needsResolution = inputs2.some(
811972
- (input) => input?.UnresolvedPure || input?.UnresolvedObject
811976
+ (input) => input?.UnresolvedPure || input?.UnresolvedObject && typeof input?.UnresolvedObject.mutable !== "boolean"
811973
811977
  );
811974
811978
  if (needsResolution) {
811975
811979
  const functionName = `${command4.MoveCall.package}::${command4.MoveCall.module}::${command4.MoveCall.function}`;
@@ -812088,7 +812092,7 @@ function isReceivingType(type4) {
812088
812092
  return type4.body.datatype.package === "0x2" && type4.body.datatype.module === "transfer" && type4.body.datatype.type === "Receiving";
812089
812093
  }
812090
812094
 
812091
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/resolve.js
812095
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/resolve.js
812092
812096
  function needsTransactionResolution(data12, options24) {
812093
812097
  if (data12.inputs.some((input) => {
812094
812098
  return input.UnresolvedObject || input.UnresolvedPure;
@@ -812159,15 +812163,53 @@ function normalizeRawArgument(arg, schema3, transactionData) {
812159
812163
  transactionData.inputs[arg.Input] = Inputs.Pure(schema3.serialize(input.UnresolvedPure.value));
812160
812164
  }
812161
812165
 
812162
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/object.js
812166
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/object.js
812163
812167
  function createObjectMethods(makeObject) {
812164
812168
  function object7(value5) {
812165
812169
  return makeObject(value5);
812166
812170
  }
812167
- object7.system = () => object7("0x5");
812168
- object7.clock = () => object7("0x6");
812169
- object7.random = () => object7("0x8");
812170
- object7.denyList = () => object7("0x403");
812171
+ object7.system = (options24) => {
812172
+ const mutable = options24?.mutable;
812173
+ if (mutable !== void 0) {
812174
+ return object7(
812175
+ Inputs.SharedObjectRef({
812176
+ objectId: "0x5",
812177
+ initialSharedVersion: 1,
812178
+ mutable
812179
+ })
812180
+ );
812181
+ }
812182
+ return object7({
812183
+ $kind: "UnresolvedObject",
812184
+ UnresolvedObject: {
812185
+ objectId: "0x5",
812186
+ initialSharedVersion: 1
812187
+ }
812188
+ });
812189
+ };
812190
+ object7.clock = () => object7(
812191
+ Inputs.SharedObjectRef({
812192
+ objectId: "0x6",
812193
+ initialSharedVersion: 1,
812194
+ mutable: false
812195
+ })
812196
+ );
812197
+ object7.random = () => object7({
812198
+ $kind: "UnresolvedObject",
812199
+ UnresolvedObject: {
812200
+ objectId: "0x8",
812201
+ mutable: false
812202
+ }
812203
+ });
812204
+ object7.denyList = (options24) => {
812205
+ return object7({
812206
+ $kind: "UnresolvedObject",
812207
+ UnresolvedObject: {
812208
+ objectId: "0x403",
812209
+ mutable: options24?.mutable
812210
+ }
812211
+ });
812212
+ };
812171
812213
  object7.option = ({ type: type4, value: value5 }) => (tx) => tx.moveCall({
812172
812214
  typeArguments: [type4],
812173
812215
  target: `0x1::option::${value5 === null ? "none" : "some"}`,
@@ -812176,7 +812218,7 @@ function createObjectMethods(makeObject) {
812176
812218
  return object7;
812177
812219
  }
812178
812220
 
812179
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/pure.js
812221
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/pure.js
812180
812222
  function createPure(makePure) {
812181
812223
  function pure(typeOrSerializedValue, value5) {
812182
812224
  if (typeof typeOrSerializedValue === "string") {
@@ -812208,7 +812250,7 @@ function createPure(makePure) {
812208
812250
  return pure;
812209
812251
  }
812210
812252
 
812211
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/hash.js
812253
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/hash.js
812212
812254
  function hashTypedData2(typeTag, data12) {
812213
812255
  const typeTagBytes = Array.from(`${typeTag}::`).map((e36) => e36.charCodeAt(0));
812214
812256
  const dataWithTag = new Uint8Array(typeTagBytes.length + data12.length);
@@ -812217,7 +812259,7 @@ function hashTypedData2(typeTag, data12) {
812217
812259
  return blake2b2(dataWithTag, { dkLen: 32 });
812218
812260
  }
812219
812261
 
812220
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/TransactionData.js
812262
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/TransactionData.js
812221
812263
  function prepareSuiAddress(address3) {
812222
812264
  return normalizeSuiAddress(address3).replace("0x", "");
812223
812265
  }
@@ -812273,9 +812315,9 @@ var TransactionDataBuilder = class _TransactionDataBuilder {
812273
812315
  }
812274
812316
  static restore(data12) {
812275
812317
  if (data12.version === 2) {
812276
- return new _TransactionDataBuilder(parse12(TransactionData2, data12));
812318
+ return new _TransactionDataBuilder(parse12(TransactionDataSchema, data12));
812277
812319
  } else {
812278
- return new _TransactionDataBuilder(parse12(TransactionData2, transactionDataFromV1(data12)));
812320
+ return new _TransactionDataBuilder(parse12(TransactionDataSchema, transactionDataFromV1(data12)));
812279
812321
  }
812280
812322
  }
812281
812323
  /**
@@ -812452,7 +812494,7 @@ var TransactionDataBuilder = class _TransactionDataBuilder {
812452
812494
  return _TransactionDataBuilder.getDigestFromBytes(bytes5);
812453
812495
  }
812454
812496
  snapshot() {
812455
- return parse12(TransactionData2, this);
812497
+ return parse12(TransactionDataSchema, this);
812456
812498
  }
812457
812499
  shallowClone() {
812458
812500
  return new _TransactionDataBuilder({
@@ -812468,7 +812510,7 @@ var TransactionDataBuilder = class _TransactionDataBuilder {
812468
812510
  }
812469
812511
  };
812470
812512
 
812471
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/utils.js
812513
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/utils.js
812472
812514
  function getIdFromCallArg(arg) {
812473
812515
  if (typeof arg === "string") {
812474
812516
  return normalizeSuiAddress(arg);
@@ -812488,7 +812530,7 @@ function getIdFromCallArg(arg) {
812488
812530
  return void 0;
812489
812531
  }
812490
812532
 
812491
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/mvr.js
812533
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/mvr.js
812492
812534
  var __typeError5 = (msg) => {
812493
812535
  throw TypeError(msg);
812494
812536
  };
@@ -812837,7 +812879,7 @@ function getNamesFromTypeList(types4) {
812837
812879
  return names4;
812838
812880
  }
812839
812881
 
812840
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/plugins/NamedPackagesPlugin.js
812882
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/plugins/NamedPackagesPlugin.js
812841
812883
  var cacheMap = /* @__PURE__ */ new WeakMap();
812842
812884
  var namedPackagesPlugin = (options24) => {
812843
812885
  let mvrClient;
@@ -812878,7 +812920,7 @@ function getClient3(options24) {
812878
812920
  return options24.client;
812879
812921
  }
812880
812922
 
812881
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/Transaction.js
812923
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/transactions/Transaction.js
812882
812924
  var __typeError6 = (msg) => {
812883
812925
  throw TypeError(msg);
812884
812926
  };
@@ -812988,7 +813030,7 @@ var _Transaction = class _Transaction2 {
812988
813030
  if (typeof value5 === "function") {
812989
813031
  return this.object(this.add(value5));
812990
813032
  }
812991
- if (typeof value5 === "object" && is5(Argument2, value5)) {
813033
+ if (typeof value5 === "object" && is5(ArgumentSchema, value5)) {
812992
813034
  return value5;
812993
813035
  }
812994
813036
  const id7 = getIdFromCallArg(value5);
@@ -813103,7 +813145,7 @@ var _Transaction = class _Transaction2 {
813103
813145
  __privateGet6(this, _data).gasConfig.owner = owner;
813104
813146
  }
813105
813147
  setGasPayment(payments6) {
813106
- __privateGet6(this, _data).gasConfig.payment = payments6.map((payment) => parse12(ObjectRef, payment));
813148
+ __privateGet6(this, _data).gasConfig.payment = payments6.map((payment) => parse12(ObjectRefSchema, payment));
813107
813149
  }
813108
813150
  /** @deprecated Use `getData()` instead. */
813109
813151
  get blockData() {
@@ -813281,7 +813323,7 @@ var _Transaction = class _Transaction2 {
813281
813323
  const fullyResolved = this.isFullyResolved();
813282
813324
  return JSON.stringify(
813283
813325
  parse12(
813284
- SerializedTransactionDataV2,
813326
+ SerializedTransactionDataV2Schema,
813285
813327
  fullyResolved ? {
813286
813328
  ...__privateGet6(this, _data).snapshot(),
813287
813329
  digest: __privateGet6(this, _data).getDigest()
@@ -813424,9 +813466,9 @@ resolveArgument_fn = function(arg) {
813424
813466
  if (typeof resolved === "function") {
813425
813467
  return __privateMethod4(this, _Transaction_instances, resolveArgument_fn).call(this, resolved);
813426
813468
  }
813427
- return parse12(Argument2, resolved);
813469
+ return parse12(ArgumentSchema, resolved);
813428
813470
  }
813429
- return parse12(Argument2, arg);
813471
+ return parse12(ArgumentSchema, arg);
813430
813472
  };
813431
813473
  prepareBuild_fn = async function(options24) {
813432
813474
  if (!options24.onlyTransactionKind && !__privateGet6(this, _data).sender) {
@@ -813435,35 +813477,38 @@ prepareBuild_fn = async function(options24) {
813435
813477
  await __privateMethod4(this, _Transaction_instances, runPlugins_fn).call(this, [...__privateGet6(this, _buildPlugins), resolveTransactionPlugin], options24);
813436
813478
  };
813437
813479
  runPlugins_fn = async function(plugins, options24) {
813438
- const createNext = (i54) => {
813439
- if (i54 >= plugins.length) {
813440
- return () => {
813441
- };
813442
- }
813443
- const plugin = plugins[i54];
813444
- return async () => {
813445
- const next = createNext(i54 + 1);
813446
- let calledNext = false;
813447
- let nextResolved = false;
813448
- await plugin(__privateGet6(this, _data), options24, async () => {
813449
- if (calledNext) {
813450
- throw new Error(`next() was call multiple times in TransactionPlugin ${i54}`);
813451
- }
813452
- calledNext = true;
813453
- await next();
813454
- nextResolved = true;
813455
- });
813456
- if (!calledNext) {
813457
- throw new Error(`next() was not called in TransactionPlugin ${i54}`);
813458
- }
813459
- if (!nextResolved) {
813460
- throw new Error(`next() was not awaited in TransactionPlugin ${i54}`);
813480
+ try {
813481
+ const createNext = (i54) => {
813482
+ if (i54 >= plugins.length) {
813483
+ return () => {
813484
+ };
813461
813485
  }
813486
+ const plugin = plugins[i54];
813487
+ return async () => {
813488
+ const next = createNext(i54 + 1);
813489
+ let calledNext = false;
813490
+ let nextResolved = false;
813491
+ await plugin(__privateGet6(this, _data), options24, async () => {
813492
+ if (calledNext) {
813493
+ throw new Error(`next() was call multiple times in TransactionPlugin ${i54}`);
813494
+ }
813495
+ calledNext = true;
813496
+ await next();
813497
+ nextResolved = true;
813498
+ });
813499
+ if (!calledNext) {
813500
+ throw new Error(`next() was not called in TransactionPlugin ${i54}`);
813501
+ }
813502
+ if (!nextResolved) {
813503
+ throw new Error(`next() was not awaited in TransactionPlugin ${i54}`);
813504
+ }
813505
+ };
813462
813506
  };
813463
- };
813464
- await createNext(0)();
813465
- __privateSet6(this, _inputSection, __privateGet6(this, _data).inputs.slice());
813466
- __privateSet6(this, _commandSection, __privateGet6(this, _data).commands.slice());
813507
+ await createNext(0)();
813508
+ } finally {
813509
+ __privateSet6(this, _inputSection, __privateGet6(this, _data).inputs.slice());
813510
+ __privateSet6(this, _commandSection, __privateGet6(this, _data).commands.slice());
813511
+ }
813467
813512
  };
813468
813513
  waitForPendingTasks_fn = async function() {
813469
813514
  while (__privateGet6(this, _pendingPromises).size > 0) {
@@ -813535,7 +813580,7 @@ sortCommandsAndInputs_fn = function() {
813535
813580
  };
813536
813581
  var Transaction7 = _Transaction;
813537
813582
 
813538
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/core.js
813583
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/core.js
813539
813584
  var DEFAULT_MVR_URLS = {
813540
813585
  mainnet: "https://mainnet.mvr.mystenlabs.com",
813541
813586
  testnet: "https://testnet.mvr.mystenlabs.com"
@@ -813620,7 +813665,7 @@ var Experimental_CoreClient = class extends Experimental_BaseClient {
813620
813665
  }
813621
813666
  };
813622
813667
 
813623
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/errors.js
813668
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/errors.js
813624
813669
  var SuiClientError = class extends Error {
813625
813670
  };
813626
813671
  var ObjectError = class _ObjectError extends SuiClientError {
@@ -813651,7 +813696,7 @@ var ObjectError = class _ObjectError extends SuiClientError {
813651
813696
  }
813652
813697
  };
813653
813698
 
813654
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/transports/utils.js
813699
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/transports/utils.js
813655
813700
  function parseTransactionBcs(bytes5) {
813656
813701
  return {
813657
813702
  ...TransactionDataBuilder.fromBytes(bytes5).snapshot(),
@@ -813727,7 +813772,7 @@ function parseTransactionEffectsV2({
813727
813772
  };
813728
813773
  }
813729
813774
 
813730
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/transports/jsonRPC.js
813775
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/experimental/transports/jsonRPC.js
813731
813776
  var __typeError7 = (msg) => {
813732
813777
  throw TypeError(msg);
813733
813778
  };
@@ -814185,7 +814230,7 @@ var Coin = suiBcs.struct("Coin", {
814185
814230
  balance: Balance
814186
814231
  });
814187
814232
 
814188
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/client.js
814233
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/client/client.js
814189
814234
  var SUI_CLIENT_BRAND = Symbol.for("@mysten/SuiClient");
814190
814235
  var SuiClient = class extends Experimental_BaseClient {
814191
814236
  /**
@@ -815026,6 +815071,518 @@ var hydrate10 = (data12) => {
815026
815071
  // ../../libs/coin-modules/coin-sui/lib-es/constants.js
815027
815072
  var ONE_SUI = 1e9;
815028
815073
 
815074
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/publickey.js
815075
+ init_utils2();
815076
+
815077
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/intent.js
815078
+ function messageWithIntent(scope, message2) {
815079
+ return suiBcs.IntentMessage(suiBcs.fixedArray(message2.length, suiBcs.u8())).serialize({
815080
+ intent: {
815081
+ scope: { [scope]: true },
815082
+ version: { V0: true },
815083
+ appId: { Sui: true }
815084
+ },
815085
+ value: message2
815086
+ }).toBytes();
815087
+ }
815088
+
815089
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/signature-scheme.js
815090
+ var SIGNATURE_SCHEME_TO_FLAG = {
815091
+ ED25519: 0,
815092
+ Secp256k1: 1,
815093
+ Secp256r1: 2,
815094
+ MultiSig: 3,
815095
+ ZkLogin: 5,
815096
+ Passkey: 6
815097
+ };
815098
+ var SIGNATURE_SCHEME_TO_SIZE = {
815099
+ ED25519: 32,
815100
+ Secp256k1: 33,
815101
+ Secp256r1: 33,
815102
+ Passkey: 33
815103
+ };
815104
+ var SIGNATURE_FLAG_TO_SCHEME = {
815105
+ 0: "ED25519",
815106
+ 1: "Secp256k1",
815107
+ 2: "Secp256r1",
815108
+ 3: "MultiSig",
815109
+ 5: "ZkLogin",
815110
+ 6: "Passkey"
815111
+ };
815112
+
815113
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/publickey.js
815114
+ function bytesEqual2(a65, b20) {
815115
+ if (a65 === b20)
815116
+ return true;
815117
+ if (a65.length !== b20.length) {
815118
+ return false;
815119
+ }
815120
+ for (let i54 = 0; i54 < a65.length; i54++) {
815121
+ if (a65[i54] !== b20[i54]) {
815122
+ return false;
815123
+ }
815124
+ }
815125
+ return true;
815126
+ }
815127
+ var PublicKey10 = class {
815128
+ /**
815129
+ * Checks if two public keys are equal
815130
+ */
815131
+ equals(publicKey3) {
815132
+ return bytesEqual2(this.toRawBytes(), publicKey3.toRawBytes());
815133
+ }
815134
+ /**
815135
+ * Return the base-64 representation of the public key
815136
+ */
815137
+ toBase64() {
815138
+ return toBase64(this.toRawBytes());
815139
+ }
815140
+ toString() {
815141
+ throw new Error(
815142
+ "`toString` is not implemented on public keys. Use `toBase64()` or `toRawBytes()` instead."
815143
+ );
815144
+ }
815145
+ /**
815146
+ * Return the Sui representation of the public key encoded in
815147
+ * base-64. A Sui public key is formed by the concatenation
815148
+ * of the scheme flag with the raw bytes of the public key
815149
+ */
815150
+ toSuiPublicKey() {
815151
+ const bytes5 = this.toSuiBytes();
815152
+ return toBase64(bytes5);
815153
+ }
815154
+ verifyWithIntent(bytes5, signature4, intent) {
815155
+ const intentMessage = messageWithIntent(intent, bytes5);
815156
+ const digest3 = blake2b2(intentMessage, { dkLen: 32 });
815157
+ return this.verify(digest3, signature4);
815158
+ }
815159
+ /**
815160
+ * Verifies that the signature is valid for for the provided PersonalMessage
815161
+ */
815162
+ verifyPersonalMessage(message2, signature4) {
815163
+ return this.verifyWithIntent(
815164
+ suiBcs.vector(suiBcs.u8()).serialize(message2).toBytes(),
815165
+ signature4,
815166
+ "PersonalMessage"
815167
+ );
815168
+ }
815169
+ /**
815170
+ * Verifies that the signature is valid for for the provided Transaction
815171
+ */
815172
+ verifyTransaction(transaction, signature4) {
815173
+ return this.verifyWithIntent(transaction, signature4, "TransactionData");
815174
+ }
815175
+ /**
815176
+ * Verifies that the public key is associated with the provided address
815177
+ */
815178
+ verifyAddress(address3) {
815179
+ return this.toSuiAddress() === address3;
815180
+ }
815181
+ /**
815182
+ * Returns the bytes representation of the public key
815183
+ * prefixed with the signature scheme flag
815184
+ */
815185
+ toSuiBytes() {
815186
+ const rawBytes = this.toRawBytes();
815187
+ const suiBytes = new Uint8Array(rawBytes.length + 1);
815188
+ suiBytes.set([this.flag()]);
815189
+ suiBytes.set(rawBytes, 1);
815190
+ return suiBytes;
815191
+ }
815192
+ /**
815193
+ * Return the Sui address associated with this Ed25519 public key
815194
+ */
815195
+ toSuiAddress() {
815196
+ return normalizeSuiAddress(
815197
+ bytesToHex(blake2b2(this.toSuiBytes(), { dkLen: 32 })).slice(0, SUI_ADDRESS_LENGTH * 2)
815198
+ );
815199
+ }
815200
+ };
815201
+ function parseSerializedKeypairSignature(serializedSignature) {
815202
+ const bytes5 = fromBase64(serializedSignature);
815203
+ const signatureScheme = SIGNATURE_FLAG_TO_SCHEME[bytes5[0]];
815204
+ switch (signatureScheme) {
815205
+ case "ED25519":
815206
+ case "Secp256k1":
815207
+ case "Secp256r1":
815208
+ const size3 = SIGNATURE_SCHEME_TO_SIZE[signatureScheme];
815209
+ const signature4 = bytes5.slice(1, bytes5.length - size3);
815210
+ const publicKey3 = bytes5.slice(1 + signature4.length);
815211
+ return {
815212
+ serializedSignature,
815213
+ signatureScheme,
815214
+ signature: signature4,
815215
+ publicKey: publicKey3,
815216
+ bytes: bytes5
815217
+ };
815218
+ default:
815219
+ throw new Error("Unsupported signature scheme");
815220
+ }
815221
+ }
815222
+
815223
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/signature.js
815224
+ function toSerializedSignature({
815225
+ signature: signature4,
815226
+ signatureScheme,
815227
+ publicKey: publicKey3
815228
+ }) {
815229
+ if (!publicKey3) {
815230
+ throw new Error("`publicKey` is required");
815231
+ }
815232
+ const pubKeyBytes = publicKey3.toRawBytes();
815233
+ const serializedSignature = new Uint8Array(1 + signature4.length + pubKeyBytes.length);
815234
+ serializedSignature.set([SIGNATURE_SCHEME_TO_FLAG[signatureScheme]]);
815235
+ serializedSignature.set(signature4, 1);
815236
+ serializedSignature.set(pubKeyBytes, 1 + signature4.length);
815237
+ return toBase64(serializedSignature);
815238
+ }
815239
+
815240
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/keypair.js
815241
+ var Signer = class {
815242
+ /**
815243
+ * Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing,
815244
+ * it ensures that a signed message is tied to a specific purpose and domain separator is provided
815245
+ */
815246
+ async signWithIntent(bytes5, intent) {
815247
+ const intentMessage = messageWithIntent(intent, bytes5);
815248
+ const digest3 = blake2b2(intentMessage, { dkLen: 32 });
815249
+ const signature4 = toSerializedSignature({
815250
+ signature: await this.sign(digest3),
815251
+ signatureScheme: this.getKeyScheme(),
815252
+ publicKey: this.getPublicKey()
815253
+ });
815254
+ return {
815255
+ signature: signature4,
815256
+ bytes: toBase64(bytes5)
815257
+ };
815258
+ }
815259
+ /**
815260
+ * Signs provided transaction by calling `signWithIntent()` with a `TransactionData` provided as intent scope
815261
+ */
815262
+ async signTransaction(bytes5) {
815263
+ return this.signWithIntent(bytes5, "TransactionData");
815264
+ }
815265
+ /**
815266
+ * Signs provided personal message by calling `signWithIntent()` with a `PersonalMessage` provided as intent scope
815267
+ */
815268
+ async signPersonalMessage(bytes5) {
815269
+ const { signature: signature4 } = await this.signWithIntent(
815270
+ bcs.vector(bcs.u8()).serialize(bytes5).toBytes(),
815271
+ "PersonalMessage"
815272
+ );
815273
+ return {
815274
+ bytes: toBase64(bytes5),
815275
+ signature: signature4
815276
+ };
815277
+ }
815278
+ async signAndExecuteTransaction({
815279
+ transaction,
815280
+ client
815281
+ }) {
815282
+ const bytes5 = await transaction.build({ client });
815283
+ const { signature: signature4 } = await this.signTransaction(bytes5);
815284
+ const response = await client.core.executeTransaction({
815285
+ transaction: bytes5,
815286
+ signatures: [signature4]
815287
+ });
815288
+ return response.transaction;
815289
+ }
815290
+ toSuiAddress() {
815291
+ return this.getPublicKey().toSuiAddress();
815292
+ }
815293
+ };
815294
+
815295
+ // ../../node_modules/.pnpm/@mysten+sui@1.38.0_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/keypairs/ed25519/publickey.js
815296
+ var PUBLIC_KEY_SIZE = 32;
815297
+ var Ed25519PublicKey3 = class extends PublicKey10 {
815298
+ /**
815299
+ * Create a new Ed25519PublicKey object
815300
+ * @param value ed25519 public key as buffer or base-64 encoded string
815301
+ */
815302
+ constructor(value5) {
815303
+ super();
815304
+ if (typeof value5 === "string") {
815305
+ this.data = fromBase64(value5);
815306
+ } else if (value5 instanceof Uint8Array) {
815307
+ this.data = value5;
815308
+ } else {
815309
+ this.data = Uint8Array.from(value5);
815310
+ }
815311
+ if (this.data.length !== PUBLIC_KEY_SIZE) {
815312
+ throw new Error(
815313
+ `Invalid public key input. Expected ${PUBLIC_KEY_SIZE} bytes, got ${this.data.length}`
815314
+ );
815315
+ }
815316
+ }
815317
+ /**
815318
+ * Checks if two Ed25519 public keys are equal
815319
+ */
815320
+ equals(publicKey3) {
815321
+ return super.equals(publicKey3);
815322
+ }
815323
+ /**
815324
+ * Return the byte array representation of the Ed25519 public key
815325
+ */
815326
+ toRawBytes() {
815327
+ return this.data;
815328
+ }
815329
+ /**
815330
+ * Return the Sui address associated with this Ed25519 public key
815331
+ */
815332
+ flag() {
815333
+ return SIGNATURE_SCHEME_TO_FLAG["ED25519"];
815334
+ }
815335
+ /**
815336
+ * Verifies that the signature is valid for for the provided message
815337
+ */
815338
+ async verify(message2, signature4) {
815339
+ let bytes5;
815340
+ if (typeof signature4 === "string") {
815341
+ const parsed2 = parseSerializedKeypairSignature(signature4);
815342
+ if (parsed2.signatureScheme !== "ED25519") {
815343
+ throw new Error("Invalid signature scheme");
815344
+ }
815345
+ if (!bytesEqual2(this.toRawBytes(), parsed2.publicKey)) {
815346
+ throw new Error("Signature does not match public key");
815347
+ }
815348
+ bytes5 = parsed2.signature;
815349
+ } else {
815350
+ bytes5 = signature4;
815351
+ }
815352
+ return ed25519.verify(bytes5, message2, this.toRawBytes());
815353
+ }
815354
+ };
815355
+ Ed25519PublicKey3.SIZE = PUBLIC_KEY_SIZE;
815356
+
815357
+ // ../../node_modules/.pnpm/@mysten+signers@0.5.0_typescript@5.4.3/node_modules/@mysten/signers/dist/esm/ledger/bcs.js
815358
+ var SUI_FRAMEWORK_ADDRESS2 = normalizeSuiAddress("0x2");
815359
+ var SUI_SYSTEM_ADDRESS2 = normalizeSuiAddress("0x3");
815360
+ var MoveObjectType = suiBcs.enum("MoveObjectType", {
815361
+ Other: suiBcs.StructTag,
815362
+ GasCoin: null,
815363
+ StakedSui: null,
815364
+ Coin: suiBcs.TypeTag
815365
+ });
815366
+ var SuiMoveObject = suiBcs.struct("SuiMoveObject", {
815367
+ data: suiBcs.enum("Data", {
815368
+ MoveObject: suiBcs.struct("MoveObject", {
815369
+ type: MoveObjectType.transform({
815370
+ input: (objectType3) => {
815371
+ const structTag = parseStructTag(objectType3);
815372
+ if (structTag.address === SUI_FRAMEWORK_ADDRESS2 && structTag.module === "coin" && structTag.name === "Coin" && typeof structTag.typeParams[0] === "object") {
815373
+ const innerStructTag = structTag.typeParams[0];
815374
+ if (innerStructTag.address === SUI_FRAMEWORK_ADDRESS2 && innerStructTag.module === "sui" && innerStructTag.name === "SUI") {
815375
+ return { GasCoin: true, $kind: "GasCoin" };
815376
+ }
815377
+ return { Coin: normalizeStructTag(innerStructTag), $kind: "Coin" };
815378
+ } else if (structTag.address === SUI_SYSTEM_ADDRESS2 && structTag.module === "staking_pool" && structTag.name === "StakedSui") {
815379
+ return { StakedSui: true, $kind: "StakedSui" };
815380
+ }
815381
+ return {
815382
+ Other: {
815383
+ ...structTag,
815384
+ typeParams: structTag.typeParams.map((typeParam) => {
815385
+ return TypeTagSerializer.parseFromStr(normalizeStructTag(typeParam));
815386
+ })
815387
+ },
815388
+ $kind: "Other"
815389
+ };
815390
+ }
815391
+ }),
815392
+ hasPublicTransfer: suiBcs.bool(),
815393
+ version: suiBcs.u64(),
815394
+ contents: suiBcs.byteVector().transform({ input: fromBase64 })
815395
+ })
815396
+ }),
815397
+ owner: suiBcs.Owner.transform({
815398
+ input: (objectOwner) => {
815399
+ if (objectOwner === "Immutable") {
815400
+ return { Immutable: null };
815401
+ } else if ("Shared" in objectOwner) {
815402
+ return { Shared: { initialSharedVersion: objectOwner.Shared.initial_shared_version } };
815403
+ } else if ("ConsensusAddressOwner" in objectOwner) {
815404
+ return {
815405
+ ConsensusAddressOwner: {
815406
+ owner: objectOwner.ConsensusAddressOwner.owner,
815407
+ startVersion: objectOwner.ConsensusAddressOwner.start_version
815408
+ }
815409
+ };
815410
+ }
815411
+ return objectOwner;
815412
+ }
815413
+ }),
815414
+ previousTransaction: suiBcs.ObjectDigest,
815415
+ storageRebate: suiBcs.u64()
815416
+ });
815417
+
815418
+ // ../../node_modules/.pnpm/@mysten+signers@0.5.0_typescript@5.4.3/node_modules/@mysten/signers/dist/esm/ledger/objects.js
815419
+ var getInputObjects = async (transaction, client) => {
815420
+ const data12 = transaction.getData();
815421
+ const gasObjectIds = data12.gasData.payment?.map((object7) => object7.objectId) ?? [];
815422
+ const inputObjectIds = data12.inputs.map((input) => {
815423
+ return input.$kind === "Object" && input.Object.$kind === "ImmOrOwnedObject" ? input.Object.ImmOrOwnedObject.objectId : null;
815424
+ }).filter((objectId) => !!objectId);
815425
+ const objects = await client.multiGetObjects({
815426
+ ids: [...gasObjectIds, ...inputObjectIds],
815427
+ options: {
815428
+ showBcs: true,
815429
+ showPreviousTransaction: true,
815430
+ showStorageRebate: true,
815431
+ showOwner: true
815432
+ }
815433
+ });
815434
+ const bcsObjects = objects.map((object7) => {
815435
+ if (object7.error || !object7.data || object7.data.bcs?.dataType !== "moveObject") {
815436
+ return null;
815437
+ }
815438
+ return SuiMoveObject.serialize({
815439
+ data: {
815440
+ MoveObject: {
815441
+ type: object7.data.bcs.type,
815442
+ hasPublicTransfer: object7.data.bcs.hasPublicTransfer,
815443
+ version: object7.data.bcs.version,
815444
+ contents: object7.data.bcs.bcsBytes
815445
+ }
815446
+ },
815447
+ owner: object7.data.owner,
815448
+ previousTransaction: object7.data.previousTransaction,
815449
+ storageRebate: object7.data.storageRebate
815450
+ }).toBytes();
815451
+ }).filter((bcsBytes) => !!bcsBytes);
815452
+ return { bcsObjects };
815453
+ };
815454
+
815455
+ // ../../node_modules/.pnpm/@mysten+signers@0.5.0_typescript@5.4.3/node_modules/@mysten/signers/dist/esm/ledger/index.js
815456
+ var __typeError8 = (msg) => {
815457
+ throw TypeError(msg);
815458
+ };
815459
+ var __accessCheck8 = (obj2, member2, msg) => member2.has(obj2) || __typeError8("Cannot " + msg);
815460
+ var __privateGet8 = (obj2, member2, getter) => (__accessCheck8(obj2, member2, "read from private field"), getter ? getter.call(obj2) : member2.get(obj2));
815461
+ var __privateAdd8 = (obj2, member2, value5) => member2.has(obj2) ? __typeError8("Cannot add the same private member more than once") : member2 instanceof WeakSet ? member2.add(obj2) : member2.set(obj2, value5);
815462
+ var __privateSet8 = (obj2, member2, value5, setter) => (__accessCheck8(obj2, member2, "write to private field"), setter ? setter.call(obj2, value5) : member2.set(obj2, value5), value5);
815463
+ var _derivationPath;
815464
+ var _publicKey;
815465
+ var _ledgerClient;
815466
+ var _suiClient;
815467
+ var _LedgerSigner = class _LedgerSigner2 extends Signer {
815468
+ /**
815469
+ * Creates an instance of LedgerSigner. It's expected to call the static `fromDerivationPath` method to create an instance.
815470
+ * @example
815471
+ * ```
815472
+ * const signer = await LedgerSigner.fromDerivationPath(derivationPath, options);
815473
+ * ```
815474
+ */
815475
+ constructor({ publicKey: publicKey3, derivationPath, ledgerClient, suiClient }) {
815476
+ super();
815477
+ __privateAdd8(this, _derivationPath);
815478
+ __privateAdd8(this, _publicKey);
815479
+ __privateAdd8(this, _ledgerClient);
815480
+ __privateAdd8(this, _suiClient);
815481
+ __privateSet8(this, _publicKey, publicKey3);
815482
+ __privateSet8(this, _derivationPath, derivationPath);
815483
+ __privateSet8(this, _ledgerClient, ledgerClient);
815484
+ __privateSet8(this, _suiClient, suiClient);
815485
+ }
815486
+ /**
815487
+ * Retrieves the key scheme used by this signer.
815488
+ */
815489
+ getKeyScheme() {
815490
+ return "ED25519";
815491
+ }
815492
+ /**
815493
+ * Retrieves the public key associated with this signer.
815494
+ * @returns The Ed25519PublicKey instance.
815495
+ */
815496
+ getPublicKey() {
815497
+ return __privateGet8(this, _publicKey);
815498
+ }
815499
+ /**
815500
+ * Signs the provided transaction bytes.
815501
+ * @returns The signed transaction bytes and signature.
815502
+ */
815503
+ async signTransaction(bytes5) {
815504
+ const transactionOptions = await getInputObjects(
815505
+ Transaction7.from(bytes5),
815506
+ __privateGet8(this, _suiClient)
815507
+ ).catch(() => ({
815508
+ // Fail gracefully so network errors or serialization issues don't break transaction signing:
815509
+ bcsObjects: []
815510
+ }));
815511
+ const intentMessage = messageWithIntent("TransactionData", bytes5);
815512
+ const { signature: signature4 } = await __privateGet8(this, _ledgerClient).signTransaction(
815513
+ __privateGet8(this, _derivationPath),
815514
+ intentMessage,
815515
+ transactionOptions
815516
+ );
815517
+ return {
815518
+ bytes: toBase64(bytes5),
815519
+ signature: toSerializedSignature({
815520
+ signature: signature4,
815521
+ signatureScheme: this.getKeyScheme(),
815522
+ publicKey: __privateGet8(this, _publicKey)
815523
+ })
815524
+ };
815525
+ }
815526
+ /**
815527
+ * Signs the provided personal message.
815528
+ * @returns The signed message bytes and signature.
815529
+ */
815530
+ async signPersonalMessage(bytes5) {
815531
+ const intentMessage = messageWithIntent(
815532
+ "PersonalMessage",
815533
+ suiBcs.byteVector().serialize(bytes5).toBytes()
815534
+ );
815535
+ const { signature: signature4 } = await __privateGet8(this, _ledgerClient).signTransaction(
815536
+ __privateGet8(this, _derivationPath),
815537
+ intentMessage
815538
+ );
815539
+ return {
815540
+ bytes: toBase64(bytes5),
815541
+ signature: toSerializedSignature({
815542
+ signature: signature4,
815543
+ signatureScheme: this.getKeyScheme(),
815544
+ publicKey: __privateGet8(this, _publicKey)
815545
+ })
815546
+ };
815547
+ }
815548
+ /**
815549
+ * Prepares the signer by fetching and setting the public key from a Ledger device.
815550
+ * It is recommended to initialize an `LedgerSigner` instance using this function.
815551
+ * @returns A promise that resolves once a `LedgerSigner` instance is prepared (public key is set).
815552
+ */
815553
+ static async fromDerivationPath(derivationPath, ledgerClient, suiClient) {
815554
+ const { publicKey: publicKey3 } = await ledgerClient.getPublicKey(derivationPath);
815555
+ if (!publicKey3) {
815556
+ throw new Error("Failed to get public key from Ledger.");
815557
+ }
815558
+ return new _LedgerSigner2({
815559
+ derivationPath,
815560
+ publicKey: new Ed25519PublicKey3(publicKey3),
815561
+ ledgerClient,
815562
+ suiClient
815563
+ });
815564
+ }
815565
+ /**
815566
+ * Generic signing is not supported by Ledger.
815567
+ * @throws Always throws an error indicating generic signing is unsupported.
815568
+ */
815569
+ sign() {
815570
+ throw new Error("Ledger Signer does not support generic signing.");
815571
+ }
815572
+ /**
815573
+ * Generic signing is not supported by Ledger.
815574
+ * @throws Always throws an error indicating generic signing is unsupported.
815575
+ */
815576
+ signWithIntent() {
815577
+ throw new Error("Ledger Signer does not support generic signing.");
815578
+ }
815579
+ };
815580
+ _derivationPath = /* @__PURE__ */ new WeakMap();
815581
+ _publicKey = /* @__PURE__ */ new WeakMap();
815582
+ _ledgerClient = /* @__PURE__ */ new WeakMap();
815583
+ _suiClient = /* @__PURE__ */ new WeakMap();
815584
+ var LedgerSigner = _LedgerSigner;
815585
+
815029
815586
  // ../../libs/coin-modules/coin-sui/lib-es/network/sdk.js
815030
815587
  var apiMap = {};
815031
815588
  var TRANSACTIONS_LIMIT_PER_QUERY = 50;
@@ -815324,7 +815881,7 @@ var getCoinsForAmount = async (api7, address3, coinType, requiredAmount) => {
815324
815881
  }
815325
815882
  return coins;
815326
815883
  };
815327
- var createTransaction25 = async (address3, transaction) => withApi2(async (api7) => {
815884
+ var createTransaction25 = async (address3, transaction, withObjects = false) => withApi2(async (api7) => {
815328
815885
  const tx = new Transaction7();
815329
815886
  tx.setSender(ensureAddressFormat(address3));
815330
815887
  const { mode, amount } = transaction;
@@ -815380,10 +815937,15 @@ var createTransaction25 = async (address3, transaction) => withApi2(async (api7)
815380
815937
  }
815381
815938
  }
815382
815939
  }
815383
- return tx.build({ client: api7 });
815940
+ const serialized = await tx.build({ client: api7 });
815941
+ if (withObjects) {
815942
+ const { bcsObjects } = await getInputObjects(tx, api7);
815943
+ return { unsigned: serialized, objects: bcsObjects };
815944
+ }
815945
+ return { unsigned: serialized };
815384
815946
  });
815385
815947
  var paymentInfo3 = async (sender, fakeTransaction) => withApi2(async (api7) => {
815386
- const txb = await createTransaction25(sender, fakeTransaction);
815948
+ const { unsigned: txb } = await createTransaction25(sender, fakeTransaction);
815387
815949
  const dryRunTxResponse = await api7.dryRunTransactionBlock({ transactionBlock: txb });
815388
815950
  const fees2 = getTotalGasUsed(dryRunTxResponse.effects);
815389
815951
  return {
@@ -815511,19 +816073,18 @@ var network_default3 = {
815511
816073
  };
815512
816074
 
815513
816075
  // ../../libs/coin-modules/coin-sui/lib-es/logic/craftTransaction.js
815514
- async function craftTransaction5({ amount, asset, recipient, sender, type: type4, ...extra }) {
816076
+ async function craftTransaction5({ amount, asset, recipient, sender, type: type4, ...extra }, withObjects = false) {
815515
816077
  let coinType = DEFAULT_COIN_TYPE;
815516
816078
  if (asset.type === "token" && asset.assetReference) {
815517
816079
  coinType = asset.assetReference;
815518
816080
  }
815519
- const unsigned2 = await network_default3.createTransaction(sender, {
816081
+ return network_default3.createTransaction(sender, {
815520
816082
  amount: (0, import_bignumber302.default)(amount.toString()),
815521
816083
  coinType,
815522
816084
  mode: type4,
815523
816085
  recipient,
815524
816086
  ...extra
815525
- });
815526
- return { unsigned: unsigned2 };
816087
+ }, withObjects);
815527
816088
  }
815528
816089
 
815529
816090
  // ../../libs/coin-modules/coin-sui/lib-es/logic/estimateFees.js
@@ -815908,519 +816469,6 @@ var import_bignumber311 = require("bignumber.js");
815908
816469
  var import_rxjs148 = require("rxjs");
815909
816470
  init_lib_es();
815910
816471
 
815911
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/publickey.js
815912
- init_utils2();
815913
-
815914
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/intent.js
815915
- function messageWithIntent(scope, message2) {
815916
- return suiBcs.IntentMessage(suiBcs.fixedArray(message2.length, suiBcs.u8())).serialize({
815917
- intent: {
815918
- scope: { [scope]: true },
815919
- version: { V0: true },
815920
- appId: { Sui: true }
815921
- },
815922
- value: message2
815923
- }).toBytes();
815924
- }
815925
-
815926
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/signature-scheme.js
815927
- var SIGNATURE_SCHEME_TO_FLAG = {
815928
- ED25519: 0,
815929
- Secp256k1: 1,
815930
- Secp256r1: 2,
815931
- MultiSig: 3,
815932
- ZkLogin: 5,
815933
- Passkey: 6
815934
- };
815935
- var SIGNATURE_SCHEME_TO_SIZE = {
815936
- ED25519: 32,
815937
- Secp256k1: 33,
815938
- Secp256r1: 33,
815939
- Passkey: 33
815940
- };
815941
- var SIGNATURE_FLAG_TO_SCHEME = {
815942
- 0: "ED25519",
815943
- 1: "Secp256k1",
815944
- 2: "Secp256r1",
815945
- 3: "MultiSig",
815946
- 5: "ZkLogin",
815947
- 6: "Passkey"
815948
- };
815949
-
815950
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/publickey.js
815951
- function bytesEqual2(a65, b20) {
815952
- if (a65 === b20)
815953
- return true;
815954
- if (a65.length !== b20.length) {
815955
- return false;
815956
- }
815957
- for (let i54 = 0; i54 < a65.length; i54++) {
815958
- if (a65[i54] !== b20[i54]) {
815959
- return false;
815960
- }
815961
- }
815962
- return true;
815963
- }
815964
- var PublicKey10 = class {
815965
- /**
815966
- * Checks if two public keys are equal
815967
- */
815968
- equals(publicKey3) {
815969
- return bytesEqual2(this.toRawBytes(), publicKey3.toRawBytes());
815970
- }
815971
- /**
815972
- * Return the base-64 representation of the public key
815973
- */
815974
- toBase64() {
815975
- return toBase64(this.toRawBytes());
815976
- }
815977
- toString() {
815978
- throw new Error(
815979
- "`toString` is not implemented on public keys. Use `toBase64()` or `toRawBytes()` instead."
815980
- );
815981
- }
815982
- /**
815983
- * Return the Sui representation of the public key encoded in
815984
- * base-64. A Sui public key is formed by the concatenation
815985
- * of the scheme flag with the raw bytes of the public key
815986
- */
815987
- toSuiPublicKey() {
815988
- const bytes5 = this.toSuiBytes();
815989
- return toBase64(bytes5);
815990
- }
815991
- verifyWithIntent(bytes5, signature4, intent) {
815992
- const intentMessage = messageWithIntent(intent, bytes5);
815993
- const digest3 = blake2b2(intentMessage, { dkLen: 32 });
815994
- return this.verify(digest3, signature4);
815995
- }
815996
- /**
815997
- * Verifies that the signature is valid for for the provided PersonalMessage
815998
- */
815999
- verifyPersonalMessage(message2, signature4) {
816000
- return this.verifyWithIntent(
816001
- suiBcs.vector(suiBcs.u8()).serialize(message2).toBytes(),
816002
- signature4,
816003
- "PersonalMessage"
816004
- );
816005
- }
816006
- /**
816007
- * Verifies that the signature is valid for for the provided Transaction
816008
- */
816009
- verifyTransaction(transaction, signature4) {
816010
- return this.verifyWithIntent(transaction, signature4, "TransactionData");
816011
- }
816012
- /**
816013
- * Verifies that the public key is associated with the provided address
816014
- */
816015
- verifyAddress(address3) {
816016
- return this.toSuiAddress() === address3;
816017
- }
816018
- /**
816019
- * Returns the bytes representation of the public key
816020
- * prefixed with the signature scheme flag
816021
- */
816022
- toSuiBytes() {
816023
- const rawBytes = this.toRawBytes();
816024
- const suiBytes = new Uint8Array(rawBytes.length + 1);
816025
- suiBytes.set([this.flag()]);
816026
- suiBytes.set(rawBytes, 1);
816027
- return suiBytes;
816028
- }
816029
- /**
816030
- * Return the Sui address associated with this Ed25519 public key
816031
- */
816032
- toSuiAddress() {
816033
- return normalizeSuiAddress(
816034
- bytesToHex(blake2b2(this.toSuiBytes(), { dkLen: 32 })).slice(0, SUI_ADDRESS_LENGTH * 2)
816035
- );
816036
- }
816037
- };
816038
- function parseSerializedKeypairSignature(serializedSignature) {
816039
- const bytes5 = fromBase64(serializedSignature);
816040
- const signatureScheme = SIGNATURE_FLAG_TO_SCHEME[bytes5[0]];
816041
- switch (signatureScheme) {
816042
- case "ED25519":
816043
- case "Secp256k1":
816044
- case "Secp256r1":
816045
- const size3 = SIGNATURE_SCHEME_TO_SIZE[signatureScheme];
816046
- const signature4 = bytes5.slice(1, bytes5.length - size3);
816047
- const publicKey3 = bytes5.slice(1 + signature4.length);
816048
- return {
816049
- serializedSignature,
816050
- signatureScheme,
816051
- signature: signature4,
816052
- publicKey: publicKey3,
816053
- bytes: bytes5
816054
- };
816055
- default:
816056
- throw new Error("Unsupported signature scheme");
816057
- }
816058
- }
816059
-
816060
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/signature.js
816061
- function toSerializedSignature({
816062
- signature: signature4,
816063
- signatureScheme,
816064
- publicKey: publicKey3
816065
- }) {
816066
- if (!publicKey3) {
816067
- throw new Error("`publicKey` is required");
816068
- }
816069
- const pubKeyBytes = publicKey3.toRawBytes();
816070
- const serializedSignature = new Uint8Array(1 + signature4.length + pubKeyBytes.length);
816071
- serializedSignature.set([SIGNATURE_SCHEME_TO_FLAG[signatureScheme]]);
816072
- serializedSignature.set(signature4, 1);
816073
- serializedSignature.set(pubKeyBytes, 1 + signature4.length);
816074
- return toBase64(serializedSignature);
816075
- }
816076
-
816077
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/cryptography/keypair.js
816078
- var Signer = class {
816079
- /**
816080
- * Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing,
816081
- * it ensures that a signed message is tied to a specific purpose and domain separator is provided
816082
- */
816083
- async signWithIntent(bytes5, intent) {
816084
- const intentMessage = messageWithIntent(intent, bytes5);
816085
- const digest3 = blake2b2(intentMessage, { dkLen: 32 });
816086
- const signature4 = toSerializedSignature({
816087
- signature: await this.sign(digest3),
816088
- signatureScheme: this.getKeyScheme(),
816089
- publicKey: this.getPublicKey()
816090
- });
816091
- return {
816092
- signature: signature4,
816093
- bytes: toBase64(bytes5)
816094
- };
816095
- }
816096
- /**
816097
- * Signs provided transaction by calling `signWithIntent()` with a `TransactionData` provided as intent scope
816098
- */
816099
- async signTransaction(bytes5) {
816100
- return this.signWithIntent(bytes5, "TransactionData");
816101
- }
816102
- /**
816103
- * Signs provided personal message by calling `signWithIntent()` with a `PersonalMessage` provided as intent scope
816104
- */
816105
- async signPersonalMessage(bytes5) {
816106
- const { signature: signature4 } = await this.signWithIntent(
816107
- bcs.vector(bcs.u8()).serialize(bytes5).toBytes(),
816108
- "PersonalMessage"
816109
- );
816110
- return {
816111
- bytes: toBase64(bytes5),
816112
- signature: signature4
816113
- };
816114
- }
816115
- async signAndExecuteTransaction({
816116
- transaction,
816117
- client
816118
- }) {
816119
- const bytes5 = await transaction.build({ client });
816120
- const { signature: signature4 } = await this.signTransaction(bytes5);
816121
- const response = await client.core.executeTransaction({
816122
- transaction: bytes5,
816123
- signatures: [signature4]
816124
- });
816125
- return response.transaction;
816126
- }
816127
- toSuiAddress() {
816128
- return this.getPublicKey().toSuiAddress();
816129
- }
816130
- };
816131
-
816132
- // ../../node_modules/.pnpm/@mysten+sui@1.37.1_typescript@5.4.3/node_modules/@mysten/sui/dist/esm/keypairs/ed25519/publickey.js
816133
- var PUBLIC_KEY_SIZE = 32;
816134
- var Ed25519PublicKey3 = class extends PublicKey10 {
816135
- /**
816136
- * Create a new Ed25519PublicKey object
816137
- * @param value ed25519 public key as buffer or base-64 encoded string
816138
- */
816139
- constructor(value5) {
816140
- super();
816141
- if (typeof value5 === "string") {
816142
- this.data = fromBase64(value5);
816143
- } else if (value5 instanceof Uint8Array) {
816144
- this.data = value5;
816145
- } else {
816146
- this.data = Uint8Array.from(value5);
816147
- }
816148
- if (this.data.length !== PUBLIC_KEY_SIZE) {
816149
- throw new Error(
816150
- `Invalid public key input. Expected ${PUBLIC_KEY_SIZE} bytes, got ${this.data.length}`
816151
- );
816152
- }
816153
- }
816154
- /**
816155
- * Checks if two Ed25519 public keys are equal
816156
- */
816157
- equals(publicKey3) {
816158
- return super.equals(publicKey3);
816159
- }
816160
- /**
816161
- * Return the byte array representation of the Ed25519 public key
816162
- */
816163
- toRawBytes() {
816164
- return this.data;
816165
- }
816166
- /**
816167
- * Return the Sui address associated with this Ed25519 public key
816168
- */
816169
- flag() {
816170
- return SIGNATURE_SCHEME_TO_FLAG["ED25519"];
816171
- }
816172
- /**
816173
- * Verifies that the signature is valid for for the provided message
816174
- */
816175
- async verify(message2, signature4) {
816176
- let bytes5;
816177
- if (typeof signature4 === "string") {
816178
- const parsed2 = parseSerializedKeypairSignature(signature4);
816179
- if (parsed2.signatureScheme !== "ED25519") {
816180
- throw new Error("Invalid signature scheme");
816181
- }
816182
- if (!bytesEqual2(this.toRawBytes(), parsed2.publicKey)) {
816183
- throw new Error("Signature does not match public key");
816184
- }
816185
- bytes5 = parsed2.signature;
816186
- } else {
816187
- bytes5 = signature4;
816188
- }
816189
- return ed25519.verify(bytes5, message2, this.toRawBytes());
816190
- }
816191
- };
816192
- Ed25519PublicKey3.SIZE = PUBLIC_KEY_SIZE;
816193
-
816194
- // ../../node_modules/.pnpm/@mysten+signers@0.3.4_typescript@5.4.3/node_modules/@mysten/signers/dist/esm/ledger/bcs.js
816195
- var SUI_FRAMEWORK_ADDRESS2 = normalizeSuiAddress("0x2");
816196
- var SUI_SYSTEM_ADDRESS2 = normalizeSuiAddress("0x3");
816197
- var MoveObjectType = suiBcs.enum("MoveObjectType", {
816198
- Other: suiBcs.StructTag,
816199
- GasCoin: null,
816200
- StakedSui: null,
816201
- Coin: suiBcs.TypeTag
816202
- });
816203
- var SuiMoveObject = suiBcs.struct("SuiMoveObject", {
816204
- data: suiBcs.enum("Data", {
816205
- MoveObject: suiBcs.struct("MoveObject", {
816206
- type: MoveObjectType.transform({
816207
- input: (objectType3) => {
816208
- const structTag = parseStructTag(objectType3);
816209
- if (structTag.address === SUI_FRAMEWORK_ADDRESS2 && structTag.module === "coin" && structTag.name === "Coin" && typeof structTag.typeParams[0] === "object") {
816210
- const innerStructTag = structTag.typeParams[0];
816211
- if (innerStructTag.address === SUI_FRAMEWORK_ADDRESS2 && innerStructTag.module === "sui" && innerStructTag.name === "SUI") {
816212
- return { GasCoin: true, $kind: "GasCoin" };
816213
- }
816214
- return { Coin: normalizeStructTag(innerStructTag), $kind: "Coin" };
816215
- } else if (structTag.address === SUI_SYSTEM_ADDRESS2 && structTag.module === "staking_pool" && structTag.name === "StakedSui") {
816216
- return { StakedSui: true, $kind: "StakedSui" };
816217
- }
816218
- return {
816219
- Other: {
816220
- ...structTag,
816221
- typeParams: structTag.typeParams.map((typeParam) => {
816222
- return TypeTagSerializer.parseFromStr(normalizeStructTag(typeParam));
816223
- })
816224
- },
816225
- $kind: "Other"
816226
- };
816227
- }
816228
- }),
816229
- hasPublicTransfer: suiBcs.bool(),
816230
- version: suiBcs.u64(),
816231
- contents: suiBcs.byteVector().transform({ input: fromBase64 })
816232
- })
816233
- }),
816234
- owner: suiBcs.Owner.transform({
816235
- input: (objectOwner) => {
816236
- if (objectOwner === "Immutable") {
816237
- return { Immutable: null };
816238
- } else if ("Shared" in objectOwner) {
816239
- return { Shared: { initialSharedVersion: objectOwner.Shared.initial_shared_version } };
816240
- } else if ("ConsensusAddressOwner" in objectOwner) {
816241
- return {
816242
- ConsensusAddressOwner: {
816243
- owner: objectOwner.ConsensusAddressOwner.owner,
816244
- startVersion: objectOwner.ConsensusAddressOwner.start_version
816245
- }
816246
- };
816247
- }
816248
- return objectOwner;
816249
- }
816250
- }),
816251
- previousTransaction: suiBcs.ObjectDigest,
816252
- storageRebate: suiBcs.u64()
816253
- });
816254
-
816255
- // ../../node_modules/.pnpm/@mysten+signers@0.3.4_typescript@5.4.3/node_modules/@mysten/signers/dist/esm/ledger/index.js
816256
- var __typeError8 = (msg) => {
816257
- throw TypeError(msg);
816258
- };
816259
- var __accessCheck8 = (obj2, member2, msg) => member2.has(obj2) || __typeError8("Cannot " + msg);
816260
- var __privateGet8 = (obj2, member2, getter) => (__accessCheck8(obj2, member2, "read from private field"), getter ? getter.call(obj2) : member2.get(obj2));
816261
- var __privateAdd8 = (obj2, member2, value5) => member2.has(obj2) ? __typeError8("Cannot add the same private member more than once") : member2 instanceof WeakSet ? member2.add(obj2) : member2.set(obj2, value5);
816262
- var __privateSet8 = (obj2, member2, value5, setter) => (__accessCheck8(obj2, member2, "write to private field"), setter ? setter.call(obj2, value5) : member2.set(obj2, value5), value5);
816263
- var __privateMethod5 = (obj2, member2, method2) => (__accessCheck8(obj2, member2, "access private method"), method2);
816264
- var _derivationPath;
816265
- var _publicKey;
816266
- var _ledgerClient;
816267
- var _suiClient;
816268
- var _LedgerSigner_instances;
816269
- var getClearSigningOptions_fn;
816270
- var _LedgerSigner = class _LedgerSigner2 extends Signer {
816271
- /**
816272
- * Creates an instance of LedgerSigner. It's expected to call the static `fromDerivationPath` method to create an instance.
816273
- * @example
816274
- * ```
816275
- * const signer = await LedgerSigner.fromDerivationPath(derivationPath, options);
816276
- * ```
816277
- */
816278
- constructor({ publicKey: publicKey3, derivationPath, ledgerClient, suiClient }) {
816279
- super();
816280
- __privateAdd8(this, _LedgerSigner_instances);
816281
- __privateAdd8(this, _derivationPath);
816282
- __privateAdd8(this, _publicKey);
816283
- __privateAdd8(this, _ledgerClient);
816284
- __privateAdd8(this, _suiClient);
816285
- __privateSet8(this, _publicKey, publicKey3);
816286
- __privateSet8(this, _derivationPath, derivationPath);
816287
- __privateSet8(this, _ledgerClient, ledgerClient);
816288
- __privateSet8(this, _suiClient, suiClient);
816289
- }
816290
- /**
816291
- * Retrieves the key scheme used by this signer.
816292
- */
816293
- getKeyScheme() {
816294
- return "ED25519";
816295
- }
816296
- /**
816297
- * Retrieves the public key associated with this signer.
816298
- * @returns The Ed25519PublicKey instance.
816299
- */
816300
- getPublicKey() {
816301
- return __privateGet8(this, _publicKey);
816302
- }
816303
- /**
816304
- * Signs the provided transaction bytes.
816305
- * @returns The signed transaction bytes and signature.
816306
- */
816307
- async signTransaction(bytes5) {
816308
- const transactionOptions = await __privateMethod5(this, _LedgerSigner_instances, getClearSigningOptions_fn).call(this, bytes5).catch(() => ({
816309
- // Fail gracefully so network errors or serialization issues don't break transaction signing:
816310
- bcsObjects: []
816311
- }));
816312
- const intentMessage = messageWithIntent("TransactionData", bytes5);
816313
- const { signature: signature4 } = await __privateGet8(this, _ledgerClient).signTransaction(
816314
- __privateGet8(this, _derivationPath),
816315
- intentMessage,
816316
- transactionOptions
816317
- );
816318
- return {
816319
- bytes: toBase64(bytes5),
816320
- signature: toSerializedSignature({
816321
- signature: signature4,
816322
- signatureScheme: this.getKeyScheme(),
816323
- publicKey: __privateGet8(this, _publicKey)
816324
- })
816325
- };
816326
- }
816327
- /**
816328
- * Signs the provided personal message.
816329
- * @returns The signed message bytes and signature.
816330
- */
816331
- async signPersonalMessage(bytes5) {
816332
- const intentMessage = messageWithIntent(
816333
- "PersonalMessage",
816334
- suiBcs.byteVector().serialize(bytes5).toBytes()
816335
- );
816336
- const { signature: signature4 } = await __privateGet8(this, _ledgerClient).signTransaction(
816337
- __privateGet8(this, _derivationPath),
816338
- intentMessage
816339
- );
816340
- return {
816341
- bytes: toBase64(bytes5),
816342
- signature: toSerializedSignature({
816343
- signature: signature4,
816344
- signatureScheme: this.getKeyScheme(),
816345
- publicKey: __privateGet8(this, _publicKey)
816346
- })
816347
- };
816348
- }
816349
- /**
816350
- * Prepares the signer by fetching and setting the public key from a Ledger device.
816351
- * It is recommended to initialize an `LedgerSigner` instance using this function.
816352
- * @returns A promise that resolves once a `LedgerSigner` instance is prepared (public key is set).
816353
- */
816354
- static async fromDerivationPath(derivationPath, ledgerClient, suiClient) {
816355
- const { publicKey: publicKey3 } = await ledgerClient.getPublicKey(derivationPath);
816356
- if (!publicKey3) {
816357
- throw new Error("Failed to get public key from Ledger.");
816358
- }
816359
- return new _LedgerSigner2({
816360
- derivationPath,
816361
- publicKey: new Ed25519PublicKey3(publicKey3),
816362
- ledgerClient,
816363
- suiClient
816364
- });
816365
- }
816366
- /**
816367
- * Generic signing is not supported by Ledger.
816368
- * @throws Always throws an error indicating generic signing is unsupported.
816369
- */
816370
- sign() {
816371
- throw new Error("Ledger Signer does not support generic signing.");
816372
- }
816373
- /**
816374
- * Generic signing is not supported by Ledger.
816375
- * @throws Always throws an error indicating generic signing is unsupported.
816376
- */
816377
- signWithIntent() {
816378
- throw new Error("Ledger Signer does not support generic signing.");
816379
- }
816380
- };
816381
- _derivationPath = /* @__PURE__ */ new WeakMap();
816382
- _publicKey = /* @__PURE__ */ new WeakMap();
816383
- _ledgerClient = /* @__PURE__ */ new WeakMap();
816384
- _suiClient = /* @__PURE__ */ new WeakMap();
816385
- _LedgerSigner_instances = /* @__PURE__ */ new WeakSet();
816386
- getClearSigningOptions_fn = async function(transactionBytes) {
816387
- const transaction = Transaction7.from(transactionBytes);
816388
- const data12 = transaction.getData();
816389
- const gasObjectIds = data12.gasData.payment?.map((object7) => object7.objectId) ?? [];
816390
- const inputObjectIds = data12.inputs.map((input) => {
816391
- return input.$kind === "Object" && input.Object.$kind === "ImmOrOwnedObject" ? input.Object.ImmOrOwnedObject.objectId : null;
816392
- }).filter((objectId) => !!objectId);
816393
- const objects = await __privateGet8(this, _suiClient).multiGetObjects({
816394
- ids: [...gasObjectIds, ...inputObjectIds],
816395
- options: {
816396
- showBcs: true,
816397
- showPreviousTransaction: true,
816398
- showStorageRebate: true,
816399
- showOwner: true
816400
- }
816401
- });
816402
- const bcsObjects = objects.map((object7) => {
816403
- if (object7.error || !object7.data || object7.data.bcs?.dataType !== "moveObject") {
816404
- return null;
816405
- }
816406
- return SuiMoveObject.serialize({
816407
- data: {
816408
- MoveObject: {
816409
- type: object7.data.bcs.type,
816410
- hasPublicTransfer: object7.data.bcs.hasPublicTransfer,
816411
- version: object7.data.bcs.version,
816412
- contents: object7.data.bcs.bcsBytes
816413
- }
816414
- },
816415
- owner: object7.data.owner,
816416
- previousTransaction: object7.data.previousTransaction,
816417
- storageRebate: object7.data.storageRebate
816418
- }).toBytes();
816419
- }).filter((bcsBytes) => !!bcsBytes);
816420
- return { bcsObjects };
816421
- };
816422
- var LedgerSigner = _LedgerSigner;
816423
-
816424
816472
  // ../../libs/coin-modules/coin-sui/lib-es/bridge/buildOptimisticOperation.js
816425
816473
  var import_bignumber310 = __toESM(require("bignumber.js"));
816426
816474
  var MODE_TO_TYPE3 = {
@@ -816764,7 +816812,7 @@ function createBridges23(signerContext4, coinConfig19) {
816764
816812
  };
816765
816813
  }
816766
816814
 
816767
- // ../../node_modules/.pnpm/@mysten+ledgerjs-hw-app-sui@0.5.2/node_modules/@mysten/ledgerjs-hw-app-sui/dist/esm/Sui.js
816815
+ // ../../node_modules/.pnpm/@mysten+ledgerjs-hw-app-sui@0.6.0/node_modules/@mysten/ledgerjs-hw-app-sui/dist/esm/Sui.js
816768
816816
  var import_fast_sha256 = __toESM(require_sha25611(), 1);
816769
816817
  var __typeError9 = (msg) => {
816770
816818
  throw TypeError(msg);
@@ -816773,7 +816821,7 @@ var __accessCheck9 = (obj2, member2, msg) => member2.has(obj2) || __typeError9("
816773
816821
  var __privateGet9 = (obj2, member2, getter) => (__accessCheck9(obj2, member2, "read from private field"), getter ? getter.call(obj2) : member2.get(obj2));
816774
816822
  var __privateAdd9 = (obj2, member2, value5) => member2.has(obj2) ? __typeError9("Cannot add the same private member more than once") : member2 instanceof WeakSet ? member2.add(obj2) : member2.set(obj2, value5);
816775
816823
  var __privateSet9 = (obj2, member2, value5, setter) => (__accessCheck9(obj2, member2, "write to private field"), setter ? setter.call(obj2, value5) : member2.set(obj2, value5), value5);
816776
- var __privateMethod6 = (obj2, member2, method2) => (__accessCheck9(obj2, member2, "access private method"), method2);
816824
+ var __privateMethod5 = (obj2, member2, method2) => (__accessCheck9(obj2, member2, "access private method"), method2);
816777
816825
  var _verbose;
816778
816826
  var _Sui_instances;
816779
816827
  var internalGetVersion_fn;
@@ -816812,7 +816860,7 @@ var Sui = class {
816812
816860
  const p1 = 0;
816813
816861
  const p210 = 0;
816814
816862
  const payload = buildBip32KeyPayload(path4);
816815
- const response = await __privateMethod6(this, _Sui_instances, sendChunks_fn).call(this, cla, ins, p1, p210, payload);
816863
+ const response = await __privateMethod5(this, _Sui_instances, sendChunks_fn).call(this, cla, ins, p1, p210, payload);
816816
816864
  const keySize = response[0];
816817
816865
  const publicKey3 = response.slice(1, keySize + 1);
816818
816866
  let address3 = null;
@@ -816839,18 +816887,18 @@ var Sui = class {
816839
816887
  const p1 = 0;
816840
816888
  const p210 = 0;
816841
816889
  if (__privateGet9(this, _verbose))
816842
- __privateMethod6(this, _Sui_instances, log_fn).call(this, txn);
816890
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, txn);
816843
816891
  const rawTxn = Buffer.from(txn);
816844
816892
  const hashSize = Buffer.alloc(4);
816845
816893
  hashSize.writeUInt32LE(rawTxn.length, 0);
816846
816894
  const payloadTxn = Buffer.concat([hashSize, rawTxn]);
816847
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "Payload Txn", payloadTxn);
816895
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "Payload Txn", payloadTxn);
816848
816896
  const bip32KeyPayload = buildBip32KeyPayload(path4);
816849
816897
  const payloads = [payloadTxn, bip32KeyPayload];
816850
- const { major } = await __privateMethod6(this, _Sui_instances, internalGetVersion_fn).call(this);
816898
+ const { major } = await __privateMethod5(this, _Sui_instances, internalGetVersion_fn).call(this);
816851
816899
  const bcsObjects = options24?.bcsObjects ?? [];
816852
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "Objects list length", bcsObjects.length);
816853
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "App version", major);
816900
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "Objects list length", bcsObjects.length);
816901
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "App version", major);
816854
816902
  if (major > 0 && bcsObjects.length > 0) {
816855
816903
  const numItems = Buffer.alloc(4);
816856
816904
  numItems.writeUInt32LE(bcsObjects.length, 0);
@@ -816863,20 +816911,20 @@ var Sui = class {
816863
816911
  }
816864
816912
  payloads.push(listData);
816865
816913
  }
816866
- const signature4 = await __privateMethod6(this, _Sui_instances, sendChunks_fn).call(this, cla, ins, p1, p210, payloads);
816914
+ const signature4 = await __privateMethod5(this, _Sui_instances, sendChunks_fn).call(this, cla, ins, p1, p210, payloads);
816867
816915
  return { signature: signature4 };
816868
816916
  }
816869
816917
  /**
816870
816918
  * Retrieve the app version on the attached Ledger device.
816871
816919
  */
816872
816920
  async getVersion() {
816873
- return await __privateMethod6(this, _Sui_instances, internalGetVersion_fn).call(this);
816921
+ return await __privateMethod5(this, _Sui_instances, internalGetVersion_fn).call(this);
816874
816922
  }
816875
816923
  };
816876
816924
  _verbose = /* @__PURE__ */ new WeakMap();
816877
816925
  _Sui_instances = /* @__PURE__ */ new WeakSet();
816878
816926
  internalGetVersion_fn = async function() {
816879
- const [major, minor, patch] = await __privateMethod6(this, _Sui_instances, sendChunks_fn).call(this, 0, 0, 0, 0, Buffer.alloc(1));
816927
+ const [major, minor, patch] = await __privateMethod5(this, _Sui_instances, sendChunks_fn).call(this, 0, 0, 0, 0, Buffer.alloc(1));
816880
816928
  return {
816881
816929
  major,
816882
816930
  minor,
@@ -816897,11 +816945,11 @@ sendChunks_fn = async function(cla, ins, p1, p210, payload, extraData = /* @__PU
816897
816945
  chunkList.push(cur);
816898
816946
  }
816899
816947
  let lastHash = Buffer.alloc(32);
816900
- __privateMethod6(this, _Sui_instances, log_fn).call(this, lastHash);
816948
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, lastHash);
816901
816949
  data12 = chunkList.reduceRight((blocks2, chunk5) => {
816902
816950
  const linkedChunk = Buffer.concat([lastHash, chunk5]);
816903
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "Chunk: ", chunk5);
816904
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "linkedChunk: ", linkedChunk);
816951
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "Chunk: ", chunk5);
816952
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "linkedChunk: ", linkedChunk);
816905
816953
  lastHash = Buffer.from((0, import_fast_sha256.default)(linkedChunk));
816906
816954
  blocks2.set(lastHash.toString("hex"), linkedChunk);
816907
816955
  return blocks2;
@@ -816909,8 +816957,8 @@ sendChunks_fn = async function(cla, ins, p1, p210, payload, extraData = /* @__PU
816909
816957
  parameterList.push(lastHash);
816910
816958
  lastHash = Buffer.alloc(32);
816911
816959
  }
816912
- __privateMethod6(this, _Sui_instances, log_fn).call(this, data12);
816913
- return await __privateMethod6(this, _Sui_instances, handleBlocksProtocol_fn).call(this, cla, ins, p1, p210, Buffer.concat([Buffer.from([
816960
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, data12);
816961
+ return await __privateMethod5(this, _Sui_instances, handleBlocksProtocol_fn).call(this, cla, ins, p1, p210, Buffer.concat([Buffer.from([
816914
816962
  0
816915
816963
  /* START */
816916
816964
  ])].concat(parameterList)), data12);
@@ -816919,9 +816967,9 @@ handleBlocksProtocol_fn = async function(cla, ins, p1, p210, initialPayload, dat
816919
816967
  let payload = initialPayload;
816920
816968
  let result2 = Buffer.alloc(0);
816921
816969
  do {
816922
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "Sending payload to ledger: ", payload.toString("hex"));
816970
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "Sending payload to ledger: ", payload.toString("hex"));
816923
816971
  const rv = await this.transport.send(cla, ins, p1, p210, payload);
816924
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "Received response: ", rv);
816972
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "Received response: ", rv);
816925
816973
  var rv_instruction = rv[0];
816926
816974
  const rv_payload = rv.slice(1, rv.length - 2);
816927
816975
  if (!(rv_instruction in LedgerToHost)) {
@@ -816938,8 +816986,8 @@ handleBlocksProtocol_fn = async function(cla, ins, p1, p210, initialPayload, dat
816938
816986
  break;
816939
816987
  case 2:
816940
816988
  const chunk5 = data12.get(rv_payload.toString("hex"));
816941
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "Getting block ", rv_payload);
816942
- __privateMethod6(this, _Sui_instances, log_fn).call(this, "Found block ", chunk5);
816989
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "Getting block ", rv_payload);
816990
+ __privateMethod5(this, _Sui_instances, log_fn).call(this, "Found block ", chunk5);
816943
816991
  if (chunk5) {
816944
816992
  payload = Buffer.concat([
816945
816993
  Buffer.from([