@cmts-dev/carmentis-sdk-core 1.2.27 → 1.2.29

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.
@@ -9401,7 +9401,7 @@ var Sy = oy.exports, Cy = /* @__PURE__ */ ay(Sy), wy = class {
9401
9401
  if (!e.ok) throw Error(`Failed to fetch public key with id ${this.keyId} at ${this.options.host}: ${e.statusText}.`);
9402
9402
  let t = (await e.json()).publicKey;
9403
9403
  if (t === void 0) throw Error("Failed to fetch public key: no \"publicKey\" field found in response body.");
9404
- return new Dy(new Uint8Array(Bg.from(t, "base64")));
9404
+ return new Gv(new Uint8Array(Bg.from(t, "base64")));
9405
9405
  }
9406
9406
  getScheme() {
9407
9407
  return new Wv();
@@ -10940,55 +10940,13 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
10940
10940
  static getGenesisFeesCalculationFormula(e) {
10941
10941
  return new Ax(e);
10942
10942
  }
10943
- static getSecondFeesCalculationFormula(e) {
10944
- return new Ax(e);
10945
- }
10946
10943
  static async getFeesCalculationFormulaByVersion(e, t) {
10947
10944
  switch (t) {
10948
10945
  case 1: return this.getGenesisFeesCalculationFormula(e);
10949
- case 2: return this.getSecondFeesCalculationFormula(e);
10950
10946
  }
10951
10947
  throw Error(`No fees formula for feesCalculationVersion = ${t}`);
10952
10948
  }
10953
10949
  }, Mx = class e {
10954
- static DEFAULT_GAS_PRICE = hn.createAtomic(1);
10955
- constructor(e) {
10956
- this.provider = e;
10957
- }
10958
- async computeFees(t, n, r, i = A.getTimestampInSeconds()) {
10959
- if (r < 0) throw Error("Invalid expiration day");
10960
- let a = n.getGasPrice(), o = a.isZero() ? e.DEFAULT_GAS_PRICE : a, s = await this.computeGas(t, n, r, i);
10961
- return hn.createAtomic(s * o.getAmountAsAtomic());
10962
- }
10963
- async computeGas(e, t, n, r = A.getTimestampInSeconds()) {
10964
- let i = 1 * this.computeSizeInBytesOfMicroblock(t) * pr, a = await this.provider.getProtocolState(), o = new kx(a.getRetentionPolicy()), s = o.getNumberOfDaysOfStorage(r, n), c = o.getStorageCost(i, s), l = this.getAdditionalCosts(a, e);
10965
- return Math.floor(c / pr) + l;
10966
- }
10967
- getAdditionalCosts(e, t) {
10968
- let n = 0;
10969
- switch (t) {
10970
- case Ja.SECP256K1:
10971
- n = e.getSecp256k1SignatureGasCost();
10972
- break;
10973
- case Ja.ML_DSA_65:
10974
- n = e.getMlDsa65SignatureGasCost();
10975
- break;
10976
- case Ja.PKMS_SECP256K1:
10977
- n = e.getPkmsSecp256k1SignatureGasCost();
10978
- break;
10979
- }
10980
- return n;
10981
- }
10982
- computeSizeInBytesOfMicroblock(e) {
10983
- let t = e.getAllSections();
10984
- if (t.length === 0) return 0;
10985
- let n = t[t.length - 1].type === O.SIGNATURE ? t.slice(0, t.length - 1) : t;
10986
- return this.getSizeOfListOfSections(n);
10987
- }
10988
- getSizeOfListOfSections(e) {
10989
- return e.reduce((e, t) => e + X.encodeSection(t).length, 0);
10990
- }
10991
- }, Nx = class e {
10992
10950
  constructor(e) {
10993
10951
  this.internalState = e;
10994
10952
  }
@@ -11016,7 +10974,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11016
10974
  getPublicKeySchemeId() {
11017
10975
  return this.internalState.signatureSchemeId;
11018
10976
  }
11019
- }, Px = class e {
10977
+ }, Nx = class e {
11020
10978
  constructor(e) {
11021
10979
  this.hash = e;
11022
10980
  }
@@ -11038,7 +10996,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11038
10996
  equals(e) {
11039
10997
  return this.hash.every((t, n) => t === e.hash[n]);
11040
10998
  }
11041
- }, Fx = class e {
10999
+ }, Px = class e {
11042
11000
  constructor(e) {
11043
11001
  this.internalState = e;
11044
11002
  }
@@ -11064,12 +11022,12 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11064
11022
  this.internalState.descriptionHeight = e;
11065
11023
  }
11066
11024
  getOrganizationId() {
11067
- return Px.from(this.internalState.organizationId);
11025
+ return Nx.from(this.internalState.organizationId);
11068
11026
  }
11069
11027
  getDescriptionHeight() {
11070
11028
  return this.internalState.descriptionHeight;
11071
11029
  }
11072
- }, Ix = class e {
11030
+ }, Fx = class e {
11073
11031
  static UNDEFINED_APPLICATION_ID = new Uint8Array();
11074
11032
  constructor(e) {
11075
11033
  this.internalState = e;
@@ -11156,7 +11114,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11156
11114
  return this.internalState.channels.length;
11157
11115
  }
11158
11116
  getApplicationId() {
11159
- return Px.from(this.internalState.applicationId);
11117
+ return Nx.from(this.internalState.applicationId);
11160
11118
  }
11161
11119
  getChannelIdFromChannelName(e) {
11162
11120
  let t = this.internalState.channels.findIndex((t) => t.name === e);
@@ -11195,9 +11153,9 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11195
11153
  getAllChannels() {
11196
11154
  return this.internalState.channels;
11197
11155
  }
11198
- }, Lx = /* @__PURE__ */ function(e) {
11156
+ }, Ix = /* @__PURE__ */ function(e) {
11199
11157
  return e.INITIAL_PROTOCOL_VERSION_NAME = "Clermont", e;
11200
- }(Lx || {}), Rx = class e {
11158
+ }(Ix || {}), Lx = class e {
11201
11159
  constructor(e) {
11202
11160
  this.internalState = e;
11203
11161
  }
@@ -11210,7 +11168,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11210
11168
  return new e({
11211
11169
  organizationId: A.getNullHash(),
11212
11170
  currentProtocolVariables: {
11213
- protocolVersionName: Lx.INITIAL_PROTOCOL_VERSION_NAME,
11171
+ protocolVersionName: Ix.INITIAL_PROTOCOL_VERSION_NAME,
11214
11172
  protocolVersion: 1,
11215
11173
  feesCalculationVersion: 1,
11216
11174
  fixedGasCost: 1e3,
@@ -11325,7 +11283,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11325
11283
  setOrganizationId(e) {
11326
11284
  this.internalState.organizationId = e;
11327
11285
  }
11328
- }, zx = class e {
11286
+ }, Rx = class e {
11329
11287
  constructor(e) {
11330
11288
  this.internalState = e;
11331
11289
  }
@@ -11345,7 +11303,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11345
11303
  return this.internalState.accountId;
11346
11304
  }
11347
11305
  getAccountId() {
11348
- return Px.from(this.internalState.accountId);
11306
+ return Nx.from(this.internalState.accountId);
11349
11307
  }
11350
11308
  setAccountId(e) {
11351
11309
  return this.internalState.accountId = e;
@@ -11356,7 +11314,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11356
11314
  updateDescriptionHeight(e) {
11357
11315
  this.internalState.descriptionHeight = e;
11358
11316
  }
11359
- }, Bx = class e {
11317
+ }, zx = class e {
11360
11318
  constructor(e) {
11361
11319
  this.internalState = e;
11362
11320
  }
@@ -11375,7 +11333,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11375
11333
  return this.internalState;
11376
11334
  }
11377
11335
  getOrganizationId() {
11378
- return Px.from(this.internalState.organizationId);
11336
+ return Nx.from(this.internalState.organizationId);
11379
11337
  }
11380
11338
  getLastKnownApprovalStatus() {
11381
11339
  return this.internalState.lastKnownApprovalStatus;
@@ -11401,22 +11359,22 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11401
11359
  setRpcEndpointDeclarationHeight(e) {
11402
11360
  this.internalState.rpcEndpointHeight = e;
11403
11361
  }
11404
- }, Vx = class {
11362
+ }, Bx = class {
11405
11363
  static createInternalStateFromObject(e, t) {
11406
11364
  switch (e) {
11407
- case H.PROTOCOL_VIRTUAL_BLOCKCHAIN: return Rx.createFromObject(t);
11408
- case H.ACCOUNT_VIRTUAL_BLOCKCHAIN: return Nx.createFromObject(t);
11409
- case H.APPLICATION_VIRTUAL_BLOCKCHAIN: return Fx.createFromObject(t);
11410
- case H.APP_LEDGER_VIRTUAL_BLOCKCHAIN: return Ix.createFromObject(t);
11411
- case H.ORGANIZATION_VIRTUAL_BLOCKCHAIN: return zx.createFromObject(t);
11412
- case H.NODE_VIRTUAL_BLOCKCHAIN: return Bx.createFromObject(t);
11365
+ case H.PROTOCOL_VIRTUAL_BLOCKCHAIN: return Lx.createFromObject(t);
11366
+ case H.ACCOUNT_VIRTUAL_BLOCKCHAIN: return Mx.createFromObject(t);
11367
+ case H.APPLICATION_VIRTUAL_BLOCKCHAIN: return Px.createFromObject(t);
11368
+ case H.APP_LEDGER_VIRTUAL_BLOCKCHAIN: return Fx.createFromObject(t);
11369
+ case H.ORGANIZATION_VIRTUAL_BLOCKCHAIN: return Rx.createFromObject(t);
11370
+ case H.NODE_VIRTUAL_BLOCKCHAIN: return zx.createFromObject(t);
11413
11371
  default: throw Error(`Unknown virtual blockchain type: ${e}`);
11414
11372
  }
11415
11373
  }
11416
- }, Hx = class {
11374
+ }, Vx = class {
11417
11375
  constructor() {}
11418
11376
  async updateState(e, t, n) {
11419
- let r = Nx.createFromObject({ ...t.toObject() }), i = n.getAllSections();
11377
+ let r = Mx.createFromObject({ ...t.toObject() }), i = n.getAllSections();
11420
11378
  for (let e of i) switch (e.type) {
11421
11379
  case O.ACCOUNT_PUBLIC_KEY:
11422
11380
  await this.publicKeyCallback(r, n, e);
@@ -11461,13 +11419,13 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11461
11419
  async escrowTransferCallback(e, t, n) {}
11462
11420
  async stakeCallback(e, t, n) {}
11463
11421
  async signatureCallback(e, t, n) {}
11464
- }, Ux = class {
11422
+ }, Hx = class {
11465
11423
  updateState(e, t, n) {
11466
11424
  let r = t.clone();
11467
11425
  for (let e of n.getAllSections()) e.type === O.APP_CREATION && r.setOrganizationId(e.organizationId), e.type === O.APP_DESCRIPTION && r.setDescriptionHeight(n.getHeight());
11468
11426
  return r;
11469
11427
  }
11470
- }, Wx = {
11428
+ }, Ux = {
11471
11429
  [O.AUXILIARY_SIGNATURE]: "AUXILIARY_SIGNATURE",
11472
11430
  [O.SIGNATURE]: "SIGNATURE",
11473
11431
  [O.ALLOWED_ADDITIONAL_WRITER]: "ALLOWED_ADDITIONAL_WRITER_CREATION",
@@ -11505,14 +11463,14 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11505
11463
  [O.APP_LEDGER_PRIVATE_CHANNEL_DATA]: "APP_LEDGER_PRIVATE_CHANNEL_DATA",
11506
11464
  [O.APP_LEDGER_AUTHOR]: "APP_LEDGER_AUTHOR",
11507
11465
  [O.APP_LEDGER_ENDORSEMENT_REQUEST]: "APP_LEDGER_ENDORSEMENT_REQUEST"
11508
- }, Gx = class {
11466
+ }, Wx = class {
11509
11467
  static getSectionLabelFromSection(e) {
11510
11468
  return this.getSectionLabelFromSectionType(e.type);
11511
11469
  }
11512
11470
  static getSectionLabelFromSectionType(e) {
11513
- return Wx[e];
11471
+ return Ux[e];
11514
11472
  }
11515
- }, Kx = class e {
11473
+ }, Gx = class e {
11516
11474
  logger = k.getInternalStateUpdaterLogger(e.name);
11517
11475
  async updateState(e, t, n) {
11518
11476
  let r = t.clone(), i = n.getHeight();
@@ -11558,7 +11516,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11558
11516
  case O.SIGNATURE:
11559
11517
  await this.endorserSignatureCallback();
11560
11518
  break;
11561
- default: k.getLogger().warn(`Unhandled section ${Gx.getSectionLabelFromSection(n)}`);
11519
+ default: k.getLogger().warn(`Unhandled section ${Wx.getSectionLabelFromSection(n)}`);
11562
11520
  }
11563
11521
  return i;
11564
11522
  }
@@ -11628,7 +11586,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11628
11586
  if (!t.isChannelDefinedById(e.channelId)) throw new se(`invalid channel ID ${e.channelId}`);
11629
11587
  }
11630
11588
  async endorserSignatureCallback() {}
11631
- }, qx = class {
11589
+ }, Kx = class {
11632
11590
  updateState(e, t, n) {
11633
11591
  let r = t;
11634
11592
  for (let e of n.getAllSections()) switch (e.type) {
@@ -11650,7 +11608,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11650
11608
  updateApproval(e, t) {
11651
11609
  e.setApprovalStatus(t.status);
11652
11610
  }
11653
- }, Jx = class e {
11611
+ }, qx = class e {
11654
11612
  logger = k.getInternalStateUpdaterLogger(e.name);
11655
11613
  updateState(e, t, n) {
11656
11614
  for (let e of n.getAllSections()) {
@@ -11665,51 +11623,51 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11665
11623
  }
11666
11624
  return t;
11667
11625
  }
11668
- }, Yx = class {
11626
+ }, Jx = class {
11669
11627
  updateState(e, t, n) {
11670
11628
  for (let e of n.getAllSections()) e.type === O.ORG_CREATION && t.setAccountId(e.accountId), e.type === O.ORG_DESCRIPTION && t.updateDescriptionHeight(n.getHeight());
11671
11629
  return t;
11672
11630
  }
11673
- }, Xx = class {
11631
+ }, Yx = class {
11674
11632
  static createApplicationLedgerInternalStateUpdater(e) {
11675
- return new Kx();
11633
+ return new Gx();
11676
11634
  }
11677
11635
  static createAccountInternalStateUpdater(e) {
11678
11636
  switch (e) {
11679
- case 1: return new Hx();
11637
+ case 1: return new Vx();
11680
11638
  default: throw new i("Unknown account local state version");
11681
11639
  }
11682
11640
  }
11683
11641
  static createOrganizationInternalStateUpdater(e) {
11684
11642
  switch (e) {
11685
- case 1: return new Yx();
11643
+ case 1: return new Jx();
11686
11644
  default: throw new i("Unknown organization local state version");
11687
11645
  }
11688
11646
  }
11689
11647
  static createProtocolInternalStateUpdater(e) {
11690
- return new Jx();
11648
+ return new qx();
11691
11649
  }
11692
11650
  static createValidatorNodeInternalStateUpdater(e) {
11693
11651
  switch (e) {
11694
- case 1: return new qx();
11652
+ case 1: return new Kx();
11695
11653
  default: throw new i("Unknown validator node local state version");
11696
11654
  }
11697
11655
  }
11698
11656
  static createApplicationInternalStateUpdater(e) {
11699
11657
  switch (e) {
11700
- case 1: return new Ux();
11658
+ case 1: return new Hx();
11701
11659
  default: throw new i("Unknown validator node local state version");
11702
11660
  }
11703
11661
  }
11704
11662
  static defaultInternalStateUpdaterVersionByVbType(e) {
11705
11663
  return 1;
11706
11664
  }
11707
- }, Zx = /* @__PURE__ */ function(e) {
11665
+ }, Xx = /* @__PURE__ */ function(e) {
11708
11666
  return e[e.VALID = 0] = "VALID", e[e.TOO_FAR_IN_THE_PAST = 1] = "TOO_FAR_IN_THE_PAST", e[e.TOO_FAR_IN_THE_FUTURE = 2] = "TOO_FAR_IN_THE_FUTURE", e;
11709
- }({}), Qx = /* @__PURE__ */ I({
11667
+ }({}), Zx = /* @__PURE__ */ I({
11710
11668
  header: Pm,
11711
11669
  body: wh
11712
- }), $x = class e {
11670
+ }), Qx = class e {
11713
11671
  static createGenesisMicroblock(t, n = 0) {
11714
11672
  let r = new e(t);
11715
11673
  return r.create(1, null, n), r;
@@ -11737,7 +11695,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11737
11695
  return new e(H.APP_LEDGER_VIRTUAL_BLOCKCHAIN);
11738
11696
  }
11739
11697
  static loadFromSerializedMicroblock(t, n) {
11740
- let r = R(Qx, Ub(t));
11698
+ let r = R(Zx, Ub(t));
11741
11699
  return e.loadFromHeaderAndBody(r.header, r.body, n);
11742
11700
  }
11743
11701
  static loadFromHeaderAndBody(t, n, r) {
@@ -11816,7 +11774,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11816
11774
  return this.header;
11817
11775
  }
11818
11776
  getHash() {
11819
- return Px.from(this.hash);
11777
+ return Nx.from(this.hash);
11820
11778
  }
11821
11779
  getHashAsBytes() {
11822
11780
  return this.hash;
@@ -11828,7 +11786,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11828
11786
  return this.header.height;
11829
11787
  }
11830
11788
  getPreviousHash() {
11831
- return Px.from(this.header.previousHash);
11789
+ return Nx.from(this.header.previousHash);
11832
11790
  }
11833
11791
  getTimestamp() {
11834
11792
  return this.header.timestamp;
@@ -11879,7 +11837,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11879
11837
  headerData: r,
11880
11838
  bodyHash: n,
11881
11839
  bodyData: t,
11882
- microblockData: bx(R(Qx, {
11840
+ microblockData: bx(R(Zx, {
11883
11841
  header: this.header,
11884
11842
  body: { sections: this.sections }
11885
11843
  }))
@@ -11991,7 +11949,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
11991
11949
  return this.sections.length == 0 ? !1 : this.sections[this.sections.length - 1].type === O.SIGNATURE;
11992
11950
  }
11993
11951
  isTemporallyCloseTo(e = A.getTimestampInSeconds()) {
11994
- return this.header.timestamp < e - 300 ? Zx.TOO_FAR_IN_THE_PAST : this.header.timestamp > e + 120 ? Zx.TOO_FAR_IN_THE_FUTURE : Zx.VALID;
11952
+ return this.header.timestamp < e - 300 ? Xx.TOO_FAR_IN_THE_PAST : this.header.timestamp > e + 120 ? Xx.TOO_FAR_IN_THE_FUTURE : Xx.VALID;
11995
11953
  }
11996
11954
  hasSection(e) {
11997
11955
  try {
@@ -12017,7 +11975,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12017
11975
  return this.sections.filter((t) => t.type === e).length;
12018
11976
  }
12019
11977
  addSections(t) {
12020
- e.logger.debug("Adding sections to microblock: {names}", () => ({ names: t.map((e) => Gx.getSectionLabelFromSection(e)).join(", ") })), this.sections.push(...t), this.header.bodyHash = this.computeBodyHash(), this.hash = e.computeMicroblockHash(this.header);
11978
+ e.logger.debug("Adding sections to microblock: {names}", () => ({ names: t.map((e) => Wx.getSectionLabelFromSection(e)).join(", ") })), this.sections.push(...t), this.header.bodyHash = this.computeBodyHash(), this.hash = e.computeMicroblockHash(this.header);
12021
11979
  }
12022
11980
  addSection(e) {
12023
11981
  this.addSections([e]);
@@ -12035,7 +11993,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12035
11993
  toString() {
12036
11994
  let e = yg.bytesToHexEncoder(), t = "Microblock:\n";
12037
11995
  return t += ` Hash: ${e.encode(this.hash)}\n`, t += ` Recomputed hash: ${e.encode(this.computeHash())}\n`, t += " Header:\n", t += ` Microblock type: ${this.header.microblockType} or ${this.type}\n`, t += ` Magic String: ${this.header.magicString}\n`, t += ` Fees payer account: ${e.encode(this.header.feesPayerAccount)}\n`, t += ` Height: ${this.header.height}\n`, t += ` Previous Hash: ${e.encode(this.header.previousHash)}\n`, t += ` Timestamp: ${this.header.timestamp}\n`, t += ` Gas: ${this.header.gas}\n`, t += ` Gas Price: ${this.header.gasPrice}\n`, t += ` Body Hash: ${e.encode(this.header.bodyHash)}\n`, t += ` Computed body Hash: ${e.encode(this.computeBodyHash())}\n`, t += ` Sections (${this.sections.length}):\n`, this.sections.forEach((e, n) => {
12038
- t += ` Section ${n}:\n`, t += ` Section Type: ${Gx.getSectionLabelFromSection(e)} (type ${e.type})\n`, t += ` Section Data: ${A.binaryToHexa(X.encodeSection(e))}\n`;
11996
+ t += ` Section ${n}:\n`, t += ` Section Type: ${Wx.getSectionLabelFromSection(e)} (type ${e.type})\n`, t += ` Section Data: ${A.binaryToHexa(X.encodeSection(e))}\n`;
12039
11997
  }), t;
12040
11998
  }
12041
11999
  getType() {
@@ -12075,11 +12033,11 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12075
12033
  if (e.type !== O.SIGNATURE) throw Error("Last section is not a signature section");
12076
12034
  return e;
12077
12035
  }
12078
- }, eS = class {
12036
+ }, $x = class {
12079
12037
  onMicroblockSearchFailureForExceedingHeight(e, t) {
12080
- throw e.isEmpty() ? new x(Px.from(A.getNullHash()), t) : new x(e.getIdentifier(), t);
12038
+ throw e.isEmpty() ? new x(Nx.from(A.getNullHash()), t) : new x(e.getIdentifier(), t);
12081
12039
  }
12082
- }, tS = class e {
12040
+ }, eS = class e {
12083
12041
  static INITIAL_HEIGHT = 1;
12084
12042
  static staticLogger = k.getVirtualBlockchainLogger();
12085
12043
  logger = e.staticLogger;
@@ -12095,7 +12053,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12095
12053
  microblockSearchFailureFallback;
12096
12054
  onMicroblockInsertionEventListeners = [];
12097
12055
  constructor(e, t, n) {
12098
- this.internalState = n, this.provider = e, this.microblockHashByHeight = /* @__PURE__ */ new Map(), this.microblockByHeight = /* @__PURE__ */ new Map(), this.type = t, this.merkleRootHash = A.getNullHash(), this.expirationDay = 0, this.height = 0, this.microblockSearchFailureFallback = new eS();
12056
+ this.internalState = n, this.provider = e, this.microblockHashByHeight = /* @__PURE__ */ new Map(), this.microblockByHeight = /* @__PURE__ */ new Map(), this.type = t, this.merkleRootHash = A.getNullHash(), this.expirationDay = 0, this.height = 0, this.microblockSearchFailureFallback = new $x();
12099
12057
  }
12100
12058
  async isAccountIdAllowedToWrite(e) {
12101
12059
  if (this.height === 0) return !0;
@@ -12121,8 +12079,8 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12121
12079
  return this.merkleRootHash;
12122
12080
  }
12123
12081
  async createMicroblock() {
12124
- if (this.isEmpty()) return new $x(this.type);
12125
- let e = await this.getLastMicroblock(), t = new $x(this.type);
12082
+ if (this.isEmpty()) return new Qx(this.type);
12083
+ let e = await this.getLastMicroblock(), t = new Qx(this.type);
12126
12084
  return t.setPreviousHash(e.getHash()), t.setHeight(this.getHeight() + 1), t;
12127
12085
  }
12128
12086
  getLastMicroblock() {
@@ -12161,7 +12119,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12161
12119
  }
12162
12120
  getAllMicroblockHashes() {
12163
12121
  let e = [];
12164
- for (let t of this.microblockHashByHeight.entries()) e.push(Px.from(t[1]));
12122
+ for (let t of this.microblockHashByHeight.entries()) e.push(Nx.from(t[1]));
12165
12123
  return e;
12166
12124
  }
12167
12125
  async getMicroblock(e) {
@@ -12171,7 +12129,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12171
12129
  if (t !== void 0) return t;
12172
12130
  let n = await this.provider.getSerializedMicroblockByHeight(this.getId(), e);
12173
12131
  if (n === null) throw yg.bytesToHexEncoder(), Error(`Unable to load microblock at height ${e}`);
12174
- let r = $x.loadFromSerializedMicroblock(n, this.type);
12132
+ let r = Qx.loadFromSerializedMicroblock(n, this.type);
12175
12133
  if (r.getHeight() !== e) throw Error(`Received microblock contains an unexpected height: expected ${e}, got ${r.getHeight()} `);
12176
12134
  this.microblockByHeight.set(e, r);
12177
12135
  for (let e of this.onMicroblockInsertionEventListeners) e.onMicroblockInserted(this, r);
@@ -12179,13 +12137,13 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12179
12137
  }
12180
12138
  getIdentifier() {
12181
12139
  if (this.identifier === void 0) throw new a(`You cannot access identifier of an empty virtual blockchain (current height is ${this.height})`);
12182
- return Px.from(this.identifier);
12140
+ return Nx.from(this.identifier);
12183
12141
  }
12184
12142
  isEmpty() {
12185
12143
  return this.getHeight() === 0;
12186
12144
  }
12187
12145
  async appendMicroBlock(e) {
12188
- if (!e || !(e instanceof $x)) throw Error("Microblock cannot be null or undefined");
12146
+ if (!e || !(e instanceof Qx)) throw Error("Microblock cannot be null or undefined");
12189
12147
  if (e.getType() !== this.type) throw Error("Invalid microblock type for append operation");
12190
12148
  if (this.isEmpty() && this.identifier instanceof Uint8Array) throw Error("Virtual blockchain is empty but is initialized: should not happen");
12191
12149
  if (!this.isEmpty() && !(this.identifier instanceof Uint8Array)) throw Error("Virtual blockchain is empty but has an identifier: should not happen");
@@ -12212,13 +12170,13 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12212
12170
  }
12213
12171
  }, Z = /* @__PURE__ */ function(e) {
12214
12172
  return e[e.ANY = 0] = "ANY", e[e.ZERO = 1] = "ZERO", e[e.ONE = 2] = "ONE", e[e.AT_MOST_ONE = 3] = "AT_MOST_ONE", e[e.AT_LEAST_ONE = 4] = "AT_LEAST_ONE", e;
12215
- }({}), nS = {
12173
+ }({}), tS = {
12216
12174
  [Z.ANY]: "Any",
12217
12175
  [Z.ONE]: "Exactly one",
12218
12176
  [Z.ZERO]: "Exactly zero",
12219
12177
  [Z.AT_LEAST_ONE]: "At least one",
12220
12178
  [Z.AT_MOST_ONE]: "At most one"
12221
- }, rS = class {
12179
+ }, nS = class {
12222
12180
  microblock;
12223
12181
  pointer;
12224
12182
  constructor(e) {
@@ -12230,7 +12188,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12230
12188
  expects(e, t) {
12231
12189
  let n = 0;
12232
12190
  for (; !this.endOfList() && this.currentSection().type == t;) n++, this.pointer++;
12233
- if (!this.checkConstraint(e, n)) throw new s(`expected ${nS[e]} of type ${this.getSectionLabelBySectionType(t)} in section, got ${n}`);
12191
+ if (!this.checkConstraint(e, n)) throw new s(`expected ${tS[e]} of type ${this.getSectionLabelBySectionType(t)} in section, got ${n}`);
12234
12192
  return n;
12235
12193
  }
12236
12194
  group(e, t) {
@@ -12241,10 +12199,10 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12241
12199
  if (!t.some(([t, n]) => n == e)) break;
12242
12200
  n.set(e, n.get(e) + 1), r++, this.pointer++;
12243
12201
  }
12244
- if (!this.checkConstraint(e, r)) throw new s(`expected ${nS[e]} section(s) in group, got ${r}`);
12202
+ if (!this.checkConstraint(e, r)) throw new s(`expected ${tS[e]} section(s) in group, got ${r}`);
12245
12203
  for (let [e, r] of t) {
12246
12204
  let t = n.get(r);
12247
- if (!this.checkConstraint(e, t)) throw new s(`expected ${nS[e]} of type ${this.getSectionLabelBySectionType(r)} in group section, got ${t}`);
12205
+ if (!this.checkConstraint(e, t)) throw new s(`expected ${tS[e]} of type ${this.getSectionLabelBySectionType(r)} in group section, got ${t}`);
12248
12206
  }
12249
12207
  }
12250
12208
  endsHere() {
@@ -12270,28 +12228,28 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12270
12228
  return !1;
12271
12229
  }
12272
12230
  getSectionLabelBySectionType(e) {
12273
- return Gx.getSectionLabelFromSectionType(e);
12231
+ return Wx.getSectionLabelFromSectionType(e);
12274
12232
  }
12275
- }, iS = class {
12233
+ }, rS = class {
12276
12234
  logger = k.getMicroblockStructureCheckerLogger();
12277
12235
  checkMicroblockStructure(e) {
12278
12236
  try {
12279
- let t = new rS(e);
12237
+ let t = new nS(e);
12280
12238
  return t.expects(t.isFirstBlock() ? Z.ONE : Z.ZERO, O.ORG_CREATION), t.group(Z.AT_LEAST_ONE, [[Z.AT_MOST_ONE, O.ORG_DESCRIPTION], [Z.ANY, O.CUSTOM]]), t.expects(Z.ANY, O.AUXILIARY_SIGNATURE), t.expects(Z.ONE, O.SIGNATURE), t.endsHere(), !0;
12281
12239
  } catch (e) {
12282
12240
  return typeof e == "string" && this.logger.error(`Microblock structure error details: ${e}`), e instanceof Error && (e instanceof s ? this.logger.error(`Microblock structure error: ${e.message}`) : this.logger.error(`An unexpected error occurred during structure checking: ${e.message} at ${e.stack}`)), !1;
12283
12241
  }
12284
12242
  }
12285
- }, aS = class e extends tS {
12243
+ }, iS = class e extends eS {
12286
12244
  static createOrganizationVirtualBlockchain(t) {
12287
12245
  return new e(t);
12288
12246
  }
12289
- constructor(e, t = zx.createInitialState()) {
12247
+ constructor(e, t = Rx.createInitialState()) {
12290
12248
  super(e, H.ORGANIZATION_VIRTUAL_BLOCKCHAIN, t);
12291
12249
  }
12292
12250
  async updateInternalState(e, t, n) {
12293
12251
  let r = e.getOrganizationInternalStateUpdaterVersion();
12294
- return Xx.createOrganizationInternalStateUpdater(r).updateState(this.provider, t, n);
12252
+ return Yx.createOrganizationInternalStateUpdater(r).updateState(this.provider, t, n);
12295
12253
  }
12296
12254
  async getVirtualBlockchainState() {
12297
12255
  let e = this.getHeight(), t = e === 0 ? A.getNullHash() : (await this.getLastMicroblock()).getHash().toBytes();
@@ -12308,7 +12266,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12308
12266
  return this.internalState.getAccountId();
12309
12267
  }
12310
12268
  checkMicroblockStructure(e) {
12311
- return new iS().checkMicroblockStructure(e);
12269
+ return new rS().checkMicroblockStructure(e);
12312
12270
  }
12313
12271
  getAccountId() {
12314
12272
  return this.internalState.getAccountId();
@@ -12318,11 +12276,11 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12318
12276
  for (let e of t.getAllSections()) if (e.type === O.ORG_DESCRIPTION) return e;
12319
12277
  throw new a("No description found for the organization");
12320
12278
  }
12321
- }, oS = class {
12279
+ }, aS = class {
12322
12280
  logger = k.getMicroblockStructureCheckerLogger();
12323
12281
  checkMicroblockStructure(e) {
12324
12282
  try {
12325
- let t = new rS(e);
12283
+ let t = new nS(e);
12326
12284
  return !t.isFirstBlock() && t.expects(Z.AT_MOST_ONE, O.ACCOUNT_ESCROW_SETTLEMENT) === 1 || (t.expects(t.isFirstBlock() ? Z.ONE : Z.AT_MOST_ONE, O.ACCOUNT_PUBLIC_KEY), t.isFirstBlock() ? t.group(Z.ONE, [
12327
12285
  [Z.AT_MOST_ONE, O.ACCOUNT_TOKEN_ISSUANCE],
12328
12286
  [Z.AT_MOST_ONE, O.ACCOUNT_CREATION],
@@ -12339,13 +12297,13 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12339
12297
  return e instanceof Error && (e instanceof s ? this.logger.error(`Invalid microblock structure: ${e.message}`) : this.logger.error(`Unexpected error occurred during microblock structure checking: ${e.message} at ${e.stack}`)), !1;
12340
12298
  }
12341
12299
  }
12342
- }, sS = class extends tS {
12343
- constructor(e, t = Nx.createInitialState()) {
12300
+ }, oS = class extends eS {
12301
+ constructor(e, t = Mx.createInitialState()) {
12344
12302
  super(e, H.ACCOUNT_VIRTUAL_BLOCKCHAIN, t);
12345
12303
  }
12346
12304
  async updateInternalState(e, t, n) {
12347
12305
  let r = e.getAccountInternalStateUpdaterVersion();
12348
- return Xx.createAccountInternalStateUpdater(r).updateState(this.provider, t, n);
12306
+ return Yx.createAccountInternalStateUpdater(r).updateState(this.provider, t, n);
12349
12307
  }
12350
12308
  async getVirtualBlockchainState() {
12351
12309
  let e = this.getHeight(), t = e === 0 ? A.getNullHash() : (await this.getLastMicroblock()).getHash().toBytes();
@@ -12359,10 +12317,10 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12359
12317
  };
12360
12318
  }
12361
12319
  async getVirtualBlockchainOwnerId() {
12362
- return Px.from(this.getId());
12320
+ return Nx.from(this.getId());
12363
12321
  }
12364
12322
  checkMicroblockStructure(e) {
12365
- return new oS().checkMicroblockStructure(e);
12323
+ return new aS().checkMicroblockStructure(e);
12366
12324
  }
12367
12325
  async getPublicKey() {
12368
12326
  let e = this.internalState.getPublicKeyHeight(), t = this.internalState.getPublicKeySchemeId(), n = await this.getMicroblock(e);
@@ -12375,7 +12333,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12375
12333
  return !1;
12376
12334
  }
12377
12335
  static async createAccountCreationMicroblock(e, t, n, r = "") {
12378
- let i = $x.createGenesisAccountMicroblock();
12336
+ let i = Qx.createGenesisAccountMicroblock();
12379
12337
  return i.addSection({
12380
12338
  type: O.ACCOUNT_PUBLIC_KEY,
12381
12339
  publicKey: await e.getPublicKeyAsBytes(),
@@ -12387,7 +12345,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12387
12345
  }), i;
12388
12346
  }
12389
12347
  static async createIssuerAccountCreationMicroblock(e) {
12390
- let t = e, n = $x.createGenesisAccountMicroblock();
12348
+ let t = e, n = Qx.createGenesisAccountMicroblock();
12391
12349
  return n.addSection({
12392
12350
  type: O.ACCOUNT_PUBLIC_KEY,
12393
12351
  publicKey: await t.getPublicKeyAsBytes(),
@@ -12397,23 +12355,23 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12397
12355
  amount: lr
12398
12356
  }), n;
12399
12357
  }
12400
- }, cS = class {
12358
+ }, sS = class {
12401
12359
  logger = k.getMicroblockStructureCheckerLogger();
12402
12360
  checkMicroblockStructure(e) {
12403
12361
  try {
12404
- let t = new rS(e);
12362
+ let t = new nS(e);
12405
12363
  return t.expects(t.isFirstBlock() ? Z.ONE : Z.ZERO, O.APP_CREATION), t.group(Z.AT_LEAST_ONE, [[Z.AT_MOST_ONE, O.APP_DESCRIPTION], [Z.ANY, O.CUSTOM]]), t.expects(Z.ANY, O.AUXILIARY_SIGNATURE), t.expects(Z.ONE, O.SIGNATURE), t.endsHere(), !0;
12406
12364
  } catch (e) {
12407
12365
  return e instanceof Error && (e instanceof s ? this.logger.error(`Invalid microblock structure: ${e.message}`) : this.logger.error(`Unexpected error occurred during microblock structure checking: ${e.message} at ${e.stack}`)), !1;
12408
12366
  }
12409
12367
  }
12410
- }, lS = class extends tS {
12411
- constructor(e, t = Fx.createInitialState()) {
12368
+ }, cS = class extends eS {
12369
+ constructor(e, t = Px.createInitialState()) {
12412
12370
  super(e, H.APPLICATION_VIRTUAL_BLOCKCHAIN, t);
12413
12371
  }
12414
12372
  async updateInternalState(e, t, n) {
12415
12373
  let r = e.getApplicationInternalStateUpdaterVersion();
12416
- return Xx.createApplicationInternalStateUpdater(r).updateState(this.provider, t, n);
12374
+ return Yx.createApplicationInternalStateUpdater(r).updateState(this.provider, t, n);
12417
12375
  }
12418
12376
  async getVirtualBlockchainState() {
12419
12377
  let e = this.getHeight(), t = e === 0 ? A.getNullHash() : (await this.getLastMicroblock()).getHash().toBytes();
@@ -12431,7 +12389,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12431
12389
  return (await this.provider.loadOrganizationVirtualBlockchain(e)).getVirtualBlockchainOwnerId();
12432
12390
  }
12433
12391
  checkMicroblockStructure(e) {
12434
- return new cS().checkMicroblockStructure(e);
12392
+ return new sS().checkMicroblockStructure(e);
12435
12393
  }
12436
12394
  getOrganizationId() {
12437
12395
  return this.internalState.getOrganizationId();
@@ -12441,11 +12399,11 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12441
12399
  for (let e of t.getAllSections()) if (e.type == O.APP_DESCRIPTION) return e;
12442
12400
  throw Error("Application description not found");
12443
12401
  }
12444
- }, uS = class {
12402
+ }, lS = class {
12445
12403
  logger = k.getMicroblockStructureCheckerLogger();
12446
12404
  checkMicroblockStructure(e) {
12447
12405
  try {
12448
- let t = new rS(e), n = !t.isFirstBlock() && t.expects(Z.AT_MOST_ONE, O.VN_APPROVAL) === 1, r = !n && !t.isFirstBlock() && t.expects(Z.AT_MOST_ONE, O.VN_SLASHING_CANCELLATION) === 1;
12406
+ let t = new nS(e), n = !t.isFirstBlock() && t.expects(Z.AT_MOST_ONE, O.VN_APPROVAL) === 1, r = !n && !t.isFirstBlock() && t.expects(Z.AT_MOST_ONE, O.VN_SLASHING_CANCELLATION) === 1;
12449
12407
  return !n && !r && (t.expects(t.isFirstBlock() ? Z.ONE : Z.ZERO, O.VN_CREATION), t.group(Z.AT_LEAST_ONE, [
12450
12408
  [Z.AT_MOST_ONE, O.VN_COMETBFT_PUBLIC_KEY_DECLARATION],
12451
12409
  [Z.AT_MOST_ONE, O.VN_RPC_ENDPOINT],
@@ -12455,13 +12413,13 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12455
12413
  return e instanceof Error && (e instanceof s ? this.logger.error(`Invalid microblock structure: ${e.message}`) : this.logger.error(`Unexpected error occurred during microblock structure checking: ${e.message} at ${e.stack}`)), !1;
12456
12414
  }
12457
12415
  }
12458
- }, dS = class extends tS {
12459
- constructor(e, t = Bx.createInitialState()) {
12416
+ }, uS = class extends eS {
12417
+ constructor(e, t = zx.createInitialState()) {
12460
12418
  super(e, H.NODE_VIRTUAL_BLOCKCHAIN, t);
12461
12419
  }
12462
12420
  async updateInternalState(e, t, n) {
12463
12421
  let r = e.getValidatorNodeInternalStateUpdaterVersion();
12464
- return Xx.createValidatorNodeInternalStateUpdater(r).updateState(this.provider, t, n);
12422
+ return Yx.createValidatorNodeInternalStateUpdater(r).updateState(this.provider, t, n);
12465
12423
  }
12466
12424
  async getVirtualBlockchainState() {
12467
12425
  let e = this.getHeight(), t = e === 0 ? A.getNullHash() : (await this.getLastMicroblock()).getHash().toBytes();
@@ -12482,7 +12440,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12482
12440
  return this.internalState.getOrganizationId();
12483
12441
  }
12484
12442
  checkMicroblockStructure(e) {
12485
- return new uS().checkMicroblockStructure(e);
12443
+ return new lS().checkMicroblockStructure(e);
12486
12444
  }
12487
12445
  async getCometbftPublicKeyDeclaration() {
12488
12446
  let e = this.internalState.getCometbftPublicKeyDeclarationHeight();
@@ -12512,26 +12470,26 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12512
12470
  let e = this.internalState.getOrganizationId();
12513
12471
  return await this.provider.loadOrganizationVirtualBlockchain(e);
12514
12472
  }
12515
- }, fS = class {
12473
+ }, dS = class {
12516
12474
  logger = k.getMicroblockStructureCheckerLogger();
12517
12475
  checkMicroblockStructure(e) {
12518
12476
  try {
12519
- let t = new rS(e);
12477
+ let t = new nS(e);
12520
12478
  return t.expects(t.isFirstBlock() ? Z.ONE : Z.ZERO, O.PROTOCOL_CREATION), t.isFirstBlock() || t.group(Z.AT_MOST_ONE, [[Z.ONE, O.PROTOCOL_UPDATE], [Z.ANY, O.CUSTOM]]), t.expects(Z.ANY, O.AUXILIARY_SIGNATURE), t.expects(Z.ONE, O.SIGNATURE), t.endsHere(), !0;
12521
12479
  } catch (e) {
12522
12480
  return typeof e == "string" && this.logger.error(`Microblock structure error details: ${e}`), e instanceof Error && (e instanceof s ? this.logger.error(`Microblock structure error: ${e.message}`) : this.logger.error(`An unexpected error occurred during structure checking: ${e.message} at ${e.stack}`)), !1;
12523
12481
  }
12524
12482
  }
12525
- }, pS = class extends tS {
12526
- constructor(e, t = Rx.createInitialState()) {
12483
+ }, fS = class extends eS {
12484
+ constructor(e, t = Lx.createInitialState()) {
12527
12485
  super(e, H.PROTOCOL_VIRTUAL_BLOCKCHAIN, t);
12528
12486
  }
12529
12487
  checkMicroblockStructure(e) {
12530
- return new fS().checkMicroblockStructure(e);
12488
+ return new dS().checkMicroblockStructure(e);
12531
12489
  }
12532
12490
  async updateInternalState(e, t, n) {
12533
12491
  let r = e.getProtocolInternalStateUpdaterVersion();
12534
- return Xx.createProtocolInternalStateUpdater(r).updateState(this.provider, t, n);
12492
+ return Yx.createProtocolInternalStateUpdater(r).updateState(this.provider, t, n);
12535
12493
  }
12536
12494
  async getVirtualBlockchainState() {
12537
12495
  let e = this.getHeight(), t = e === 0 ? A.getNullHash() : (await this.getLastMicroblock()).getHash().toBytes();
@@ -12550,18 +12508,18 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12550
12508
  }
12551
12509
  async getOrganizationId() {
12552
12510
  let e = (await this.getFirstMicroBlock()).getAllSections();
12553
- for (let t of e) if (t.type === O.PROTOCOL_CREATION) return Px.from(t.organizationId);
12511
+ for (let t of e) if (t.type === O.PROTOCOL_CREATION) return Nx.from(t.organizationId);
12554
12512
  throw Error("Organization ID not found in protocol vb");
12555
12513
  }
12556
- }, mS = class {
12514
+ }, pS = class {
12557
12515
  static assert(e, t = "Unspecified verification") {
12558
12516
  if (!e) throw new m(`Assertion failed: ${t}`);
12559
12517
  }
12560
- }, hS = class {
12518
+ }, mS = class {
12561
12519
  logger = k.getMicroblockStructureCheckerLogger();
12562
12520
  checkMicroblockStructure(e) {
12563
12521
  try {
12564
- let t = new rS(e);
12522
+ let t = new nS(e);
12565
12523
  return t.expects(t.isFirstBlock() ? Z.ONE : Z.ZERO, O.APP_LEDGER_CREATION), t.group(Z.ANY, [
12566
12524
  [Z.ANY, O.APP_LEDGER_ACTOR_CREATION],
12567
12525
  [Z.ANY, O.APP_LEDGER_ACTOR_SUBSCRIPTION],
@@ -12579,7 +12537,7 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12579
12537
  return typeof e == "string" && this.logger.error(`Microblock structure error details: ${e}`), e instanceof Error && (e instanceof s ? this.logger.error(`Microblock structure error: ${e.message}`) : this.logger.error(`An unexpected error occurred during structure checking: ${e.message} at ${e.stack}`)), !1;
12580
12538
  }
12581
12539
  }
12582
- }, gS = class e {
12540
+ }, hS = class e {
12583
12541
  identifier;
12584
12542
  microblocks;
12585
12543
  constructor() {
@@ -12618,121 +12576,121 @@ var { NEVER: xx, ALWAYS: Sx, DECIMAL_ROUND: Cx, DECIMAL_FIT: wx } = Wb, Tx = 204
12618
12576
  getMicroblocks() {
12619
12577
  return this.microblocks;
12620
12578
  }
12621
- }, _S = /* @__PURE__ */ Jp(() => /* @__PURE__ */ tm([
12579
+ }, gS = /* @__PURE__ */ Jp(() => /* @__PURE__ */ tm([
12622
12580
  /* @__PURE__ */ L(),
12623
12581
  /* @__PURE__ */ F(),
12624
12582
  /* @__PURE__ */ Gp(),
12625
12583
  /* @__PURE__ */ Yp(),
12626
- /* @__PURE__ */ N(_S),
12627
- /* @__PURE__ */ $p(/* @__PURE__ */ L(), _S)
12628
- ])), vS = /* @__PURE__ */ N(/* @__PURE__ */ tm([/* @__PURE__ */ L(), /* @__PURE__ */ F()])), yS = /* @__PURE__ */ function(e) {
12584
+ /* @__PURE__ */ N(gS),
12585
+ /* @__PURE__ */ $p(/* @__PURE__ */ L(), gS)
12586
+ ])), _S = /* @__PURE__ */ N(/* @__PURE__ */ tm([/* @__PURE__ */ L(), /* @__PURE__ */ F()])), vS = /* @__PURE__ */ function(e) {
12629
12587
  return e[e.None = 0] = "None", e[e.Hashable = 1] = "Hashable", e[e.Maskable = 2] = "Maskable", e;
12630
- }({}), bS = /* @__PURE__ */ rm("type", [
12631
- /* @__PURE__ */ I({ type: /* @__PURE__ */ P(yS.None) }),
12632
- /* @__PURE__ */ I({ type: /* @__PURE__ */ P(yS.Hashable) }),
12588
+ }({}), yS = /* @__PURE__ */ rm("type", [
12589
+ /* @__PURE__ */ I({ type: /* @__PURE__ */ P(vS.None) }),
12590
+ /* @__PURE__ */ I({ type: /* @__PURE__ */ P(vS.Hashable) }),
12633
12591
  /* @__PURE__ */ I({
12634
- type: /* @__PURE__ */ P(yS.Maskable),
12592
+ type: /* @__PURE__ */ P(vS.Maskable),
12635
12593
  visibleParts: /* @__PURE__ */ N(/* @__PURE__ */ L()),
12636
12594
  hiddenParts: /* @__PURE__ */ N(/* @__PURE__ */ L())
12637
12595
  })
12638
- ]), xS = /* @__PURE__ */ function(e) {
12596
+ ]), bS = /* @__PURE__ */ function(e) {
12639
12597
  return e[e.String = 0] = "String", e[e.Number = 1] = "Number", e[e.Boolean = 2] = "Boolean", e[e.Null = 3] = "Null", e[e.Array = 4] = "Array", e[e.Object = 5] = "Object", e;
12640
- }({}), SS, CS = { channelId: /* @__PURE__ */ F() };
12641
- SS = /* @__PURE__ */ rm("type", [
12598
+ }({}), xS, SS = { channelId: /* @__PURE__ */ F() };
12599
+ xS = /* @__PURE__ */ rm("type", [
12642
12600
  /* @__PURE__ */ I({
12643
- ...CS,
12644
- type: /* @__PURE__ */ P(xS.String),
12601
+ ...SS,
12602
+ type: /* @__PURE__ */ P(bS.String),
12645
12603
  value: /* @__PURE__ */ L(),
12646
- transformation: bS
12604
+ transformation: yS
12647
12605
  }),
12648
12606
  /* @__PURE__ */ I({
12649
- ...CS,
12650
- type: /* @__PURE__ */ P(xS.Number),
12607
+ ...SS,
12608
+ type: /* @__PURE__ */ P(bS.Number),
12651
12609
  value: /* @__PURE__ */ F()
12652
12610
  }),
12653
12611
  /* @__PURE__ */ I({
12654
- ...CS,
12655
- type: /* @__PURE__ */ P(xS.Boolean),
12612
+ ...SS,
12613
+ type: /* @__PURE__ */ P(bS.Boolean),
12656
12614
  value: /* @__PURE__ */ Gp()
12657
12615
  }),
12658
12616
  /* @__PURE__ */ I({
12659
- ...CS,
12660
- type: /* @__PURE__ */ P(xS.Null),
12617
+ ...SS,
12618
+ type: /* @__PURE__ */ P(bS.Null),
12661
12619
  value: /* @__PURE__ */ Yp()
12662
12620
  }),
12663
12621
  /* @__PURE__ */ I({
12664
- type: /* @__PURE__ */ P(xS.Array),
12665
- value: /* @__PURE__ */ N(/* @__PURE__ */ Jp(() => SS))
12622
+ type: /* @__PURE__ */ P(bS.Array),
12623
+ value: /* @__PURE__ */ N(/* @__PURE__ */ Jp(() => xS))
12666
12624
  }),
12667
12625
  /* @__PURE__ */ I({
12668
- type: /* @__PURE__ */ P(xS.Object),
12626
+ type: /* @__PURE__ */ P(bS.Object),
12669
12627
  value: /* @__PURE__ */ N(/* @__PURE__ */ I({
12670
12628
  key: /* @__PURE__ */ L(),
12671
- value: /* @__PURE__ */ Jp(() => SS)
12629
+ value: /* @__PURE__ */ Jp(() => xS)
12672
12630
  }))
12673
12631
  })
12674
12632
  ]);
12675
- var wS = /* @__PURE__ */ tm([
12633
+ var CS = /* @__PURE__ */ tm([
12676
12634
  /* @__PURE__ */ L(),
12677
12635
  /* @__PURE__ */ F(),
12678
12636
  /* @__PURE__ */ Gp(),
12679
12637
  /* @__PURE__ */ Yp()
12680
- ]), TS = /* @__PURE__ */ I({
12638
+ ]), wS = /* @__PURE__ */ I({
12681
12639
  pepper: V(),
12682
12640
  data: V()
12683
- }), ES = /* @__PURE__ */ I({
12684
- path: vS,
12685
- value: wS,
12686
- transformation: /* @__PURE__ */ Zp(bS)
12687
- }), DS = /* @__PURE__ */ N(ES), Q = /* @__PURE__ */ function(e) {
12641
+ }), TS = /* @__PURE__ */ I({
12642
+ path: _S,
12643
+ value: CS,
12644
+ transformation: /* @__PURE__ */ Zp(yS)
12645
+ }), ES = /* @__PURE__ */ N(TS), Q = /* @__PURE__ */ function(e) {
12688
12646
  return e[e.Public = 0] = "Public", e[e.Plain = 1] = "Plain", e[e.HashableFromValue = 2] = "HashableFromValue", e[e.Hashable = 3] = "Hashable", e[e.MaskableFromAllParts = 4] = "MaskableFromAllParts", e[e.MaskableFromVisibleParts = 5] = "MaskableFromVisibleParts", e[e.Maskable = 6] = "Maskable", e;
12689
12647
  }({});
12690
12648
  Q.Public, Q.Plain, Q.HashableFromValue, Q.Hashable, Q.MaskableFromAllParts, Q.MaskableFromVisibleParts, Q.Maskable;
12691
- var OS = /* @__PURE__ */ function(e) {
12649
+ var DS = /* @__PURE__ */ function(e) {
12692
12650
  return e[e.Public = 0] = "Public", e[e.Plain = 1] = "Plain", e[e.HashableAsPlain = 2] = "HashableAsPlain", e[e.HashableAsHash = 3] = "HashableAsHash", e[e.MaskableAsAllParts = 4] = "MaskableAsAllParts", e[e.MaskableAsVisibleParts = 5] = "MaskableAsVisibleParts", e;
12693
- }({}), kS = /* @__PURE__ */ I({
12694
- path: vS,
12695
- type: /* @__PURE__ */ P(OS.Public),
12696
- value: wS
12697
- }), AS = {
12698
- path: vS,
12651
+ }({}), OS = /* @__PURE__ */ I({
12652
+ path: _S,
12653
+ type: /* @__PURE__ */ P(DS.Public),
12654
+ value: CS
12655
+ }), kS = {
12656
+ path: _S,
12699
12657
  index: /* @__PURE__ */ F()
12700
- }, jS = /* @__PURE__ */ rm("type", [
12701
- kS,
12658
+ }, AS = /* @__PURE__ */ rm("type", [
12659
+ OS,
12702
12660
  /* @__PURE__ */ I({
12703
- ...AS,
12704
- type: /* @__PURE__ */ P(OS.Plain),
12661
+ ...kS,
12662
+ type: /* @__PURE__ */ P(DS.Plain),
12705
12663
  salt: /* @__PURE__ */ L(),
12706
- value: wS
12664
+ value: CS
12707
12665
  }),
12708
12666
  /* @__PURE__ */ I({
12709
- ...AS,
12710
- type: /* @__PURE__ */ P(OS.HashableAsPlain),
12667
+ ...kS,
12668
+ type: /* @__PURE__ */ P(DS.HashableAsPlain),
12711
12669
  salt: /* @__PURE__ */ L(),
12712
- value: wS
12670
+ value: CS
12713
12671
  }),
12714
12672
  /* @__PURE__ */ I({
12715
- ...AS,
12716
- type: /* @__PURE__ */ P(OS.HashableAsHash),
12673
+ ...kS,
12674
+ type: /* @__PURE__ */ P(DS.HashableAsHash),
12717
12675
  salt: /* @__PURE__ */ L(),
12718
12676
  hash: /* @__PURE__ */ L()
12719
12677
  }),
12720
12678
  /* @__PURE__ */ I({
12721
- ...AS,
12722
- type: /* @__PURE__ */ P(OS.MaskableAsAllParts),
12679
+ ...kS,
12680
+ type: /* @__PURE__ */ P(DS.MaskableAsAllParts),
12723
12681
  v_salt: /* @__PURE__ */ L(),
12724
12682
  v_parts: /* @__PURE__ */ N(/* @__PURE__ */ L()),
12725
12683
  h_salt: /* @__PURE__ */ L(),
12726
12684
  h_parts: /* @__PURE__ */ N(/* @__PURE__ */ L())
12727
12685
  }),
12728
12686
  /* @__PURE__ */ I({
12729
- ...AS,
12730
- type: /* @__PURE__ */ P(OS.MaskableAsVisibleParts),
12687
+ ...kS,
12688
+ type: /* @__PURE__ */ P(DS.MaskableAsVisibleParts),
12731
12689
  v_salt: /* @__PURE__ */ L(),
12732
12690
  v_parts: /* @__PURE__ */ N(/* @__PURE__ */ L()),
12733
12691
  h_hash: /* @__PURE__ */ L()
12734
12692
  })
12735
- ]), MS = /* @__PURE__ */ I({
12693
+ ]), jS = /* @__PURE__ */ I({
12736
12694
  version: /* @__PURE__ */ F(),
12737
12695
  info: /* @__PURE__ */ I({
12738
12696
  title: /* @__PURE__ */ L(),
@@ -12748,7 +12706,7 @@ var OS = /* @__PURE__ */ function(e) {
12748
12706
  id: /* @__PURE__ */ F(),
12749
12707
  is_public: /* @__PURE__ */ Gp(),
12750
12708
  n_leaves: /* @__PURE__ */ F(),
12751
- fields: /* @__PURE__ */ N(jS),
12709
+ fields: /* @__PURE__ */ N(AS),
12752
12710
  witnesses: /* @__PURE__ */ N(/* @__PURE__ */ L())
12753
12711
  }))
12754
12712
  }))
@@ -12765,12 +12723,12 @@ var OS = /* @__PURE__ */ function(e) {
12765
12723
  alg: /* @__PURE__ */ Qp(["ecdsa-secp256k1", "ml-dsa-65"]),
12766
12724
  sig: /* @__PURE__ */ L()
12767
12725
  }))
12768
- }), NS = 1, PS = class e {
12726
+ }), MS = 1, NS = class e {
12769
12727
  encoder = new Ex();
12770
12728
  wrapper;
12771
12729
  constructor() {
12772
12730
  this.wrapper = {
12773
- version: NS,
12731
+ version: MS,
12774
12732
  info: {
12775
12733
  title: "Carmentis proof",
12776
12734
  description: "This is a Carmentis proof file. Visit www.carmentis.io for more information.",
@@ -12781,7 +12739,7 @@ var OS = /* @__PURE__ */ function(e) {
12781
12739
  };
12782
12740
  }
12783
12741
  static fromObject(t) {
12784
- R(MS, t);
12742
+ R(jS, t);
12785
12743
  let n = new e();
12786
12744
  return n.wrapper = t, n;
12787
12745
  }
@@ -12824,7 +12782,7 @@ var OS = /* @__PURE__ */ function(e) {
12824
12782
  return t;
12825
12783
  }
12826
12784
  getVirtualBlockchains() {
12827
- return this.wrapper.virtual_blockchains.map((e) => gS.fromObject(e));
12785
+ return this.wrapper.virtual_blockchains.map((e) => hS.fromObject(e));
12828
12786
  }
12829
12787
  sign(e = /* @__PURE__ */ new Date()) {
12830
12788
  let t = this.computeDigest(), n = {
@@ -12854,7 +12812,7 @@ var OS = /* @__PURE__ */ function(e) {
12854
12812
  getObject() {
12855
12813
  return this.wrapper;
12856
12814
  }
12857
- }, FS = class {
12815
+ }, PS = class {
12858
12816
  leaves;
12859
12817
  nLeaves;
12860
12818
  tree;
@@ -12926,7 +12884,7 @@ var OS = /* @__PURE__ */ function(e) {
12926
12884
  let r = new Uint8Array(65);
12927
12885
  return r[0] = +(e == this.tree.length - 1), r.set(t, 1), r.set(n, 33), M.Hashes.sha256AsBinary(r);
12928
12886
  }
12929
- }, IS = class e {
12887
+ }, FS = class e {
12930
12888
  internalData = void 0;
12931
12889
  encoder = new Ex();
12932
12890
  static fromProofFormat(t) {
@@ -13021,22 +12979,22 @@ var OS = /* @__PURE__ */ function(e) {
13021
12979
  }
13022
12980
  fromProofField(e) {
13023
12981
  switch (e.type) {
13024
- case OS.Public:
12982
+ case DS.Public:
13025
12983
  this.setPublicDataFromValue(e.value);
13026
12984
  break;
13027
- case OS.Plain:
12985
+ case DS.Plain:
13028
12986
  this.setPlainDataFromValue(A.binaryFromHexa(e.salt), e.value);
13029
12987
  break;
13030
- case OS.HashableAsPlain:
12988
+ case DS.HashableAsPlain:
13031
12989
  this.setHashedDataFromValue(A.binaryFromHexa(e.salt), e.value);
13032
12990
  break;
13033
- case OS.HashableAsHash:
12991
+ case DS.HashableAsHash:
13034
12992
  this.setHashedDataFromHash(A.binaryFromHexa(e.salt), A.binaryFromHexa(e.hash));
13035
12993
  break;
13036
- case OS.MaskableAsAllParts:
12994
+ case DS.MaskableAsAllParts:
13037
12995
  this.setMaskedDataFromAllParts(A.binaryFromHexa(e.v_salt), e.v_parts, A.binaryFromHexa(e.h_salt), e.h_parts);
13038
12996
  break;
13039
- case OS.MaskableAsVisibleParts:
12997
+ case DS.MaskableAsVisibleParts:
13040
12998
  this.setMaskedDataFromVisibleParts(A.binaryFromHexa(e.v_salt), e.v_parts, A.binaryFromHexa(e.h_hash));
13041
12999
  break;
13042
13000
  }
@@ -13046,34 +13004,34 @@ var OS = /* @__PURE__ */ function(e) {
13046
13004
  switch (n.type) {
13047
13005
  case Q.Public: return {
13048
13006
  path: e,
13049
- type: OS.Public,
13007
+ type: DS.Public,
13050
13008
  value: n.value
13051
13009
  };
13052
13010
  case Q.Plain: return {
13053
13011
  path: e,
13054
13012
  index: t,
13055
- type: OS.Plain,
13013
+ type: DS.Plain,
13056
13014
  salt: A.binaryToHexa(n.salt),
13057
13015
  value: n.value
13058
13016
  };
13059
13017
  case Q.HashableFromValue: return {
13060
13018
  path: e,
13061
13019
  index: t,
13062
- type: OS.HashableAsPlain,
13020
+ type: DS.HashableAsPlain,
13063
13021
  salt: A.binaryToHexa(n.salt),
13064
13022
  value: n.value
13065
13023
  };
13066
13024
  case Q.Hashable: return {
13067
13025
  path: e,
13068
13026
  index: t,
13069
- type: OS.HashableAsHash,
13027
+ type: DS.HashableAsHash,
13070
13028
  salt: A.binaryToHexa(n.salt),
13071
13029
  hash: A.binaryToHexa(n.hash)
13072
13030
  };
13073
13031
  case Q.MaskableFromAllParts: return {
13074
13032
  path: e,
13075
13033
  index: t,
13076
- type: OS.MaskableAsAllParts,
13034
+ type: DS.MaskableAsAllParts,
13077
13035
  v_salt: A.binaryToHexa(n.visible.salt),
13078
13036
  v_parts: n.visible.parts,
13079
13037
  h_salt: A.binaryToHexa(n.hidden.salt),
@@ -13082,7 +13040,7 @@ var OS = /* @__PURE__ */ function(e) {
13082
13040
  case Q.MaskableFromVisibleParts: return {
13083
13041
  path: e,
13084
13042
  index: t,
13085
- type: OS.MaskableAsVisibleParts,
13043
+ type: DS.MaskableAsVisibleParts,
13086
13044
  v_salt: A.binaryToHexa(n.visible.salt),
13087
13045
  v_parts: n.visible.parts,
13088
13046
  h_hash: A.binaryToHexa(n.hiddenHash)
@@ -13160,7 +13118,7 @@ var OS = /* @__PURE__ */ function(e) {
13160
13118
  default: throw Error(`invalid internal data type ${e.type}`);
13161
13119
  }
13162
13120
  }
13163
- }, LS = class e {
13121
+ }, IS = class e {
13164
13122
  channelMap;
13165
13123
  fieldMap;
13166
13124
  publicChannels;
@@ -13181,7 +13139,7 @@ var OS = /* @__PURE__ */ function(e) {
13181
13139
  for (let [e, n] of t) this.channelMap.set(e, {
13182
13140
  nLeaves: n.length,
13183
13141
  leaves: n,
13184
- tree: new FS(),
13142
+ tree: new PS(),
13185
13143
  witnesses: []
13186
13144
  });
13187
13145
  this.buildTrees(), this.buildFieldMap();
@@ -13190,7 +13148,7 @@ var OS = /* @__PURE__ */ function(e) {
13190
13148
  for (let t of e) {
13191
13149
  let e = [];
13192
13150
  for (let n of t.fields) {
13193
- let t = IS.fromProofFormat(n), r = n.type == OS.Public ? 0 : n.index;
13151
+ let t = FS.fromProofFormat(n), r = n.type == DS.Public ? 0 : n.index;
13194
13152
  e.push({
13195
13153
  leaf: t,
13196
13154
  path: n.path,
@@ -13201,7 +13159,7 @@ var OS = /* @__PURE__ */ function(e) {
13201
13159
  t.is_public && this.publicChannels.add(t.id), this.channelMap.set(t.id, {
13202
13160
  nLeaves: t.n_leaves,
13203
13161
  leaves: e,
13204
- tree: new FS(),
13162
+ tree: new PS(),
13205
13163
  witnesses: n
13206
13164
  });
13207
13165
  }
@@ -13310,7 +13268,7 @@ var OS = /* @__PURE__ */ function(e) {
13310
13268
  }
13311
13269
  return e;
13312
13270
  }
13313
- }, RS = class e {
13271
+ }, LS = class e {
13314
13272
  channelMap;
13315
13273
  publicChannels;
13316
13274
  constructor() {
@@ -13343,7 +13301,7 @@ var OS = /* @__PURE__ */ function(e) {
13343
13301
  if (t == null) throw Error(`Channel ${e} not found`);
13344
13302
  return t;
13345
13303
  }
13346
- }, zS = class {
13304
+ }, RS = class {
13347
13305
  pepper;
13348
13306
  hasNullPepper;
13349
13307
  sha512;
@@ -13361,7 +13319,7 @@ var OS = /* @__PURE__ */ function(e) {
13361
13319
  let e = this.counter & 3, t = this.counter++ >> 2;
13362
13320
  return !e && !this.hasNullPepper && (this.sha512 = M.Hashes.sha512AsBinary(A.binaryFrom(this.pepper, t))), this.sha512.slice(e << 4, e + 1 << 4);
13363
13321
  }
13364
- }, BS = class e {
13322
+ }, zS = class e {
13365
13323
  channelMap;
13366
13324
  recordByChannels;
13367
13325
  publicChannels;
@@ -13376,7 +13334,7 @@ var OS = /* @__PURE__ */ function(e) {
13376
13334
  this.publicChannels = e.getPublicChannels(), this.recordByChannels = e;
13377
13335
  let n = this.recordByChannels.getChannelIds();
13378
13336
  for (let e of n) {
13379
- let n = this.publicChannels.has(e), r = n ? A.getNullHash() : t === void 0 ? zS.generatePepper() : t.get(e);
13337
+ let n = this.publicChannels.has(e), r = n ? A.getNullHash() : t === void 0 ? RS.generatePepper() : t.get(e);
13380
13338
  if (r === void 0) throw Error(`no pepper specified for channel ${e}`);
13381
13339
  let i = this.recordByChannels.getFlatItems(e);
13382
13340
  this.storeChannel(e, n, i, r);
@@ -13411,7 +13369,7 @@ var OS = /* @__PURE__ */ function(e) {
13411
13369
  getChannelRootHash(e) {
13412
13370
  let t = this.getChannel(e);
13413
13371
  if (this.publicChannels.has(e)) return A.getNullHash();
13414
- let n = new FS();
13372
+ let n = new PS();
13415
13373
  for (let e of t.positionedLeaves) {
13416
13374
  let t = e.leaf.getHash();
13417
13375
  n.addLeaf(t);
@@ -13424,7 +13382,7 @@ var OS = /* @__PURE__ */ function(e) {
13424
13382
  return t;
13425
13383
  }
13426
13384
  flatItemsToPositionedLeaves(e, t, n) {
13427
- let r = new zS(n);
13385
+ let r = new RS(n);
13428
13386
  return e.map((e, n) => ({
13429
13387
  leaf: this.flatItemToLeaf(r, t, e.item),
13430
13388
  index: n,
@@ -13432,23 +13390,23 @@ var OS = /* @__PURE__ */ function(e) {
13432
13390
  }));
13433
13391
  }
13434
13392
  flatItemToLeaf(e, t, n) {
13435
- let r = n.type == xS.String ? n.transformation.type : yS.None;
13436
- if (t && r != yS.None) throw Error("no transformation may be applied to a public field");
13393
+ let r = n.type == bS.String ? n.transformation.type : vS.None;
13394
+ if (t && r != vS.None) throw Error("no transformation may be applied to a public field");
13437
13395
  switch (r) {
13438
- case yS.None: return t ? IS.fromItemWithPublicData(n) : IS.fromItemWithPlainData(e, n);
13439
- case yS.Hashable: return IS.fromItemWithHashedData(e, n);
13440
- case yS.Maskable: return IS.fromItemWithMaskedData(e, n);
13396
+ case vS.None: return t ? FS.fromItemWithPublicData(n) : FS.fromItemWithPlainData(e, n);
13397
+ case vS.Hashable: return FS.fromItemWithHashedData(e, n);
13398
+ case vS.Maskable: return FS.fromItemWithMaskedData(e, n);
13441
13399
  default: throw Error(`unsupported transformation type ${r}`);
13442
13400
  }
13443
13401
  }
13444
- }, VS = class e {
13402
+ }, BS = class e {
13445
13403
  itemList;
13446
13404
  publicChannels;
13447
13405
  constructor() {
13448
13406
  this.itemList = [], this.publicChannels = /* @__PURE__ */ new Set();
13449
13407
  }
13450
13408
  static fromObject(t) {
13451
- let n = new e(), r = R(_S, t);
13409
+ let n = new e(), r = R(gS, t);
13452
13410
  return n.buildItemListByDfs(r), n;
13453
13411
  }
13454
13412
  setChannelAsPublic(e) {
@@ -13472,11 +13430,11 @@ var OS = /* @__PURE__ */ function(e) {
13472
13430
  for (let e of t) this.setFieldAsHashable(e.item);
13473
13431
  }
13474
13432
  setFieldAsHashable(e) {
13475
- if (e.type !== xS.String) throw Error("only a string may be set as hashable");
13476
- e.transformation = { type: yS.Hashable };
13433
+ if (e.type !== bS.String) throw Error("only a string may be set as hashable");
13434
+ e.transformation = { type: vS.Hashable };
13477
13435
  }
13478
13436
  setMaskOnField(e, t) {
13479
- if (e.type !== xS.String) throw Error("a mask may only be applied to a string");
13437
+ if (e.type !== bS.String) throw Error("a mask may only be applied to a string");
13480
13438
  let n = [], r = [];
13481
13439
  t.sort((e, t) => e.start - t.start), t.forEach((i, a) => {
13482
13440
  let o = a > 0 ? t[a - 1].start : 0, s = a > 0 ? t[a - 1].end : 0;
@@ -13485,7 +13443,7 @@ var OS = /* @__PURE__ */ function(e) {
13485
13443
  let c = e.value.slice(i.start, i.end);
13486
13444
  a && i.start == s ? (n[n.length - 1] += i.replacement, r[r.length - 1] += c) : (n.push(e.value.slice(s, i.start), i.replacement), r.push(c)), a == t.length - 1 && i.end < e.value.length && n.push(e.value.slice(i.end));
13487
13445
  }), e.transformation = {
13488
- type: yS.Maskable,
13446
+ type: vS.Maskable,
13489
13447
  visibleParts: n,
13490
13448
  hiddenParts: r
13491
13449
  };
@@ -13499,7 +13457,7 @@ var OS = /* @__PURE__ */ function(e) {
13499
13457
  for (let e of r) this.setMaskByRegexOnField(e.item, t, n);
13500
13458
  }
13501
13459
  setMaskByRegexOnField(e, t, n) {
13502
- if (e.type !== xS.String) throw Error("a mask may only be applied to a string");
13460
+ if (e.type !== bS.String) throw Error("a mask may only be applied to a string");
13503
13461
  let r = (t.exec(e.value) || []).slice(1);
13504
13462
  if (r.join("") != e.value) throw `the regular expression ${t} does not capture all string parts`;
13505
13463
  let i = n.split(/(\$\d+)/).map((e, t) => ({
@@ -13539,37 +13497,37 @@ var OS = /* @__PURE__ */ function(e) {
13539
13497
  });
13540
13498
  }
13541
13499
  static getValueType(e) {
13542
- if (typeof e == "string") return xS.String;
13543
- if (typeof e == "number") return xS.Number;
13544
- if (typeof e == "boolean") return xS.Boolean;
13545
- if (e === null) return xS.Null;
13546
- if (Array.isArray(e)) return xS.Array;
13547
- if (typeof e == "object" && Object.getPrototypeOf(e).isPrototypeOf(Object)) return xS.Object;
13500
+ if (typeof e == "string") return bS.String;
13501
+ if (typeof e == "number") return bS.Number;
13502
+ if (typeof e == "boolean") return bS.Boolean;
13503
+ if (e === null) return bS.Null;
13504
+ if (Array.isArray(e)) return bS.Array;
13505
+ if (typeof e == "object" && Object.getPrototypeOf(e).isPrototypeOf(Object)) return bS.Object;
13548
13506
  throw Error("unsupported field type");
13549
13507
  }
13550
13508
  static getPrimitiveValueType(t) {
13551
13509
  let n = e.getValueType(t);
13552
- if (n == xS.Array || n == xS.Object) throw Error("expected a primitive value, got an array or an object");
13510
+ if (n == bS.Array || n == bS.Object) throw Error("expected a primitive value, got an array or an object");
13553
13511
  return n;
13554
13512
  }
13555
13513
  buildItemListByDfs(t, n = []) {
13556
13514
  switch (e.getValueType(t)) {
13557
- case xS.String:
13515
+ case bS.String:
13558
13516
  this.addFlatItem(n, this.buildStringItem(t));
13559
13517
  break;
13560
- case xS.Number:
13518
+ case bS.Number:
13561
13519
  this.addFlatItem(n, this.buildNumberItem(t));
13562
13520
  break;
13563
- case xS.Boolean:
13521
+ case bS.Boolean:
13564
13522
  this.addFlatItem(n, this.buildBooleanItem(t));
13565
13523
  break;
13566
- case xS.Null:
13524
+ case bS.Null:
13567
13525
  this.addFlatItem(n, this.buildNullItem());
13568
13526
  break;
13569
- case xS.Array:
13527
+ case bS.Array:
13570
13528
  this.buildArrayItem(t, n);
13571
13529
  break;
13572
- case xS.Object:
13530
+ case bS.Object:
13573
13531
  this.buildObjectItem(t, n);
13574
13532
  break;
13575
13533
  default: throw Error("unsupported field type");
@@ -13584,29 +13542,29 @@ var OS = /* @__PURE__ */ function(e) {
13584
13542
  }
13585
13543
  buildStringItem(e) {
13586
13544
  return {
13587
- type: xS.String,
13545
+ type: bS.String,
13588
13546
  value: e,
13589
- transformation: { type: yS.None },
13547
+ transformation: { type: vS.None },
13590
13548
  channelId: -1
13591
13549
  };
13592
13550
  }
13593
13551
  buildNumberItem(e) {
13594
13552
  return {
13595
- type: xS.Number,
13553
+ type: bS.Number,
13596
13554
  value: e,
13597
13555
  channelId: -1
13598
13556
  };
13599
13557
  }
13600
13558
  buildBooleanItem(e) {
13601
13559
  return {
13602
- type: xS.Boolean,
13560
+ type: bS.Boolean,
13603
13561
  value: e,
13604
13562
  channelId: -1
13605
13563
  };
13606
13564
  }
13607
13565
  buildNullItem() {
13608
13566
  return {
13609
- type: xS.Null,
13567
+ type: bS.Null,
13610
13568
  value: null,
13611
13569
  channelId: -1
13612
13570
  };
@@ -13622,7 +13580,7 @@ var OS = /* @__PURE__ */ function(e) {
13622
13580
  this.buildItemListByDfs(r, [...t, n]);
13623
13581
  });
13624
13582
  }
13625
- }, HS = class e {
13583
+ }, VS = class e {
13626
13584
  encoder = new Ex();
13627
13585
  channelMap;
13628
13586
  publicChannels;
@@ -13668,21 +13626,21 @@ var OS = /* @__PURE__ */ function(e) {
13668
13626
  if (this.channelMap.has(e)) throw Error(`channel ${e} has already been set`);
13669
13627
  t ? this.publicChannels.add(e) : this.publicChannels.delete(e);
13670
13628
  let i = this.encoder.decode(r);
13671
- R(TS, i);
13629
+ R(wS, i);
13672
13630
  let a = i.pepper, o = this.encoder.decode(i.data);
13673
- R(DS, o), this.channelMap.set(e, {
13631
+ R(ES, o), this.channelMap.set(e, {
13674
13632
  rootHash: n,
13675
13633
  pepper: a,
13676
13634
  onChainItems: o
13677
13635
  });
13678
13636
  }
13679
13637
  toMerkleRecord(e = !0) {
13680
- let t = new RS(), n = /* @__PURE__ */ new Map();
13638
+ let t = new LS(), n = /* @__PURE__ */ new Map();
13681
13639
  for (let [e, r] of this.channelMap) {
13682
13640
  let i = r.onChainItems.map((t) => {
13683
13641
  let n = {
13684
13642
  channelId: e,
13685
- type: VS.getPrimitiveValueType(t.value),
13643
+ type: BS.getPrimitiveValueType(t.value),
13686
13644
  value: t.value,
13687
13645
  ...t.transformation ? { transformation: t.transformation } : {}
13688
13646
  };
@@ -13693,7 +13651,7 @@ var OS = /* @__PURE__ */ function(e) {
13693
13651
  }), a = this.publicChannels.has(e);
13694
13652
  t.setChannel(e, a, i), n.set(e, r.pepper);
13695
13653
  }
13696
- let r = BS.fromRecordByChannels(t, n);
13654
+ let r = zS.fromRecordByChannels(t, n);
13697
13655
  if (e) {
13698
13656
  for (let [e, t] of this.channelMap) if (!this.publicChannels.has(e)) {
13699
13657
  let n = r.getChannelRootHash(e);
@@ -13707,12 +13665,12 @@ var OS = /* @__PURE__ */ function(e) {
13707
13665
  if (t === void 0) throw Error(`channel ${e} not found`);
13708
13666
  return t;
13709
13667
  }
13710
- }, US = class e extends tS {
13668
+ }, HS = class e extends eS {
13711
13669
  static createApplicationLedgerVirtualBlockchain(t) {
13712
13670
  return new e(t);
13713
13671
  }
13714
13672
  draftModeEnabled = !1;
13715
- constructor(e, t = Ix.createInitialState()) {
13673
+ constructor(e, t = Fx.createInitialState()) {
13716
13674
  super(e, H.APP_LEDGER_VIRTUAL_BLOCKCHAIN, t);
13717
13675
  }
13718
13676
  async isAccountIdAllowedToWrite(e) {
@@ -13737,10 +13695,10 @@ var OS = /* @__PURE__ */ function(e) {
13737
13695
  }
13738
13696
  async updateInternalState(e, t, n) {
13739
13697
  let r = e.getApplicationLedgerInternalStateUpdaterVersion();
13740
- return Xx.createApplicationLedgerInternalStateUpdater(r).updateState(this.provider, this.internalState, n);
13698
+ return Yx.createApplicationLedgerInternalStateUpdater(r).updateState(this.provider, this.internalState, n);
13741
13699
  }
13742
13700
  checkMicroblockStructure(e) {
13743
- return this.draftModeEnabled ? !0 : new hS().checkMicroblockStructure(e);
13701
+ return this.draftModeEnabled ? !0 : new mS().checkMicroblockStructure(e);
13744
13702
  }
13745
13703
  enableDraftMode() {
13746
13704
  this.draftModeEnabled = !0;
@@ -13896,7 +13854,7 @@ var OS = /* @__PURE__ */ function(e) {
13896
13854
  }
13897
13855
  }
13898
13856
  } else console.warn("No private channel loaded: no private decryption key provided.");
13899
- let o = new HS();
13857
+ let o = new VS();
13900
13858
  for (let e of i) o.addOnChainData(e.channelId, e.isPublic, e.merkleRootHash, e.data);
13901
13859
  return o.toMerkleRecord(!1);
13902
13860
  }
@@ -13911,7 +13869,7 @@ var OS = /* @__PURE__ */ function(e) {
13911
13869
  return new wv().deriveKey(e, a, s, i);
13912
13870
  }
13913
13871
  async getChannelKey(e, t, n) {
13914
- mS.assert(typeof e == "number", "Expected actor id with type number"), mS.assert(typeof t == "number", `Expected channel id of type number: got ${typeof t}`);
13872
+ pS.assert(typeof e == "number", "Expected actor id with type number"), pS.assert(typeof t == "number", `Expected channel id of type number: got ${typeof t}`);
13915
13873
  let r = this.internalState.getChannelCreatorIdFromChannelId(t), i = await n.getPrivateDecryptionKey(Tv.ML_KEM_768_AES_256_GCM);
13916
13874
  if (r === e) {
13917
13875
  let e = n.getSeedAsBytes();
@@ -13924,7 +13882,7 @@ var OS = /* @__PURE__ */ function(e) {
13924
13882
  return new wv().deriveKeyNoSalt(a, i, 32);
13925
13883
  }
13926
13884
  async getChannelKeyFromInvitation(e, t, n) {
13927
- mS.assert(typeof e == "number", `actorId should be a number, got ${typeof e}`), mS.assert(typeof t == "number", `channelId should be a number, got ${typeof e}`);
13885
+ pS.assert(typeof e == "number", `actorId should be a number, got ${typeof e}`), pS.assert(typeof t == "number", `channelId should be a number, got ${typeof e}`);
13928
13886
  let r = this.internalState.getActorById(e).invitations.find((e) => e.channelId == t);
13929
13887
  if (!r) {
13930
13888
  let n = this.internalState.getActorById(e).name, r = this.internalState.getChannelFromChannelId(t).name;
@@ -13937,21 +13895,21 @@ var OS = /* @__PURE__ */ function(e) {
13937
13895
  return await n.decrypt(o);
13938
13896
  }
13939
13897
  async exportProof(e, t) {
13940
- let n = new gS();
13898
+ let n = new hS();
13941
13899
  n.setIdentifier(A.binaryToHexa(this.getIdentifier().toBytes()));
13942
13900
  for (let e = 1; e <= this.getHeight(); e++) {
13943
13901
  let r = await this.getMicroblockMerkleRecord(e, t);
13944
13902
  console.log(`Merkle record at height ${e}:`, r);
13945
- let i = LS.fromMerkleRecord(r);
13903
+ let i = IS.fromMerkleRecord(r);
13946
13904
  console.log(`Proof record at height ${e}:`, i);
13947
13905
  let a = i.toProofChannels();
13948
13906
  console.log(`Proof channels at height ${e}:`, a), n.addMicroblock(e, a);
13949
13907
  }
13950
- let r = new PS();
13908
+ let r = new NS();
13951
13909
  return r.setAuthor(e.author), r.addVirtualBlockchain(n), r.getObject();
13952
13910
  }
13953
13911
  async importProof(e) {
13954
- let t = [], n = PS.fromObject(e).getSingleVirtualBlockchainOrFail().getMicroblocks();
13912
+ let t = [], n = NS.fromObject(e).getSingleVirtualBlockchainOrFail().getMicroblocks();
13955
13913
  for (let e of n) {
13956
13914
  let n = e.height, r = await this.getMicroblock(n), i = [];
13957
13915
  for (let e of r.getAllSections()) if (e.type === O.APP_LEDGER_PUBLIC_CHANNEL_DATA) {
@@ -13968,7 +13926,7 @@ var OS = /* @__PURE__ */ function(e) {
13968
13926
  });
13969
13927
  }
13970
13928
  console.log("ProofMicroblock.channels=", e.channels);
13971
- let a = LS.fromProofChannels(e.channels);
13929
+ let a = IS.fromProofChannels(e.channels);
13972
13930
  for (let e of i) {
13973
13931
  let t = a.getRootHashAsBinary(e.channelId);
13974
13932
  if (!A.binaryIsEqual(e.merkleRootHash, t)) {
@@ -13986,12 +13944,12 @@ var OS = /* @__PURE__ */ function(e) {
13986
13944
  }
13987
13945
  async getRecord(e, t) {
13988
13946
  let n = await this.getMicroblockMerkleRecord(e, t);
13989
- return LS.fromMerkleRecord(n).toJson();
13947
+ return IS.fromMerkleRecord(n).toJson();
13990
13948
  }
13991
13949
  async isActorInChannel(e, t) {
13992
13950
  return this.internalState.getActorById(t).invitations.some((t) => t.channelId == e);
13993
13951
  }
13994
- }, WS = class e {
13952
+ }, US = class e {
13995
13953
  constructor(e) {
13996
13954
  this.value = e;
13997
13955
  }
@@ -14024,8 +13982,8 @@ var OS = /* @__PURE__ */ function(e) {
14024
13982
  isNone() {
14025
13983
  return this.value === null;
14026
13984
  }
14027
- }, GS = class {
14028
- _error = WS.none();
13985
+ }, WS = class {
13986
+ _error = US.none();
14029
13987
  hash;
14030
13988
  header;
14031
13989
  verificationState = { isMicroblockParsingCompleted: !1 };
@@ -14038,39 +13996,39 @@ var OS = /* @__PURE__ */ function(e) {
14038
13996
  let e = this.checkedMicroblock.getType(), t = 0, n, r = this.checkedMicroblock.getPreviousHash().toBytes();
14039
13997
  if (this.checkedMicroblock.isGenesisMicroblock()) {
14040
13998
  let t = r;
14041
- e = $x.extractTypeFromGenesisPreviousHash(t), n = this.checkedMicroblock.getHash();
13999
+ e = Qx.extractTypeFromGenesisPreviousHash(t), n = this.checkedMicroblock.getHash();
14042
14000
  } else {
14043
- let e = await this.provider.getMicroblockHeader(Px.from(r));
14001
+ let e = await this.provider.getMicroblockHeader(Nx.from(r));
14044
14002
  if (!e) throw Error(`previous microblock ${A.binaryToHexa(r)} not found`);
14045
14003
  if (this.checkedMicroblock.getHeight() != e.height + 1) throw Error(`inconsistent microblock height (expected ${e.height + 1}, got ${this.checkedMicroblock.getHeight()})`);
14046
14004
  let t = X.computeMicroblockHashFromHeader(e);
14047
- n = await this.provider.getVirtualBlockchainIdContainingMicroblock(Px.from(t));
14005
+ n = await this.provider.getVirtualBlockchainIdContainingMicroblock(Nx.from(t));
14048
14006
  }
14049
14007
  let i;
14050
14008
  if (this.checkedMicroblock.isGenesisMicroblock()) {
14051
14009
  switch (e) {
14052
14010
  case H.ORGANIZATION_VIRTUAL_BLOCKCHAIN:
14053
- i = new aS(this.provider);
14011
+ i = new iS(this.provider);
14054
14012
  break;
14055
14013
  case H.ACCOUNT_VIRTUAL_BLOCKCHAIN:
14056
- i = new sS(this.provider);
14014
+ i = new oS(this.provider);
14057
14015
  break;
14058
14016
  case H.APPLICATION_VIRTUAL_BLOCKCHAIN:
14059
- i = new lS(this.provider);
14017
+ i = new cS(this.provider);
14060
14018
  break;
14061
14019
  case H.NODE_VIRTUAL_BLOCKCHAIN:
14062
- i = new dS(this.provider);
14020
+ i = new uS(this.provider);
14063
14021
  break;
14064
14022
  case H.PROTOCOL_VIRTUAL_BLOCKCHAIN:
14065
- i = new pS(this.provider);
14023
+ i = new fS(this.provider);
14066
14024
  break;
14067
14025
  case H.APP_LEDGER_VIRTUAL_BLOCKCHAIN:
14068
- i = new US(this.provider);
14026
+ i = new HS(this.provider);
14069
14027
  break;
14070
14028
  default: throw Error(`Unknown virtual blockchain type: ${e}`);
14071
14029
  }
14072
14030
  let n = this.checkedMicroblock.getPreviousHash().toBytes();
14073
- t = $x.extractExpirationDayFromGenesisPreviousHash(n), i.setExpirationDay(t);
14031
+ t = Qx.extractExpirationDayFromGenesisPreviousHash(n), i.setExpirationDay(t);
14074
14032
  } else switch (e) {
14075
14033
  case H.ORGANIZATION_VIRTUAL_BLOCKCHAIN:
14076
14034
  i = await this.provider.loadOrganizationVirtualBlockchain(n);
@@ -14102,8 +14060,8 @@ var OS = /* @__PURE__ */ function(e) {
14102
14060
  let t = this.checkedMicroblock;
14103
14061
  e ||= A.getTimestampInSeconds();
14104
14062
  let n = t.isTemporallyCloseTo(e);
14105
- if (n === Zx.TOO_FAR_IN_THE_PAST) throw Error(`timestamp is too far in the past (header:${t.getTimestamp()} / current:${e})`);
14106
- if (n === Zx.TOO_FAR_IN_THE_FUTURE) throw Error(`timestamp is too far in the future (header:${t.getTimestamp()} / current:${e})`);
14063
+ if (n === Xx.TOO_FAR_IN_THE_PAST) throw Error(`timestamp is too far in the past (header:${t.getTimestamp()} / current:${e})`);
14064
+ if (n === Xx.TOO_FAR_IN_THE_FUTURE) throw Error(`timestamp is too far in the future (header:${t.getTimestamp()} / current:${e})`);
14107
14065
  }
14108
14066
  async checkGasOrFail(e = A.getTimestampInSeconds()) {
14109
14067
  if (this.verificationState.isMicroblockParsingCompleted === !1) throw new a("You have already called reconstructMicroblockAndVirtualBlockchain() method. You can only call it once.");
@@ -14132,44 +14090,44 @@ var OS = /* @__PURE__ */ function(e) {
14132
14090
  get error() {
14133
14091
  return this.containsError() ? this._error.unwrap().toString() : "";
14134
14092
  }
14135
- }, KS = 2, qS = 32, JS = {
14136
- CACHE_HORIZON: KS,
14137
- HASH_SIZE: qS,
14138
- ROOT_ANCHORING_HASH: new Uint8Array(qS)
14139
- }, YS = {
14140
- keyDifference: XS,
14141
- getHashList: ZS
14093
+ }, GS = 2, KS = 32, qS = {
14094
+ CACHE_HORIZON: GS,
14095
+ HASH_SIZE: KS,
14096
+ ROOT_ANCHORING_HASH: new Uint8Array(KS)
14097
+ }, JS = {
14098
+ keyDifference: YS,
14099
+ getHashList: XS
14142
14100
  };
14143
- function XS(e, t, n) {
14144
- for (let r = e; r < JS.HASH_SIZE * 2; r++) if ((t[r >> 1] ^ n[2 + (r >> 1) - (e >> 1)]) >> 4 * (r & 1) & 15) return 1;
14101
+ function YS(e, t, n) {
14102
+ for (let r = e; r < qS.HASH_SIZE * 2; r++) if ((t[r >> 1] ^ n[2 + (r >> 1) - (e >> 1)]) >> 4 * (r & 1) & 15) return 1;
14145
14103
  return 0;
14146
14104
  }
14147
- function ZS(e, t) {
14105
+ function XS(e, t) {
14148
14106
  let n = [], r = 2;
14149
- for (let i = 0; i < 16; i++) n.push(e & 1 << i ? t.slice(r, r += JS.HASH_SIZE) : null);
14107
+ for (let i = 0; i < 16; i++) n.push(e & 1 << i ? t.slice(r, r += qS.HASH_SIZE) : null);
14150
14108
  return n;
14151
14109
  }
14152
14110
  //#endregion
14153
14111
  //#region src/trees/radixChecker.ts
14154
- function QS(e, t, n) {
14155
- return $S(e, t, n, null, 0) ? M.Hashes.sha256AsBinary(n[0]) : null;
14112
+ function ZS(e, t, n) {
14113
+ return QS(e, t, n, null, 0) ? M.Hashes.sha256AsBinary(n[0]) : null;
14156
14114
  }
14157
- function $S(e, t, n, r, i) {
14158
- if (i === JS.HASH_SIZE * 2) return r === null || t === null ? r === null && t === null : A.binaryIsEqual(r, t);
14115
+ function QS(e, t, n, r, i) {
14116
+ if (i === qS.HASH_SIZE * 2) return r === null || t === null ? r === null && t === null : A.binaryIsEqual(r, t);
14159
14117
  let a = n[i];
14160
14118
  if (i && (r === null || !A.binaryIsEqual(M.Hashes.sha256AsBinary(a), r))) return !1;
14161
14119
  let o = a[0] << 8 | a[1];
14162
14120
  if (o) {
14163
- let r = YS.getHashList(o, a), s = e[i >> 1] >> 4 * (i & 1) & 15;
14164
- return o & 1 << s ? $S(e, t, n, r[s], i + 1) : t === null;
14121
+ let r = JS.getHashList(o, a), s = e[i >> 1] >> 4 * (i & 1) & 15;
14122
+ return o & 1 << s ? QS(e, t, n, r[s], i + 1) : t === null;
14165
14123
  }
14166
- if (YS.keyDifference(i, e, a)) return t === null;
14167
- let s = JS.HASH_SIZE * 2 + 1 - i >> 1;
14124
+ if (JS.keyDifference(i, e, a)) return t === null;
14125
+ let s = qS.HASH_SIZE * 2 + 1 - i >> 1;
14168
14126
  return t !== null && A.binaryIsEqual(a.slice(2 + s), t);
14169
14127
  }
14170
14128
  //#endregion
14171
14129
  //#region src/blockchain/stateChecker/StateChecker.ts
14172
- var eC = class e {
14130
+ var $S = class e {
14173
14131
  static verifyAccountProofFromObject(t) {
14174
14132
  let n = t.account.state, r = X.encodeAccountState(n), i = M.Hashes.sha256AsBinary(r);
14175
14133
  return e.verifyRadixProof(t.account.virtualBlockchainId, i, t.account.radixProof, t.block.tokenRadixHash), e.verifyAppHash(t.block);
@@ -14227,7 +14185,7 @@ var eC = class e {
14227
14185
  return n.set(e, 0), n.set(t, 32), M.Hashes.sha256AsBinary(n);
14228
14186
  }
14229
14187
  static verifyRadixProof(e, t, n, r) {
14230
- let i = QS(e, t, n);
14188
+ let i = ZS(e, t, n);
14231
14189
  if (i === null) throw Error("State proof failure: inconsistent Radix proof");
14232
14190
  if (!A.binaryIsEqual(i, r)) throw Error("State proof failure: invalid Radix root hash");
14233
14191
  }
@@ -14236,7 +14194,7 @@ var eC = class e {
14236
14194
  if (!A.binaryIsEqual(n, e.appHash)) throw Error("State proof failure: computed app hash does not match the one declared in the block");
14237
14195
  return n;
14238
14196
  }
14239
- }, tC = class {
14197
+ }, eC = class {
14240
14198
  stateUpdater;
14241
14199
  constructor(e, t, n) {
14242
14200
  this.mbUnderConstruction = e, this.vb = t, this.provider = n;
@@ -14251,54 +14209,54 @@ var eC = class e {
14251
14209
  async updateStateWithSection(e) {
14252
14210
  if (!this.stateUpdater) {
14253
14211
  let e = await this.provider.getProtocolState();
14254
- this.stateUpdater = Xx.createApplicationLedgerInternalStateUpdater(e.getApplicationLedgerInternalStateUpdaterVersion());
14212
+ this.stateUpdater = Yx.createApplicationLedgerInternalStateUpdater(e.getApplicationLedgerInternalStateUpdaterVersion());
14255
14213
  }
14256
14214
  this.vb.setInternalState(await this.stateUpdater.updateStateFromSection(this.provider, this.vb.getInternalState(), e, this.mbUnderConstruction.getHeight()));
14257
14215
  }
14258
14216
  getInternalState() {
14259
14217
  return this.vb.getInternalState();
14260
14218
  }
14261
- }, nC = /* @__PURE__ */ function(e) {
14219
+ }, tC = /* @__PURE__ */ function(e) {
14262
14220
  return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WALLET = 1] = "WALLET", e[e.OPERATOR = 2] = "OPERATOR", e;
14263
- }({}), rC = /* @__PURE__ */ I({ name: /* @__PURE__ */ L() }), iC = /* @__PURE__ */ I({
14221
+ }({}), nC = /* @__PURE__ */ I({ name: /* @__PURE__ */ L() }), rC = /* @__PURE__ */ I({
14264
14222
  name: /* @__PURE__ */ L(),
14265
14223
  public: /* @__PURE__ */ Gp()
14266
- }), aC = /* @__PURE__ */ I({
14224
+ }), iC = /* @__PURE__ */ I({
14267
14225
  fieldPath: /* @__PURE__ */ L(),
14268
14226
  channelName: /* @__PURE__ */ L()
14269
- }), oC = /* @__PURE__ */ I({
14227
+ }), aC = /* @__PURE__ */ I({
14270
14228
  actorName: /* @__PURE__ */ L(),
14271
14229
  channelName: /* @__PURE__ */ L()
14272
- }), sC = /* @__PURE__ */ I({
14230
+ }), oC = /* @__PURE__ */ I({
14273
14231
  position: /* @__PURE__ */ F(),
14274
14232
  length: /* @__PURE__ */ F(),
14275
14233
  replacementString: /* @__PURE__ */ L()
14276
- }), cC = /* @__PURE__ */ I({
14234
+ }), sC = /* @__PURE__ */ I({
14277
14235
  fieldPath: /* @__PURE__ */ L(),
14278
- maskedParts: /* @__PURE__ */ N(sC)
14279
- }), lC = /* @__PURE__ */ I({ fieldPath: /* @__PURE__ */ L() }), uC = /* @__PURE__ */ I({
14236
+ maskedParts: /* @__PURE__ */ N(oC)
14237
+ }), cC = /* @__PURE__ */ I({ fieldPath: /* @__PURE__ */ L() }), lC = /* @__PURE__ */ I({
14280
14238
  virtualBlockchainId: /* @__PURE__ */ Zp(/* @__PURE__ */ L()),
14281
14239
  data: /* @__PURE__ */ Wp(),
14282
- actors: /* @__PURE__ */ Zp(/* @__PURE__ */ N(rC)),
14283
- channels: /* @__PURE__ */ Zp(/* @__PURE__ */ N(iC)),
14284
- channelAssignations: /* @__PURE__ */ Zp(/* @__PURE__ */ N(aC)),
14285
- actorAssignations: /* @__PURE__ */ Zp(/* @__PURE__ */ N(oC)),
14286
- hashableFields: /* @__PURE__ */ Zp(/* @__PURE__ */ N(lC)),
14287
- maskableFields: /* @__PURE__ */ Zp(/* @__PURE__ */ N(cC)),
14240
+ actors: /* @__PURE__ */ Zp(/* @__PURE__ */ N(nC)),
14241
+ channels: /* @__PURE__ */ Zp(/* @__PURE__ */ N(rC)),
14242
+ channelAssignations: /* @__PURE__ */ Zp(/* @__PURE__ */ N(iC)),
14243
+ actorAssignations: /* @__PURE__ */ Zp(/* @__PURE__ */ N(aC)),
14244
+ hashableFields: /* @__PURE__ */ Zp(/* @__PURE__ */ N(cC)),
14245
+ maskableFields: /* @__PURE__ */ Zp(/* @__PURE__ */ N(sC)),
14288
14246
  author: /* @__PURE__ */ L(),
14289
14247
  endorser: /* @__PURE__ */ Zp(/* @__PURE__ */ L()),
14290
14248
  approvalMessage: /* @__PURE__ */ Zp(/* @__PURE__ */ L())
14291
- }), dC = class {
14249
+ }), uC = class {
14292
14250
  static validate(e) {
14293
- return R(uC, e);
14251
+ return R(lC, e);
14294
14252
  }
14295
14253
  static safeParse(e) {
14296
- return /* @__PURE__ */ im(uC, e);
14254
+ return /* @__PURE__ */ im(lC, e);
14297
14255
  }
14298
14256
  static is(e) {
14299
- return /* @__PURE__ */ Up(uC, e);
14257
+ return /* @__PURE__ */ Up(lC, e);
14300
14258
  }
14301
- }, fC = class e extends tC {
14259
+ }, dC = class e extends eC {
14302
14260
  logger = k.getLogger([e.name]);
14303
14261
  static async createFromVirtualBlockchain(t, n) {
14304
14262
  let r = await n.createMicroblock(), i = new e(r, n);
@@ -14326,7 +14284,7 @@ var eC = class e {
14326
14284
  return e.getPrivateDecryptionKey(this.usedPkeSchemeId);
14327
14285
  }
14328
14286
  async createMicroblockFromStateUpdateRequest(e, t) {
14329
- let n = dC.validate(t), r = await this.getActorPrivateDecryptionKey(e), a = await this.getActorPrivateSignatureKey(e), o = this.state.getNumberOfActors();
14287
+ let n = uC.validate(t), r = await this.getActorPrivateDecryptionKey(e), a = await this.getActorPrivateSignatureKey(e), o = this.state.getNumberOfActors();
14330
14288
  for (let e of n.actors || []) {
14331
14289
  console.log(this.state.getAllActors());
14332
14290
  let t = e.name;
@@ -14348,7 +14306,7 @@ var eC = class e {
14348
14306
  };
14349
14307
  this.mbUnderConstruction.addSection(t), await this.updateStateWithSection(t), l += 1;
14350
14308
  }
14351
- let u = VS.fromObject(n.data);
14309
+ let u = BS.fromObject(n.data);
14352
14310
  for (let e of n.channelAssignations || []) {
14353
14311
  let t = this.state.getChannelIdFromChannelName(e.channelName);
14354
14312
  u.setChannel(e.fieldPath, t);
@@ -14371,7 +14329,7 @@ var eC = class e {
14371
14329
  let t = Number(e);
14372
14330
  d[t].isPrivate || u.setChannelAsPublic(Number(t));
14373
14331
  }
14374
- let f = RS.fromRecord(u), p = BS.fromRecordByChannels(f), m = HS.fromMerkleRecord(p), h = m.getChannelIds();
14332
+ let f = LS.fromRecord(u), p = zS.fromRecordByChannels(f), m = VS.fromMerkleRecord(p), h = m.getChannelIds();
14375
14333
  for (let t of h) {
14376
14334
  let n = m.getOnChainData(t), { isPublic: r, merkleRootHash: i } = n;
14377
14335
  if (r) {
@@ -14409,7 +14367,7 @@ var eC = class e {
14409
14367
  let n = {
14410
14368
  type: O.APP_LEDGER_ACTOR_CREATION,
14411
14369
  id: e,
14412
- actorType: nC.UNKNOWN,
14370
+ actorType: tC.UNKNOWN,
14413
14371
  name: t
14414
14372
  };
14415
14373
  this.mbUnderConstruction.addSection(n), await this.updateStateWithSection(n);
@@ -14417,10 +14375,10 @@ var eC = class e {
14417
14375
  async inviteActorOnChannel(e, t, n) {
14418
14376
  console.log("Inviting actor " + e + " on channel " + t);
14419
14377
  let r = this.state.getChannelIdFromChannelName(t), i = this.getActorIdFromActorName(e), a = await this.getActorPrivateSignatureKey(n), o = await this.vb.getActorIdByPublicSignatureKey(await a.getPublicKey());
14420
- mS.assert(typeof r == "number", `Expected channel id of type number: got ${typeof r} for channel ${t}`);
14378
+ pS.assert(typeof r == "number", `Expected channel id of type number: got ${typeof r} for channel ${t}`);
14421
14379
  let s = i;
14422
14380
  if (await this.vb.isActorInChannel(r, s)) return;
14423
- let c = await this.vb.getChannelKey(o, r, n), l = await (await this.vb.getPublicEncryptionKeyByActorId(s)).encrypt(c), u = k.getLogger([US.name]);
14381
+ let c = await this.vb.getChannelKey(o, r, n), l = await (await this.vb.getPublicEncryptionKeyByActorId(s)).encrypt(c), u = k.getLogger([HS.name]);
14424
14382
  u.info(`Actor {guestName} invited to channel ${t}`, () => ({ guestName: e })), u.debug(`Channel key for channel ${t}: ${c}`);
14425
14383
  let d = {
14426
14384
  type: O.APP_LEDGER_CHANNEL_INVITATION,
@@ -14460,7 +14418,7 @@ var eC = class e {
14460
14418
  let t = this.vb.getNumberOfActors();
14461
14419
  await this.createActor(t, e);
14462
14420
  }
14463
- let r = nC.UNKNOWN, i = this.getActorIdFromActorName(e), a = A.getNullHash(), o = {
14421
+ let r = tC.UNKNOWN, i = this.getActorIdFromActorName(e), a = A.getNullHash(), o = {
14464
14422
  type: O.APP_LEDGER_ACTOR_SUBSCRIPTION,
14465
14423
  actorId: i,
14466
14424
  actorType: r,
@@ -14475,7 +14433,7 @@ var eC = class e {
14475
14433
  getActorIdFromActorName(e) {
14476
14434
  return this.state.getActorIdByName(e);
14477
14435
  }
14478
- }, pC = class e {
14436
+ }, fC = class e {
14479
14437
  static ED25519_PUBLIC_KEY_TYPE = "tendermint/PubKeyEd25519";
14480
14438
  static createFromEd25519PublicKey(t) {
14481
14439
  return new e(e.ED25519_PUBLIC_KEY_TYPE, t);
@@ -14489,7 +14447,7 @@ var eC = class e {
14489
14447
  getPublicKey() {
14490
14448
  return this.publicKey;
14491
14449
  }
14492
- }, mC = class {
14450
+ }, pC = class {
14493
14451
  encodeSignature(e) {
14494
14452
  return e;
14495
14453
  }
@@ -14528,16 +14486,16 @@ var eC = class e {
14528
14486
  return Xv.createPrivateSignatureKey(t.signatureSchemeId, e);
14529
14487
  } else throw "Invalid public key format: expected raw-encoded JSON object with signatureSchemeId and privateKey fields.";
14530
14488
  }
14531
- }, hC = new TextEncoder(), gC = new TextDecoder();
14489
+ }, mC = new TextEncoder(), hC = new TextDecoder();
14532
14490
  //#endregion
14533
14491
  //#region node_modules/.pnpm/jose@6.2.3/node_modules/jose/dist/webapi/lib/base64.js
14534
- function _C(e) {
14492
+ function gC(e) {
14535
14493
  if (Uint8Array.prototype.toBase64) return e.toBase64();
14536
14494
  let t = 32768, n = [];
14537
14495
  for (let r = 0; r < e.length; r += t) n.push(String.fromCharCode.apply(null, e.subarray(r, r + t)));
14538
14496
  return btoa(n.join(""));
14539
14497
  }
14540
- function vC(e) {
14498
+ function _C(e) {
14541
14499
  if (Uint8Array.fromBase64) return Uint8Array.fromBase64(e);
14542
14500
  let t = atob(e), n = new Uint8Array(t.length);
14543
14501
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
@@ -14545,37 +14503,37 @@ function vC(e) {
14545
14503
  }
14546
14504
  //#endregion
14547
14505
  //#region node_modules/.pnpm/jose@6.2.3/node_modules/jose/dist/webapi/util/base64url.js
14548
- function yC(e) {
14549
- if (Uint8Array.fromBase64) return Uint8Array.fromBase64(typeof e == "string" ? e : gC.decode(e), { alphabet: "base64url" });
14506
+ function vC(e) {
14507
+ if (Uint8Array.fromBase64) return Uint8Array.fromBase64(typeof e == "string" ? e : hC.decode(e), { alphabet: "base64url" });
14550
14508
  let t = e;
14551
- t instanceof Uint8Array && (t = gC.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/");
14509
+ t instanceof Uint8Array && (t = hC.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/");
14552
14510
  try {
14553
- return vC(t);
14511
+ return _C(t);
14554
14512
  } catch {
14555
14513
  throw TypeError("The input to be decoded is not correctly encoded.");
14556
14514
  }
14557
14515
  }
14558
- function bC(e) {
14516
+ function yC(e) {
14559
14517
  let t = e;
14560
- return typeof t == "string" && (t = hC.encode(t)), Uint8Array.prototype.toBase64 ? t.toBase64({
14518
+ return typeof t == "string" && (t = mC.encode(t)), Uint8Array.prototype.toBase64 ? t.toBase64({
14561
14519
  alphabet: "base64url",
14562
14520
  omitPadding: !0
14563
- }) : _C(t).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
14521
+ }) : gC(t).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
14564
14522
  }
14565
14523
  //#endregion
14566
14524
  //#region node_modules/.pnpm/jose@6.2.3/node_modules/jose/dist/webapi/util/errors.js
14567
- var xC = class extends Error {
14525
+ var bC = class extends Error {
14568
14526
  static code = "ERR_JOSE_GENERIC";
14569
14527
  code = "ERR_JOSE_GENERIC";
14570
14528
  constructor(e, t) {
14571
14529
  super(e, t), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
14572
14530
  }
14573
- }, SC = class extends xC {
14531
+ }, xC = class extends bC {
14574
14532
  static code = "ERR_JOSE_NOT_SUPPORTED";
14575
14533
  code = "ERR_JOSE_NOT_SUPPORTED";
14576
- }, CC = (e) => typeof e == "object" && !!e;
14577
- function wC(e) {
14578
- if (!CC(e) || Object.prototype.toString.call(e) !== "[object Object]") return !1;
14534
+ }, SC = (e) => typeof e == "object" && !!e;
14535
+ function CC(e) {
14536
+ if (!SC(e) || Object.prototype.toString.call(e) !== "[object Object]") return !1;
14579
14537
  if (Object.getPrototypeOf(e) === null) return !0;
14580
14538
  let t = e;
14581
14539
  for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
@@ -14583,8 +14541,8 @@ function wC(e) {
14583
14541
  }
14584
14542
  //#endregion
14585
14543
  //#region node_modules/.pnpm/jose@6.2.3/node_modules/jose/dist/webapi/lib/jwk_to_key.js
14586
- var TC = "Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value";
14587
- function EC(e) {
14544
+ var wC = "Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value";
14545
+ function TC(e) {
14588
14546
  let t, n;
14589
14547
  switch (e.kty) {
14590
14548
  case "AKP":
@@ -14594,7 +14552,7 @@ function EC(e) {
14594
14552
  case "ML-DSA-87":
14595
14553
  t = { name: e.alg }, n = e.priv ? ["sign"] : ["verify"];
14596
14554
  break;
14597
- default: throw new SC(TC);
14555
+ default: throw new xC(wC);
14598
14556
  }
14599
14557
  break;
14600
14558
  case "RSA":
@@ -14624,7 +14582,7 @@ function EC(e) {
14624
14582
  hash: `SHA-${parseInt(e.alg.slice(-3), 10) || 1}`
14625
14583
  }, n = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
14626
14584
  break;
14627
- default: throw new SC(TC);
14585
+ default: throw new xC(wC);
14628
14586
  }
14629
14587
  break;
14630
14588
  case "EC":
@@ -14650,7 +14608,7 @@ function EC(e) {
14650
14608
  namedCurve: e.crv
14651
14609
  }, n = e.d ? ["deriveBits"] : [];
14652
14610
  break;
14653
- default: throw new SC(TC);
14611
+ default: throw new xC(wC);
14654
14612
  }
14655
14613
  break;
14656
14614
  case "OKP":
@@ -14665,33 +14623,33 @@ function EC(e) {
14665
14623
  case "ECDH-ES+A256KW":
14666
14624
  t = { name: e.crv }, n = e.d ? ["deriveBits"] : [];
14667
14625
  break;
14668
- default: throw new SC(TC);
14626
+ default: throw new xC(wC);
14669
14627
  }
14670
14628
  break;
14671
- default: throw new SC("Invalid or unsupported JWK \"kty\" (Key Type) Parameter value");
14629
+ default: throw new xC("Invalid or unsupported JWK \"kty\" (Key Type) Parameter value");
14672
14630
  }
14673
14631
  return {
14674
14632
  algorithm: t,
14675
14633
  keyUsages: n
14676
14634
  };
14677
14635
  }
14678
- async function DC(e) {
14636
+ async function EC(e) {
14679
14637
  if (!e.alg) throw TypeError("\"alg\" argument is required when \"jwk.alg\" is not present");
14680
- let { algorithm: t, keyUsages: n } = EC(e), r = { ...e };
14638
+ let { algorithm: t, keyUsages: n } = TC(e), r = { ...e };
14681
14639
  return r.kty !== "AKP" && delete r.alg, delete r.use, crypto.subtle.importKey("jwk", r, t, e.ext ?? !(e.d || e.priv), e.key_ops ?? n);
14682
14640
  }
14683
14641
  //#endregion
14684
14642
  //#region node_modules/.pnpm/jose@6.2.3/node_modules/jose/dist/webapi/key/import.js
14685
- async function OC(e, t, n) {
14686
- if (!wC(e)) throw TypeError("JWK must be an object");
14643
+ async function DC(e, t, n) {
14644
+ if (!CC(e)) throw TypeError("JWK must be an object");
14687
14645
  let r;
14688
14646
  switch (t ??= e.alg, r ??= n?.extractable ?? e.ext, e.kty) {
14689
14647
  case "oct":
14690
14648
  if (typeof e.k != "string" || !e.k) throw TypeError("missing \"k\" (Key Value) Parameter value");
14691
- return yC(e.k);
14649
+ return vC(e.k);
14692
14650
  case "RSA":
14693
- if ("oth" in e && e.oth !== void 0) throw new SC("RSA JWK \"oth\" (Other Primes Info) Parameter value is not supported");
14694
- return DC({
14651
+ if ("oth" in e && e.oth !== void 0) throw new xC("RSA JWK \"oth\" (Other Primes Info) Parameter value is not supported");
14652
+ return EC({
14695
14653
  ...e,
14696
14654
  alg: t,
14697
14655
  ext: r
@@ -14699,49 +14657,49 @@ async function OC(e, t, n) {
14699
14657
  case "AKP":
14700
14658
  if (typeof e.alg != "string" || !e.alg) throw TypeError("missing \"alg\" (Algorithm) Parameter value");
14701
14659
  if (t !== void 0 && t !== e.alg) throw TypeError("JWK alg and alg option value mismatch");
14702
- return DC({
14660
+ return EC({
14703
14661
  ...e,
14704
14662
  ext: r
14705
14663
  });
14706
14664
  case "EC":
14707
- case "OKP": return DC({
14665
+ case "OKP": return EC({
14708
14666
  ...e,
14709
14667
  alg: t,
14710
14668
  ext: r
14711
14669
  });
14712
- default: throw new SC("Unsupported \"kty\" (Key Type) Parameter value");
14670
+ default: throw new xC("Unsupported \"kty\" (Key Type) Parameter value");
14713
14671
  }
14714
14672
  }
14715
14673
  //#endregion
14716
14674
  //#region src/crypto/encoder/signature/JwkSignatureEncoder.ts
14717
- var kC = class {
14675
+ var OC = class {
14718
14676
  static async exportPublicSignatureKey(e) {
14719
- if (e instanceof Jv) return await OC({
14677
+ if (e instanceof Jv) return await DC({
14720
14678
  kty: "OKP",
14721
14679
  crv: "Ed25519",
14722
14680
  alg: "EdDSA",
14723
- x: bC(await e.getPublicKeyAsBytes())
14681
+ x: yC(await e.getPublicKeyAsBytes())
14724
14682
  });
14725
14683
  throw Error("Unsupported public key type");
14726
14684
  }
14727
14685
  static async exportPrivateSignatureKey(e) {
14728
14686
  if (e instanceof Yv) {
14729
14687
  let t = e.getPrivateKeyAsBytes(), n = await (await e.getPublicKey()).getPublicKeyAsBytes();
14730
- return await OC({
14688
+ return await DC({
14731
14689
  kty: "OKP",
14732
14690
  crv: "Ed25519",
14733
14691
  alg: "EdDSA",
14734
- d: bC(t),
14735
- x: bC(n)
14692
+ d: yC(t),
14693
+ x: yC(n)
14736
14694
  });
14737
14695
  }
14738
14696
  throw Error("Unsupported key type");
14739
14697
  }
14740
- }, AC = class {
14698
+ }, kC = class {
14741
14699
  static defaultEncoder() {
14742
14700
  return Zv.createBase64HCVPkeEncoder();
14743
14701
  }
14744
- }, jC = class {
14702
+ }, AC = class {
14745
14703
  encodeAsUint8Array(e) {
14746
14704
  return Hs(JSON.stringify({
14747
14705
  symmetricEncryptionSchemeId: e.getSymmetricEncryptionSchemeId(),
@@ -14758,17 +14716,17 @@ var kC = class {
14758
14716
  };
14759
14717
  //#endregion
14760
14718
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/scrypt.js
14761
- function MC(e, t, n, r, i, a) {
14719
+ function jC(e, t, n, r, i, a) {
14762
14720
  let o = e[t++] ^ n[r++], s = e[t++] ^ n[r++], c = e[t++] ^ n[r++], l = e[t++] ^ n[r++], u = e[t++] ^ n[r++], d = e[t++] ^ n[r++], f = e[t++] ^ n[r++], p = e[t++] ^ n[r++], m = e[t++] ^ n[r++], h = e[t++] ^ n[r++], g = e[t++] ^ n[r++], _ = e[t++] ^ n[r++], v = e[t++] ^ n[r++], y = e[t++] ^ n[r++], b = e[t++] ^ n[r++], ee = e[t++] ^ n[r++], x = o, te = s, ne = c, re = l, ie = u, ae = d, oe = f, se = p, ce = m, le = h, S = g, ue = _, de = v, fe = y, pe = b, me = ee;
14763
14721
  for (let e = 0; e < 8; e += 2) ie ^= Ns(x + de | 0, 7), ce ^= Ns(ie + x | 0, 9), de ^= Ns(ce + ie | 0, 13), x ^= Ns(de + ce | 0, 18), le ^= Ns(ae + te | 0, 7), fe ^= Ns(le + ae | 0, 9), te ^= Ns(fe + le | 0, 13), ae ^= Ns(te + fe | 0, 18), pe ^= Ns(S + oe | 0, 7), ne ^= Ns(pe + S | 0, 9), oe ^= Ns(ne + pe | 0, 13), S ^= Ns(oe + ne | 0, 18), re ^= Ns(me + ue | 0, 7), se ^= Ns(re + me | 0, 9), ue ^= Ns(se + re | 0, 13), me ^= Ns(ue + se | 0, 18), te ^= Ns(x + re | 0, 7), ne ^= Ns(te + x | 0, 9), re ^= Ns(ne + te | 0, 13), x ^= Ns(re + ne | 0, 18), oe ^= Ns(ae + ie | 0, 7), se ^= Ns(oe + ae | 0, 9), ie ^= Ns(se + oe | 0, 13), ae ^= Ns(ie + se | 0, 18), ue ^= Ns(S + le | 0, 7), ce ^= Ns(ue + S | 0, 9), le ^= Ns(ce + ue | 0, 13), S ^= Ns(le + ce | 0, 18), de ^= Ns(me + pe | 0, 7), fe ^= Ns(de + me | 0, 9), pe ^= Ns(fe + de | 0, 13), me ^= Ns(pe + fe | 0, 18);
14764
14722
  i[a++] = o + x | 0, i[a++] = s + te | 0, i[a++] = c + ne | 0, i[a++] = l + re | 0, i[a++] = u + ie | 0, i[a++] = d + ae | 0, i[a++] = f + oe | 0, i[a++] = p + se | 0, i[a++] = m + ce | 0, i[a++] = h + le | 0, i[a++] = g + S | 0, i[a++] = _ + ue | 0, i[a++] = v + de | 0, i[a++] = y + fe | 0, i[a++] = b + pe | 0, i[a++] = ee + me | 0;
14765
14723
  }
14766
- function NC(e, t, n, r, i) {
14724
+ function MC(e, t, n, r, i) {
14767
14725
  let a = r + 0, o = r + 16 * i;
14768
14726
  for (let r = 0; r < 16; r++) n[o + r] = e[t + (2 * i - 1) * 16 + r];
14769
- for (let r = 0; r < i; r++, a += 16, t += 16) MC(n, o, e, t, n, a), r > 0 && (o += 16), MC(n, a, e, t += 16, n, o);
14727
+ for (let r = 0; r < i; r++, a += 16, t += 16) jC(n, o, e, t, n, a), r > 0 && (o += 16), jC(n, a, e, t += 16, n, o);
14770
14728
  }
14771
- function PC(e, t, n) {
14729
+ function NC(e, t, n) {
14772
14730
  let { N: r, r: i, p: a, dkLen: o, asyncTick: s, maxmem: c, onProgress: l } = Ks({
14773
14731
  dkLen: 32,
14774
14732
  asyncTick: 10,
@@ -14804,53 +14762,53 @@ function PC(e, t, n) {
14804
14762
  asyncTick: s
14805
14763
  };
14806
14764
  }
14807
- function FC(e, t, n, r, i) {
14765
+ function PC(e, t, n, r, i) {
14808
14766
  let a = pv(Gc, e, n, {
14809
14767
  c: 1,
14810
14768
  dkLen: t
14811
14769
  });
14812
14770
  return As(n, r, i), a;
14813
14771
  }
14814
- function IC(e, t, n) {
14815
- let { N: r, r: i, p: a, dkLen: o, blockSize32: s, V: c, B32: l, B: u, tmp: d, blockMixCb: f } = PC(e, t, n);
14772
+ function FC(e, t, n) {
14773
+ let { N: r, r: i, p: a, dkLen: o, blockSize32: s, V: c, B32: l, B: u, tmp: d, blockMixCb: f } = NC(e, t, n);
14816
14774
  Ls(l);
14817
14775
  for (let e = 0; e < a; e++) {
14818
14776
  let t = s * e;
14819
14777
  for (let e = 0; e < s; e++) c[e] = l[t + e];
14820
- for (let e = 0, t = 0; e < r - 1; e++) NC(c, t, c, t += s, i), f();
14821
- NC(c, (r - 1) * s, l, t, i), f();
14778
+ for (let e = 0, t = 0; e < r - 1; e++) MC(c, t, c, t += s, i), f();
14779
+ MC(c, (r - 1) * s, l, t, i), f();
14822
14780
  for (let e = 0; e < r; e++) {
14823
14781
  let e = l[t + s - 16] % r;
14824
14782
  for (let n = 0; n < s; n++) d[n] = l[t + n] ^ c[e * s + n];
14825
- NC(d, 0, l, t, i), f();
14783
+ MC(d, 0, l, t, i), f();
14826
14784
  }
14827
14785
  }
14828
- return Ls(l), FC(e, o, u, c, d);
14786
+ return Ls(l), PC(e, o, u, c, d);
14829
14787
  }
14830
14788
  //#endregion
14831
14789
  //#region src/crypto/kdf/Scrypt.ts
14832
- var LC = class extends hv {
14790
+ var IC = class extends hv {
14833
14791
  getKeyDerivationFunctionSchemeId() {
14834
14792
  return mv.SCRYPT;
14835
14793
  }
14836
14794
  deriveKey(e, t, n) {
14837
- return IC(e, t, {
14795
+ return FC(e, t, {
14838
14796
  N: 2 ** 16,
14839
14797
  r: 8,
14840
14798
  p: 1,
14841
14799
  dkLen: n
14842
14800
  });
14843
14801
  }
14844
- }, RC = /* @__PURE__ */ function(e) {
14802
+ }, LC = /* @__PURE__ */ function(e) {
14845
14803
  return e[e.SECP256K1 = Ja.SECP256K1] = "SECP256K1", e[e.ML_DSA_65 = Ja.ML_DSA_65] = "ML_DSA_65", e;
14846
- }({}), zC = class {
14804
+ }({}), RC = class {
14847
14805
  constructor(e) {
14848
14806
  this.apiKey = e;
14849
14807
  }
14850
14808
  async getPkmsCredential() {
14851
14809
  return this.apiKey;
14852
14810
  }
14853
- }, BC = class {
14811
+ }, zC = class {
14854
14812
  constructor() {}
14855
14813
  async has(e) {
14856
14814
  return !1;
@@ -14859,7 +14817,7 @@ var LC = class extends hv {
14859
14817
  return !1;
14860
14818
  }
14861
14819
  async set(e, t) {}
14862
- }, VC = class {
14820
+ }, BC = class {
14863
14821
  key;
14864
14822
  constructor(e, t, n) {
14865
14823
  this.key = `${e}|${t}|${n}`;
@@ -14867,7 +14825,7 @@ var LC = class extends hv {
14867
14825
  getKey() {
14868
14826
  return this.key;
14869
14827
  }
14870
- }, HC = class {
14828
+ }, VC = class {
14871
14829
  map;
14872
14830
  constructor() {
14873
14831
  this.map = /* @__PURE__ */ new Map();
@@ -14885,43 +14843,43 @@ var LC = class extends hv {
14885
14843
  //#endregion
14886
14844
  //#region src/crypto/signatureCache/test.ts
14887
14845
  (async function() {
14888
- new HC();
14846
+ new VC();
14889
14847
  })();
14890
14848
  //#endregion
14891
14849
  //#region src/data/base32.ts
14892
- var UC = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", WC = {
14893
- verifyFormat: GC,
14894
- encodeNumber: KC,
14895
- decodeNumber: qC,
14896
- encodeToChar: JC,
14897
- decodeFromChar: YC,
14898
- CROCKFORD_CHARS: UC
14850
+ var HC = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", UC = {
14851
+ verifyFormat: WC,
14852
+ encodeNumber: GC,
14853
+ decodeNumber: KC,
14854
+ encodeToChar: qC,
14855
+ decodeFromChar: JC,
14856
+ CROCKFORD_CHARS: HC
14899
14857
  };
14900
- function GC(e, t = e.length) {
14901
- return RegExp(`^(${[...UC].join("|")}){${t}}$`).test(e);
14858
+ function WC(e, t = e.length) {
14859
+ return RegExp(`^(${[...HC].join("|")}){${t}}$`).test(e);
14902
14860
  }
14903
- function KC(e, t) {
14861
+ function GC(e, t) {
14904
14862
  if (!Number.isInteger(t) || t < 1 || t > 10) throw Error("Invalid or unsafe size for base32 encoding");
14905
14863
  if (!Number.isInteger(e) || e < 0 || e >= 32 ** t) throw Error(`Invalid number for base32 encoding of size ${t}`);
14906
- return [...Array(t).keys()].map((t) => JC(e >> t * 5 & 31)).join("");
14864
+ return [...Array(t).keys()].map((t) => qC(e >> t * 5 & 31)).join("");
14907
14865
  }
14908
- function qC(e) {
14866
+ function KC(e) {
14909
14867
  if (e.length == 0 || e.length > 10) throw Error("Invalid base32 string length");
14910
- return [...e].reduceRight((e, t) => e << 5 | YC(t), 0);
14868
+ return [...e].reduceRight((e, t) => e << 5 | JC(t), 0);
14911
14869
  }
14912
- function JC(e) {
14913
- let t = UC[e];
14870
+ function qC(e) {
14871
+ let t = HC[e];
14914
14872
  if (t === void 0) throw Error("Invalid base32 value");
14915
14873
  return t;
14916
14874
  }
14917
- function YC(e) {
14918
- let t = UC.indexOf(e);
14875
+ function JC(e) {
14876
+ let t = HC.indexOf(e);
14919
14877
  if (e.length != 1 || t == -1) throw Error("Invalid base32 character");
14920
14878
  return t;
14921
14879
  }
14922
14880
  //#endregion
14923
14881
  //#region src/data/messageSerializer.ts
14924
- var XC = class {
14882
+ var YC = class {
14925
14883
  collection;
14926
14884
  constructor(e) {
14927
14885
  this.collection = e;
@@ -14930,7 +14888,7 @@ var XC = class {
14930
14888
  let n = this.collection[e], r = new zv(n).serialize(t);
14931
14889
  return new Uint8Array([e, ...r]);
14932
14890
  }
14933
- }, ZC = class {
14891
+ }, XC = class {
14934
14892
  collection;
14935
14893
  constructor(e) {
14936
14894
  this.collection = e;
@@ -14943,7 +14901,7 @@ var XC = class {
14943
14901
  object: new Bv(n).unserialize(e.slice(1))
14944
14902
  };
14945
14903
  }
14946
- }, QC = class {
14904
+ }, ZC = class {
14947
14905
  schema;
14948
14906
  constructor(e) {
14949
14907
  this.schema = e;
@@ -14981,12 +14939,12 @@ var XC = class {
14981
14939
  }
14982
14940
  }
14983
14941
  }
14984
- }, $C = {
14985
- getAccountTypeFromIdentifier: ew,
14986
- getSpecialAccountTypeIdentifier: tw,
14987
- isAllowedTransfer: nw
14942
+ }, QC = {
14943
+ getAccountTypeFromIdentifier: $C,
14944
+ getSpecialAccountTypeIdentifier: ew,
14945
+ isAllowedTransfer: tw
14988
14946
  };
14989
- function ew(e) {
14947
+ function $C(e) {
14990
14948
  if (e.length != 32) throw Error("invalid account identifier");
14991
14949
  if (e.slice(0, -1).every((e) => e == 0)) {
14992
14950
  let t = e[31];
@@ -14995,17 +14953,17 @@ function ew(e) {
14995
14953
  }
14996
14954
  return 1;
14997
14955
  }
14998
- function tw(e) {
14956
+ function ew(e) {
14999
14957
  if (e == 1 || !Ur[e]) throw Error(`${e} is not a valid special account type`);
15000
14958
  let t = new Uint8Array(32);
15001
14959
  return t[31] = e, t;
15002
14960
  }
15003
- function nw(e, t) {
14961
+ function tw(e, t) {
15004
14962
  return Wr[e] >> t & 1;
15005
14963
  }
15006
14964
  //#endregion
15007
14965
  //#region src/economics/currencies/euros.ts
15008
- var rw = class e {
14966
+ var nw = class e {
15009
14967
  constructor(e) {
15010
14968
  this.amount = e;
15011
14969
  }
@@ -15018,27 +14976,27 @@ var rw = class e {
15018
14976
  toString() {
15019
14977
  return `${this.amount} €`;
15020
14978
  }
15021
- }, iw = class {
14979
+ }, rw = class {
15022
14980
  static defaultEurosToCMTSTokenConverter() {
15023
- return new aw();
14981
+ return new iw();
15024
14982
  }
15025
- }, aw = class e {
14983
+ }, iw = class e {
15026
14984
  static TOKENS_FOR_ONE_EUROS = 100;
15027
14985
  convert(t) {
15028
14986
  return hn.create(t.getAmount() * e.TOKENS_FOR_ONE_EUROS);
15029
14987
  }
15030
14988
  invert(t) {
15031
- return rw.create(t.getAmount() / e.TOKENS_FOR_ONE_EUROS);
14989
+ return nw.create(t.getAmount() / e.TOKENS_FOR_ONE_EUROS);
15032
14990
  }
15033
- }, ow = class e {
14991
+ }, aw = class e {
15034
14992
  constructor(e, t, n) {
15035
14993
  this.verified = e, this.appLedger = t, this.importedProofs = n;
15036
14994
  }
15037
14995
  static createSuccessfulProofVerificationResult(t, n) {
15038
- return new e(!0, t, WS.some(n));
14996
+ return new e(!0, t, US.some(n));
15039
14997
  }
15040
14998
  static createFailedProofVerificationResult(t) {
15041
- return new e(!1, t, WS.none());
14999
+ return new e(!1, t, US.none());
15042
15000
  }
15043
15001
  isVerified() {
15044
15002
  return this.verified;
@@ -15052,33 +15010,33 @@ var rw = class e {
15052
15010
  async getRecordContainedInBlockAtHeight(e, t) {
15053
15011
  throw Error("Not implemented");
15054
15012
  }
15055
- }, sw = /* @__PURE__ */ function(e) {
15013
+ }, ow = /* @__PURE__ */ function(e) {
15056
15014
  return e[e.PARSE_ERROR = -32700] = "PARSE_ERROR", e[e.INVALID_REQUEST = -32600] = "INVALID_REQUEST", e[e.METHOD_NOT_FOUND = -32601] = "METHOD_NOT_FOUND", e[e.INVALID_PARAMS = -32602] = "INVALID_PARAMS", e[e.INTERNAL_ERROR = -32603] = "INTERNAL_ERROR", e[e.ENDPOINT_CLOSED_WHILE_NODE_IS_CATCHING_UP = -32603] = "ENDPOINT_CLOSED_WHILE_NODE_IS_CATCHING_UP", e[e.TX_ALREADY_EXISTS = -32003] = "TX_ALREADY_EXISTS", e[e.TX_OUT_OF_GAS = -32002] = "TX_OUT_OF_GAS", e[e.TX_CHECK_FAILED = -32001] = "TX_CHECK_FAILED", e[e.TX_DELIVER_FAILED = -32e3] = "TX_DELIVER_FAILED", e;
15057
- }({}), cw = class e {
15015
+ }({}), sw = class e {
15058
15016
  log = k.getAbstractProviderLogger(e.name);
15059
15017
  async loadValidatorNodeVirtualBlockchain(e) {
15060
- let t = new dS(this);
15018
+ let t = new uS(this);
15061
15019
  return await this.initializeVirtualBlockchain(t, e), t;
15062
15020
  }
15063
15021
  async loadAccountVirtualBlockchain(e) {
15064
15022
  this.log.debug(`Loading account virtual blockchain with id ${e.encode()}`);
15065
- let t = new sS(this);
15023
+ let t = new oS(this);
15066
15024
  return await this.initializeVirtualBlockchain(t, e), t;
15067
15025
  }
15068
15026
  async loadApplicationLedgerVirtualBlockchain(e) {
15069
- let t = new US(this);
15027
+ let t = new HS(this);
15070
15028
  return await this.initializeVirtualBlockchain(t, e), t;
15071
15029
  }
15072
15030
  async loadApplicationVirtualBlockchain(e) {
15073
- let t = new lS(this);
15031
+ let t = new cS(this);
15074
15032
  return await this.initializeVirtualBlockchain(t, e), t;
15075
15033
  }
15076
15034
  async loadOrganizationVirtualBlockchain(e) {
15077
- let t = new aS(this);
15035
+ let t = new iS(this);
15078
15036
  return await this.initializeVirtualBlockchain(t, e), t;
15079
15037
  }
15080
15038
  async loadProtocolVirtualBlockchain(e) {
15081
- let t = new pS(this);
15039
+ let t = new fS(this);
15082
15040
  return await this.initializeVirtualBlockchain(t, e), t;
15083
15041
  }
15084
15042
  async loadVirtualBlockchain(e) {
@@ -15099,7 +15057,7 @@ var rw = class e {
15099
15057
  this.log.info(`Loading microblock ${e.encode()}`);
15100
15058
  let t = await this.getMicroblockHeader(e), n = await this.getMicroblockBody(e);
15101
15059
  if (t === null || n === null) throw Error(`Microblock ${e.encode()} not found`);
15102
- return $x.loadFromHeaderAndBody(t, n);
15060
+ return Qx.loadFromHeaderAndBody(t, n);
15103
15061
  }
15104
15062
  async getCurrentFeesFormula() {
15105
15063
  let e = (await this.getProtocolState()).getFeesCalculationVersion();
@@ -15107,7 +15065,7 @@ var rw = class e {
15107
15065
  }
15108
15066
  async computeMicroblockGas(e, t = {}) {
15109
15067
  let n = t.referenceTimestampInSeconds ?? A.getTimestampInSeconds(), r = 0;
15110
- if (e.isGenesisMicroblock()) r = $x.extractExpirationDayFromGenesisPreviousHash(e.getPreviousHash().toBytes());
15068
+ if (e.isGenesisMicroblock()) r = Qx.extractExpirationDayFromGenesisPreviousHash(e.getPreviousHash().toBytes());
15111
15069
  else {
15112
15070
  let t = await this.getVirtualBlockchainIdContainingMicroblock(e.getPreviousHash()), n = await this.getVirtualBlockchainState(t.toBytes());
15113
15071
  if (n === null) throw Error("Virtual blockchain state not found");
@@ -15121,19 +15079,19 @@ var rw = class e {
15121
15079
  let n = t.toBytes(), r = await this.getVirtualBlockchainStatus(n);
15122
15080
  if (r === null) throw new Se(t);
15123
15081
  if (r.type !== e.getType()) throw Error("Invalid blockchain type loaded");
15124
- e.setIdentifier(n), e.setHeight(r.height), e.setExpirationDay(r.expirationDay), e.setInternalState(Vx.createInternalStateFromObject(e.getType(), r.internalState));
15082
+ e.setIdentifier(n), e.setHeight(r.height), e.setExpirationDay(r.expirationDay), e.setInternalState(Bx.createInternalStateFromObject(e.getType(), r.internalState));
15125
15083
  }
15126
- }, lw = class e {
15084
+ }, cw = class e {
15127
15085
  expirationDate;
15128
15086
  endless;
15129
15087
  constructor(e, t) {
15130
15088
  this.expirationDate = e, this.endless = t;
15131
15089
  }
15132
15090
  static endless() {
15133
- return new e(WS.none(), !0);
15091
+ return new e(US.none(), !0);
15134
15092
  }
15135
15093
  static of(t) {
15136
- return new e(WS.of(t), !1);
15094
+ return new e(US.of(t), !1);
15137
15095
  }
15138
15096
  static fromDurationInDays(t) {
15139
15097
  let n = /* @__PURE__ */ new Date();
@@ -15145,7 +15103,7 @@ var rw = class e {
15145
15103
  getExpirationDate() {
15146
15104
  return this.expirationDate.unwrap();
15147
15105
  }
15148
- }, uw = class e {
15106
+ }, lw = class e {
15149
15107
  static logger = k.getMemoryProviderLogger();
15150
15108
  static instance = new e();
15151
15109
  static getInstance() {
@@ -15233,7 +15191,7 @@ var rw = class e {
15233
15191
  let i = A.binaryToHexa(n), a = A.binaryToHexa(r), o = t.get(i);
15234
15192
  o === void 0 ? e.logger.info(`Storing new entry for key ${i}`) : o === a ? e.logger.info(`Storing the same data for the same key ${i}`) : e.logger.info(`Storing new data for key ${i}`), t.set(i, a);
15235
15193
  }
15236
- }, dw = /* @__PURE__ */ I({
15194
+ }, uw = /* @__PURE__ */ I({
15237
15195
  jsonrpc: /* @__PURE__ */ P("2.0"),
15238
15196
  id: /* @__PURE__ */ F(),
15239
15197
  result: /* @__PURE__ */ I({
@@ -15276,67 +15234,68 @@ var rw = class e {
15276
15234
  })
15277
15235
  }), $ = /* @__PURE__ */ function(e) {
15278
15236
  return e[e.GET_CHAIN_INFORMATION = 1] = "GET_CHAIN_INFORMATION", e[e.GET_BLOCK_INFORMATION = 3] = "GET_BLOCK_INFORMATION", e[e.GET_BLOCK_CONTENT = 5] = "GET_BLOCK_CONTENT", e[e.GET_VIRTUAL_BLOCKCHAIN_STATE = 7] = "GET_VIRTUAL_BLOCKCHAIN_STATE", e[e.GET_VIRTUAL_BLOCKCHAIN_UPDATE = 9] = "GET_VIRTUAL_BLOCKCHAIN_UPDATE", e[e.GET_MICROBLOCK_INFORMATION = 11] = "GET_MICROBLOCK_INFORMATION", e[e.AWAIT_MICROBLOCK_ANCHORING = 13] = "AWAIT_MICROBLOCK_ANCHORING", e[e.GET_MICROBLOCK_BODYS = 15] = "GET_MICROBLOCK_BODYS", e[e.GET_ACCOUNT_STATE = 17] = "GET_ACCOUNT_STATE", e[e.GET_ACCOUNT_HISTORY = 19] = "GET_ACCOUNT_HISTORY", e[e.GET_ACCOUNT_BY_PUBLIC_KEY_HASH = 21] = "GET_ACCOUNT_BY_PUBLIC_KEY_HASH", e[e.GET_VALIDATOR_NODE_BY_ADDRESS = 23] = "GET_VALIDATOR_NODE_BY_ADDRESS", e[e.GET_OBJECT_LIST = 25] = "GET_OBJECT_LIST", e[e.GET_GENESIS_SNAPSHOT = 27] = "GET_GENESIS_SNAPSHOT", e[e.GET_RAW_BLOCK_CONTENT = 29] = "GET_RAW_BLOCK_CONTENT", e[e.GET_BLOCK_MODIFIED_ACCOUNTS = 31] = "GET_BLOCK_MODIFIED_ACCOUNTS", e[e.GET_ACCOUNT_UPDATES = 33] = "GET_ACCOUNT_UPDATES", e[e.GET_MICROBLOCK_INFORMATION_BY_HEIGHT = 35] = "GET_MICROBLOCK_INFORMATION_BY_HEIGHT", e[e.GET_SERIALIZED_MICROBLOCK_BY_HEIGHT = 37] = "GET_SERIALIZED_MICROBLOCK_BY_HEIGHT", e[e.GET_MICROBLOCK_PROOF = 39] = "GET_MICROBLOCK_PROOF", e[e.GET_ACCOUNT_PROOF = 41] = "GET_ACCOUNT_PROOF", e;
15279
- }({}), fw = /* @__PURE__ */ I({ requestType: /* @__PURE__ */ P($.GET_CHAIN_INFORMATION) }), pw = /* @__PURE__ */ I({
15237
+ }({}), dw = /* @__PURE__ */ I({ requestType: /* @__PURE__ */ P($.GET_CHAIN_INFORMATION) }), fw = /* @__PURE__ */ I({
15280
15238
  requestType: /* @__PURE__ */ P($.GET_BLOCK_INFORMATION),
15281
15239
  height: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0))
15282
- }), mw = /* @__PURE__ */ I({
15240
+ }), pw = /* @__PURE__ */ I({
15283
15241
  requestType: /* @__PURE__ */ P($.GET_BLOCK_CONTENT),
15284
15242
  height: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0))
15285
- }), hw = /* @__PURE__ */ I({
15243
+ }), mw = /* @__PURE__ */ I({
15286
15244
  requestType: /* @__PURE__ */ P($.GET_VIRTUAL_BLOCKCHAIN_STATE),
15287
15245
  virtualBlockchainId: km()
15288
- }), gw = /* @__PURE__ */ I({
15246
+ }), hw = /* @__PURE__ */ I({
15289
15247
  requestType: /* @__PURE__ */ P($.GET_VIRTUAL_BLOCKCHAIN_UPDATE),
15290
15248
  virtualBlockchainId: km(),
15291
15249
  knownStateHash: km()
15292
- }), _w = /* @__PURE__ */ I({
15250
+ }), gw = /* @__PURE__ */ I({
15293
15251
  requestType: /* @__PURE__ */ P($.GET_MICROBLOCK_INFORMATION),
15294
15252
  hash: km()
15295
- }), vw = /* @__PURE__ */ I({
15253
+ }), _w = /* @__PURE__ */ I({
15296
15254
  requestType: /* @__PURE__ */ P($.AWAIT_MICROBLOCK_ANCHORING),
15297
15255
  hash: km()
15298
- }), yw = /* @__PURE__ */ I({
15256
+ }), vw = /* @__PURE__ */ I({
15299
15257
  requestType: /* @__PURE__ */ P($.GET_MICROBLOCK_BODYS),
15300
15258
  hashes: /* @__PURE__ */ N(km())
15301
- }), bw = /* @__PURE__ */ I({
15259
+ }), yw = /* @__PURE__ */ I({
15302
15260
  requestType: /* @__PURE__ */ P($.GET_ACCOUNT_STATE),
15303
15261
  accountHash: km()
15304
- }), xw = /* @__PURE__ */ I({
15262
+ }), bw = /* @__PURE__ */ I({
15305
15263
  requestType: /* @__PURE__ */ P($.GET_ACCOUNT_HISTORY),
15306
15264
  accountHash: km(),
15307
15265
  lastHistoryHash: km(),
15308
15266
  maxRecords: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(1))
15309
- }), Sw = /* @__PURE__ */ I({
15267
+ }), xw = /* @__PURE__ */ I({
15310
15268
  requestType: /* @__PURE__ */ P($.GET_ACCOUNT_BY_PUBLIC_KEY_HASH),
15311
15269
  publicKeyHash: km()
15312
- }), Cw = /* @__PURE__ */ I({
15270
+ }), Sw = /* @__PURE__ */ I({
15313
15271
  requestType: /* @__PURE__ */ P($.GET_VALIDATOR_NODE_BY_ADDRESS),
15314
15272
  address: V()
15315
- }), ww = /* @__PURE__ */ I({ requestType: /* @__PURE__ */ P($.GET_GENESIS_SNAPSHOT) }), Tw = /* @__PURE__ */ I({
15273
+ }), Cw = /* @__PURE__ */ I({ requestType: /* @__PURE__ */ P($.GET_GENESIS_SNAPSHOT) }), ww = /* @__PURE__ */ I({
15316
15274
  requestType: /* @__PURE__ */ P($.GET_RAW_BLOCK_CONTENT),
15317
15275
  height: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15318
15276
  partIndex: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0))
15319
- }), Ew = /* @__PURE__ */ I({
15277
+ }), Tw = /* @__PURE__ */ I({
15320
15278
  requestType: /* @__PURE__ */ P($.GET_BLOCK_MODIFIED_ACCOUNTS),
15321
15279
  height: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0))
15322
- }), Dw = /* @__PURE__ */ I({
15280
+ }), Ew = /* @__PURE__ */ I({
15323
15281
  requestType: /* @__PURE__ */ P($.GET_ACCOUNT_UPDATES),
15324
15282
  list: /* @__PURE__ */ N(ug)
15325
- }), Ow = /* @__PURE__ */ I({
15283
+ }), Dw = /* @__PURE__ */ I({
15326
15284
  requestType: /* @__PURE__ */ P($.GET_MICROBLOCK_INFORMATION_BY_HEIGHT),
15327
15285
  virtualBlockchainId: km(),
15328
15286
  height: /* @__PURE__ */ F()
15329
- }), kw = /* @__PURE__ */ I({
15287
+ }), Ow = /* @__PURE__ */ I({
15330
15288
  requestType: /* @__PURE__ */ P($.GET_SERIALIZED_MICROBLOCK_BY_HEIGHT),
15331
15289
  virtualBlockchainId: km(),
15332
15290
  height: /* @__PURE__ */ F()
15333
- }), Aw = /* @__PURE__ */ I({
15291
+ }), kw = /* @__PURE__ */ I({
15334
15292
  requestType: /* @__PURE__ */ P($.GET_MICROBLOCK_PROOF),
15335
15293
  hash: km()
15336
- }), jw = /* @__PURE__ */ I({
15294
+ }), Aw = /* @__PURE__ */ I({
15337
15295
  requestType: /* @__PURE__ */ P($.GET_ACCOUNT_PROOF),
15338
15296
  accountId: km()
15339
- }), Mw = /* @__PURE__ */ rm("requestType", [
15297
+ }), jw = /* @__PURE__ */ rm("requestType", [
15298
+ dw,
15340
15299
  fw,
15341
15300
  pw,
15342
15301
  mw,
@@ -15355,16 +15314,15 @@ var rw = class e {
15355
15314
  Dw,
15356
15315
  Ow,
15357
15316
  kw,
15358
- Aw,
15359
- jw
15360
- ]), Nw = /* @__PURE__ */ I({
15317
+ Aw
15318
+ ]), Mw = /* @__PURE__ */ I({
15361
15319
  height: /* @__PURE__ */ F(),
15362
15320
  vbRadixHash: V(),
15363
15321
  tokenRadixHash: V(),
15364
15322
  storageHash: V(),
15365
15323
  appHash: V()
15366
- }), Pw = /* @__PURE__ */ I({
15367
- block: Nw,
15324
+ }), Nw = /* @__PURE__ */ I({
15325
+ block: Mw,
15368
15326
  microblock: /* @__PURE__ */ I({
15369
15327
  virtualBlockchainId: V(),
15370
15328
  height: /* @__PURE__ */ F(),
@@ -15375,27 +15333,27 @@ var rw = class e {
15375
15333
  merkleWitnesses: /* @__PURE__ */ N(V()),
15376
15334
  radixProof: /* @__PURE__ */ N(V())
15377
15335
  })
15378
- }), Fw = /* @__PURE__ */ I({
15379
- block: Nw,
15336
+ }), Pw = /* @__PURE__ */ I({
15337
+ block: Mw,
15380
15338
  account: /* @__PURE__ */ I({
15381
15339
  virtualBlockchainId: V(),
15382
15340
  state: og,
15383
15341
  radixProof: /* @__PURE__ */ N(V())
15384
15342
  })
15385
- }), Iw = /* @__PURE__ */ function(e) {
15343
+ }), Fw = /* @__PURE__ */ function(e) {
15386
15344
  return e[e.ERROR = 0] = "ERROR", e[e.CHAIN_INFORMATION = 2] = "CHAIN_INFORMATION", e[e.BLOCK_INFORMATION = 4] = "BLOCK_INFORMATION", e[e.BLOCK_CONTENT = 6] = "BLOCK_CONTENT", e[e.VIRTUAL_BLOCKCHAIN_STATE = 8] = "VIRTUAL_BLOCKCHAIN_STATE", e[e.VIRTUAL_BLOCKCHAIN_UPDATE = 10] = "VIRTUAL_BLOCKCHAIN_UPDATE", e[e.MICROBLOCK_INFORMATION = 12] = "MICROBLOCK_INFORMATION", e[e.MICROBLOCK_ANCHORING = 14] = "MICROBLOCK_ANCHORING", e[e.MICROBLOCK_BODYS = 16] = "MICROBLOCK_BODYS", e[e.ACCOUNT_STATE = 18] = "ACCOUNT_STATE", e[e.ACCOUNT_HISTORY = 20] = "ACCOUNT_HISTORY", e[e.ACCOUNT_BY_PUBLIC_KEY_HASH = 22] = "ACCOUNT_BY_PUBLIC_KEY_HASH", e[e.VALIDATOR_NODE_BY_ADDRESS = 24] = "VALIDATOR_NODE_BY_ADDRESS", e[e.OBJECT_LIST = 26] = "OBJECT_LIST", e[e.GENESIS_SNAPSHOT = 28] = "GENESIS_SNAPSHOT", e[e.RAW_BLOCK_CONTENT = 30] = "RAW_BLOCK_CONTENT", e[e.BLOCK_MODIFIED_ACCOUNTS = 32] = "BLOCK_MODIFIED_ACCOUNTS", e[e.ACCOUNT_UPDATES = 34] = "ACCOUNT_UPDATES", e[e.SERIALIAZED_MICROBLOCK_BY_HEIGHT = 38] = "SERIALIAZED_MICROBLOCK_BY_HEIGHT", e[e.MICROBLOCK_PROOF = 40] = "MICROBLOCK_PROOF", e[e.ACCOUNT_PROOF = 42] = "ACCOUNT_PROOF", e;
15387
- }({}), Lw = /* @__PURE__ */ I({
15388
- responseType: /* @__PURE__ */ P(Iw.ERROR),
15345
+ }({}), Iw = /* @__PURE__ */ I({
15346
+ responseType: /* @__PURE__ */ P(Fw.ERROR),
15389
15347
  error: /* @__PURE__ */ L()
15390
- }), Rw = /* @__PURE__ */ I({
15391
- responseType: /* @__PURE__ */ P(Iw.CHAIN_INFORMATION),
15348
+ }), Lw = /* @__PURE__ */ I({
15349
+ responseType: /* @__PURE__ */ P(Fw.CHAIN_INFORMATION),
15392
15350
  height: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15393
15351
  lastBlockTimestamp: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15394
15352
  microblockCount: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15395
15353
  objectCounts: /* @__PURE__ */ N(/* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0))),
15396
15354
  protocolVirtualBlockchainId: V()
15397
- }), zw = /* @__PURE__ */ I({
15398
- responseType: /* @__PURE__ */ P(Iw.BLOCK_INFORMATION),
15355
+ }), Rw = /* @__PURE__ */ I({
15356
+ responseType: /* @__PURE__ */ P(Fw.BLOCK_INFORMATION),
15399
15357
  hash: km(),
15400
15358
  timestamp: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15401
15359
  proposerAddress: V(),
@@ -15408,109 +15366,109 @@ var rw = class e {
15408
15366
  }),
15409
15367
  size: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15410
15368
  microblockCount: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0))
15411
- }), Bw = /* @__PURE__ */ I({
15369
+ }), zw = /* @__PURE__ */ I({
15412
15370
  hash: km(),
15413
15371
  vbId: km(),
15414
15372
  vbType: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0), /* @__PURE__ */ Rp(255)),
15415
15373
  height: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15416
15374
  size: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15417
15375
  sectionCount: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0))
15376
+ }), Bw = /* @__PURE__ */ I({
15377
+ responseType: /* @__PURE__ */ P(Fw.BLOCK_CONTENT),
15378
+ microblocks: /* @__PURE__ */ N(zw)
15418
15379
  }), Vw = /* @__PURE__ */ I({
15419
- responseType: /* @__PURE__ */ P(Iw.BLOCK_CONTENT),
15420
- microblocks: /* @__PURE__ */ N(Bw)
15421
- }), Hw = /* @__PURE__ */ I({
15422
- responseType: /* @__PURE__ */ P(Iw.VIRTUAL_BLOCKCHAIN_STATE),
15380
+ responseType: /* @__PURE__ */ P(Fw.VIRTUAL_BLOCKCHAIN_STATE),
15423
15381
  serializedVirtualBlockchainState: V()
15424
- }), Uw = /* @__PURE__ */ I({
15425
- responseType: /* @__PURE__ */ P(Iw.VIRTUAL_BLOCKCHAIN_UPDATE),
15382
+ }), Hw = /* @__PURE__ */ I({
15383
+ responseType: /* @__PURE__ */ P(Fw.VIRTUAL_BLOCKCHAIN_UPDATE),
15426
15384
  exists: /* @__PURE__ */ Gp(),
15427
15385
  changed: /* @__PURE__ */ Gp(),
15428
15386
  serializedVirtualBlockchainState: V()
15387
+ }), Uw = /* @__PURE__ */ I({
15388
+ responseType: /* @__PURE__ */ P(Fw.MICROBLOCK_INFORMATION),
15389
+ ...Wh.entries
15429
15390
  }), Ww = /* @__PURE__ */ I({
15430
- responseType: /* @__PURE__ */ P(Iw.MICROBLOCK_INFORMATION),
15391
+ responseType: /* @__PURE__ */ P(Fw.MICROBLOCK_ANCHORING),
15431
15392
  ...Wh.entries
15432
15393
  }), Gw = /* @__PURE__ */ I({
15433
- responseType: /* @__PURE__ */ P(Iw.MICROBLOCK_ANCHORING),
15434
- ...Wh.entries
15435
- }), Kw = /* @__PURE__ */ I({
15436
15394
  microblockHash: km(),
15437
15395
  microblockBody: wh
15396
+ }), Kw = /* @__PURE__ */ I({
15397
+ responseType: /* @__PURE__ */ P(Fw.MICROBLOCK_BODYS),
15398
+ list: /* @__PURE__ */ N(Gw)
15438
15399
  }), qw = /* @__PURE__ */ I({
15439
- responseType: /* @__PURE__ */ P(Iw.MICROBLOCK_BODYS),
15440
- list: /* @__PURE__ */ N(Kw)
15441
- }), Jw = /* @__PURE__ */ I({
15442
- responseType: /* @__PURE__ */ P(Iw.ACCOUNT_STATE),
15400
+ responseType: /* @__PURE__ */ P(Fw.ACCOUNT_STATE),
15443
15401
  height: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15444
15402
  balance: /* @__PURE__ */ z(/* @__PURE__ */ F(), /* @__PURE__ */ Ip(), /* @__PURE__ */ Bp(0)),
15445
15403
  lastHistoryHash: km(),
15446
15404
  locks: /* @__PURE__ */ N(ig)
15447
- }), Yw = /* @__PURE__ */ I({
15448
- responseType: /* @__PURE__ */ P(Iw.ACCOUNT_HISTORY),
15405
+ }), Jw = /* @__PURE__ */ I({
15406
+ responseType: /* @__PURE__ */ P(Fw.ACCOUNT_HISTORY),
15449
15407
  list: lg
15450
- }), Xw = /* @__PURE__ */ I({
15451
- responseType: /* @__PURE__ */ P(Iw.ACCOUNT_BY_PUBLIC_KEY_HASH),
15408
+ }), Yw = /* @__PURE__ */ I({
15409
+ responseType: /* @__PURE__ */ P(Fw.ACCOUNT_BY_PUBLIC_KEY_HASH),
15452
15410
  accountHash: km()
15453
- }), Zw = /* @__PURE__ */ I({
15454
- responseType: /* @__PURE__ */ P(Iw.VALIDATOR_NODE_BY_ADDRESS),
15411
+ }), Xw = /* @__PURE__ */ I({
15412
+ responseType: /* @__PURE__ */ P(Fw.VALIDATOR_NODE_BY_ADDRESS),
15455
15413
  validatorNodeHash: km()
15456
- }), Qw = /* @__PURE__ */ I({
15457
- responseType: /* @__PURE__ */ P(Iw.GENESIS_SNAPSHOT),
15414
+ }), Zw = /* @__PURE__ */ I({
15415
+ responseType: /* @__PURE__ */ P(Fw.GENESIS_SNAPSHOT),
15458
15416
  base64EncodedChunks: /* @__PURE__ */ N(/* @__PURE__ */ L())
15459
- }), $w = /* @__PURE__ */ I({
15460
- responseType: /* @__PURE__ */ P(Iw.RAW_BLOCK_CONTENT),
15417
+ }), Qw = /* @__PURE__ */ I({
15418
+ responseType: /* @__PURE__ */ P(Fw.RAW_BLOCK_CONTENT),
15461
15419
  partIndex: /* @__PURE__ */ F(),
15462
15420
  numberOfParts: /* @__PURE__ */ F(),
15463
15421
  serializedMicroblocks: /* @__PURE__ */ N(V())
15464
- }), eT = /* @__PURE__ */ I({
15465
- responseType: /* @__PURE__ */ P(Iw.BLOCK_MODIFIED_ACCOUNTS),
15422
+ }), $w = /* @__PURE__ */ I({
15423
+ responseType: /* @__PURE__ */ P(Fw.BLOCK_MODIFIED_ACCOUNTS),
15466
15424
  modifiedAccounts: /* @__PURE__ */ N(V())
15467
- }), tT = /* @__PURE__ */ I({
15468
- responseType: /* @__PURE__ */ P(Iw.ACCOUNT_UPDATES),
15425
+ }), eT = /* @__PURE__ */ I({
15426
+ responseType: /* @__PURE__ */ P(Fw.ACCOUNT_UPDATES),
15469
15427
  list: /* @__PURE__ */ N(dg)
15470
- }), nT = /* @__PURE__ */ I({
15471
- responseType: /* @__PURE__ */ P(Iw.SERIALIAZED_MICROBLOCK_BY_HEIGHT),
15428
+ }), tT = /* @__PURE__ */ I({
15429
+ responseType: /* @__PURE__ */ P(Fw.SERIALIAZED_MICROBLOCK_BY_HEIGHT),
15472
15430
  serializedContent: V()
15431
+ }), nT = /* @__PURE__ */ I({
15432
+ responseType: /* @__PURE__ */ P(Fw.MICROBLOCK_PROOF),
15433
+ proof: Nw
15473
15434
  }), rT = /* @__PURE__ */ I({
15474
- responseType: /* @__PURE__ */ P(Iw.MICROBLOCK_PROOF),
15435
+ responseType: /* @__PURE__ */ P(Fw.ACCOUNT_PROOF),
15475
15436
  proof: Pw
15476
- }), iT = /* @__PURE__ */ I({
15477
- responseType: /* @__PURE__ */ P(Iw.ACCOUNT_PROOF),
15478
- proof: Fw
15479
- }), aT = /* @__PURE__ */ rm("responseType", [
15437
+ }), iT = /* @__PURE__ */ rm("responseType", [
15438
+ Iw,
15480
15439
  Lw,
15481
15440
  Rw,
15482
- zw,
15441
+ Bw,
15442
+ Qw,
15483
15443
  Vw,
15484
- $w,
15485
15444
  Hw,
15486
15445
  Uw,
15487
15446
  Ww,
15488
- Gw,
15447
+ Kw,
15489
15448
  qw,
15490
15449
  Jw,
15491
15450
  Yw,
15492
15451
  Xw,
15493
15452
  Zw,
15494
- Qw,
15453
+ $w,
15495
15454
  eT,
15496
15455
  tT,
15497
15456
  nT,
15498
- rT,
15499
- iT
15500
- ]), oT = class {
15457
+ rT
15458
+ ]), aT = class {
15501
15459
  static encodeAbciRequest(e) {
15502
- return bx(R(Mw, e));
15460
+ return bx(R(jw, e));
15503
15461
  }
15504
15462
  static decodeAbciRequest(e) {
15505
- return R(Mw, Ub(e));
15463
+ return R(jw, Ub(e));
15506
15464
  }
15507
15465
  static encodeAbciResponse(e) {
15508
- return bx(R(aT, e));
15466
+ return bx(R(iT, e));
15509
15467
  }
15510
15468
  static decodeAbciResponse(e) {
15511
- return R(aT, Ub(e));
15469
+ return R(iT, Ub(e));
15512
15470
  }
15513
- }, sT = class e {
15471
+ }, oT = class e {
15514
15472
  static staticLogger = k.getNetworkProviderLogger();
15515
15473
  logger = e.staticLogger;
15516
15474
  requestLogger = e.staticLogger.getChild("request");
@@ -15539,7 +15497,7 @@ var rw = class e {
15539
15497
  }));
15540
15498
  }
15541
15499
  async getChainInformation() {
15542
- return this.requestLogger.info("Requesting chain information"), R(Rw, await this.abciQuery({ requestType: $.GET_CHAIN_INFORMATION }));
15500
+ return this.requestLogger.info("Requesting chain information"), R(Lw, await this.abciQuery({ requestType: $.GET_CHAIN_INFORMATION }));
15543
15501
  }
15544
15502
  async getBlockInformation(e) {
15545
15503
  this.requestLogger.info(`Requesting block information at height: ${e}`);
@@ -15547,11 +15505,11 @@ var rw = class e {
15547
15505
  requestType: $.GET_BLOCK_INFORMATION,
15548
15506
  height: e
15549
15507
  });
15550
- return this.responseLogger.info(`Received block information at height ${e}`), R(zw, t);
15508
+ return this.responseLogger.info(`Received block information at height ${e}`), R(Rw, t);
15551
15509
  }
15552
15510
  async getBlockContent(e) {
15553
15511
  this.requestLogger.info(`Requesting block content for height ${e}`);
15554
- let t = R(Vw, await this.abciQuery({
15512
+ let t = R(Bw, await this.abciQuery({
15555
15513
  requestType: $.GET_BLOCK_CONTENT,
15556
15514
  height: e
15557
15515
  }));
@@ -15563,11 +15521,11 @@ var rw = class e {
15563
15521
  requestType: $.GET_VALIDATOR_NODE_BY_ADDRESS,
15564
15522
  address: e
15565
15523
  });
15566
- return this.responseLogger.info("Receiving validator node id {id}", () => ({ id: A.binaryToHexa(e) })), R(Zw, t);
15524
+ return this.responseLogger.info("Receiving validator node id {id}", () => ({ id: A.binaryToHexa(e) })), R(Xw, t);
15567
15525
  }
15568
15526
  async getAccountState(e) {
15569
15527
  this.requestLogger.info("Requesting account state for account hash {accountHash}", () => ({ accountHash: A.binaryToHexa(e) }));
15570
- let t = R(Jw, await this.abciQuery({
15528
+ let t = R(qw, await this.abciQuery({
15571
15529
  requestType: $.GET_ACCOUNT_STATE,
15572
15530
  accountHash: e
15573
15531
  }));
@@ -15578,7 +15536,7 @@ var rw = class e {
15578
15536
  }
15579
15537
  async getAccountHistory(e, t, n) {
15580
15538
  this.requestLogger.info(`Requesting account history for account hash: ${A.binaryToHexa(e)}, lastHistoryHash: ${A.binaryToHexa(t)}, maxRecords: ${n}`);
15581
- let r = R(Yw, await this.abciQuery({
15539
+ let r = R(Jw, await this.abciQuery({
15582
15540
  requestType: $.GET_ACCOUNT_HISTORY,
15583
15541
  accountHash: e,
15584
15542
  lastHistoryHash: t,
@@ -15588,7 +15546,7 @@ var rw = class e {
15588
15546
  }
15589
15547
  async getAccountByPublicKeyHash(e) {
15590
15548
  this.requestLogger.info(`Requesting account hash by public key hash: ${A.binaryToHexa(e)}`);
15591
- let t = R(Xw, await this.abciQuery({
15549
+ let t = R(Yw, await this.abciQuery({
15592
15550
  requestType: $.GET_ACCOUNT_BY_PUBLIC_KEY_HASH,
15593
15551
  publicKeyHash: e
15594
15552
  }));
@@ -15596,7 +15554,7 @@ var rw = class e {
15596
15554
  }
15597
15555
  async getMicroblockInformation(e) {
15598
15556
  this.requestLogger.info(`Requesting microblock information for hash ${A.binaryToHexa(e)}`);
15599
- let t = R(Ww, await this.abciQuery({
15557
+ let t = R(Uw, await this.abciQuery({
15600
15558
  requestType: $.GET_MICROBLOCK_INFORMATION,
15601
15559
  hash: e
15602
15560
  }));
@@ -15607,7 +15565,7 @@ var rw = class e {
15607
15565
  }
15608
15566
  async getSerializedMicroblockByHeight(e, t) {
15609
15567
  this.requestLogger.info(`Requesting microblock for VB ${A.binaryToHexa(e)} at height ${t}`);
15610
- let n = R(nT, await this.abciQuery({
15568
+ let n = R(tT, await this.abciQuery({
15611
15569
  requestType: $.GET_SERIALIZED_MICROBLOCK_BY_HEIGHT,
15612
15570
  virtualBlockchainId: e,
15613
15571
  height: t
@@ -15616,7 +15574,7 @@ var rw = class e {
15616
15574
  }
15617
15575
  async getMicroblockBodys(e) {
15618
15576
  this.requestLogger.info(`Requesting microblock bodys for microblock hashes ${e.length}`), this.requestLogger.info("Lisf of requested hashes: {hashes}", () => ({ hashes: e.map((e) => A.binaryToHexa(e)).join(", ") }));
15619
- let t = R(qw, await this.abciQuery({
15577
+ let t = R(Kw, await this.abciQuery({
15620
15578
  requestType: $.GET_MICROBLOCK_BODYS,
15621
15579
  hashes: e
15622
15580
  }));
@@ -15629,11 +15587,11 @@ var rw = class e {
15629
15587
  virtualBlockchainId: e,
15630
15588
  knownStateHash: t
15631
15589
  });
15632
- return this.responseLogger.info("Receiving virtual blockchain update"), R(Uw, n);
15590
+ return this.responseLogger.info("Receiving virtual blockchain update"), R(Hw, n);
15633
15591
  }
15634
15592
  async getSerializedVirtualBlockchainState(e) {
15635
15593
  this.requestLogger.info("Requesting virtual blockchain state for vb id {vbId}", () => ({ vbId: A.binaryToHexa(e) }));
15636
- let t = R(Hw, await this.abciQuery({
15594
+ let t = R(Vw, await this.abciQuery({
15637
15595
  requestType: $.GET_VIRTUAL_BLOCKCHAIN_STATE,
15638
15596
  virtualBlockchainId: e
15639
15597
  }));
@@ -15674,7 +15632,7 @@ var rw = class e {
15674
15632
  async abciQuery(t) {
15675
15633
  if (t === void 0) throw new i("Cannot send an undefined request");
15676
15634
  this.logger.debug("Sending ABCI request:", t);
15677
- let n = oT.encodeAbciRequest(t);
15635
+ let n = aT.encodeAbciRequest(t);
15678
15636
  return await e.sendABCIQueryToNodeServer(this.nodeUrl, n);
15679
15637
  }
15680
15638
  static async sendABCIQueryToNodeServer(t, n) {
@@ -15683,8 +15641,8 @@ var rw = class e {
15683
15641
  r.pathname = "abci_query", r.searchParams.append("path", "\"/carmentis\""), r.searchParams.append("data", "0x" + A.binaryToHexa(n));
15684
15642
  let i = await e.query(r), a = i?.result?.response?.value;
15685
15643
  if (typeof a != "string") throw this.staticLogger.error("Invalid response type detected:", i), this.staticLogger.error("rawBase64EncodedResponse: ", a), new h("Invalid response detected");
15686
- let o = mg.decodeBinary(a), s = oT.decodeAbciResponse(o);
15687
- if (s.responseType == Iw.ERROR) {
15644
+ let o = mg.decodeBinary(a), s = aT.decodeAbciResponse(o);
15645
+ if (s.responseType == Fw.ERROR) {
15688
15646
  let t = s.error;
15689
15647
  throw e.staticLogger.error("sendABCIQueryToNodeServer <- {*}", () => ({ error: t })), new h(`Remote error: ${t}`);
15690
15648
  }
@@ -15694,16 +15652,16 @@ var rw = class e {
15694
15652
  e.staticLogger.debug(`sendStatusQueryToNodeServer -> nodeUrl: ${t}`);
15695
15653
  let n = new URL(t);
15696
15654
  n.pathname = "status";
15697
- let r = /* @__PURE__ */ im(dw, await e.query(n));
15655
+ let r = /* @__PURE__ */ im(uw, await e.query(n));
15698
15656
  if (r.success) return e.staticLogger.debug("sendStatusQueryToNodeServer <- received valid status response"), r.output;
15699
15657
  throw e.staticLogger.debug(`sendStatusQueryToNodeServer <- parsing error: ${r.issues}`), new h(r.issues.map((e) => e.message).join(", "));
15700
15658
  }
15701
15659
  async getGenesisSnapshot() {
15702
15660
  this.requestLogger.info("Requesting genesis snapshot");
15703
- let e = R(Qw, await this.abciQuery({ requestType: $.GET_GENESIS_SNAPSHOT }));
15661
+ let e = R(Zw, await this.abciQuery({ requestType: $.GET_GENESIS_SNAPSHOT }));
15704
15662
  return this.responseLogger.info("Received genesis snapshots containing {chunksNumber} chunks", () => ({ chunksNumber: e.base64EncodedChunks.length })), e;
15705
15663
  }
15706
- }, cT = class e {
15664
+ }, sT = class e {
15707
15665
  static logger = k.getMemoryProviderLogger();
15708
15666
  static instance = new e();
15709
15667
  static getInstance() {
@@ -15743,7 +15701,7 @@ var rw = class e {
15743
15701
  async setMicroblockHeader(e, t) {}
15744
15702
  async setMicroblockBody(e, t) {}
15745
15703
  async setSerializedVirtualBlockchainState(e, t) {}
15746
- }, lT = class {
15704
+ }, cT = class {
15747
15705
  constructor() {}
15748
15706
  sendSerializedMicroblock(e) {
15749
15707
  throw Error("Method not implemented.");
@@ -15796,11 +15754,11 @@ var rw = class e {
15796
15754
  getGenesisSnapshot() {
15797
15755
  throw Error("Method not implemented.");
15798
15756
  }
15799
- }, uT = class {
15757
+ }, lT = class {
15800
15758
  static convertRawPublicKeyIntoAddress(e) {
15801
15759
  return Qc.sha256AsBinary(e).slice(0, 20);
15802
15760
  }
15803
- }, dT = class e extends cw {
15761
+ }, uT = class e extends sw {
15804
15762
  logger = k.getProviderLogger();
15805
15763
  externalProvider;
15806
15764
  internalProvider;
@@ -15851,11 +15809,11 @@ var rw = class e {
15851
15809
  let e = await this.getProtocolVirtualBlockchainId(), t = await this.getVirtualBlockchainState(e.toBytes());
15852
15810
  if (t === null) throw Error("Cannot get protocol parameters from the internal provider");
15853
15811
  if (t.type !== H.PROTOCOL_VIRTUAL_BLOCKCHAIN) throw Error(`Expected protocol virtual blockchain, got ${H[t.type]}`);
15854
- return Rx.createFromObject(t.internalState);
15812
+ return Lx.createFromObject(t.internalState);
15855
15813
  }
15856
15814
  async getProtocolVirtualBlockchainId() {
15857
15815
  let e = await this.getChainInformation();
15858
- return Px.from(e.protocolVirtualBlockchainId);
15816
+ return Nx.from(e.protocolVirtualBlockchainId);
15859
15817
  }
15860
15818
  async getMicroblockInformation(e) {
15861
15819
  let t = await this.internalProvider.getInformationOfVirtualBlockchainContainingMicroblock(e), n = await this.internalProvider.getMicroblockHeader(e);
@@ -15932,10 +15890,10 @@ var rw = class e {
15932
15890
  async getVirtualBlockchainIdContainingMicroblock(e) {
15933
15891
  this.logger.info(`Searching for virtual blockchain containing microblock ${e.encode()}`);
15934
15892
  let t = await this.internalProvider.getInformationOfVirtualBlockchainContainingMicroblock(e.toBytes());
15935
- if (t !== null) return Px.from(t.virtualBlockchainId);
15893
+ if (t !== null) return Nx.from(t.virtualBlockchainId);
15936
15894
  {
15937
15895
  let t = await this.externalProvider.getMicroblockInformation(e.toBytes());
15938
- if (t !== null) return Px.from(t.virtualBlockchainId);
15896
+ if (t !== null) return Nx.from(t.virtualBlockchainId);
15939
15897
  throw new te();
15940
15898
  }
15941
15899
  }
@@ -15947,7 +15905,7 @@ var rw = class e {
15947
15905
  }
15948
15906
  async getAccountIdFromPublicKey(e) {
15949
15907
  let t = new uv(), n = await this.externalProvider.getAccountByPublicKeyHash(t.hash(await e.getPublicKeyAsBytes()));
15950
- return Px.from(n.accountHash);
15908
+ return Nx.from(n.accountHash);
15951
15909
  }
15952
15910
  async publishMicroblock(e) {
15953
15911
  this.logger.info(`Publishing microblock ${e.getHash().encode()}`);
@@ -15955,30 +15913,30 @@ var rw = class e {
15955
15913
  return await this.externalProvider.sendSerializedMicroblock(t), e.getHash();
15956
15914
  }
15957
15915
  async getNodeStatus(e) {
15958
- return sT.sendStatusQueryToNodeServer(e);
15916
+ return oT.sendStatusQueryToNodeServer(e);
15959
15917
  }
15960
15918
  async getValidatorNodeIdByAddress(e) {
15961
15919
  return (await this.externalProvider.getValidatorNodeByAddress(e.toBytes())).validatorNodeHash;
15962
15920
  }
15963
15921
  async getValidatorNodeIdByCometbftPublicKey(e) {
15964
- let t = yg.bytesToBase64Encoder(), n = uT.convertRawPublicKeyIntoAddress(t.decode(e));
15965
- return this.getValidatorNodeIdByAddress(Px.from(n));
15922
+ let t = yg.bytesToBase64Encoder(), n = lT.convertRawPublicKeyIntoAddress(t.decode(e));
15923
+ return this.getValidatorNodeIdByAddress(Nx.from(n));
15966
15924
  }
15967
- }, fT = class {
15925
+ }, dT = class {
15968
15926
  static createInMemoryProvider() {
15969
- return new dT(new uw(), new lT());
15927
+ return new uT(new lw(), new cT());
15970
15928
  }
15971
15929
  static createInMemoryProviderWithExternalProvider(e) {
15972
- return new dT(new uw(), sT.createFromUrl(e));
15930
+ return new uT(new lw(), oT.createFromUrl(e));
15973
15931
  }
15974
15932
  static createNullInMemoryProviderWithExternalProvider(e) {
15975
- return new dT(new cT(), sT.createFromUrl(e));
15933
+ return new uT(new sT(), oT.createFromUrl(e));
15976
15934
  }
15977
- }, pT = class extends sT {
15935
+ }, fT = class extends oT {
15978
15936
  constructor(e) {
15979
15937
  super(e);
15980
15938
  }
15981
- }, mT = /* @__PURE__ */ I({
15939
+ }, pT = /* @__PURE__ */ I({
15982
15940
  jsonrpc: /* @__PURE__ */ P("2.0"),
15983
15941
  id: /* @__PURE__ */ F(),
15984
15942
  result: /* @__PURE__ */ I({
@@ -16047,7 +16005,7 @@ var rw = class e {
16047
16005
  }),
16048
16006
  events: /* @__PURE__ */ I({ "tm.event": /* @__PURE__ */ N(/* @__PURE__ */ L()) })
16049
16007
  })
16050
- }), hT = class e {
16008
+ }), mT = class e {
16051
16009
  callbacks = [];
16052
16010
  constructor(e) {
16053
16011
  this.ws = e, e.onmessage = this.onMessage.bind(this), e.onopen = this.onConnect.bind(this), e.onclose = this.onDisconnect.bind(this);
@@ -16067,7 +16025,7 @@ var rw = class e {
16067
16025
  }));
16068
16026
  }
16069
16027
  onMessage(e) {
16070
- let t = /* @__PURE__ */ im(mT, JSON.parse(e.data));
16028
+ let t = /* @__PURE__ */ im(pT, JSON.parse(e.data));
16071
16029
  if (t.success) {
16072
16030
  let e = t.output;
16073
16031
  this.onNewBlock(e);
@@ -16077,14 +16035,14 @@ var rw = class e {
16077
16035
  for (let t of this.callbacks) t.onNewBlock && t.onNewBlock(e);
16078
16036
  }
16079
16037
  onDisconnect(e) {}
16080
- }, gT = {
16081
- parsePrefix: _T,
16082
- toNumericPath: vT,
16083
- fromNumericPath: yT,
16084
- processCallback: xT,
16085
- fromParents: bT
16038
+ }, hT = {
16039
+ parsePrefix: gT,
16040
+ toNumericPath: _T,
16041
+ fromNumericPath: vT,
16042
+ processCallback: bT,
16043
+ fromParents: yT
16086
16044
  };
16087
- function _T(e) {
16045
+ function gT(e) {
16088
16046
  let t = /^(this|previous|block(\d+))(?=\.|\[)/.exec(e);
16089
16047
  if (!t) throw `invalid prefix for path '${e}'`;
16090
16048
  return {
@@ -16092,15 +16050,15 @@ function _T(e) {
16092
16050
  pathString: e.slice(t[0].length)
16093
16051
  };
16094
16052
  }
16095
- function vT(e, t) {
16096
- return ST(e, t, !1).numericPath;
16053
+ function _T(e, t) {
16054
+ return xT(e, t, !1).numericPath;
16097
16055
  }
16098
- function yT(e, t) {
16056
+ function vT(e, t) {
16099
16057
  let n = e[0], r = "";
16100
16058
  for (let e of t) n.type == 2 ? (n = n.properties[e], r += "." + n.name) : n.type == 1 && (n = n.entries[e], r += `[${n.index}]`);
16101
16059
  return r;
16102
16060
  }
16103
- function bT(e) {
16061
+ function yT(e) {
16104
16062
  let t = "";
16105
16063
  for (let n = 1; n < e.length; n++) {
16106
16064
  let r = e[n];
@@ -16108,13 +16066,13 @@ function bT(e) {
16108
16066
  }
16109
16067
  return t;
16110
16068
  }
16111
- function xT(e, t, n) {
16112
- let r = ST(e, t, !0);
16069
+ function bT(e, t, n) {
16070
+ let r = xT(e, t, !0);
16113
16071
  r.hasWildcard ? (function e(t) {
16114
16072
  for (let r of t) r.type == 2 ? e(r.properties) : r.type == 1 ? e(r.entries) : n(r);
16115
16073
  })(r.item) : n(r.item);
16116
16074
  }
16117
- function ST(e, t, n) {
16075
+ function xT(e, t, n) {
16118
16076
  let r = t.match(/\[(?:\*|\d+)\]|\.(?:\*|[^.*\[\]]+)/g);
16119
16077
  if (r.join("") != t) throw `invalid syntax for path '${t}'`;
16120
16078
  let i = [], a = e[0], o, s = !1;
@@ -16160,18 +16118,18 @@ function ST(e, t, n) {
16160
16118
  }
16161
16119
  //#endregion
16162
16120
  //#region src/records-old/Merklizer.ts
16163
- var CT = class {
16121
+ var ST = class {
16164
16122
  nLeaves;
16165
16123
  tree;
16166
16124
  constructor() {
16167
- this.tree = new FS();
16125
+ this.tree = new PS();
16168
16126
  }
16169
16127
  addItem(e, t) {
16170
16128
  let n = this.getLeafInfo(e, t);
16171
16129
  e.attributes & 2 ? this.addMaskableItem(e, n) : e.attributes & 1 ? this.addHashableItem(e, n) : this.addRawItem(e, n);
16172
16130
  }
16173
16131
  getLeafInfo(e, t) {
16174
- let n = gT.fromParents(t), r = Za.encode(n);
16132
+ let n = hT.fromParents(t), r = Za.encode(n);
16175
16133
  if (r.length > 65535) throw "path too long";
16176
16134
  let i = new Uint8Array(r.length + 3);
16177
16135
  return i[0] = e.type, i[1] = r.length >> 8, i[2] = r.length & 255, i.set(r, 3), i;
@@ -16181,7 +16139,7 @@ var CT = class {
16181
16139
  for (let n = 0; n < this.nLeaves; n++) e.has(n) || t.push(n);
16182
16140
  return this.tree.getWitnesses(t).map((e) => A.binaryToHexa(e)).join("");
16183
16141
  }
16184
- }, wT = class extends CT {
16142
+ }, CT = class extends ST {
16185
16143
  leaves;
16186
16144
  pepper;
16187
16145
  saltCounter;
@@ -16225,7 +16183,7 @@ var CT = class {
16225
16183
  let e = this.saltCounter & 3, t = this.saltCounter++ >> 2;
16226
16184
  return e || (this.sha512 = M.Hashes.sha512AsBinary(A.binaryFrom(this.pepper, t))), this.sha512.slice(e << 4, e + 1 << 4);
16227
16185
  }
16228
- }, TT = class extends CT {
16186
+ }, wT = class extends ST {
16229
16187
  nLeaves;
16230
16188
  witnesses;
16231
16189
  constructor(e, t) {
@@ -16259,13 +16217,13 @@ var CT = class {
16259
16217
  }
16260
16218
  this.addLeaf(e, A.binaryFrom(r, i));
16261
16219
  }
16262
- }, ET = {
16263
- getListFromRegex: DT,
16264
- applyMask: OT,
16265
- getVisibleText: kT,
16266
- getFullText: AT
16220
+ }, TT = {
16221
+ getListFromRegex: ET,
16222
+ applyMask: DT,
16223
+ getVisibleText: OT,
16224
+ getFullText: kT
16267
16225
  };
16268
- function DT(e, t, n) {
16226
+ function ET(e, t, n) {
16269
16227
  let r = (t.exec(e) || []).slice(1);
16270
16228
  if (r.join("") != e) throw `the regular expression ${t} does not capture all string parts`;
16271
16229
  let i = n.split(/(\$\d+)/).map((e, t) => [t & 1, e]).filter((e) => e[1]);
@@ -16280,7 +16238,7 @@ function DT(e, t, n) {
16280
16238
  ]), o = i;
16281
16239
  }), a;
16282
16240
  }
16283
- function OT(e, t) {
16241
+ function DT(e, t) {
16284
16242
  let n = [], r = [];
16285
16243
  return t.sort((e, t) => e[0] - t[0]), t.forEach(([i, a, o], s) => {
16286
16244
  let [c, l] = s ? t[s - 1] : [0, 0];
@@ -16293,15 +16251,15 @@ function OT(e, t) {
16293
16251
  hidden: r
16294
16252
  };
16295
16253
  }
16296
- function kT(e) {
16254
+ function OT(e) {
16297
16255
  return e.join("");
16298
16256
  }
16299
- function AT(e, t) {
16257
+ function kT(e, t) {
16300
16258
  return e.map((e, n) => n & 1 ? t[n >> 1] : e).join("");
16301
16259
  }
16302
16260
  //#endregion
16303
16261
  //#region src/records-old/intermediateRepresentation.ts
16304
- var jT = 24, MT = class e {
16262
+ var AT = 24, jT = class e {
16305
16263
  importedFromProof;
16306
16264
  channelDefinitions;
16307
16265
  irObject = [];
@@ -16346,7 +16304,7 @@ var jT = 24, MT = class e {
16346
16304
  this.channelDefinitions.set(e, {
16347
16305
  id: e,
16348
16306
  isPrivate: !0,
16349
- pepper: wT.generatePepper()
16307
+ pepper: CT.generatePepper()
16350
16308
  });
16351
16309
  }
16352
16310
  buildFromJson(t) {
@@ -16437,7 +16395,7 @@ var jT = 24, MT = class e {
16437
16395
  for (let e = r.readVarUint(); e--;) g.visibleParts.push(r.readString());
16438
16396
  g.visiblePartsBinary = r.extractFrom(e), e = r.getPointer();
16439
16397
  for (let e = r.readVarUint(); e--;) g.hiddenParts.push(r.readString());
16440
- g.hiddenPartsBinary = r.extractFrom(e), g.value = ET.getFullText(g.visibleParts, g.hiddenParts);
16398
+ g.hiddenPartsBinary = r.extractFrom(e), g.value = TT.getFullText(g.visibleParts, g.hiddenParts);
16441
16399
  } else g.value = r.readJsonValue(f), g.valueBinary = r.getLastField();
16442
16400
  g.attributes = p, g.channelId = t.id;
16443
16401
  }
@@ -16517,10 +16475,10 @@ var jT = 24, MT = class e {
16517
16475
  let t;
16518
16476
  if (this.importedFromProof) {
16519
16477
  let n = this.object.merkleData.find((t) => t.channelId == e);
16520
- t = new TT(n.nLeaves, n.witnesses);
16478
+ t = new wT(n.nLeaves, n.witnesses);
16521
16479
  } else {
16522
16480
  let n = this.channelDefinitions.get(e);
16523
- if (n && n.isPrivate) t = new wT(n.pepper);
16481
+ if (n && n.isPrivate) t = new CT(n.pepper);
16524
16482
  else throw Error("internal error: cannot compute the merklizer for either undefined channel or public channel");
16525
16483
  }
16526
16484
  return this.traverseIrObject({
@@ -16534,7 +16492,7 @@ var jT = 24, MT = class e {
16534
16492
  return this.irObject;
16535
16493
  }
16536
16494
  dumpIRObject() {
16537
- return JSON.stringify(this.irObject, (e, t) => t instanceof Uint8Array ? [`<${t.length} byte(s)>`, ...[...t.slice(0, jT)].map((e) => e.toString(16).toUpperCase().padStart(2, "0"))].join(" ") + (t.length > jT ? " .." : "") : t instanceof Set ? [...t] : t, 2);
16495
+ return JSON.stringify(this.irObject, (e, t) => t instanceof Uint8Array ? [`<${t.length} byte(s)>`, ...[...t.slice(0, AT)].map((e) => e.toString(16).toUpperCase().padStart(2, "0"))].join(" ") + (t.length > AT ? " .." : "") : t instanceof Set ? [...t] : t, 2);
16538
16496
  }
16539
16497
  setChannel(e, t) {
16540
16498
  if (!this.channelDefinitions.has(t)) throw `channel ${t} is undefined`;
@@ -16544,13 +16502,13 @@ var jT = 24, MT = class e {
16544
16502
  }
16545
16503
  setAsMaskable(e, t) {
16546
16504
  this.processPath(e, (e) => {
16547
- let n = ET.applyMask(e.value, t);
16505
+ let n = TT.applyMask(e.value, t);
16548
16506
  e.visibleParts = n.visible, e.hiddenParts = n.hidden, e.attributes = 2;
16549
16507
  });
16550
16508
  }
16551
16509
  setAsMaskableByRegex(e, t, n) {
16552
16510
  this.processPath(e, (e) => {
16553
- let r = ET.getListFromRegex(e.value, t, n), i = ET.applyMask(e.value, r);
16511
+ let r = TT.getListFromRegex(e.value, t, n), i = TT.applyMask(e.value, r);
16554
16512
  e.visibleParts = i.visible, e.hiddenParts = i.hidden, e.attributes = e.attributes & -4 | 2;
16555
16513
  });
16556
16514
  }
@@ -16581,9 +16539,9 @@ var jT = 24, MT = class e {
16581
16539
  processPath(e, t) {
16582
16540
  let n = e.split(/, */);
16583
16541
  for (let e of n) {
16584
- let n = gT.parsePrefix(e);
16542
+ let n = hT.parsePrefix(e);
16585
16543
  if (n.prefix != "this") throw "the path must start with 'this'";
16586
- gT.processCallback(this.irObject, n.pathString, t);
16544
+ hT.processCallback(this.irObject, n.pathString, t);
16587
16545
  }
16588
16546
  }
16589
16547
  finalizeChannelData() {
@@ -16592,7 +16550,7 @@ var jT = 24, MT = class e {
16592
16550
  populateChannels() {
16593
16551
  this.traverseIrObject({ onPrimitive: (e, t, n, r) => {
16594
16552
  for (let t = 0; t < r.length - 1; t++) {
16595
- if (e.channelId === null) throw Error(`field '${gT.fromParents(r)}' is not assigned to any channel`);
16553
+ if (e.channelId === null) throw Error(`field '${hT.fromParents(r)}' is not assigned to any channel`);
16596
16554
  (r[t].channels = r[t].channels || /* @__PURE__ */ new Set()).add(e.channelId);
16597
16555
  }
16598
16556
  } });
@@ -16669,13 +16627,13 @@ var jT = 24, MT = class e {
16669
16627
  }
16670
16628
  }), e.root === null ? {} : e.root;
16671
16629
  }
16672
- }, NT = class {
16630
+ }, MT = class {
16673
16631
  static async encode(e, t) {
16674
16632
  let n = [], r = [], i = e.split(/(\{\{.+?\}\})/);
16675
16633
  for (let e in i) {
16676
16634
  let a = i[e];
16677
16635
  if (e & 1) {
16678
- let e = a.slice(2, -2).trim(), n = gT.parsePrefix(e), i = await t(n.blockIndex), o = gT.toNumericPath(i, n.pathString);
16636
+ let e = a.slice(2, -2).trim(), n = hT.parsePrefix(e), i = await t(n.blockIndex), o = hT.toNumericPath(i, n.pathString);
16679
16637
  r.push(o);
16680
16638
  } else n.push(a);
16681
16639
  }
@@ -16687,11 +16645,11 @@ var jT = 24, MT = class e {
16687
16645
  }
16688
16646
  static async decode(e, t) {
16689
16647
  for (let n of e.fields) {
16690
- let e = await t(0), r = gT.fromNumericPath(e, n);
16648
+ let e = await t(0), r = hT.fromNumericPath(e, n);
16691
16649
  console.log(r);
16692
16650
  }
16693
16651
  }
16694
- }, PT = class {
16652
+ }, NT = class {
16695
16653
  constructor(e) {
16696
16654
  this.transaction = e;
16697
16655
  }
@@ -16699,7 +16657,7 @@ var jT = 24, MT = class e {
16699
16657
  return this.transaction.height;
16700
16658
  }
16701
16659
  getPreviousHistoryHash() {
16702
- return Px.from(this.transaction.previousHistoryHash);
16660
+ return Nx.from(this.transaction.previousHistoryHash);
16703
16661
  }
16704
16662
  getTimestamp() {
16705
16663
  return this.transaction.timestamp;
@@ -16708,7 +16666,7 @@ var jT = 24, MT = class e {
16708
16666
  return /* @__PURE__ */ new Date(this.transaction.timestamp * 1e3);
16709
16667
  }
16710
16668
  getLinkedAccount() {
16711
- return Px.from(this.transaction.linkedAccount);
16669
+ return Nx.from(this.transaction.linkedAccount);
16712
16670
  }
16713
16671
  getAmount() {
16714
16672
  let e = this.isPositive() ? 1 : -1;
@@ -16759,7 +16717,7 @@ var jT = 24, MT = class e {
16759
16717
  isReceivedPayment() {
16760
16718
  return this.transaction.type == 9;
16761
16719
  }
16762
- }, FT = class {
16720
+ }, PT = class {
16763
16721
  transactionByHeight;
16764
16722
  constructor() {
16765
16723
  this.transactionByHeight = /* @__PURE__ */ new Map();
@@ -16774,7 +16732,7 @@ var jT = 24, MT = class e {
16774
16732
  return Array.from(this.transactionByHeight.keys());
16775
16733
  }
16776
16734
  getAllTransactions() {
16777
- return Array.from(this.transactionByHeight.values()).map((e) => new PT(e));
16735
+ return Array.from(this.transactionByHeight.values()).map((e) => new NT(e));
16778
16736
  }
16779
16737
  getNumberOfTransactions() {
16780
16738
  return this.transactionByHeight.size;
@@ -16785,76 +16743,77 @@ var jT = 24, MT = class e {
16785
16743
  getTransactionAtHeight(e) {
16786
16744
  let t = this.transactionByHeight.get(e);
16787
16745
  if (t === void 0) throw new i(`No transaction found at height ${e}`);
16788
- return new PT(t);
16746
+ return new NT(t);
16789
16747
  }
16790
- }, IT = {
16748
+ }, FT = {
16791
16749
  [H.PROTOCOL_VIRTUAL_BLOCKCHAIN]: "PROTOCOL_VIRTUAL_BLOCKCHAIN",
16792
16750
  [H.NODE_VIRTUAL_BLOCKCHAIN]: "NODE_VIRTUAL_BLOCKCHAIN",
16793
16751
  [H.APPLICATION_VIRTUAL_BLOCKCHAIN]: "APPLICATION_VIRTUAL_BLOCKCHAIN",
16794
16752
  [H.ORGANIZATION_VIRTUAL_BLOCKCHAIN]: "ORGANIZATION_VIRTUAL_BLOCKCHAIN",
16795
16753
  [H.APP_LEDGER_VIRTUAL_BLOCKCHAIN]: "APP_LEDGER_VIRTUAL_BLOCKCHAIN",
16796
16754
  [H.ACCOUNT_VIRTUAL_BLOCKCHAIN]: "ACCOUNT_VIRTUAL_BLOCKCHAIN"
16797
- }, LT = class {
16755
+ }, IT = class {
16798
16756
  static getVirtualBlockchainLabelFromVirtualBlockchainType(e) {
16799
- return IT[e];
16757
+ return FT[e];
16800
16758
  }
16801
- }, RT = /* @__PURE__ */ function(e) {
16759
+ }, LT = /* @__PURE__ */ function(e) {
16802
16760
  return e.AUTH_BY_PUBLIC_KEY = "WALLET_REQUEST_AUTH_BY_PUBLIC_KEY", e.DATA_APPROVAL = "WALLET_REQUEST_DATA_APPROVAL", e;
16803
- }({}), zT = /* @__PURE__ */ function(e) {
16761
+ }({}), RT = /* @__PURE__ */ function(e) {
16804
16762
  return e.AUTH_BY_PUBLIC_KEY = "WALLET_RESPONSE_AUTH_BY_PUBLIC_KEY", e.DATA_APPROVAL = "WALLET_RESPONSE_DATA_APPROVAL", e;
16805
- }({}), BT = /* @__PURE__ */ I({
16806
- type: /* @__PURE__ */ P(RT.AUTH_BY_PUBLIC_KEY),
16763
+ }({}), zT = /* @__PURE__ */ I({
16764
+ type: /* @__PURE__ */ P(LT.AUTH_BY_PUBLIC_KEY),
16807
16765
  base64EncodedChallenge: /* @__PURE__ */ L()
16808
- }), VT = /* @__PURE__ */ I({
16809
- type: /* @__PURE__ */ P(RT.DATA_APPROVAL),
16766
+ }), BT = /* @__PURE__ */ I({
16767
+ type: /* @__PURE__ */ P(LT.DATA_APPROVAL),
16810
16768
  anchorRequestId: /* @__PURE__ */ L(),
16811
16769
  serverUrl: /* @__PURE__ */ L()
16812
- }), HT = /* @__PURE__ */ rm("type", [BT, VT]), UT = /* @__PURE__ */ I({
16813
- type: /* @__PURE__ */ P(zT.AUTH_BY_PUBLIC_KEY),
16770
+ }), VT = /* @__PURE__ */ rm("type", [zT, BT]), HT = /* @__PURE__ */ I({
16771
+ type: /* @__PURE__ */ P(RT.AUTH_BY_PUBLIC_KEY),
16814
16772
  publicKey: /* @__PURE__ */ L(),
16815
16773
  signature: /* @__PURE__ */ L()
16816
- }), WT = /* @__PURE__ */ I({
16817
- type: /* @__PURE__ */ P(zT.DATA_APPROVAL),
16774
+ }), UT = /* @__PURE__ */ I({
16775
+ type: /* @__PURE__ */ P(RT.DATA_APPROVAL),
16818
16776
  b64VbHash: /* @__PURE__ */ L(),
16819
16777
  b64MbHash: /* @__PURE__ */ L(),
16820
16778
  height: /* @__PURE__ */ F()
16821
- }), GT = /* @__PURE__ */ rm("type", [UT, WT]), KT = 100, qT = /* @__PURE__ */ function(e) {
16779
+ }), WT = /* @__PURE__ */ rm("type", [HT, UT]), GT = 100, KT = /* @__PURE__ */ function(e) {
16822
16780
  return e.REQUEST = "CLIENT_BRIDGE_REQUEST", e.UPDATE_QR = "CLIENT_BRIDGE_UPDATE_QR", e.CONNECTION_TOKEN = "CLIENT_BRIDGE_CONNECTION_TOKEN", e.FORWARDED_ANSWER = "CLIENT_BRIDGE_FORWARDED_ANSWER", e.GET_CONNECTION_INFO = "CLIENT_BRIDGE_GET_CONNECTION_INFO", e.ANSWER = "CLIENT_BRIDGE_ANSWER", e.CONNECTION_INFO = "CLIENT_BRIDGE_CONNECTION_INFO", e.CONNECTION_ACCEPTED = "CLIENT_BRIDGE_CONNECTION_ACCEPTED", e.FORWARDED_REQUEST = "CLIENT_BRIDGE_FORWARDED_REQUEST", e.ERROR = "CLIENT_BRIDGE_ERROR", e;
16823
- }({}), JT = /* @__PURE__ */ I({
16781
+ }({}), qT = /* @__PURE__ */ I({
16824
16782
  base64EncodedQrId: /* @__PURE__ */ L(),
16825
16783
  timestamp: /* @__PURE__ */ F(),
16826
16784
  serverUrl: /* @__PURE__ */ z(/* @__PURE__ */ L(), /* @__PURE__ */ Lp(100))
16827
- }), YT = /* @__PURE__ */ I({
16828
- type: /* @__PURE__ */ P(qT.REQUEST),
16829
- walletRequest: HT,
16785
+ }), JT = /* @__PURE__ */ I({
16786
+ type: /* @__PURE__ */ P(KT.REQUEST),
16787
+ walletRequest: VT,
16830
16788
  deviceId: km(),
16831
16789
  withToken: /* @__PURE__ */ F()
16832
- }), XT = /* @__PURE__ */ I({
16833
- type: /* @__PURE__ */ P(qT.UPDATE_QR),
16790
+ }), YT = /* @__PURE__ */ I({
16791
+ type: /* @__PURE__ */ P(KT.UPDATE_QR),
16834
16792
  base64EncodedQrId: /* @__PURE__ */ L(),
16835
16793
  timestamp: /* @__PURE__ */ F()
16836
- }), ZT = /* @__PURE__ */ I({
16837
- type: /* @__PURE__ */ P(qT.CONNECTION_TOKEN),
16794
+ }), XT = /* @__PURE__ */ I({
16795
+ type: /* @__PURE__ */ P(KT.CONNECTION_TOKEN),
16838
16796
  token: km()
16797
+ }), ZT = /* @__PURE__ */ I({
16798
+ type: /* @__PURE__ */ P(KT.FORWARDED_ANSWER),
16799
+ walletResponse: WT
16839
16800
  }), QT = /* @__PURE__ */ I({
16840
- type: /* @__PURE__ */ P(qT.FORWARDED_ANSWER),
16841
- walletResponse: GT
16842
- }), $T = /* @__PURE__ */ I({
16843
- type: /* @__PURE__ */ P(qT.GET_CONNECTION_INFO),
16801
+ type: /* @__PURE__ */ P(KT.GET_CONNECTION_INFO),
16844
16802
  base64EncodedQrId: /* @__PURE__ */ L()
16845
- }), eE = /* @__PURE__ */ I({
16846
- type: /* @__PURE__ */ P(qT.ANSWER),
16847
- walletResponse: GT
16848
- }), tE = /* @__PURE__ */ I({ type: /* @__PURE__ */ P(qT.CONNECTION_INFO) }), nE = /* @__PURE__ */ I({
16849
- type: /* @__PURE__ */ P(qT.CONNECTION_ACCEPTED),
16803
+ }), $T = /* @__PURE__ */ I({
16804
+ type: /* @__PURE__ */ P(KT.ANSWER),
16805
+ walletResponse: WT
16806
+ }), eE = /* @__PURE__ */ I({ type: /* @__PURE__ */ P(KT.CONNECTION_INFO) }), tE = /* @__PURE__ */ I({
16807
+ type: /* @__PURE__ */ P(KT.CONNECTION_ACCEPTED),
16850
16808
  base64EncodedQrId: /* @__PURE__ */ L()
16809
+ }), nE = /* @__PURE__ */ I({
16810
+ type: /* @__PURE__ */ P(KT.FORWARDED_REQUEST),
16811
+ walletRequest: VT
16851
16812
  }), rE = /* @__PURE__ */ I({
16852
- type: /* @__PURE__ */ P(qT.FORWARDED_REQUEST),
16853
- walletRequest: HT
16854
- }), iE = /* @__PURE__ */ I({
16855
- type: /* @__PURE__ */ P(qT.ERROR),
16813
+ type: /* @__PURE__ */ P(KT.ERROR),
16856
16814
  errorMessage: /* @__PURE__ */ L()
16857
- }), aE = /* @__PURE__ */ rm("type", [
16815
+ }), iE = /* @__PURE__ */ rm("type", [
16816
+ JT,
16858
16817
  YT,
16859
16818
  XT,
16860
16819
  ZT,
@@ -16863,27 +16822,26 @@ var jT = 24, MT = class e {
16863
16822
  eE,
16864
16823
  tE,
16865
16824
  nE,
16866
- rE,
16867
- iE
16868
- ]), oE = class {
16825
+ rE
16826
+ ]), aE = class {
16869
16827
  static encode(e) {
16870
- return bx(R(aE, e));
16828
+ return bx(R(iE, e));
16871
16829
  }
16872
16830
  static decode(e) {
16873
- return R(aE, Ub(e));
16831
+ return R(iE, Ub(e));
16874
16832
  }
16875
- }, sE = class {
16833
+ }, oE = class {
16876
16834
  static validateClientBridgeMessage(e) {
16877
- return R(aE, e);
16835
+ return R(iE, e);
16878
16836
  }
16879
- }, cE = class {
16837
+ }, sE = class {
16880
16838
  static encode(e) {
16881
- return bx(R(JT, e));
16839
+ return bx(R(qT, e));
16882
16840
  }
16883
16841
  static decode(e) {
16884
- return R(JT, Ub(e));
16842
+ return R(qT, Ub(e));
16885
16843
  }
16886
- }, lE = /* @__PURE__ */ $p(/* @__PURE__ */ L(), /* @__PURE__ */ I({
16844
+ }, cE = /* @__PURE__ */ $p(/* @__PURE__ */ L(), /* @__PURE__ */ I({
16887
16845
  networkName: /* @__PURE__ */ Zp(/* @__PURE__ */ L()),
16888
16846
  nodes: /* @__PURE__ */ $p(/* @__PURE__ */ L(), /* @__PURE__ */ I({
16889
16847
  nodeName: /* @__PURE__ */ Zp(/* @__PURE__ */ L()),
@@ -16893,69 +16851,69 @@ var jT = 24, MT = class e {
16893
16851
  trusted: /* @__PURE__ */ Zp(/* @__PURE__ */ Gp(), !1),
16894
16852
  nodeId: /* @__PURE__ */ L()
16895
16853
  }))
16896
- })), uE = /* @__PURE__ */ I({
16854
+ })), lE = /* @__PURE__ */ I({
16897
16855
  state: Hh,
16898
16856
  microblockHashes: /* @__PURE__ */ N(V())
16899
- }), dE = /* @__PURE__ */ function(e) {
16857
+ }), uE = /* @__PURE__ */ function(e) {
16900
16858
  return e.APPROVAL_HANDSHAKE = "WALLET_OPERATOR_REQUEST_APPROVAL_HANDSHAKE", e.ACTOR_KEY = "WALLET_OPERATOR_REQUEST_ACTOR_KEY", e.APPROVAL_SIGNATURE = "WALLET_OPERATOR_REQUEST_APPROVAL_SIGNATURE", e;
16901
- }({}), fE = /* @__PURE__ */ function(e) {
16859
+ }({}), dE = /* @__PURE__ */ function(e) {
16902
16860
  return e.ERROR = "WALLET_OPERATOR_RESPONSE_ERROR", e.ACTOR_KEY_REQUIRED = "WALLET_OPERATOR_RESPONSE_ACTOR_KEY_REQUIRED", e.APPROVAL_DATA = "WALLET_OPERATOR_RESPONSE_APPROVAL_DATA", e.APPROVAL_SIGNATURE = "WALLET_OPERATOR_RESPONSE_APPROVAL_SIGNATURE", e;
16903
- }({}), pE = /* @__PURE__ */ I({
16904
- type: /* @__PURE__ */ P(dE.APPROVAL_HANDSHAKE),
16861
+ }({}), fE = /* @__PURE__ */ I({
16862
+ type: /* @__PURE__ */ P(uE.APPROVAL_HANDSHAKE),
16905
16863
  anchorRequestId: /* @__PURE__ */ L()
16906
- }), mE = /* @__PURE__ */ I({
16907
- type: /* @__PURE__ */ P(dE.ACTOR_KEY),
16864
+ }), pE = /* @__PURE__ */ I({
16865
+ type: /* @__PURE__ */ P(uE.ACTOR_KEY),
16908
16866
  anchorRequestId: /* @__PURE__ */ L(),
16909
16867
  actorSignaturePublicKey: /* @__PURE__ */ L(),
16910
16868
  actorPkePublicKey: /* @__PURE__ */ L()
16911
- }), hE = /* @__PURE__ */ I({
16912
- type: /* @__PURE__ */ P(dE.APPROVAL_SIGNATURE),
16869
+ }), mE = /* @__PURE__ */ I({
16870
+ type: /* @__PURE__ */ P(uE.APPROVAL_SIGNATURE),
16913
16871
  anchorRequestId: /* @__PURE__ */ L(),
16914
16872
  b64Signature: /* @__PURE__ */ L()
16915
- }), gE = /* @__PURE__ */ rm("type", [
16873
+ }), hE = /* @__PURE__ */ rm("type", [
16874
+ fE,
16916
16875
  pE,
16917
- mE,
16918
- hE
16919
- ]), _E = /* @__PURE__ */ I({
16920
- type: /* @__PURE__ */ P(fE.ERROR),
16876
+ mE
16877
+ ]), gE = /* @__PURE__ */ I({
16878
+ type: /* @__PURE__ */ P(dE.ERROR),
16921
16879
  errorMessage: /* @__PURE__ */ Zp(/* @__PURE__ */ L(), "")
16922
- }), vE = /* @__PURE__ */ I({
16923
- type: /* @__PURE__ */ P(fE.ACTOR_KEY_REQUIRED),
16880
+ }), _E = /* @__PURE__ */ I({
16881
+ type: /* @__PURE__ */ P(dE.ACTOR_KEY_REQUIRED),
16924
16882
  b64GenesisSeed: /* @__PURE__ */ L()
16925
- }), yE = /* @__PURE__ */ I({
16926
- type: /* @__PURE__ */ P(fE.APPROVAL_DATA),
16883
+ }), vE = /* @__PURE__ */ I({
16884
+ type: /* @__PURE__ */ P(dE.APPROVAL_DATA),
16927
16885
  b64SerializedMicroblock: /* @__PURE__ */ L()
16928
- }), bE = /* @__PURE__ */ I({
16929
- type: /* @__PURE__ */ P(fE.APPROVAL_SIGNATURE),
16886
+ }), yE = /* @__PURE__ */ I({
16887
+ type: /* @__PURE__ */ P(dE.APPROVAL_SIGNATURE),
16930
16888
  b64VbHash: /* @__PURE__ */ L(),
16931
16889
  b64MbHash: /* @__PURE__ */ L(),
16932
16890
  height: /* @__PURE__ */ F()
16933
- }), xE = /* @__PURE__ */ rm("type", [
16891
+ }), bE = /* @__PURE__ */ rm("type", [
16892
+ gE,
16934
16893
  _E,
16935
16894
  vE,
16936
- yE,
16937
- bE
16938
- ]), SE = class {
16895
+ yE
16896
+ ]), xE = class {
16939
16897
  static encodeRequest(e) {
16940
- return bx(R(HT, e));
16898
+ return bx(R(VT, e));
16941
16899
  }
16942
16900
  static decodeRequest(e) {
16943
- return R(HT, Ub(e));
16901
+ return R(VT, Ub(e));
16944
16902
  }
16945
16903
  static encodeResponse(e) {
16946
- return bx(R(GT, e));
16904
+ return bx(R(WT, e));
16947
16905
  }
16948
16906
  static decodeResponse(e) {
16949
- return R(GT, Ub(e));
16907
+ return R(WT, Ub(e));
16950
16908
  }
16951
- }, CE = class {
16909
+ }, SE = class {
16952
16910
  static validateWalletRequest(e) {
16953
- return R(HT, e);
16911
+ return R(VT, e);
16954
16912
  }
16955
16913
  static validateWalletResponse(e) {
16956
- return R(GT, e);
16914
+ return R(WT, e);
16957
16915
  }
16958
- }, wE = class {
16916
+ }, CE = class {
16959
16917
  constructor(e = new bg()) {
16960
16918
  this.stringEncoder = e;
16961
16919
  }
@@ -16971,11 +16929,11 @@ var jT = 24, MT = class e {
16971
16929
  getPrefix() {
16972
16930
  return ["SEED"];
16973
16931
  }
16974
- }, TE = class extends wE {
16932
+ }, wE = class extends CE {
16975
16933
  getPrefix() {
16976
16934
  return ["ACCOUNT", "SEED"];
16977
16935
  }
16978
- }, EE = class e {
16936
+ }, TE = class e {
16979
16937
  static createFromAbciResponse(t) {
16980
16938
  return new e(t.list);
16981
16939
  }
@@ -16986,9 +16944,9 @@ var jT = 24, MT = class e {
16986
16944
  return this.transactions.length > 0;
16987
16945
  }
16988
16946
  getTransactions() {
16989
- return this.transactions.map((e) => new DE(e));
16947
+ return this.transactions.map((e) => new EE(e));
16990
16948
  }
16991
- }, DE = class {
16949
+ }, EE = class {
16992
16950
  constructor(e) {
16993
16951
  this.transaction = e;
16994
16952
  }
@@ -16996,7 +16954,7 @@ var jT = 24, MT = class e {
16996
16954
  return this.transaction.height;
16997
16955
  }
16998
16956
  getPreviousHistoryHash() {
16999
- return Px.from(this.transaction.previousHistoryHash);
16957
+ return Nx.from(this.transaction.previousHistoryHash);
17000
16958
  }
17001
16959
  getTimestamp() {
17002
16960
  return this.transaction.timestamp;
@@ -17008,7 +16966,7 @@ var jT = 24, MT = class e {
17008
16966
  return this.isEarnedFees() ? "Earned fees" : this.isPaidFees() ? "Paid fees" : this.isSentPayment() ? "Sent payment" : this.isReceivedPayment() ? "Received payment" : this.isPurchase() ? "Purchase" : this.isSentIssuance() ? "Sent issuance" : this.isReceivedIssuance() ? "Received issuance" : this.isSale() ? "Sale" : "Transaction";
17009
16967
  }
17010
16968
  getLinkedAccount() {
17011
- return Px.from(this.transaction.linkedAccount);
16969
+ return Nx.from(this.transaction.linkedAccount);
17012
16970
  }
17013
16971
  getAmount() {
17014
16972
  let e = this.isPositive() ? 1 : -1;
@@ -17059,11 +17017,11 @@ var jT = 24, MT = class e {
17059
17017
  isReceivedPayment() {
17060
17018
  return this.transaction.type == 9;
17061
17019
  }
17062
- }, OE = class extends wE {
17020
+ }, DE = class extends CE {
17063
17021
  getPrefix() {
17064
17022
  return ["ACTOR", "SEED"];
17065
17023
  }
17066
- }, kE = class e {
17024
+ }, OE = class e {
17067
17025
  static createFromAccountStateAbciResponse(t) {
17068
17026
  return new e(t.balance, t.locks);
17069
17027
  }
@@ -17276,45 +17234,45 @@ var jT = 24, MT = class e {
17276
17234
  getEscrowed() {
17277
17235
  return hn.createAtomic(this.getBreakdown().escrowed);
17278
17236
  }
17279
- }, AE = class {
17237
+ }, kE = class {
17280
17238
  static encoder = new sx({
17281
17239
  tagUint8Array: !0,
17282
17240
  mapsAsObjects: !0
17283
17241
  });
17284
17242
  static encodeRequest(e) {
17285
- return this.encoder.encode(R(gE, e));
17243
+ return this.encoder.encode(R(hE, e));
17286
17244
  }
17287
17245
  static decodeRequest(e) {
17288
- return R(gE, this.encoder.decode(e));
17246
+ return R(hE, this.encoder.decode(e));
17289
17247
  }
17290
17248
  static encodeResponse(e) {
17291
- return this.encoder.encode(R(xE, e));
17249
+ return this.encoder.encode(R(bE, e));
17292
17250
  }
17293
17251
  static decodeResponse(e) {
17294
- return R(xE, this.encoder.decode(e));
17252
+ return R(bE, this.encoder.decode(e));
17295
17253
  }
17296
- }, jE = class {
17254
+ }, AE = class {
17297
17255
  static validateRequest(e) {
17298
- return R(gE, e);
17256
+ return R(hE, e);
17299
17257
  }
17300
17258
  static validateResponse(e) {
17301
- return R(xE, e);
17259
+ return R(bE, e);
17302
17260
  }
17303
- }, ME = class extends wE {
17261
+ }, jE = class extends CE {
17304
17262
  getPrefix() {
17305
17263
  return ["WALLET", "SEED"];
17306
17264
  }
17307
- }, NE = class e {
17265
+ }, ME = class e {
17308
17266
  constructor(e) {
17309
17267
  this.actorSeed = e;
17310
17268
  }
17311
17269
  static createFromAccountSeedAndVbSeed(t, n) {
17312
17270
  return new e(A.binaryFrom(t, n));
17313
17271
  }
17314
- static parseFromString(t, n = new wE()) {
17272
+ static parseFromString(t, n = new CE()) {
17315
17273
  return new e(n.decode(t));
17316
17274
  }
17317
- encode(e = new wE()) {
17275
+ encode(e = new CE()) {
17318
17276
  return e.encode(this.actorSeed);
17319
17277
  }
17320
17278
  getSeedAsBytes() {
@@ -17337,22 +17295,22 @@ var jT = 24, MT = class e {
17337
17295
  encoderStringAsBytes(e) {
17338
17296
  return new TextEncoder().encode(e);
17339
17297
  }
17340
- }, PE = class e {
17298
+ }, NE = class e {
17341
17299
  static createFromWalletSeedAndNonce(t, n) {
17342
17300
  let r = A.binaryFrom(t, n), i = Xv.createDefaultKDF(), a = this.encoderStringAsBytes("ACCOUNT_SEED");
17343
17301
  return new e(i.deriveKeyNoSalt(r, a, 32));
17344
17302
  }
17345
- static parseFromString(t, n = new wE()) {
17303
+ static parseFromString(t, n = new CE()) {
17346
17304
  return new e(n.decode(t));
17347
17305
  }
17348
- encode(e = new wE()) {
17306
+ encode(e = new CE()) {
17349
17307
  return e.encode(this.accountSeed);
17350
17308
  }
17351
17309
  constructor(e) {
17352
17310
  this.accountSeed = e;
17353
17311
  }
17354
17312
  deriveActorFromVbSeed(e) {
17355
- return NE.createFromAccountSeedAndVbSeed(this.accountSeed, e);
17313
+ return ME.createFromAccountSeedAndVbSeed(this.accountSeed, e);
17356
17314
  }
17357
17315
  async getPrivateSignatureKey(t) {
17358
17316
  let n = Xv.createDefaultKDF();
@@ -17387,9 +17345,9 @@ var jT = 24, MT = class e {
17387
17345
  return t === 1 ? r.setUint8(0, e) : t === 2 ? r.setUint16(0, e, !1) : t === 4 ? r.setUint32(0, e, !1) : t === 8 && r.setBigUint64(0, BigInt(e), !1), new Uint8Array(n);
17388
17346
  }
17389
17347
  getActor(e) {
17390
- return NE.createFromAccountSeedAndVbSeed(this.accountSeed, e);
17348
+ return ME.createFromAccountSeedAndVbSeed(this.accountSeed, e);
17391
17349
  }
17392
- }, FE = class e {
17350
+ }, PE = class e {
17393
17351
  static generateWallet() {
17394
17352
  return new e(Fu(64));
17395
17353
  }
@@ -17397,18 +17355,18 @@ var jT = 24, MT = class e {
17397
17355
  if (!(t instanceof Uint8Array)) throw new i(`Seed must be a Uint8Array, got ${typeof t}`);
17398
17356
  return new e(t);
17399
17357
  }
17400
- static parseFromString(t, n = new wE()) {
17358
+ static parseFromString(t, n = new CE()) {
17401
17359
  if (typeof t != "string") throw new i(`Seed must be a string, got ${typeof t}`);
17402
17360
  return new e(n.decode(t));
17403
17361
  }
17404
- encode(e = new wE()) {
17362
+ encode(e = new CE()) {
17405
17363
  return e.encode(this.walletSeed);
17406
17364
  }
17407
17365
  constructor(e) {
17408
17366
  this.walletSeed = e;
17409
17367
  }
17410
17368
  getDefaultAccountCrypto() {
17411
- return PE.createFromWalletSeedAndNonce(this.walletSeed, 0);
17369
+ return NE.createFromWalletSeedAndNonce(this.walletSeed, 0);
17412
17370
  }
17413
17371
  async generateActorPrivateSignatureKey(e, t) {
17414
17372
  let n = Xv.createDefaultKDF(), r = new Uint8Array([...this.walletSeed, ...t]), i = new TextEncoder(), a = n.deriveKeyNoSalt(r, i.encode("SIG"), 32);
@@ -17419,7 +17377,7 @@ var jT = 24, MT = class e {
17419
17377
  return Xv.createPrivateDecryptionKey(e, a);
17420
17378
  }
17421
17379
  getPrivateSignatureKey(e = Ja.SECP256K1) {
17422
- let t = Xv.createDefaultKDF(), n = Xv.createSignatureScheme(e).expectedSeedSize(), r = PE.encoderStringAsBytes(`SIG_${e}`), i = t.deriveKeyNoSalt(this.walletSeed, r, n);
17380
+ let t = Xv.createDefaultKDF(), n = Xv.createSignatureScheme(e).expectedSeedSize(), r = NE.encoderStringAsBytes(`SIG_${e}`), i = t.deriveKeyNoSalt(this.walletSeed, r, n);
17423
17381
  return Xv.createPrivateSignatureKey(e, i);
17424
17382
  }
17425
17383
  getDecapsulationKey(e) {
@@ -17429,13 +17387,13 @@ var jT = 24, MT = class e {
17429
17387
  return this.getAccount(e).getAccountSeed();
17430
17388
  }
17431
17389
  getAccount(e) {
17432
- return PE.createFromWalletSeedAndNonce(this.walletSeed, e);
17390
+ return NE.createFromWalletSeedAndNonce(this.walletSeed, e);
17433
17391
  }
17434
17392
  getAccountPrivateSignatureKey(e, t) {
17435
- return PE.createFromWalletSeedAndNonce(this.walletSeed, t).getPrivateSignatureKey(e);
17393
+ return NE.createFromWalletSeedAndNonce(this.walletSeed, t).getPrivateSignatureKey(e);
17436
17394
  }
17437
17395
  getActorPrivateSignatureKey(e, t, n) {
17438
- return PE.createFromWalletSeedAndNonce(this.walletSeed, n).deriveActorFromVbSeed(t).getPrivateSignatureKey(e);
17396
+ return NE.createFromWalletSeedAndNonce(this.walletSeed, n).deriveActorFromVbSeed(t).getPrivateSignatureKey(e);
17439
17397
  }
17440
17398
  getVirtualBlockchainDecapsulationKey(e, t) {
17441
17399
  return new Xv().createVirtualBlockchainDecapsulationKey(e, this.walletSeed, t);
@@ -17445,4 +17403,4 @@ var jT = 24, MT = class e {
17445
17403
  }
17446
17404
  };
17447
17405
  //#endregion
17448
- export { Wr as ACCOUNT_ALLOWED_TRANSFERS, Hr as ACCOUNT_BLOCK_FEES, Br as ACCOUNT_BURNT_TOKENS, pa as ACCOUNT_CREATION, _a as ACCOUNT_ESCROW_SETTLEMENT, ga as ACCOUNT_ESCROW_TRANSFER, ii as ACCOUNT_HISTORY, Ur as ACCOUNT_NAMES, da as ACCOUNT_PUBLIC_KEY, va as ACCOUNT_STAKE, Vr as ACCOUNT_STANDARD, ri as ACCOUNT_STATE, fa as ACCOUNT_TOKEN_ISSUANCE, ma as ACCOUNT_TRANSFER, ha as ACCOUNT_VESTING_TRANSFER, Ug as AES256GCMSymmetricEncryptionKey, Hg as AES256GCMSymmetricEncryptionScheme, ia as ALL_SCHEMAS, Wa as ALL_SECTIONS_SCHEMAS, Oa as APP_CREATION, ka as APP_DESCRIPTION, Pa as APP_LEDGER_ACTOR_CREATION, Ra as APP_LEDGER_ACTOR_SUBSCRIPTION, Ma as APP_LEDGER_ALLOWED_PKE_SCHEMES, ja as APP_LEDGER_ALLOWED_SIG_SCHEMES, Va as APP_LEDGER_AUTHOR, Fa as APP_LEDGER_CHANNEL_CREATION, La as APP_LEDGER_CHANNEL_INVITATION, Na as APP_LEDGER_CREATION, Ha as APP_LEDGER_ENDORSEMENT_REQUEST, Ba as APP_LEDGER_PRIVATE_CHANNEL_DATA, za as APP_LEDGER_PUBLIC_CHANNEL_DATA, Ia as APP_LEDGER_SHARED_SECRET, am as ARRAY, oT as AbciQueryEncoder, Mw as AbciRequestSchema, $ as AbciRequestType, aT as AbciResponseSchema, Iw as AbciResponseType, kv as AbstractPrivateDecryptionKey, cw as AbstractProvider, Ov as AbstractPublicEncryptionKey, Dv as AbstractPublicKeyEncryptionScheme, ag as AccountBreakdownSchema, Xw as AccountByPublicKeyHashAbciResponseSchema, Ym as AccountCreationSectionSchema, PE as AccountCrypto, $m as AccountEscrowSettlementSectionSchema, Qm as AccountEscrowTransferSectionSchema, Yw as AccountHistoryAbciResponseSchema, cg as AccountHistoryEntrySchema, lg as AccountHistorySchema, FT as AccountHistoryView, sg as AccountInformationSchema, Nx as AccountInternalState, Hx as AccountInternalStateUpdater, oS as AccountMicroblockStructureChecker, _e as AccountNotFoundForAccountHashError, ge as AccountNotFoundForPublicKeyError, xe as AccountNotFoundForPublicKeyHashError, iT as AccountProofAbciResponseSchema, Fw as AccountProofSchema, qm as AccountPublicKeySectionSchema, TE as AccountSeedEncoder, eh as AccountStakeSectionSchema, Jw as AccountStateAbciResponseSchema, og as AccountStateSchema, Jm as AccountTokenIssuanceSectionSchema, DE as AccountTransaction, EE as AccountTransactions, Xm as AccountTransferSectionSchema, th as AccountUnstakeSectionSchema, dg as AccountUpdateSchema, tT as AccountUpdatesAbciResponseSchema, sS as AccountVb, Zm as AccountVestingTransferSectionSchema, Eh as AccountVirtualBlockchainInternalStateSchema, Ih as AccountVirtualBlockchainStateSchema, re as ActorAlreadyDefinedError, NE as ActorCrypto, oe as ActorNotDefinedError, he as ActorNotInvitedError, Te as ActorNotSubscribedError, OE as ActorSeedEncoder, nC as ActorType, su as Aes, Um as AllowedAdditionalWriterSectionSchema, S as AlreadySubscribedError, Kx as AppLedgerLocalStateUpdaterV1, uC as AppLedgerMicroblockBuildRequestSchema, dC as AppLedgerMicroblockBuildRequestValidation, lh as ApplicationCreationSectionSchema, uh as ApplicationDescriptionSectionSchema, Fx as ApplicationInternalState, Ux as ApplicationInternalStateUpdater, mh as ApplicationLedgerActorCreationSectionSchema, jh as ApplicationLedgerActorInvitationStateSchema, Nh as ApplicationLedgerActorSchema, vh as ApplicationLedgerActorSubscriptionSectionSchema, fh as ApplicationLedgerAllowedPkeSchemesSectionSchema, dh as ApplicationLedgerAllowedSigSchemesSectionSchema, xh as ApplicationLedgerAuthorSectionSchema, hh as ApplicationLedgerChannelCreationSectionSchema, _h as ApplicationLedgerChannelInvitationSectionSchema, Ah as ApplicationLedgerChannelSchema, ph as ApplicationLedgerCreationSectionSchema, Sh as ApplicationLedgerEndorsementRequestSectionSchema, Ix as ApplicationLedgerInternalState, Ph as ApplicationLedgerInternalStateObjectSchema, tC as ApplicationLedgerMicroblockBuilder, hS as ApplicationLedgerMicroblockStructureChecker, Ce as ApplicationLedgerNotFoundError, bh as ApplicationLedgerPrivateChannelDataSectionSchema, yh as ApplicationLedgerPublicChannelDataSectionSchema, gh as ApplicationLedgerSharedSecretSectionSchema, Mh as ApplicationLedgerSharedSecretStateSchema, US as ApplicationLedgerVb, Bh as ApplicationLedgerVirtualBlockchainStateSchema, cS as ApplicationMicroblockStructureChecker, ye as ApplicationNotFoundError, kh as ApplicationVBInternalStateObjectSchema, lS as ApplicationVb, zh as ApplicationVirtualBlockchainStateSchema, mS as Assertion, Hm as AuxiliarySignatureSectionSchema, vw as AwaitMicroblockAnchoringAbciRequestSchema, _m as BIN256, gm as BINARY, Er as BK_EARNED_BLOCK_FEES, Tr as BK_EARNED_TX_FEES, zr as BK_NAMES, gr as BK_PAID_BLOCK_FEES, hr as BK_PAID_TX_FEES, mr as BK_PLUS, Or as BK_PURCHASE, jr as BK_RECEIVED_ESCROW, Mr as BK_RECEIVED_ESCROW_REFUND, Nr as BK_RECEIVED_EXPIRED_ESCROW, Dr as BK_RECEIVED_ISSUANCE, kr as BK_RECEIVED_PAYMENT, Pr as BK_RECEIVED_SLASHED_TOKENS, Ar as BK_RECEIVED_VESTING, Rr as BK_REFERENCES, Fr as BK_REF_BLOCK, Ir as BK_REF_MICROBLOCK, Lr as BK_REF_SECTION, vr as BK_SALE, xr as BK_SENT_ESCROW, Sr as BK_SENT_ESCROW_REFUND, Cr as BK_SENT_EXPIRED_ESCROW, _r as BK_SENT_ISSUANCE, yr as BK_SENT_PAYMENT, wr as BK_SENT_SLASHED_TOKENS, br as BK_SENT_VESTING, ui as BLOCK_CONTENT, li as BLOCK_INFORMATION, lm as BOOLEAN, kE as BalanceAvailability, WC as Base32, mg as Base64, My as BaseHCVSignatureDecoder, ty as BaseHCVSignatureEncoder, Kg as BasePrivateSignatureKey, qg as BasePublicSignatureKey, Vw as BlockContentAbciResponseSchema, zw as BlockInformationAbciResponseSchema, eT as BlockModifiedAccountsAbciResponseSchema, Kh as BlockReferenceSchema, b as BlockchainError, X as BlockchainUtils, mC as BytesSignatureEncoder, bg as BytesToBase64Encoder, xg as BytesToHexEncoder, Ex as CBORCryptoBinaryEncoder, sr as CENTITOKEN, Hn as CHAIN, hn as CMTSToken, qr as CONTRACT_PARAMETER_SCHEMA, Jr as CONTRACT_SCHEMA, le as CannotSubscribeError, o as CarmentisError, n as CarmentisErrorCode, Rw as ChainInformationAbciResponseSchema, Yh as ChainReferenceSchema, Gh as ChainReferenceType, ae as ChannelAlreadyDefinedError, se as ChannelNotDefinedError, oE as ClientBridgeEncoder, aE as ClientBridgeMessageSchema, eE as ClientBridgeMessageSchema_Answer, nE as ClientBridgeMessageSchema_ConnectionAccepted, tE as ClientBridgeMessageSchema_ConnectionInfo, ZT as ClientBridgeMessageSchema_ConnectionToken, iE as ClientBridgeMessageSchema_Error, QT as ClientBridgeMessageSchema_ForwardedAnswer, rE as ClientBridgeMessageSchema_ForwardedRequest, $T as ClientBridgeMessageSchema_GetConnectionInfo, YT as ClientBridgeMessageSchema_Request, XT as ClientBridgeMessageSchema_UpdateQr, qT as ClientBridgeMessageType, sE as ClientBridgeValidation, sw as CometBFTErrorCode, hT as CometBFTNodeWebSocket, pC as CometBFTPublicKey, uT as CometBFTPublicKeyConverter, nS as ConstraintNameByConstraint, M as Crypto, Dx as CryptoEncoderFactory, d as CryptoError, Xv as CryptoSchemeFactory, lv as CryptographicHashSchemeId, iw as CurrencyConverterFactory, pe as CurrentActorNotFoundError, Bm as CustomSectionSchema, gn as DATA, Ga as DEF, f as DecryptionError, ir as ECO, Kr as ERROR, Ka as ERRORS, $C as Economics, v as EconomicsError, Yv as Ed25519PrivateSignatureKey, Jv as Ed25519PublicSignatureKey, qv as Ed25519SignatureScheme, u as EmptyBlockError, yg as EncoderFactory, wy as EnvApiKeyPkmsCredentialProvider, Lw as ErrorAbciResponseSchema, $h as EscrowLockSchema, Qh as EscrowParametersSchema, rw as Euros, aw as EurosToCMTSConverter, lw as ExpirationDate, Wg as ExtendedSymmetricEncryptionKey, Vn as FORMAT, jx as FeesCalculationFormulaFactory, Ax as FirstFeesFormula, pr as GAS_ATOMS_PER_GAS, fr as GAS_PER_BYTE, jC as GenericSymmetricKeyEncoder, Qw as GenesisSnapshotAbciResponseSchema, Sw as GetAccountByPublicKeyHashAbciRequestSchema, xw as GetAccountHistoryAbciRequestSchema, jw as GetAccountProofAbciRequestSchema, bw as GetAccountStateAbciRequestSchema, Dw as GetAccountUpdatesAbciRequestSchema, mw as GetBlockContentAbciRequestSchema, pw as GetBlockInformationAbciRequestSchema, Ew as GetBlockModifiedAccountsAbciRequestSchema, fw as GetChainInformationAbciRequestSchema, ww as GetGenesisSnapshotAbciRequestSchema, yw as GetMicroblockBodysAbciRequestSchema, _w as GetMicroblockInformationAbciRequestSchema, Ow as GetMicroblockInformationByHeightAbciRequestSchema, Aw as GetMicroblockProofAbciRequestSchema, Tw as GetRawBlockContentAbciRequestSchema, kw as GetSerializedMicroblockByHeightAbciRequestSchema, Cw as GetValidatorNodeByAddressAbciRequestSchema, hw as GetVirtualBlockchainStateAbciRequestSchema, gw as GetVirtualBlockchainUpdateAbciRequestSchema, Fn as HASHABLE, zn as HASHED, vm as HASH_STR, Cg as HCVCodec, Sg as HCVDecoded, Zv as HCVPkeEncoder, wv as HKDF, Ly as HandlerBasedSignatureEncoder, Px as Hash, Qc as Hashes, lr as INITIAL_OFFER, i as IllegalParameterError, a as IllegalStateError, r as IllegalUsageError, MT as IntermediateRepresentation, m as InternalError, Vx as InternalStateFactory, Xx as InternalStateUpdaterFactory, ie as InvalidActorError, fe as InvalidChannelError, y as InvalidTokenUnitError, _S as JsonSchema, kC as JwkSignatureEncoder, Sv as KeyDerivationFunction, Cv as KeyDerivationFunctionSchemeId, Gg as KeyExchangeSchemeId, Xh as LOCK_TYPE_COUNT, ig as LockSchema, Zh as LockType, k as Logger, Un as MAGIC_STRING, In as MASKABLE, Bn as MASKED, dr as MAXIMUM_GAS_PRICE, er as MAX_MICROBLOCK_FUTURE_DELAY, $n as MAX_MICROBLOCK_PAST_DELAY, rr as MB_STATUS_PREVIOUS_HASH_ERROR, nr as MB_STATUS_TIMESTAMP_ERROR, tr as MB_STATUS_UNRECOVERABLE_ERROR, gi as MICROBLOCK_BODY, mi as MICROBLOCK_HEADER, fi as MICROBLOCK_HEADER_BODY_HASH_OFFSET, di as MICROBLOCK_HEADER_PREVIOUS_HASH_OFFSET, pi as MICROBLOCK_HEADER_SIZE, hi as MICROBLOCK_SECTION, _i as MICROBLOCK_VB_INFORMATION, cr as MILLITOKEN, ur as MINIMUM_GAS_PRICE, Fy as MLDSA65HCVSignatureDecoder, iy as MLDSA65HCVSignatureEncoder, Xg as MLDSA65PrivateSignatureKey, Yg as MLDSA65PublicSignatureKey, Jg as MLDSA65SignatureScheme, yd as MLDsa, Ud as MLKem, Bi as MSG_ACCOUNT_BY_PUBLIC_KEY_HASH, Ri as MSG_ACCOUNT_HISTORY, Ii as MSG_ACCOUNT_STATE, ji as MSG_AWAIT_MICROBLOCK_ANCHORING, wi as MSG_BLOCK_CONTENT, Si as MSG_BLOCK_INFORMATION, bi as MSG_CHAIN_INFORMATION, vi as MSG_ERROR, Ki as MSG_GENESIS_SNAPSHOT, zi as MSG_GET_ACCOUNT_BY_PUBLIC_KEY_HASH, Li as MSG_GET_ACCOUNT_HISTORY, Fi as MSG_GET_ACCOUNT_STATE, Ci as MSG_GET_BLOCK_CONTENT, xi as MSG_GET_BLOCK_INFORMATION, yi as MSG_GET_CHAIN_INFORMATION, Gi as MSG_GET_GENESIS_SNAPSHOT, Ni as MSG_GET_MICROBLOCK_BODYS, ki as MSG_GET_MICROBLOCK_INFORMATION, Ui as MSG_GET_OBJECT_LIST, Vi as MSG_GET_VALIDATOR_NODE_BY_ADDRESS, Ti as MSG_GET_VIRTUAL_BLOCKCHAIN_STATE, Di as MSG_GET_VIRTUAL_BLOCKCHAIN_UPDATE, Mi as MSG_MICROBLOCK_ANCHORING, Pi as MSG_MICROBLOCK_BODYS, Ai as MSG_MICROBLOCK_INFORMATION, Wi as MSG_OBJECT_LIST, Hi as MSG_VALIDATOR_NODE_BY_ADDRESS, Ei as MSG_VIRTUAL_BLOCKCHAIN_STATE, Oi as MSG_VIRTUAL_BLOCKCHAIN_UPDATE, ET as MaskManager, uw as MemoryProvider, IS as MerkleLeaf, Q as MerkleLeafTypeEnum, BS as MerkleRecord, FS as MerkleTree, CT as Merklizer, NT as MessageManager, XC as MessageSerializer, ZC as MessageUnserializer, te as MicroBlockNotFoundError, ne as MicroBlockNotFoundInBlockError, x as MicroBlockNotFoundInVirtualBlockchainAtHeightError, $x as Microblock, Gw as MicroblockAnchoringAbciResponseSchema, Kw as MicroblockBodyItemSchema, wh as MicroblockBodySchema, qw as MicroblockBodysAbciResponseSchema, GS as MicroblockConsistencyChecker, Pm as MicroblockHeaderSchema, Ww as MicroblockInformationAbciResponseSchema, Wh as MicroblockInformationSchema, rT as MicroblockProofAbciResponseSchema, Pw as MicroblockProofSchema, qh as MicroblockReferenceSchema, Qx as MicroblockStructSchema, s as MicroblockStructureCheckingError, Vv as MlKemCiphertextEncoder, Uv as MlKemPrivateDecryptionKey, Hv as MlKemPublicEncryptionKey, Av as MlKemPublicKeyEncryptionScheme, D as NODE_MESSAGES, um as NULL, cm as NUMBER, Zn as N_VIRTUAL_BLOCKCHAINS, Ny as NativeHCVSignatureDecoder, ny as NativeHCVSignatureEncoder, sT as NetworkProvider, lE as NetworksFileSchema, mT as NewBlockEventSchema, De as NoSharedSecretError, g as NodeConnectionRefusedError, _ as NodeEndpointClosedWhileCatchingUpError, h as NodeError, rg as NodeStakingLockSchema, ng as NodeStakingParametersSchema, de as NotAllowedPkeSchemeError, ue as NotAllowedSignatureSchemeError, c as NotAuthenticatedError, ee as NotImplementedError, cT as NullMemoryProvider, lT as NullNetworkProvider, om as OBJECT, Ta as ORG_CREATION, Ea as ORG_DESCRIPTION, TS as OnChainChannelSchema, DS as OnChainItemListSchema, ES as OnChainItemSchema, HS as OnChainRecord, WS as Optional, sh as OrganizationCreationSectionSchema, ch as OrganizationDescriptionSectionSchema, zx as OrganizationInternalState, Yx as OrganizationInternalStateUpdater, iS as OrganizationMicroblockStructureChecker, ve as OrganizationNotFoundError, Dh as OrganizationVBInternalStateObjectSchema, aS as OrganizationVb, Lh as OrganizationVirtualBlockchainStateSchema, gv as PBKDF2, Ln as PROPERTIES, ca as PROTOCOL_CREATION, la as PROTOCOL_UPDATE, oi as PROTOCOL_VARIABLES, si as PROTOCOL_VB_STATE, Wn as PROTOCOL_VERSION, l as ParsingError, hv as PasswordBasedKeyDerivationFunction, mv as PasswordBasedKeyDerivationFunctionSchemeId, gT as PathManager, wT as PepperMerklizer, AC as PkeEncoderFactory, Ey as PkmsSecp256k1PrivateSignatureKey, Dy as PkmsSecp256k1PublicSignatureKey, Iy as PkmsSecp256k1SignatureDecoder, Oy as PkmsSecp256k1SignatureEncoder, Nw as ProofBlockSchema, PS as ProofDocument, gS as ProofDocumentVB, OS as ProofFieldTypeEnum, LS as ProofRecord, ce as ProofVerificationFailedError, ow as ProofVerificationResult, MS as ProofWrapperSchema, Wm as ProtocolCreationSectionSchema, we as ProtocolError, Rx as ProtocolInternalState, Jx as ProtocolInternalStateUpdater, fS as ProtocolMicroblockStructureChecker, zm as ProtocolUpdateSchema, Gm as ProtocolUpdateSectionSchema, Th as ProtocolVBInternalStateObjectSchema, Rm as ProtocolVariablesSchema, Km as ProtocolVariablesSectionSchema, pS as ProtocolVb, Vh as ProtocolVirtualBlockchainStateSchema, dT as Provider, fT as ProviderFactory, Ev as PublicKeyEncryptionAlgorithmId, Tv as PublicKeyEncryptionSchemeId, JS as RADIX_CST, ni as RECORD_DESCRIPTION, Rn as REDACTED, dw as RPCNodeStatusResponseSchema, YS as RadixUtils, Zs as Random, $w as RawBlockContentAbciResponseSchema, Rv as ReadStream, VS as Record, oC as RecordActorAssignationSchema, rC as RecordActorSchema, RS as RecordByChannels, aC as RecordChannelAssignationSchema, iC as RecordChannelSchema, lC as RecordHashableFieldSchema, cC as RecordMaskableFieldSchema, sC as RecordMaskedPartSchema, ug as RequestedAccountUpdateSchema, Lm as RetentionCostBreakdownSchema, kx as RetentionCostCalculator, Im as RetentionPolicySchema, Fm as RetentionTierSchema, Gr as SCHEMAS, aa as SECTIONS, oa as SIGNATURE, sa as SIGNATURE_SCHEMA, sm as STRING, TT as SaltMerklizer, zS as SaltShaker, zv as SchemaSerializer, Bv as SchemaUnserializer, QC as SchemaValidator, LC as Scrypt, Mx as SecondFeesFormula, mp as Secp256k1, Py as Secp256k1HCVSignatureDecoder, ry as Secp256k1HCVSignatureEncoder, Kv as Secp256k1PrivateSignatureKey, Gv as Secp256k1PublicSignatureKey, Wv as Secp256k1SignatureScheme, Z as SectionConstraint, me as SectionError, Gx as SectionLabel, Ee as SectionNotFoundError, Jh as SectionReferenceSchema, Ch as SectionSchema, O as SectionType, wE as SeedEncoder, zC as SelfProvidedApiKeyPkmsCredentialProvider, Oe as SerializationError, nT as SerializedMicroblockByHeightAbciResponseSchema, pT as ServerNetworkProvider, uv as Sha256CryptographicHash, p as SharedKeyDecryptionError, RC as SignatureAlgorithmId, BC as SignatureCacheDisabled, VC as SignatureCacheEntry, HC as SignatureCacheMonothread, Ja as SignatureSchemeId, Vm as SignatureSectionSchema, eC as StateChecker, rS as StructureChecker, Vg as SymmetricEncryptionSchemeId, or as TOKEN, ar as TOKEN_NAME, vn as TYPE_ARRAY, Nn as TYPE_ARRAY_OF, An as TYPE_BIN256, kn as TYPE_BINARY, Sn as TYPE_BOOLEAN, jn as TYPE_HASH_STR, Mn as TYPE_MAIN, Pn as TYPE_NAMES, Cn as TYPE_NULL, xn as TYPE_NUMBER, yn as TYPE_OBJECT, bn as TYPE_STRING, Tn as TYPE_UINT16, En as TYPE_UINT24, Dn as TYPE_UINT32, On as TYPE_UINT48, wn as TYPE_UINT8, _n as TYPE_UNKNOWN, eS as ThrownErrorMicroblockSearchFailureFallback, Zx as TimestampValidationResult, pn as TokenUnit, mn as TokenUnitLabel, PT as Transaction, yS as TransformationTypeEnum, ro as TypeChecker, eo as TypeCheckingFailureError, xS as TypeEnum, no as TypeManager, fm as UINT16, pm as UINT24, mm as UINT32, hm as UINT48, dm as UINT8, Za as Utf8Encoder, A as Utils, Kn as VB_ACCOUNT, Yn as VB_APPLICATION, Xn as VB_APP_LEDGER, Qn as VB_NAME, Jn as VB_ORGANIZATION, Gn as VB_PROTOCOL, ci as VB_STATES, qn as VB_VALIDATOR_NODE, ai as VIRTUAL_BLOCKCHAIN_STATE, Ca as VN_APPROVAL, xa as VN_COMETBFT_PUBLIC_KEY_DECLARATION, ba as VN_CREATION, Sa as VN_RPC_ENDPOINT, ah as ValidatorNodeApprovalSectionSchema, Zw as ValidatorNodeByAddressAbciResponseSchema, rh as ValidatorNodeCometbftPublicKeyDeclarationSectionSchema, nh as ValidatorNodeCreationSectionSchema, Bx as ValidatorNodeInternalState, qx as ValidatorNodeInternalStateUpdater, uS as ValidatorNodeMicroblockStructureChecker, be as ValidatorNodeNotFoundError, ih as ValidatorNodeRpcEndpointSectionSchema, oh as ValidatorNodeSlashingCancellationSectionSchema, Oh as ValidatorNodeVBInternalStateObjectSchema, dS as ValidatorNodeVb, Rh as ValidatorNodeVirtualBlockchainStateSchema, tg as VestingLockSchema, eg as VestingParametersSchema, tS as VirtualBlockchain, Uh as VirtualBlockchainInfoSchema, LT as VirtualBlockchainLabel, Se as VirtualBlockchainNotFoundError, Fh as VirtualBlockchainSharedPropertiesSchema, Hw as VirtualBlockchainStateAbciResponseSchema, Hh as VirtualBlockchainStateSchema, uE as VirtualBlockchainStatusSchema, H as VirtualBlockchainType, Uw as VirtualBlockchainUpdateAbciResponseSchema, $i as WIMSG_ANSWER, ta as WIMSG_CONNECTION_ACCEPTED, ea as WIMSG_CONNECTION_INFO, Xi as WIMSG_CONNECTION_TOKEN, Zi as WIMSG_FORWARDED_ANSWER, na as WIMSG_FORWARDED_REQUEST, Qi as WIMSG_GET_CONNECTION_INFO, Ji as WIMSG_REQUEST, Yi as WIMSG_UPDATE_QR, qa as WI_INVALID_SIGNATURE, KT as WI_MAX_SERVER_URL_LENGTH, ra as WI_MESSAGES, qi as WI_QR_CODE, FE as WalletCrypto, AE as WalletInteractiveAnchoringEncoder, mE as WalletInteractiveAnchoringRequestActorKeySchema, pE as WalletInteractiveAnchoringRequestApprovalHandshakeSchema, hE as WalletInteractiveAnchoringRequestApprovalSignatureSchema, gE as WalletInteractiveAnchoringRequestSchema, dE as WalletInteractiveAnchoringRequestType, vE as WalletInteractiveAnchoringResponseActorKeyRequiredSchema, yE as WalletInteractiveAnchoringResponseApprovalDataSchema, bE as WalletInteractiveAnchoringResponseApprovalSignatureSchema, _E as WalletInteractiveAnchoringResponseErrorSchema, xE as WalletInteractiveAnchoringResponseSchema, fE as WalletInteractiveAnchoringResponseType, jE as WalletInteractiveAnchoringValidation, BT as WalletRequestAuthByPublicKeySchema, fC as WalletRequestBasedApplicationLedgerMicroblockBuilder, VT as WalletRequestDataApprovalSchema, SE as WalletRequestEncoder, HT as WalletRequestSchema, RT as WalletRequestType, CE as WalletRequestValidation, UT as WalletResponseAuthByPublicKeySchema, WT as WalletResponseDataApprovalSchema, GT as WalletResponseSchema, zT as WalletResponseType, ME as WalletSeedEncoder, cE as WiQrCodeEncoder, JT as WiQrCodeSchema, Lv as WriteStream, Am as accountId, ym as array, km as bin256, Om as binary, xm as boolean, jm as height, Nm as nonNegativeInt, B as number, Mm as positiveInt, bm as string, wm as uint16, Tm as uint24, Em as uint32, Dm as uint48, Cm as uint8, V as uint8array, QS as verifyRadixProof };
17406
+ export { Wr as ACCOUNT_ALLOWED_TRANSFERS, Hr as ACCOUNT_BLOCK_FEES, Br as ACCOUNT_BURNT_TOKENS, pa as ACCOUNT_CREATION, _a as ACCOUNT_ESCROW_SETTLEMENT, ga as ACCOUNT_ESCROW_TRANSFER, ii as ACCOUNT_HISTORY, Ur as ACCOUNT_NAMES, da as ACCOUNT_PUBLIC_KEY, va as ACCOUNT_STAKE, Vr as ACCOUNT_STANDARD, ri as ACCOUNT_STATE, fa as ACCOUNT_TOKEN_ISSUANCE, ma as ACCOUNT_TRANSFER, ha as ACCOUNT_VESTING_TRANSFER, Ug as AES256GCMSymmetricEncryptionKey, Hg as AES256GCMSymmetricEncryptionScheme, ia as ALL_SCHEMAS, Wa as ALL_SECTIONS_SCHEMAS, Oa as APP_CREATION, ka as APP_DESCRIPTION, Pa as APP_LEDGER_ACTOR_CREATION, Ra as APP_LEDGER_ACTOR_SUBSCRIPTION, Ma as APP_LEDGER_ALLOWED_PKE_SCHEMES, ja as APP_LEDGER_ALLOWED_SIG_SCHEMES, Va as APP_LEDGER_AUTHOR, Fa as APP_LEDGER_CHANNEL_CREATION, La as APP_LEDGER_CHANNEL_INVITATION, Na as APP_LEDGER_CREATION, Ha as APP_LEDGER_ENDORSEMENT_REQUEST, Ba as APP_LEDGER_PRIVATE_CHANNEL_DATA, za as APP_LEDGER_PUBLIC_CHANNEL_DATA, Ia as APP_LEDGER_SHARED_SECRET, am as ARRAY, aT as AbciQueryEncoder, jw as AbciRequestSchema, $ as AbciRequestType, iT as AbciResponseSchema, Fw as AbciResponseType, kv as AbstractPrivateDecryptionKey, sw as AbstractProvider, Ov as AbstractPublicEncryptionKey, Dv as AbstractPublicKeyEncryptionScheme, ag as AccountBreakdownSchema, Yw as AccountByPublicKeyHashAbciResponseSchema, Ym as AccountCreationSectionSchema, NE as AccountCrypto, $m as AccountEscrowSettlementSectionSchema, Qm as AccountEscrowTransferSectionSchema, Jw as AccountHistoryAbciResponseSchema, cg as AccountHistoryEntrySchema, lg as AccountHistorySchema, PT as AccountHistoryView, sg as AccountInformationSchema, Mx as AccountInternalState, Vx as AccountInternalStateUpdater, aS as AccountMicroblockStructureChecker, _e as AccountNotFoundForAccountHashError, ge as AccountNotFoundForPublicKeyError, xe as AccountNotFoundForPublicKeyHashError, rT as AccountProofAbciResponseSchema, Pw as AccountProofSchema, qm as AccountPublicKeySectionSchema, wE as AccountSeedEncoder, eh as AccountStakeSectionSchema, qw as AccountStateAbciResponseSchema, og as AccountStateSchema, Jm as AccountTokenIssuanceSectionSchema, EE as AccountTransaction, TE as AccountTransactions, Xm as AccountTransferSectionSchema, th as AccountUnstakeSectionSchema, dg as AccountUpdateSchema, eT as AccountUpdatesAbciResponseSchema, oS as AccountVb, Zm as AccountVestingTransferSectionSchema, Eh as AccountVirtualBlockchainInternalStateSchema, Ih as AccountVirtualBlockchainStateSchema, re as ActorAlreadyDefinedError, ME as ActorCrypto, oe as ActorNotDefinedError, he as ActorNotInvitedError, Te as ActorNotSubscribedError, DE as ActorSeedEncoder, tC as ActorType, su as Aes, Um as AllowedAdditionalWriterSectionSchema, S as AlreadySubscribedError, Gx as AppLedgerLocalStateUpdaterV1, lC as AppLedgerMicroblockBuildRequestSchema, uC as AppLedgerMicroblockBuildRequestValidation, lh as ApplicationCreationSectionSchema, uh as ApplicationDescriptionSectionSchema, Px as ApplicationInternalState, Hx as ApplicationInternalStateUpdater, mh as ApplicationLedgerActorCreationSectionSchema, jh as ApplicationLedgerActorInvitationStateSchema, Nh as ApplicationLedgerActorSchema, vh as ApplicationLedgerActorSubscriptionSectionSchema, fh as ApplicationLedgerAllowedPkeSchemesSectionSchema, dh as ApplicationLedgerAllowedSigSchemesSectionSchema, xh as ApplicationLedgerAuthorSectionSchema, hh as ApplicationLedgerChannelCreationSectionSchema, _h as ApplicationLedgerChannelInvitationSectionSchema, Ah as ApplicationLedgerChannelSchema, ph as ApplicationLedgerCreationSectionSchema, Sh as ApplicationLedgerEndorsementRequestSectionSchema, Fx as ApplicationLedgerInternalState, Ph as ApplicationLedgerInternalStateObjectSchema, eC as ApplicationLedgerMicroblockBuilder, mS as ApplicationLedgerMicroblockStructureChecker, Ce as ApplicationLedgerNotFoundError, bh as ApplicationLedgerPrivateChannelDataSectionSchema, yh as ApplicationLedgerPublicChannelDataSectionSchema, gh as ApplicationLedgerSharedSecretSectionSchema, Mh as ApplicationLedgerSharedSecretStateSchema, HS as ApplicationLedgerVb, Bh as ApplicationLedgerVirtualBlockchainStateSchema, sS as ApplicationMicroblockStructureChecker, ye as ApplicationNotFoundError, kh as ApplicationVBInternalStateObjectSchema, cS as ApplicationVb, zh as ApplicationVirtualBlockchainStateSchema, pS as Assertion, Hm as AuxiliarySignatureSectionSchema, _w as AwaitMicroblockAnchoringAbciRequestSchema, _m as BIN256, gm as BINARY, Er as BK_EARNED_BLOCK_FEES, Tr as BK_EARNED_TX_FEES, zr as BK_NAMES, gr as BK_PAID_BLOCK_FEES, hr as BK_PAID_TX_FEES, mr as BK_PLUS, Or as BK_PURCHASE, jr as BK_RECEIVED_ESCROW, Mr as BK_RECEIVED_ESCROW_REFUND, Nr as BK_RECEIVED_EXPIRED_ESCROW, Dr as BK_RECEIVED_ISSUANCE, kr as BK_RECEIVED_PAYMENT, Pr as BK_RECEIVED_SLASHED_TOKENS, Ar as BK_RECEIVED_VESTING, Rr as BK_REFERENCES, Fr as BK_REF_BLOCK, Ir as BK_REF_MICROBLOCK, Lr as BK_REF_SECTION, vr as BK_SALE, xr as BK_SENT_ESCROW, Sr as BK_SENT_ESCROW_REFUND, Cr as BK_SENT_EXPIRED_ESCROW, _r as BK_SENT_ISSUANCE, yr as BK_SENT_PAYMENT, wr as BK_SENT_SLASHED_TOKENS, br as BK_SENT_VESTING, ui as BLOCK_CONTENT, li as BLOCK_INFORMATION, lm as BOOLEAN, OE as BalanceAvailability, UC as Base32, mg as Base64, My as BaseHCVSignatureDecoder, ty as BaseHCVSignatureEncoder, Kg as BasePrivateSignatureKey, qg as BasePublicSignatureKey, Bw as BlockContentAbciResponseSchema, Rw as BlockInformationAbciResponseSchema, $w as BlockModifiedAccountsAbciResponseSchema, Kh as BlockReferenceSchema, b as BlockchainError, X as BlockchainUtils, pC as BytesSignatureEncoder, bg as BytesToBase64Encoder, xg as BytesToHexEncoder, Ex as CBORCryptoBinaryEncoder, sr as CENTITOKEN, Hn as CHAIN, hn as CMTSToken, qr as CONTRACT_PARAMETER_SCHEMA, Jr as CONTRACT_SCHEMA, le as CannotSubscribeError, o as CarmentisError, n as CarmentisErrorCode, Lw as ChainInformationAbciResponseSchema, Yh as ChainReferenceSchema, Gh as ChainReferenceType, ae as ChannelAlreadyDefinedError, se as ChannelNotDefinedError, aE as ClientBridgeEncoder, iE as ClientBridgeMessageSchema, $T as ClientBridgeMessageSchema_Answer, tE as ClientBridgeMessageSchema_ConnectionAccepted, eE as ClientBridgeMessageSchema_ConnectionInfo, XT as ClientBridgeMessageSchema_ConnectionToken, rE as ClientBridgeMessageSchema_Error, ZT as ClientBridgeMessageSchema_ForwardedAnswer, nE as ClientBridgeMessageSchema_ForwardedRequest, QT as ClientBridgeMessageSchema_GetConnectionInfo, JT as ClientBridgeMessageSchema_Request, YT as ClientBridgeMessageSchema_UpdateQr, KT as ClientBridgeMessageType, oE as ClientBridgeValidation, ow as CometBFTErrorCode, mT as CometBFTNodeWebSocket, fC as CometBFTPublicKey, lT as CometBFTPublicKeyConverter, tS as ConstraintNameByConstraint, M as Crypto, Dx as CryptoEncoderFactory, d as CryptoError, Xv as CryptoSchemeFactory, lv as CryptographicHashSchemeId, rw as CurrencyConverterFactory, pe as CurrentActorNotFoundError, Bm as CustomSectionSchema, gn as DATA, Ga as DEF, f as DecryptionError, ir as ECO, Kr as ERROR, Ka as ERRORS, QC as Economics, v as EconomicsError, Yv as Ed25519PrivateSignatureKey, Jv as Ed25519PublicSignatureKey, qv as Ed25519SignatureScheme, u as EmptyBlockError, yg as EncoderFactory, wy as EnvApiKeyPkmsCredentialProvider, Iw as ErrorAbciResponseSchema, $h as EscrowLockSchema, Qh as EscrowParametersSchema, nw as Euros, iw as EurosToCMTSConverter, cw as ExpirationDate, Wg as ExtendedSymmetricEncryptionKey, Vn as FORMAT, jx as FeesCalculationFormulaFactory, Ax as FirstFeesFormula, pr as GAS_ATOMS_PER_GAS, fr as GAS_PER_BYTE, AC as GenericSymmetricKeyEncoder, Zw as GenesisSnapshotAbciResponseSchema, xw as GetAccountByPublicKeyHashAbciRequestSchema, bw as GetAccountHistoryAbciRequestSchema, Aw as GetAccountProofAbciRequestSchema, yw as GetAccountStateAbciRequestSchema, Ew as GetAccountUpdatesAbciRequestSchema, pw as GetBlockContentAbciRequestSchema, fw as GetBlockInformationAbciRequestSchema, Tw as GetBlockModifiedAccountsAbciRequestSchema, dw as GetChainInformationAbciRequestSchema, Cw as GetGenesisSnapshotAbciRequestSchema, vw as GetMicroblockBodysAbciRequestSchema, gw as GetMicroblockInformationAbciRequestSchema, Dw as GetMicroblockInformationByHeightAbciRequestSchema, kw as GetMicroblockProofAbciRequestSchema, ww as GetRawBlockContentAbciRequestSchema, Ow as GetSerializedMicroblockByHeightAbciRequestSchema, Sw as GetValidatorNodeByAddressAbciRequestSchema, mw as GetVirtualBlockchainStateAbciRequestSchema, hw as GetVirtualBlockchainUpdateAbciRequestSchema, Fn as HASHABLE, zn as HASHED, vm as HASH_STR, Cg as HCVCodec, Sg as HCVDecoded, Zv as HCVPkeEncoder, wv as HKDF, Ly as HandlerBasedSignatureEncoder, Nx as Hash, Qc as Hashes, lr as INITIAL_OFFER, i as IllegalParameterError, a as IllegalStateError, r as IllegalUsageError, jT as IntermediateRepresentation, m as InternalError, Bx as InternalStateFactory, Yx as InternalStateUpdaterFactory, ie as InvalidActorError, fe as InvalidChannelError, y as InvalidTokenUnitError, gS as JsonSchema, OC as JwkSignatureEncoder, Sv as KeyDerivationFunction, Cv as KeyDerivationFunctionSchemeId, Gg as KeyExchangeSchemeId, Xh as LOCK_TYPE_COUNT, ig as LockSchema, Zh as LockType, k as Logger, Un as MAGIC_STRING, In as MASKABLE, Bn as MASKED, dr as MAXIMUM_GAS_PRICE, er as MAX_MICROBLOCK_FUTURE_DELAY, $n as MAX_MICROBLOCK_PAST_DELAY, rr as MB_STATUS_PREVIOUS_HASH_ERROR, nr as MB_STATUS_TIMESTAMP_ERROR, tr as MB_STATUS_UNRECOVERABLE_ERROR, gi as MICROBLOCK_BODY, mi as MICROBLOCK_HEADER, fi as MICROBLOCK_HEADER_BODY_HASH_OFFSET, di as MICROBLOCK_HEADER_PREVIOUS_HASH_OFFSET, pi as MICROBLOCK_HEADER_SIZE, hi as MICROBLOCK_SECTION, _i as MICROBLOCK_VB_INFORMATION, cr as MILLITOKEN, ur as MINIMUM_GAS_PRICE, Fy as MLDSA65HCVSignatureDecoder, iy as MLDSA65HCVSignatureEncoder, Xg as MLDSA65PrivateSignatureKey, Yg as MLDSA65PublicSignatureKey, Jg as MLDSA65SignatureScheme, yd as MLDsa, Ud as MLKem, Bi as MSG_ACCOUNT_BY_PUBLIC_KEY_HASH, Ri as MSG_ACCOUNT_HISTORY, Ii as MSG_ACCOUNT_STATE, ji as MSG_AWAIT_MICROBLOCK_ANCHORING, wi as MSG_BLOCK_CONTENT, Si as MSG_BLOCK_INFORMATION, bi as MSG_CHAIN_INFORMATION, vi as MSG_ERROR, Ki as MSG_GENESIS_SNAPSHOT, zi as MSG_GET_ACCOUNT_BY_PUBLIC_KEY_HASH, Li as MSG_GET_ACCOUNT_HISTORY, Fi as MSG_GET_ACCOUNT_STATE, Ci as MSG_GET_BLOCK_CONTENT, xi as MSG_GET_BLOCK_INFORMATION, yi as MSG_GET_CHAIN_INFORMATION, Gi as MSG_GET_GENESIS_SNAPSHOT, Ni as MSG_GET_MICROBLOCK_BODYS, ki as MSG_GET_MICROBLOCK_INFORMATION, Ui as MSG_GET_OBJECT_LIST, Vi as MSG_GET_VALIDATOR_NODE_BY_ADDRESS, Ti as MSG_GET_VIRTUAL_BLOCKCHAIN_STATE, Di as MSG_GET_VIRTUAL_BLOCKCHAIN_UPDATE, Mi as MSG_MICROBLOCK_ANCHORING, Pi as MSG_MICROBLOCK_BODYS, Ai as MSG_MICROBLOCK_INFORMATION, Wi as MSG_OBJECT_LIST, Hi as MSG_VALIDATOR_NODE_BY_ADDRESS, Ei as MSG_VIRTUAL_BLOCKCHAIN_STATE, Oi as MSG_VIRTUAL_BLOCKCHAIN_UPDATE, TT as MaskManager, lw as MemoryProvider, FS as MerkleLeaf, Q as MerkleLeafTypeEnum, zS as MerkleRecord, PS as MerkleTree, ST as Merklizer, MT as MessageManager, YC as MessageSerializer, XC as MessageUnserializer, te as MicroBlockNotFoundError, ne as MicroBlockNotFoundInBlockError, x as MicroBlockNotFoundInVirtualBlockchainAtHeightError, Qx as Microblock, Ww as MicroblockAnchoringAbciResponseSchema, Gw as MicroblockBodyItemSchema, wh as MicroblockBodySchema, Kw as MicroblockBodysAbciResponseSchema, WS as MicroblockConsistencyChecker, Pm as MicroblockHeaderSchema, Uw as MicroblockInformationAbciResponseSchema, Wh as MicroblockInformationSchema, nT as MicroblockProofAbciResponseSchema, Nw as MicroblockProofSchema, qh as MicroblockReferenceSchema, Zx as MicroblockStructSchema, s as MicroblockStructureCheckingError, Vv as MlKemCiphertextEncoder, Uv as MlKemPrivateDecryptionKey, Hv as MlKemPublicEncryptionKey, Av as MlKemPublicKeyEncryptionScheme, D as NODE_MESSAGES, um as NULL, cm as NUMBER, Zn as N_VIRTUAL_BLOCKCHAINS, Ny as NativeHCVSignatureDecoder, ny as NativeHCVSignatureEncoder, oT as NetworkProvider, cE as NetworksFileSchema, pT as NewBlockEventSchema, De as NoSharedSecretError, g as NodeConnectionRefusedError, _ as NodeEndpointClosedWhileCatchingUpError, h as NodeError, rg as NodeStakingLockSchema, ng as NodeStakingParametersSchema, de as NotAllowedPkeSchemeError, ue as NotAllowedSignatureSchemeError, c as NotAuthenticatedError, ee as NotImplementedError, sT as NullMemoryProvider, cT as NullNetworkProvider, om as OBJECT, Ta as ORG_CREATION, Ea as ORG_DESCRIPTION, wS as OnChainChannelSchema, ES as OnChainItemListSchema, TS as OnChainItemSchema, VS as OnChainRecord, US as Optional, sh as OrganizationCreationSectionSchema, ch as OrganizationDescriptionSectionSchema, Rx as OrganizationInternalState, Jx as OrganizationInternalStateUpdater, rS as OrganizationMicroblockStructureChecker, ve as OrganizationNotFoundError, Dh as OrganizationVBInternalStateObjectSchema, iS as OrganizationVb, Lh as OrganizationVirtualBlockchainStateSchema, gv as PBKDF2, Ln as PROPERTIES, ca as PROTOCOL_CREATION, la as PROTOCOL_UPDATE, oi as PROTOCOL_VARIABLES, si as PROTOCOL_VB_STATE, Wn as PROTOCOL_VERSION, l as ParsingError, hv as PasswordBasedKeyDerivationFunction, mv as PasswordBasedKeyDerivationFunctionSchemeId, hT as PathManager, CT as PepperMerklizer, kC as PkeEncoderFactory, Ey as PkmsSecp256k1PrivateSignatureKey, Dy as PkmsSecp256k1PublicSignatureKey, Iy as PkmsSecp256k1SignatureDecoder, Oy as PkmsSecp256k1SignatureEncoder, Mw as ProofBlockSchema, NS as ProofDocument, hS as ProofDocumentVB, DS as ProofFieldTypeEnum, IS as ProofRecord, ce as ProofVerificationFailedError, aw as ProofVerificationResult, jS as ProofWrapperSchema, Wm as ProtocolCreationSectionSchema, we as ProtocolError, Lx as ProtocolInternalState, qx as ProtocolInternalStateUpdater, dS as ProtocolMicroblockStructureChecker, zm as ProtocolUpdateSchema, Gm as ProtocolUpdateSectionSchema, Th as ProtocolVBInternalStateObjectSchema, Rm as ProtocolVariablesSchema, Km as ProtocolVariablesSectionSchema, fS as ProtocolVb, Vh as ProtocolVirtualBlockchainStateSchema, uT as Provider, dT as ProviderFactory, Ev as PublicKeyEncryptionAlgorithmId, Tv as PublicKeyEncryptionSchemeId, qS as RADIX_CST, ni as RECORD_DESCRIPTION, Rn as REDACTED, uw as RPCNodeStatusResponseSchema, JS as RadixUtils, Zs as Random, Qw as RawBlockContentAbciResponseSchema, Rv as ReadStream, BS as Record, aC as RecordActorAssignationSchema, nC as RecordActorSchema, LS as RecordByChannels, iC as RecordChannelAssignationSchema, rC as RecordChannelSchema, cC as RecordHashableFieldSchema, sC as RecordMaskableFieldSchema, oC as RecordMaskedPartSchema, ug as RequestedAccountUpdateSchema, Lm as RetentionCostBreakdownSchema, kx as RetentionCostCalculator, Im as RetentionPolicySchema, Fm as RetentionTierSchema, Gr as SCHEMAS, aa as SECTIONS, oa as SIGNATURE, sa as SIGNATURE_SCHEMA, sm as STRING, wT as SaltMerklizer, RS as SaltShaker, zv as SchemaSerializer, Bv as SchemaUnserializer, ZC as SchemaValidator, IC as Scrypt, mp as Secp256k1, Py as Secp256k1HCVSignatureDecoder, ry as Secp256k1HCVSignatureEncoder, Kv as Secp256k1PrivateSignatureKey, Gv as Secp256k1PublicSignatureKey, Wv as Secp256k1SignatureScheme, Z as SectionConstraint, me as SectionError, Wx as SectionLabel, Ee as SectionNotFoundError, Jh as SectionReferenceSchema, Ch as SectionSchema, O as SectionType, CE as SeedEncoder, RC as SelfProvidedApiKeyPkmsCredentialProvider, Oe as SerializationError, tT as SerializedMicroblockByHeightAbciResponseSchema, fT as ServerNetworkProvider, uv as Sha256CryptographicHash, p as SharedKeyDecryptionError, LC as SignatureAlgorithmId, zC as SignatureCacheDisabled, BC as SignatureCacheEntry, VC as SignatureCacheMonothread, Ja as SignatureSchemeId, Vm as SignatureSectionSchema, $S as StateChecker, nS as StructureChecker, Vg as SymmetricEncryptionSchemeId, or as TOKEN, ar as TOKEN_NAME, vn as TYPE_ARRAY, Nn as TYPE_ARRAY_OF, An as TYPE_BIN256, kn as TYPE_BINARY, Sn as TYPE_BOOLEAN, jn as TYPE_HASH_STR, Mn as TYPE_MAIN, Pn as TYPE_NAMES, Cn as TYPE_NULL, xn as TYPE_NUMBER, yn as TYPE_OBJECT, bn as TYPE_STRING, Tn as TYPE_UINT16, En as TYPE_UINT24, Dn as TYPE_UINT32, On as TYPE_UINT48, wn as TYPE_UINT8, _n as TYPE_UNKNOWN, $x as ThrownErrorMicroblockSearchFailureFallback, Xx as TimestampValidationResult, pn as TokenUnit, mn as TokenUnitLabel, NT as Transaction, vS as TransformationTypeEnum, ro as TypeChecker, eo as TypeCheckingFailureError, bS as TypeEnum, no as TypeManager, fm as UINT16, pm as UINT24, mm as UINT32, hm as UINT48, dm as UINT8, Za as Utf8Encoder, A as Utils, Kn as VB_ACCOUNT, Yn as VB_APPLICATION, Xn as VB_APP_LEDGER, Qn as VB_NAME, Jn as VB_ORGANIZATION, Gn as VB_PROTOCOL, ci as VB_STATES, qn as VB_VALIDATOR_NODE, ai as VIRTUAL_BLOCKCHAIN_STATE, Ca as VN_APPROVAL, xa as VN_COMETBFT_PUBLIC_KEY_DECLARATION, ba as VN_CREATION, Sa as VN_RPC_ENDPOINT, ah as ValidatorNodeApprovalSectionSchema, Xw as ValidatorNodeByAddressAbciResponseSchema, rh as ValidatorNodeCometbftPublicKeyDeclarationSectionSchema, nh as ValidatorNodeCreationSectionSchema, zx as ValidatorNodeInternalState, Kx as ValidatorNodeInternalStateUpdater, lS as ValidatorNodeMicroblockStructureChecker, be as ValidatorNodeNotFoundError, ih as ValidatorNodeRpcEndpointSectionSchema, oh as ValidatorNodeSlashingCancellationSectionSchema, Oh as ValidatorNodeVBInternalStateObjectSchema, uS as ValidatorNodeVb, Rh as ValidatorNodeVirtualBlockchainStateSchema, tg as VestingLockSchema, eg as VestingParametersSchema, eS as VirtualBlockchain, Uh as VirtualBlockchainInfoSchema, IT as VirtualBlockchainLabel, Se as VirtualBlockchainNotFoundError, Fh as VirtualBlockchainSharedPropertiesSchema, Vw as VirtualBlockchainStateAbciResponseSchema, Hh as VirtualBlockchainStateSchema, lE as VirtualBlockchainStatusSchema, H as VirtualBlockchainType, Hw as VirtualBlockchainUpdateAbciResponseSchema, $i as WIMSG_ANSWER, ta as WIMSG_CONNECTION_ACCEPTED, ea as WIMSG_CONNECTION_INFO, Xi as WIMSG_CONNECTION_TOKEN, Zi as WIMSG_FORWARDED_ANSWER, na as WIMSG_FORWARDED_REQUEST, Qi as WIMSG_GET_CONNECTION_INFO, Ji as WIMSG_REQUEST, Yi as WIMSG_UPDATE_QR, qa as WI_INVALID_SIGNATURE, GT as WI_MAX_SERVER_URL_LENGTH, ra as WI_MESSAGES, qi as WI_QR_CODE, PE as WalletCrypto, kE as WalletInteractiveAnchoringEncoder, pE as WalletInteractiveAnchoringRequestActorKeySchema, fE as WalletInteractiveAnchoringRequestApprovalHandshakeSchema, mE as WalletInteractiveAnchoringRequestApprovalSignatureSchema, hE as WalletInteractiveAnchoringRequestSchema, uE as WalletInteractiveAnchoringRequestType, _E as WalletInteractiveAnchoringResponseActorKeyRequiredSchema, vE as WalletInteractiveAnchoringResponseApprovalDataSchema, yE as WalletInteractiveAnchoringResponseApprovalSignatureSchema, gE as WalletInteractiveAnchoringResponseErrorSchema, bE as WalletInteractiveAnchoringResponseSchema, dE as WalletInteractiveAnchoringResponseType, AE as WalletInteractiveAnchoringValidation, zT as WalletRequestAuthByPublicKeySchema, dC as WalletRequestBasedApplicationLedgerMicroblockBuilder, BT as WalletRequestDataApprovalSchema, xE as WalletRequestEncoder, VT as WalletRequestSchema, LT as WalletRequestType, SE as WalletRequestValidation, HT as WalletResponseAuthByPublicKeySchema, UT as WalletResponseDataApprovalSchema, WT as WalletResponseSchema, RT as WalletResponseType, jE as WalletSeedEncoder, sE as WiQrCodeEncoder, qT as WiQrCodeSchema, Lv as WriteStream, Am as accountId, ym as array, km as bin256, Om as binary, xm as boolean, jm as height, Nm as nonNegativeInt, B as number, Mm as positiveInt, bm as string, wm as uint16, Tm as uint24, Em as uint32, Dm as uint48, Cm as uint8, V as uint8array, ZS as verifyRadixProof };