@cmts-dev/carmentis-sdk-core 1.7.3 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14863,7 +14863,7 @@ var zC = /* @__PURE__ */ function(e) {
14863
14863
  }
14864
14864
  let a = k.getLogger([e.name]);
14865
14865
  if (n !== void 0) {
14866
- let o = await (await n.getPrivateSignatureKey()).getPublicKey(), s;
14866
+ let o = await n.getActorPublicSignatureKey(), s;
14867
14867
  try {
14868
14868
  s = await this.getActorIdByPublicSignatureKey(o);
14869
14869
  } catch (t) {
@@ -14912,10 +14912,10 @@ var zC = /* @__PURE__ */ function(e) {
14912
14912
  }
14913
14913
  async getChannelKey(e, t, n) {
14914
14914
  if (EC.assert(Number.isInteger(e), "Expected actor id with type number"), EC.assert(Number.isInteger(t), `Expected channel id of type number: got ${typeof t}`), this.internalState.getChannelCreatorIdFromChannelId(t) === e) {
14915
- let e = n.getSeedAsBytes();
14915
+ let e = await n.getChannelKeysDerivationSeed();
14916
14916
  return await this.deriveChannelKey(e, t);
14917
14917
  }
14918
- let r = await n.getPrivateDecryptionKey();
14918
+ let r = await n.getActorPrivateDecryptionKey();
14919
14919
  return await this.getChannelKeyFromInvitation(e, t, r);
14920
14920
  }
14921
14921
  async deriveChannelKey(e, t) {
@@ -15251,47 +15251,657 @@ var Lw = class e {
15251
15251
  getInternalState() {
15252
15252
  return this.vb.getInternalState();
15253
15253
  }
15254
- }, zw = /* @__PURE__ */ function(e) {
15254
+ }, zw = class {
15255
+ constructor(e = new kg()) {
15256
+ this.stringEncoder = e;
15257
+ }
15258
+ decode(e) {
15259
+ let t = this.getPrefix(), n = Mg.decode(e);
15260
+ if (n.matchesKeys(...t)) return this.stringEncoder.decode(n.getValue());
15261
+ throw new l("Invalid seed format");
15262
+ }
15263
+ encode(e) {
15264
+ let t = this.getPrefix();
15265
+ return Mg.encode(...t, this.stringEncoder.encode(e));
15266
+ }
15267
+ getPrefix() {
15268
+ return ["SEED"];
15269
+ }
15270
+ }, Bw = class e {
15271
+ signatureSchemeId = Ja.SECP256K1;
15272
+ pkeSchemeId = Pv.ML_KEM_768_AES_256_GCM;
15273
+ constructor(e) {
15274
+ this.actorSeed = e;
15275
+ }
15276
+ static encoderStringAsBytes(e) {
15277
+ return new TextEncoder().encode(e);
15278
+ }
15279
+ static createFromAccountSeedAndVbSeed(t, n) {
15280
+ let r = t, i = Jx.createDefaultKDF(), a = A.binaryFrom(this.encoderStringAsBytes("ACTOR_SEED"), this.encoderStringAsBytes("VB_SEED"), n);
15281
+ return new e(i.deriveKeyNoSalt(r, a, 32));
15282
+ }
15283
+ static parseFromString(t, n = new zw()) {
15284
+ return new e(n.decode(t));
15285
+ }
15286
+ encode(e = new zw()) {
15287
+ return e.encode(this.actorSeed);
15288
+ }
15289
+ getSeedAsBytes() {
15290
+ return this.actorSeed;
15291
+ }
15292
+ async getPrivateSignatureKey(e = this.signatureSchemeId) {
15293
+ let t = Jx.createDefaultKDF(), n = A.binaryFrom(this.encoderStringAsBytes("SIG"), new Uint8Array(A.intToByteArray(e, 6))), r = t.deriveKeyNoSalt(this.actorSeed, n, 32);
15294
+ return Jx.createPrivateSignatureKey(e, r);
15295
+ }
15296
+ async getPublicSignatureKey(e = this.signatureSchemeId) {
15297
+ return (await this.getPrivateSignatureKey(e)).getPublicKey();
15298
+ }
15299
+ getPrivateDecryptionKey(e = this.pkeSchemeId) {
15300
+ let t = Jx.createDefaultKDF(), n = A.binaryFrom(this.encoderStringAsBytes("PKE"), new Uint8Array(A.intToByteArray(e, 6))), r = t.deriveKeyNoSalt(this.actorSeed, n, 64);
15301
+ return Jx.createPrivateDecryptionKey(e, r);
15302
+ }
15303
+ async getPublicEncryptionKey(e = this.pkeSchemeId) {
15304
+ return (await this.getPrivateDecryptionKey(e)).getPublicKey();
15305
+ }
15306
+ encoderStringAsBytes(e) {
15307
+ return new TextEncoder().encode(e);
15308
+ }
15309
+ getSignatureSchemeId() {
15310
+ return this.signatureSchemeId;
15311
+ }
15312
+ setSignatureSchemeId(e) {
15313
+ this.signatureSchemeId = e;
15314
+ }
15315
+ getPkeSchemeId() {
15316
+ return this.pkeSchemeId;
15317
+ }
15318
+ setPkeSchemeId(e) {
15319
+ this.pkeSchemeId = e;
15320
+ }
15321
+ }, Vw = class e {
15322
+ signatureSchemeId = Ja.SECP256K1;
15323
+ pkeSchemeId = Pv.ML_KEM_768_AES_256_GCM;
15324
+ static createFromWalletSeedAndNonce(t, n) {
15325
+ let r = A.binaryFrom(t, n), i = Jx.createDefaultKDF(), a = this.encoderStringAsBytes("ACCOUNT_SEED");
15326
+ return new e(i.deriveKeyNoSalt(r, a, 32));
15327
+ }
15328
+ static parseFromString(t, n = new zw()) {
15329
+ return new e(n.decode(t));
15330
+ }
15331
+ encode(e = new zw()) {
15332
+ return e.encode(this.accountSeed);
15333
+ }
15334
+ constructor(e) {
15335
+ this.accountSeed = e;
15336
+ }
15337
+ deriveActorFromVbSeed(e) {
15338
+ return Bw.createFromAccountSeedAndVbSeed(this.accountSeed, e);
15339
+ }
15340
+ async getPrivateSignatureKey(t = this.signatureSchemeId) {
15341
+ let n = Jx.createDefaultKDF(), r = e.encoderStringAsBytes(`SIG_${t}`), i = n.deriveKeyNoSalt(this.accountSeed, r, 32);
15342
+ return Jx.createPrivateSignatureKey(t, i);
15343
+ }
15344
+ async getPublicSignatureKey(e = this.signatureSchemeId) {
15345
+ return (await this.getPrivateSignatureKey(e)).getPublicKey();
15346
+ }
15347
+ async getPrivateDecryptionKey(t = this.pkeSchemeId) {
15348
+ let n = Jx.createDefaultKDF(), r = e.encoderStringAsBytes(`PKE_${t}`), i = n.deriveKeyNoSalt(this.accountSeed, r, 64);
15349
+ return Jx.createPrivateDecryptionKey(t, i);
15350
+ }
15351
+ async getPublicEncryptionKey(e = this.pkeSchemeId) {
15352
+ return (await this.getPrivateDecryptionKey(e)).getPublicKey();
15353
+ }
15354
+ static encoderStringAsBytes(e) {
15355
+ return new TextEncoder().encode(e);
15356
+ }
15357
+ getSeedAsBytes() {
15358
+ return this.accountSeed;
15359
+ }
15360
+ getAccountSeed() {
15361
+ return this.accountSeed;
15362
+ }
15363
+ static concatWalletSeedWith(e, t) {
15364
+ return new Uint8Array([...e, ...t]);
15365
+ }
15366
+ static numberToUint8Array(e, t = 4) {
15367
+ let n = new ArrayBuffer(t), r = new DataView(n);
15368
+ 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);
15369
+ }
15370
+ getActor(e) {
15371
+ return Bw.createFromAccountSeedAndVbSeed(this.accountSeed, e);
15372
+ }
15373
+ getSignatureSchemeId() {
15374
+ return this.signatureSchemeId;
15375
+ }
15376
+ setSignatureSchemeId(e) {
15377
+ this.signatureSchemeId = e;
15378
+ }
15379
+ getPkeSchemeId() {
15380
+ return this.pkeSchemeId;
15381
+ }
15382
+ setPkeSchemeId(e) {
15383
+ this.pkeSchemeId = e;
15384
+ }
15385
+ }, Hw = class e {
15386
+ static generateWallet() {
15387
+ return new e(Fu(64));
15388
+ }
15389
+ static fromSeed(t) {
15390
+ if (!(t instanceof Uint8Array)) throw new i(`Seed must be a Uint8Array, got ${typeof t}`);
15391
+ return new e(t);
15392
+ }
15393
+ static parseFromString(t, n = new zw()) {
15394
+ if (typeof t != "string") throw new i(`Seed must be a string, got ${typeof t}`);
15395
+ return new e(n.decode(t));
15396
+ }
15397
+ encode(e = new zw()) {
15398
+ return e.encode(this.walletSeed);
15399
+ }
15400
+ constructor(e) {
15401
+ this.walletSeed = e;
15402
+ }
15403
+ getDefaultAccountCrypto() {
15404
+ return Vw.createFromWalletSeedAndNonce(this.walletSeed, 0);
15405
+ }
15406
+ getAccount(e) {
15407
+ return Vw.createFromWalletSeedAndNonce(this.walletSeed, e);
15408
+ }
15409
+ getSeedAsBytes() {
15410
+ return this.walletSeed;
15411
+ }
15412
+ };
15413
+ //#endregion
15414
+ //#region node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/utils.js
15415
+ function Uw(e) {
15416
+ return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in e && e.BYTES_PER_ELEMENT === 1;
15417
+ }
15418
+ var Ww = (e) => e ? `"${e}" ` : "";
15419
+ function Gw(e, t = "") {
15420
+ if (typeof e != "number") throw TypeError(Ww(t) + "expected number, got " + typeof e);
15421
+ if (!Number.isSafeInteger(e) || e < 0) throw RangeError(Ww(t) + "expected integer >= 0, got " + e);
15422
+ return e;
15423
+ }
15424
+ function Kw(e, t, n = "") {
15425
+ if (Uw(e) && (t === void 0 || e.length === t)) return e;
15426
+ t !== void 0 && Gw(t, "length");
15427
+ let r = Uw(e), i = t === void 0 ? "" : ` of length ${t}`, a = r ? `length=${e.length}` : `type=${typeof e}`, o = Ww(n) + "expected Uint8Array" + i + ", got " + a;
15428
+ throw r ? RangeError(o) : TypeError(o);
15429
+ }
15430
+ function qw(e) {
15431
+ if (typeof e != "function" || typeof e.create != "function") throw TypeError("expected hash wrapped by utils.createHasher");
15432
+ if (Gw(e.outputLen), Gw(e.blockLen), e.outputLen < 1 || e.blockLen < 1) throw Error("hash blockLen / outputLen must be >= 1");
15433
+ }
15434
+ var Jw = (e, t) => {
15435
+ if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError((t === "object" ? "" : `"${t}" `) + "expected object, got type=" + typeof e);
15436
+ }, Yw = (e, t) => {
15437
+ Jw(e, t);
15438
+ let n = Object.getPrototypeOf(e);
15439
+ if (n !== Object.prototype && n !== null) throw TypeError(`"${t}" expected plain object`);
15440
+ if (Object.hasOwn(e, "__proto__")) throw TypeError(`"${t}.__proto__" is not allowed`);
15441
+ };
15442
+ function Xw(e, t = !0) {
15443
+ if (e.destroyed) throw Error("hash was destroyed");
15444
+ if (t && e.finished) throw Error("digest() was already called");
15445
+ }
15446
+ function Zw(e, t) {
15447
+ Kw(e, void 0, "output");
15448
+ let n = t.outputLen;
15449
+ if (!(e.length >= n)) throw RangeError("\"output\" expected length >= " + n);
15450
+ }
15451
+ function Qw(...e) {
15452
+ for (let t = 0; t < e.length; t++) e[t].fill(0);
15453
+ }
15454
+ function $w(e) {
15455
+ return new DataView(e.buffer, e.byteOffset, e.byteLength);
15456
+ }
15457
+ new Uint8Array(new Uint32Array([287454020]).buffer)[0], typeof Uint8Array.from([]).toHex == "function" && Uint8Array.fromHex;
15458
+ function eT(e) {
15459
+ if (typeof e != "string") throw TypeError("string expected");
15460
+ let t = new TextEncoder().encode(e);
15461
+ try {
15462
+ return new Uint8Array(t);
15463
+ } finally {
15464
+ Qw(t);
15465
+ }
15466
+ }
15467
+ function tT(e, t = "") {
15468
+ return typeof e == "string" ? eT(e) : Kw(e, void 0, t);
15469
+ }
15470
+ function nT(e, t, n = "opts") {
15471
+ return Yw(e, "defaults"), t !== void 0 && Yw(t, n), Object.assign(Object.create(null), e, t);
15472
+ }
15473
+ function rT(e, t = {}) {
15474
+ if (typeof e != "function") throw TypeError("\"hashCons\" expected function, got type=" + typeof e);
15475
+ t = nT({}, t, "info");
15476
+ let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
15477
+ return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
15478
+ }
15479
+ var iT = (e) => ({ oid: Uint8Array.from([
15480
+ 6,
15481
+ 9,
15482
+ 96,
15483
+ 134,
15484
+ 72,
15485
+ 1,
15486
+ 101,
15487
+ 3,
15488
+ 4,
15489
+ 2,
15490
+ e
15491
+ ]) }), aT = class {
15492
+ oHash;
15493
+ iHash;
15494
+ blockLen;
15495
+ outputLen;
15496
+ canXOF = !1;
15497
+ finished = !1;
15498
+ destroyed = !1;
15499
+ constructor(e, t) {
15500
+ if (qw(e), Kw(t, void 0, "key"), this.iHash = e.create(), typeof this.iHash.update != "function") throw Error("expected Hash instance");
15501
+ this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
15502
+ let n = this.blockLen, r = new Uint8Array(n);
15503
+ r.set(t.length > n ? e.create().update(t).digest() : t);
15504
+ for (let e = 0; e < r.length; e++) r[e] ^= 54;
15505
+ this.iHash.update(r), this.oHash = e.create();
15506
+ for (let e = 0; e < r.length; e++) r[e] ^= 106;
15507
+ this.oHash.update(r), Qw(r);
15508
+ }
15509
+ update(e) {
15510
+ return Xw(this), this.iHash.update(e), this;
15511
+ }
15512
+ digestInto(e) {
15513
+ Xw(this), Zw(e, this), this.finished = !0;
15514
+ let t = e.subarray(0, this.outputLen);
15515
+ this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
15516
+ }
15517
+ digest() {
15518
+ let e = new Uint8Array(this.oHash.outputLen);
15519
+ return this.digestInto(e), e;
15520
+ }
15521
+ _cloneInto(e) {
15522
+ e ||= Object.create(Object.getPrototypeOf(this), {});
15523
+ let { oHash: t, iHash: n, finished: r, destroyed: i, blockLen: a, outputLen: o, canXOF: s } = this;
15524
+ return e = e, e.finished = r, e.destroyed = i, e.blockLen = a, e.outputLen = o, e.canXOF = s, e.oHash = t._cloneInto(e.oHash), e.iHash = n._cloneInto(e.iHash), e;
15525
+ }
15526
+ clone() {
15527
+ return this._cloneInto();
15528
+ }
15529
+ destroy() {
15530
+ this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
15531
+ }
15532
+ }, oT = /* @__PURE__ */ (() => {
15533
+ let e = ((e, t, n) => new aT(e, t).update(n).digest());
15534
+ return e.create = (e, t) => new aT(e, t), e;
15535
+ })();
15536
+ //#endregion
15537
+ //#region node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/pbkdf2.js
15538
+ function sT(e, t, n, r) {
15539
+ qw(e);
15540
+ let { c: i, dkLen: a, asyncTick: o } = nT({
15541
+ dkLen: 32,
15542
+ asyncTick: 10
15543
+ }, r);
15544
+ if (Gw(i, "c"), Gw(a, "dkLen"), Gw(o, "asyncTick"), i < 1) throw Error("\"c\" (iterations) must be >= 1");
15545
+ if (a < 1) throw Error("\"dkLen\" must be >= 1");
15546
+ if (a > (2 ** 32 - 1) * e.outputLen) throw Error("derived key too long");
15547
+ let s = tT(t, "password");
15548
+ try {
15549
+ let t = tT(n, "salt");
15550
+ try {
15551
+ let n = new Uint8Array(a), { iHash: r, oHash: c, outputLen: l } = oT.create(e, s);
15552
+ return {
15553
+ c: i,
15554
+ dkLen: a,
15555
+ asyncTick: o,
15556
+ DK: n,
15557
+ outputLen: l,
15558
+ eng: cT(r, c, t, new Uint8Array(l))
15559
+ };
15560
+ } finally {
15561
+ typeof n == "string" && Qw(t);
15562
+ }
15563
+ } finally {
15564
+ typeof t == "string" && Qw(s);
15565
+ }
15566
+ }
15567
+ function cT(e, t, n, r) {
15568
+ let i = new Uint8Array(4), a = $w(i), o = e._cloneInto().update(n), s = t._cloneInto(), c = e._cloneInto, l = t._cloneInto;
15569
+ return {
15570
+ u1: (e, n) => {
15571
+ a.setInt32(0, e, !1), o._cloneInto(s).update(i).digestInto(r), t._cloneInto(s).update(r).digestInto(r), n.set(r.subarray(0, n.length));
15572
+ },
15573
+ rounds: (n, i) => {
15574
+ for (let a = 1; a < n; a++) {
15575
+ c.call(e, s).update(r).digestInto(r), l.call(t, s).update(r).digestInto(r);
15576
+ for (let e = 0; e < i.length; e++) i[e] ^= r[e];
15577
+ }
15578
+ },
15579
+ output: (n) => (e.destroy(), t.destroy(), o.destroy(), s.destroy(), Qw(r), n)
15580
+ };
15581
+ }
15582
+ function lT(e, t, n, r) {
15583
+ let { c: i, dkLen: a, DK: o, outputLen: s, eng: c } = sT(e, t, n, r);
15584
+ for (let e = 1, t = 0; t < a; e++, t += s) {
15585
+ let n = o.subarray(t, t + s);
15586
+ c.u1(e, n), c.rounds(i, n);
15587
+ }
15588
+ return c.output(o);
15589
+ }
15590
+ //#endregion
15591
+ //#region node_modules/.pnpm/@noble+hashes@2.4.0/node_modules/@noble/hashes/_u64.js
15592
+ var uT = BigInt(2 ** 32 - 1), dT = /* @__PURE__ */ BigInt(32);
15593
+ function fT(e, t = !1) {
15594
+ return t ? {
15595
+ h: Number(e & uT),
15596
+ l: Number(e >> dT & uT)
15597
+ } : {
15598
+ h: Number(e >> dT & uT) | 0,
15599
+ l: Number(e & uT) | 0
15600
+ };
15601
+ }
15602
+ function pT(e, t = !1) {
15603
+ let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
15604
+ for (let a = 0; a < n; a++) {
15605
+ let { h: n, l: o } = fT(e[a], t);
15606
+ [r[a], i[a]] = [n, o];
15607
+ }
15608
+ return [r, i];
15609
+ }
15610
+ var mT = (e) => e / 2 ** 32 | 0, hT = (e) => e >>> 0;
15611
+ function gT(e, t, n, r) {
15612
+ let i = mT(n), a = hT(n);
15613
+ e.setUint32(t, r ? a : i, r), e.setUint32(t + 4, r ? i : a, r);
15614
+ }
15615
+ var _T = (e, t, n) => e >>> n, vT = (e, t, n) => e << 32 - n | t >>> n, yT = (e, t, n) => e >>> n | t << 32 - n, bT = (e, t, n) => e << 32 - n | t >>> n, xT = (e, t, n) => e << 64 - n | t >>> n - 32, ST = (e, t, n) => e >>> n - 32 | t << 64 - n;
15616
+ function CT(e, t, n, r) {
15617
+ let i = (t >>> 0) + (r >>> 0);
15618
+ return {
15619
+ h: e + n + (i / 2 ** 32 | 0) | 0,
15620
+ l: i | 0
15621
+ };
15622
+ }
15623
+ var wT = (e, t, n) => (e >>> 0) + (t >>> 0) + (n >>> 0), TT = (e, t, n, r) => t + n + r + (e / 2 ** 32 | 0) | 0, ET = (e, t, n, r) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0), DT = (e, t, n, r, i) => t + n + r + i + (e / 2 ** 32 | 0) | 0, OT = (e, t, n, r, i) => (e >>> 0) + (t >>> 0) + (n >>> 0) + (r >>> 0) + (i >>> 0), kT = (e, t, n, r, i, a) => t + n + r + i + a + (e / 2 ** 32 | 0) | 0, AT = class {
15624
+ blockLen;
15625
+ outputLen;
15626
+ canXOF = !1;
15627
+ padOffset;
15628
+ isLE;
15629
+ buffer;
15630
+ view;
15631
+ finished = !1;
15632
+ length = 0;
15633
+ pos = 0;
15634
+ destroyed = !1;
15635
+ constructor(e, t, n, r) {
15636
+ this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = $w(this.buffer);
15637
+ }
15638
+ update(e) {
15639
+ Xw(this), Kw(e);
15640
+ let { view: t, buffer: n, blockLen: r } = this, i = e.length, a = !1;
15641
+ for (let o = 0; o < i;) {
15642
+ let s = Math.min(r - this.pos, i - o);
15643
+ if (s === r) {
15644
+ let t = $w(e);
15645
+ for (; r <= i - o; o += r) this.process(t, o);
15646
+ a = !0;
15647
+ continue;
15648
+ }
15649
+ n.set(o === 0 && s === i ? e : e.subarray(o, o + s), this.pos), this.pos += s, o += s, this.pos === r && (this.process(t, 0), this.pos = 0, a = !0);
15650
+ }
15651
+ return this.length += e.length, a && this.roundClean(), this;
15652
+ }
15653
+ digestInto(e) {
15654
+ Xw(this), Zw(e, this), this.finished = !0;
15655
+ let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
15656
+ t[a++] = 128, t.fill(0, a), this.padOffset > r - a && (this.process(n, 0), t.fill(0)), gT(n, r - 8, this.length * 8, i), this.process(n, 0), this.roundClean();
15657
+ let o = e === t ? n : $w(e), s = this.outputLen, c = s / 4, l = this.get();
15658
+ if (s % 4 || c > l.length) throw Error("invalid outputLen");
15659
+ for (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);
15660
+ }
15661
+ digest() {
15662
+ let { buffer: e, outputLen: t } = this;
15663
+ this.digestInto(e);
15664
+ let n = e.slice(0, t);
15665
+ return this.destroy(), n;
15666
+ }
15667
+ _cloneIntoMeta(e) {
15668
+ let { buffer: t, length: n, finished: r, destroyed: i, pos: a } = this;
15669
+ return e.destroyed = i, e.finished = r, e.length = n, e.pos = a, a && e.buffer.set(t), e;
15670
+ }
15671
+ clone() {
15672
+ return this._cloneInto();
15673
+ }
15674
+ }, jT = /* @__PURE__ */ Uint32Array.from([
15675
+ 1779033703,
15676
+ 4089235720,
15677
+ 3144134277,
15678
+ 2227873595,
15679
+ 1013904242,
15680
+ 4271175723,
15681
+ 2773480762,
15682
+ 1595750129,
15683
+ 1359893119,
15684
+ 2917565137,
15685
+ 2600822924,
15686
+ 725511199,
15687
+ 528734635,
15688
+ 4215389547,
15689
+ 1541459225,
15690
+ 327033209
15691
+ ]), MT = pT((/* @__PURE__ */ "0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817".split(".")).map((e) => BigInt(e))), NT = MT[0], PT = MT[1], FT = /* @__PURE__ */ new Uint32Array(80), IT = /* @__PURE__ */ new Uint32Array(80), LT = class extends AT {
15692
+ Ah = 0;
15693
+ Al = 0;
15694
+ Bh = 0;
15695
+ Bl = 0;
15696
+ Ch = 0;
15697
+ Cl = 0;
15698
+ Dh = 0;
15699
+ Dl = 0;
15700
+ Eh = 0;
15701
+ El = 0;
15702
+ Fh = 0;
15703
+ Fl = 0;
15704
+ Gh = 0;
15705
+ Gl = 0;
15706
+ Hh = 0;
15707
+ Hl = 0;
15708
+ constructor(e, t) {
15709
+ super(128, e, 16, !1), this.Ah = t[0] | 0, this.Al = t[1] | 0, this.Bh = t[2] | 0, this.Bl = t[3] | 0, this.Ch = t[4] | 0, this.Cl = t[5] | 0, this.Dh = t[6] | 0, this.Dl = t[7] | 0, this.Eh = t[8] | 0, this.El = t[9] | 0, this.Fh = t[10] | 0, this.Fl = t[11] | 0, this.Gh = t[12] | 0, this.Gl = t[13] | 0, this.Hh = t[14] | 0, this.Hl = t[15] | 0;
15710
+ }
15711
+ get() {
15712
+ let { Ah: e, Al: t, Bh: n, Bl: r, Ch: i, Cl: a, Dh: o, Dl: s, Eh: c, El: l, Fh: u, Fl: d, Gh: f, Gl: p, Hh: m, Hl: h } = this;
15713
+ return [
15714
+ e,
15715
+ t,
15716
+ n,
15717
+ r,
15718
+ i,
15719
+ a,
15720
+ o,
15721
+ s,
15722
+ c,
15723
+ l,
15724
+ u,
15725
+ d,
15726
+ f,
15727
+ p,
15728
+ m,
15729
+ h
15730
+ ];
15731
+ }
15732
+ set(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
15733
+ this.Ah = e | 0, this.Al = t | 0, this.Bh = n | 0, this.Bl = r | 0, this.Ch = i | 0, this.Cl = a | 0, this.Dh = o | 0, this.Dl = s | 0, this.Eh = c | 0, this.El = l | 0, this.Fh = u | 0, this.Fl = d | 0, this.Gh = f | 0, this.Gl = p | 0, this.Hh = m | 0, this.Hl = h | 0;
15734
+ }
15735
+ _cloneInto(e) {
15736
+ return (e ||= new this.constructor()).set(...this.get()), this._cloneIntoMeta(e);
15737
+ }
15738
+ process(e, t) {
15739
+ for (let n = 0; n < 16; n++, t += 4) FT[n] = e.getUint32(t), IT[n] = e.getUint32(t += 4);
15740
+ for (let e = 16; e < 80; e++) {
15741
+ let t = FT[e - 15] | 0, n = IT[e - 15] | 0, r = yT(t, n, 1) ^ yT(t, n, 8) ^ _T(t, n, 7), i = bT(t, n, 1) ^ bT(t, n, 8) ^ vT(t, n, 7), a = FT[e - 2] | 0, o = IT[e - 2] | 0, s = yT(a, o, 19) ^ xT(a, o, 61) ^ _T(a, o, 6), c = ET(i, bT(a, o, 19) ^ ST(a, o, 61) ^ vT(a, o, 6), IT[e - 7], IT[e - 16]);
15742
+ FT[e] = DT(c, r, s, FT[e - 7], FT[e - 16]) | 0, IT[e] = c | 0;
15743
+ }
15744
+ let { Ah: n, Al: r, Bh: i, Bl: a, Ch: o, Cl: s, Dh: c, Dl: l, Eh: u, El: d, Fh: f, Fl: p, Gh: m, Gl: h, Hh: g, Hl: _ } = this;
15745
+ for (let e = 0; e < 80; e++) {
15746
+ let t = yT(u, d, 14) ^ yT(u, d, 18) ^ xT(u, d, 41), v = bT(u, d, 14) ^ bT(u, d, 18) ^ ST(u, d, 41), y = u & f ^ ~u & m, b = d & p ^ ~d & h, ee = OT(_, v, b, PT[e], IT[e]), x = kT(ee, g, t, y, NT[e], FT[e]), te = ee | 0, ne = yT(n, r, 28) ^ xT(n, r, 34) ^ xT(n, r, 39), re = bT(n, r, 28) ^ ST(n, r, 34) ^ ST(n, r, 39), ie = n & i ^ n & o ^ i & o, ae = r & a ^ r & s ^ a & s;
15747
+ g = m | 0, _ = h | 0, m = f | 0, h = p | 0, f = u | 0, p = d | 0, {h: u, l: d} = CT(c | 0, l | 0, x | 0, te | 0), c = o | 0, l = s | 0, o = i | 0, s = a | 0, i = n | 0, a = r | 0;
15748
+ let oe = wT(te, re, ae);
15749
+ n = TT(oe, x, ne, ie), r = oe | 0;
15750
+ }
15751
+ ({h: n, l: r} = CT(this.Ah | 0, this.Al | 0, n | 0, r | 0)), {h: i, l: a} = CT(this.Bh | 0, this.Bl | 0, i | 0, a | 0), {h: o, l: s} = CT(this.Ch | 0, this.Cl | 0, o | 0, s | 0), {h: c, l: l} = CT(this.Dh | 0, this.Dl | 0, c | 0, l | 0), {h: u, l: d} = CT(this.Eh | 0, this.El | 0, u | 0, d | 0), {h: f, l: p} = CT(this.Fh | 0, this.Fl | 0, f | 0, p | 0), {h: m, l: h} = CT(this.Gh | 0, this.Gl | 0, m | 0, h | 0), {h: g, l: _} = CT(this.Hh | 0, this.Hl | 0, g | 0, _ | 0), this.set(n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _);
15752
+ }
15753
+ roundClean() {
15754
+ Qw(FT, IT);
15755
+ }
15756
+ destroy() {
15757
+ this.destroyed = !0, Qw(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
15758
+ }
15759
+ }, RT = class extends LT {
15760
+ constructor() {
15761
+ super(64, jT);
15762
+ }
15763
+ }, zT = /* @__PURE__ */ rT(() => new RT(), /* @__PURE__ */ iT(3));
15764
+ //#endregion
15765
+ //#region node_modules/.pnpm/@scure+bip39@2.4.0/node_modules/@scure/bip39/index.js
15766
+ function BT(e) {
15767
+ for (let t = 0; t < e.length; t++) {
15768
+ let n = e.charCodeAt(t);
15769
+ if (n >= 55296 && n <= 56319) {
15770
+ if (t + 1 >= e.length) return !1;
15771
+ let n = e.charCodeAt(++t);
15772
+ if (n < 56320 || n > 57343) return !1;
15773
+ } else if (n >= 56320 && n <= 57343) return !1;
15774
+ }
15775
+ return !0;
15776
+ }
15777
+ function VT(e) {
15778
+ if (typeof e != "string") throw TypeError("invalid mnemonic type: " + typeof e);
15779
+ if (!BT(e)) throw TypeError("expected well-formed Unicode string");
15780
+ return e.normalize("NFKD");
15781
+ }
15782
+ function HT(e) {
15783
+ let t = VT(e), n = t.split(" ");
15784
+ if (![
15785
+ 12,
15786
+ 15,
15787
+ 18,
15788
+ 21,
15789
+ 24
15790
+ ].includes(n.length)) throw Error("Invalid mnemonic");
15791
+ return {
15792
+ nfkd: t,
15793
+ words: n
15794
+ };
15795
+ }
15796
+ var UT = (e) => {
15797
+ if (typeof e != "string") throw TypeError("invalid passphrase type: " + typeof e);
15798
+ return VT("mnemonic" + e);
15799
+ };
15800
+ function WT(e, t = "") {
15801
+ return lT(zT, HT(e).nfkd, UT(t), {
15802
+ c: 2048,
15803
+ dkLen: 64
15804
+ });
15805
+ }
15806
+ //#endregion
15807
+ //#region src/blockchain/virtualBlockchains/IApplicationLedgerActorIdentity.ts
15808
+ var GT = class e {
15809
+ usedSignatureSchemeId = Ja.SECP256K1;
15810
+ usedPkeSchemeId = Pv.ML_KEM_768_AES_256_GCM;
15811
+ static createFromWalletSeed(t) {
15812
+ return new e(Hw.fromSeed(t).getDefaultAccountCrypto());
15813
+ }
15814
+ static createFromWalletSeedAndVbSeed(t, n) {
15815
+ return new e(Hw.fromSeed(t).getDefaultAccountCrypto().deriveActorFromVbSeed(n));
15816
+ }
15817
+ constructor(e) {
15818
+ this.cryptoHandler = e;
15819
+ }
15820
+ setUsedPkeSchemeId(e) {
15821
+ return this.usedPkeSchemeId = e, this;
15822
+ }
15823
+ setUsedSignatureSchemeId(e) {
15824
+ return this.usedSignatureSchemeId = e, this;
15825
+ }
15826
+ async getActorPrivateDecryptionKey() {
15827
+ return this.cryptoHandler.getPrivateDecryptionKey(this.usedPkeSchemeId);
15828
+ }
15829
+ async getActorPublicSignatureKey() {
15830
+ return this.cryptoHandler.getPublicSignatureKey(this.usedSignatureSchemeId);
15831
+ }
15832
+ async getChannelKeysDerivationSeed() {
15833
+ return this.cryptoHandler.getSeedAsBytes();
15834
+ }
15835
+ }, KT = class e {
15836
+ constructor(e, t, n) {
15837
+ this.publicSignatureKey = e, this.privateDecryptionKey = t, this.channelKeysDerivationSeed = n;
15838
+ }
15839
+ static async createFromPublicSignatureKeyAndMnemonic(e, t, n) {
15840
+ let r = WT(t, "");
15841
+ return this.createFromPublicSignatureKeyAndMnemonicDerivedSeed(e, r, n);
15842
+ }
15843
+ static async createFromMnemonic(e, t) {
15844
+ let n = WT(e, "");
15845
+ return this.createFromMnemonicDerivedSeed(n, t);
15846
+ }
15847
+ static async createFromPublicSignatureKeyAndMnemonicDerivedSeed(t, n, r) {
15848
+ let i = Hw.fromSeed(n).getDefaultAccountCrypto().deriveActorFromVbSeed(r);
15849
+ return new e(t, await i.getPrivateDecryptionKey(Pv.ML_KEM_768_AES_256_GCM), i.getSeedAsBytes());
15850
+ }
15851
+ static async createFromMnemonicDerivedSeed(t, n) {
15852
+ let r = Hw.fromSeed(t).getDefaultAccountCrypto().deriveActorFromVbSeed(n), i = await r.getPrivateDecryptionKey(Pv.ML_KEM_768_AES_256_GCM);
15853
+ return new e(await r.getPublicSignatureKey(Ja.ML_DSA_65), i, r.getSeedAsBytes());
15854
+ }
15855
+ async getActorPrivateDecryptionKey() {
15856
+ return this.privateDecryptionKey;
15857
+ }
15858
+ async getActorPublicSignatureKey() {
15859
+ return this.publicSignatureKey;
15860
+ }
15861
+ async getChannelKeysDerivationSeed() {
15862
+ return this.channelKeysDerivationSeed;
15863
+ }
15864
+ }, qT = /* @__PURE__ */ function(e) {
15255
15865
  return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WALLET = 1] = "WALLET", e[e.OPERATOR = 2] = "OPERATOR", e;
15256
- }({}), Bw = /* @__PURE__ */ F({ name: /* @__PURE__ */ L() }), Vw = /* @__PURE__ */ F({
15866
+ }({}), JT = /* @__PURE__ */ F({ name: /* @__PURE__ */ L() }), YT = /* @__PURE__ */ F({
15257
15867
  name: /* @__PURE__ */ L(),
15258
15868
  public: /* @__PURE__ */ Yp()
15259
- }), Hw = /* @__PURE__ */ F({
15869
+ }), XT = /* @__PURE__ */ F({
15260
15870
  fieldPath: /* @__PURE__ */ L(),
15261
15871
  channelName: /* @__PURE__ */ L()
15262
- }), Uw = /* @__PURE__ */ F({
15872
+ }), ZT = /* @__PURE__ */ F({
15263
15873
  actorName: /* @__PURE__ */ L(),
15264
15874
  channelName: /* @__PURE__ */ L()
15265
- }), Ww = /* @__PURE__ */ F({
15875
+ }), QT = /* @__PURE__ */ F({
15266
15876
  position: /* @__PURE__ */ P(),
15267
15877
  length: /* @__PURE__ */ P(),
15268
15878
  replacementString: /* @__PURE__ */ L()
15269
- }), Gw = /* @__PURE__ */ F({
15879
+ }), $T = /* @__PURE__ */ F({
15270
15880
  fieldPath: /* @__PURE__ */ L(),
15271
- maskedParts: /* @__PURE__ */ M(Ww)
15272
- }), Kw = /* @__PURE__ */ F({ fieldPath: /* @__PURE__ */ L() }), qw = /* @__PURE__ */ F({
15881
+ maskedParts: /* @__PURE__ */ M(QT)
15882
+ }), eE = /* @__PURE__ */ F({ fieldPath: /* @__PURE__ */ L() }), tE = /* @__PURE__ */ F({
15273
15883
  virtualBlockchainId: /* @__PURE__ */ I(/* @__PURE__ */ L()),
15274
15884
  data: /* @__PURE__ */ Jp(),
15275
- actors: /* @__PURE__ */ I(/* @__PURE__ */ M(Bw)),
15276
- channels: /* @__PURE__ */ I(/* @__PURE__ */ M(Vw)),
15277
- channelAssignations: /* @__PURE__ */ I(/* @__PURE__ */ M(Hw)),
15278
- actorAssignations: /* @__PURE__ */ I(/* @__PURE__ */ M(Uw)),
15279
- hashableFields: /* @__PURE__ */ I(/* @__PURE__ */ M(Kw)),
15280
- maskableFields: /* @__PURE__ */ I(/* @__PURE__ */ M(Gw)),
15885
+ actors: /* @__PURE__ */ I(/* @__PURE__ */ M(JT)),
15886
+ channels: /* @__PURE__ */ I(/* @__PURE__ */ M(YT)),
15887
+ channelAssignations: /* @__PURE__ */ I(/* @__PURE__ */ M(XT)),
15888
+ actorAssignations: /* @__PURE__ */ I(/* @__PURE__ */ M(ZT)),
15889
+ hashableFields: /* @__PURE__ */ I(/* @__PURE__ */ M(eE)),
15890
+ maskableFields: /* @__PURE__ */ I(/* @__PURE__ */ M($T)),
15281
15891
  author: /* @__PURE__ */ L(),
15282
15892
  endorser: /* @__PURE__ */ I(/* @__PURE__ */ L()),
15283
15893
  approvalMessage: /* @__PURE__ */ I(/* @__PURE__ */ L())
15284
- }), Jw = class {
15894
+ }), nE = class {
15285
15895
  static validate(e) {
15286
- return R(qw, e);
15896
+ return R(tE, e);
15287
15897
  }
15288
15898
  static safeParse(e) {
15289
- return /* @__PURE__ */ fm(qw, e);
15899
+ return /* @__PURE__ */ fm(tE, e);
15290
15900
  }
15291
15901
  static is(e) {
15292
- return /* @__PURE__ */ qp(qw, e);
15902
+ return /* @__PURE__ */ qp(tE, e);
15293
15903
  }
15294
- }, Yw = class e extends Rw {
15904
+ }, rE = class e extends Rw {
15295
15905
  logger = k.getLogger([e.name]);
15296
15906
  static async createFromVirtualBlockchain(t, n) {
15297
15907
  let r = await n.createMicroblock(), i = new e(r, n);
@@ -15304,22 +15914,14 @@ var Lw = class e {
15304
15914
  }
15305
15915
  return i;
15306
15916
  }
15307
- usedSignatureSchemeId = Ja.SECP256K1;
15308
- usedPkeSchemeId = Pv.ML_KEM_768_AES_256_GCM;
15309
15917
  constructor(e, t) {
15310
15918
  super(e, t, t.getProvider());
15311
15919
  }
15312
15920
  get state() {
15313
15921
  return this.getInternalState();
15314
15922
  }
15315
- getActorPrivateSignatureKey(e) {
15316
- return e.getPrivateSignatureKey(this.usedSignatureSchemeId);
15317
- }
15318
- getActorPrivateDecryptionKey(e) {
15319
- return e.getPrivateDecryptionKey(this.usedPkeSchemeId);
15320
- }
15321
15923
  async createMicroblockFromStateUpdateRequest(e, t) {
15322
- let n = Jw.validate(t), r = await this.getActorPrivateDecryptionKey(e), a = await this.getActorPrivateSignatureKey(e), o = this.state.getNumberOfActors();
15924
+ let n = nE.validate(t), r = await e.getActorPrivateDecryptionKey(), a = await e.getActorPublicSignatureKey(), o = this.state.getNumberOfActors();
15323
15925
  for (let e of n.actors || []) {
15324
15926
  console.log(this.state.getAllActors());
15325
15927
  let t = e.name;
@@ -15328,7 +15930,7 @@ var Lw = class e {
15328
15930
  let s = n.author, c = this.getActorIdFromActorName(s);
15329
15931
  if (this.vb.isEmpty()) {
15330
15932
  let e = await r.getPublicKey();
15331
- await this.subscribeActor(s, await a.getPublicKey(), e);
15933
+ await this.subscribeActor(s, a, e);
15332
15934
  }
15333
15935
  let l = this.state.getNumberOfChannels();
15334
15936
  for (let e of n.channels || []) {
@@ -15375,15 +15977,13 @@ var Lw = class e {
15375
15977
  };
15376
15978
  this.mbUnderConstruction.addSection(e), await this.updateStateWithSection(e);
15377
15979
  } else {
15378
- let r = k.getLogger(["critical"]), a = this.vb.getHeight() + 1, o = await this.vb.getChannelKey(c, t, e), s = this.vb.deriveChannelSectionKey(o, a, t), l = this.vb.deriveChannelSectionIv(o, a, t);
15379
- r.debug(`Channel key ${o} at height ${a} and channel id ${t} -> Channel section key: ${s} (iv ${l}) `);
15380
- let u = Tp.Aes.encryptGcm(s, n.data, l), d = {
15980
+ let r = this.vb.getHeight() + 1, a = await this.vb.getChannelKey(c, t, e), o = this.vb.deriveChannelSectionKey(a, r, t), s = this.vb.deriveChannelSectionIv(a, r, t), l = Tp.Aes.encryptGcm(o, n.data, s), u = {
15381
15981
  type: O.APP_LEDGER_PRIVATE_CHANNEL_DATA,
15382
15982
  channelId: t,
15383
15983
  merkleRootHash: i,
15384
- encryptedData: u
15984
+ encryptedData: l
15385
15985
  };
15386
- this.mbUnderConstruction.addSection(d), await this.updateStateWithSection(d);
15986
+ this.mbUnderConstruction.addSection(u), await this.updateStateWithSection(u);
15387
15987
  }
15388
15988
  }
15389
15989
  if (typeof n.endorser == "string") {
@@ -15402,14 +16002,14 @@ var Lw = class e {
15402
16002
  let n = {
15403
16003
  type: O.APP_LEDGER_ACTOR_CREATION,
15404
16004
  id: e,
15405
- actorType: zw.UNKNOWN,
16005
+ actorType: qT.UNKNOWN,
15406
16006
  name: t
15407
16007
  };
15408
16008
  this.mbUnderConstruction.addSection(n), await this.updateStateWithSection(n);
15409
16009
  }
15410
16010
  async inviteActorOnChannel(e, t, n) {
15411
16011
  console.log("Inviting actor " + e + " on channel " + t);
15412
- let r = this.state.getChannelIdFromChannelName(t), i = this.getActorIdFromActorName(e), a = await this.getActorPrivateSignatureKey(n), o = await this.vb.getActorIdByPublicSignatureKey(await a.getPublicKey());
16012
+ let r = this.state.getChannelIdFromChannelName(t), i = this.getActorIdFromActorName(e), a = await n.getActorPublicSignatureKey(), o = await this.vb.getActorIdByPublicSignatureKey(a);
15413
16013
  EC.assert(typeof r == "number", `Expected channel id of type number: got ${typeof r} for channel ${t}`);
15414
16014
  let s = i;
15415
16015
  if (await this.vb.isActorInChannel(r, s)) return;
@@ -15453,7 +16053,7 @@ var Lw = class e {
15453
16053
  let t = this.vb.getNumberOfActors();
15454
16054
  await this.createActor(t, e);
15455
16055
  }
15456
- let r = zw.UNKNOWN, i = this.getActorIdFromActorName(e), a = A.getNullHash(), o = {
16056
+ let r = qT.UNKNOWN, i = this.getActorIdFromActorName(e), a = A.getNullHash(), o = {
15457
16057
  type: O.APP_LEDGER_ACTOR_SUBSCRIPTION,
15458
16058
  actorId: i,
15459
16059
  actorType: r,
@@ -15468,7 +16068,7 @@ var Lw = class e {
15468
16068
  getActorIdFromActorName(e) {
15469
16069
  return this.state.getActorIdByName(e);
15470
16070
  }
15471
- }, Xw = class e {
16071
+ }, iE = class e {
15472
16072
  static ED25519_PUBLIC_KEY_TYPE = "tendermint/PubKeyEd25519";
15473
16073
  static createFromEd25519PublicKey(t) {
15474
16074
  return new e(e.ED25519_PUBLIC_KEY_TYPE, t);
@@ -15482,7 +16082,7 @@ var Lw = class e {
15482
16082
  getPublicKey() {
15483
16083
  return this.publicKey;
15484
16084
  }
15485
- }, Zw = class {
16085
+ }, aE = class {
15486
16086
  encodeSignature(e) {
15487
16087
  return e;
15488
16088
  }
@@ -15521,7 +16121,7 @@ var Lw = class e {
15521
16121
  return Jx.createPrivateSignatureKey(t.signatureSchemeId, e);
15522
16122
  } else throw "Invalid public key format: expected raw-encoded JSON object with signatureSchemeId and privateKey fields.";
15523
16123
  }
15524
- }, Qw = class {
16124
+ }, oE = class {
15525
16125
  static async exportPublicSignatureKey(e) {
15526
16126
  if (e instanceof ry) return await Ly({
15527
16127
  kty: "OKP",
@@ -15544,7 +16144,7 @@ var Lw = class e {
15544
16144
  }
15545
16145
  throw Error("Unsupported key type");
15546
16146
  }
15547
- }, $w = "SIG", eT = "SK", tT = "PK", nT = class {
16147
+ }, sE = "SIG", cE = "SK", lE = "PK", uE = class {
15548
16148
  bytesEncoder = Og.bytesToHexEncoder();
15549
16149
  constructor(e) {
15550
16150
  this.labels = e;
@@ -15554,26 +16154,26 @@ var Lw = class e {
15554
16154
  }
15555
16155
  getHCVPrivateKeyEncodingPrefix() {
15556
16156
  return [
15557
- $w,
16157
+ sE,
15558
16158
  ...this.labels,
15559
- eT
16159
+ cE
15560
16160
  ];
15561
16161
  }
15562
16162
  getHCVPublicKeyEncodingPrefix() {
15563
16163
  return [
15564
- $w,
16164
+ sE,
15565
16165
  ...this.labels,
15566
- tT
16166
+ lE
15567
16167
  ];
15568
16168
  }
15569
- }, rT = class extends nT {
16169
+ }, dE = class extends uE {
15570
16170
  constructor(e) {
15571
16171
  super(e);
15572
16172
  }
15573
16173
  async encodePrivateKey(e) {
15574
16174
  return Mg.encode(...this.getHCVPrivateKeyEncodingPrefix(), this.bytesEncoder.encode(e.getPrivateKeyAsBytes()));
15575
16175
  }
15576
- }, iT = class extends rT {
16176
+ }, fE = class extends dE {
15577
16177
  constructor() {
15578
16178
  super(["MLDSA65"]);
15579
16179
  }
@@ -15583,7 +16183,7 @@ var Lw = class e {
15583
16183
  async isAcceptingPublicKeyEncodingRequest(e) {
15584
16184
  return e instanceof i_;
15585
16185
  }
15586
- }, aT = class extends nT {
16186
+ }, pE = class extends uE {
15587
16187
  constructor() {
15588
16188
  super(["PKMS", "SECP256K1"]);
15589
16189
  }
@@ -15598,7 +16198,7 @@ var Lw = class e {
15598
16198
  let t = e.getKeyId();
15599
16199
  return Mg.encode(...this.getHCVPrivateKeyEncodingPrefix(), t);
15600
16200
  }
15601
- }, oT = class extends rT {
16201
+ }, mE = class extends dE {
15602
16202
  constructor() {
15603
16203
  super(["SECP256K1"]);
15604
16204
  }
@@ -15608,11 +16208,11 @@ var Lw = class e {
15608
16208
  async isAcceptingPublicKeyEncodingRequest(e) {
15609
16209
  return e instanceof ey;
15610
16210
  }
15611
- }, sT = class {
16211
+ }, hE = class {
15612
16212
  static defaultEncoder() {
15613
16213
  return Yx.createBase64HCVPkeEncoder();
15614
16214
  }
15615
- }, cT = class {
16215
+ }, gE = class {
15616
16216
  encodeAsUint8Array(e) {
15617
16217
  return Hs(JSON.stringify({
15618
16218
  symmetricEncryptionSchemeId: e.getSymmetricEncryptionSchemeId(),
@@ -15629,17 +16229,17 @@ var Lw = class e {
15629
16229
  };
15630
16230
  //#endregion
15631
16231
  //#region node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/scrypt.js
15632
- function lT(e, t, n, r, i, a) {
16232
+ function _E(e, t, n, r, i, a) {
15633
16233
  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;
15634
16234
  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);
15635
16235
  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;
15636
16236
  }
15637
- function uT(e, t, n, r, i) {
16237
+ function vE(e, t, n, r, i) {
15638
16238
  let a = r + 0, o = r + 16 * i;
15639
16239
  for (let r = 0; r < 16; r++) n[o + r] = e[t + (2 * i - 1) * 16 + r];
15640
- for (let r = 0; r < i; r++, a += 16, t += 16) lT(n, o, e, t, n, a), r > 0 && (o += 16), lT(n, a, e, t += 16, n, o);
16240
+ for (let r = 0; r < i; r++, a += 16, t += 16) _E(n, o, e, t, n, a), r > 0 && (o += 16), _E(n, a, e, t += 16, n, o);
15641
16241
  }
15642
- function dT(e, t, n) {
16242
+ function yE(e, t, n) {
15643
16243
  let { N: r, r: i, p: a, dkLen: o, asyncTick: s, maxmem: c, onProgress: l } = Ks({
15644
16244
  dkLen: 32,
15645
16245
  asyncTick: 10,
@@ -15675,97 +16275,97 @@ function dT(e, t, n) {
15675
16275
  asyncTick: s
15676
16276
  };
15677
16277
  }
15678
- function fT(e, t, n, r, i) {
16278
+ function bE(e, t, n, r, i) {
15679
16279
  let a = Sv(Gc, e, n, {
15680
16280
  c: 1,
15681
16281
  dkLen: t
15682
16282
  });
15683
16283
  return As(n, r, i), a;
15684
16284
  }
15685
- function pT(e, t, n) {
15686
- let { N: r, r: i, p: a, dkLen: o, blockSize32: s, V: c, B32: l, B: u, tmp: d, blockMixCb: f } = dT(e, t, n);
16285
+ function xE(e, t, n) {
16286
+ let { N: r, r: i, p: a, dkLen: o, blockSize32: s, V: c, B32: l, B: u, tmp: d, blockMixCb: f } = yE(e, t, n);
15687
16287
  Ls(l);
15688
16288
  for (let e = 0; e < a; e++) {
15689
16289
  let t = s * e;
15690
16290
  for (let e = 0; e < s; e++) c[e] = l[t + e];
15691
- for (let e = 0, t = 0; e < r - 1; e++) uT(c, t, c, t += s, i), f();
15692
- uT(c, (r - 1) * s, l, t, i), f();
16291
+ for (let e = 0, t = 0; e < r - 1; e++) vE(c, t, c, t += s, i), f();
16292
+ vE(c, (r - 1) * s, l, t, i), f();
15693
16293
  for (let e = 0; e < r; e++) {
15694
16294
  let e = l[t + s - 16] % r;
15695
16295
  for (let n = 0; n < s; n++) d[n] = l[t + n] ^ c[e * s + n];
15696
- uT(d, 0, l, t, i), f();
16296
+ vE(d, 0, l, t, i), f();
15697
16297
  }
15698
16298
  }
15699
- return Ls(l), fT(e, o, u, c, d);
16299
+ return Ls(l), bE(e, o, u, c, d);
15700
16300
  }
15701
16301
  //#endregion
15702
16302
  //#region src/crypto/kdf/Scrypt.ts
15703
- var mT = class extends wv {
16303
+ var SE = class extends wv {
15704
16304
  getKeyDerivationFunctionSchemeId() {
15705
16305
  return Cv.SCRYPT;
15706
16306
  }
15707
16307
  deriveKey(e, t, n) {
15708
- return pT(e, t, {
16308
+ return xE(e, t, {
15709
16309
  N: 2 ** 16,
15710
16310
  r: 8,
15711
16311
  p: 1,
15712
16312
  dkLen: n
15713
16313
  });
15714
16314
  }
15715
- }, hT = /* @__PURE__ */ function(e) {
16315
+ }, CE = /* @__PURE__ */ function(e) {
15716
16316
  return e[e.SECP256K1 = Ja.SECP256K1] = "SECP256K1", e[e.ML_DSA_65 = Ja.ML_DSA_65] = "ML_DSA_65", e;
15717
- }({}), gT = class {
16317
+ }({}), wE = class {
15718
16318
  constructor(e) {
15719
16319
  this.apiKey = e;
15720
16320
  }
15721
16321
  async getPkmsCredential() {
15722
16322
  return this.apiKey;
15723
16323
  }
15724
- }, _T = Symbol.for("@ts-pattern/matcher"), vT = Symbol.for("@ts-pattern/isVariadic"), yT = "@ts-pattern/anonymous-select-key", bT = (e) => !!(e && typeof e == "object"), xT = (e) => e && !!e[_T], ST = (e, t, n) => {
15725
- if (xT(e)) {
15726
- let { matched: r, selections: i } = e[_T]().match(t);
16324
+ }, TE = Symbol.for("@ts-pattern/matcher"), EE = Symbol.for("@ts-pattern/isVariadic"), DE = "@ts-pattern/anonymous-select-key", OE = (e) => !!(e && typeof e == "object"), kE = (e) => e && !!e[TE], AE = (e, t, n) => {
16325
+ if (kE(e)) {
16326
+ let { matched: r, selections: i } = e[TE]().match(t);
15727
16327
  return r && i && Object.keys(i).forEach((e) => n(e, i[e])), r;
15728
16328
  }
15729
- if (bT(e)) {
15730
- if (!bT(t)) return !1;
16329
+ if (OE(e)) {
16330
+ if (!OE(t)) return !1;
15731
16331
  if (Array.isArray(e)) {
15732
16332
  if (!Array.isArray(t)) return !1;
15733
16333
  let r = [], i = [], a = [];
15734
16334
  for (let t of e.keys()) {
15735
16335
  let n = e[t];
15736
- xT(n) && n[vT] ? a.push(n) : a.length ? i.push(n) : r.push(n);
16336
+ kE(n) && n[EE] ? a.push(n) : a.length ? i.push(n) : r.push(n);
15737
16337
  }
15738
16338
  if (a.length) {
15739
16339
  if (a.length > 1) throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
15740
16340
  if (t.length < r.length + i.length) return !1;
15741
16341
  let e = t.slice(0, r.length), o = i.length === 0 ? [] : t.slice(-i.length), s = t.slice(r.length, i.length === 0 ? Infinity : -i.length);
15742
- return r.every((t, r) => ST(t, e[r], n)) && i.every((e, t) => ST(e, o[t], n)) && (a.length === 0 || ST(a[0], s, n));
16342
+ return r.every((t, r) => AE(t, e[r], n)) && i.every((e, t) => AE(e, o[t], n)) && (a.length === 0 || AE(a[0], s, n));
15743
16343
  }
15744
- return e.length === t.length && e.every((e, r) => ST(e, t[r], n));
16344
+ return e.length === t.length && e.every((e, r) => AE(e, t[r], n));
15745
16345
  }
15746
16346
  return Reflect.ownKeys(e).every((r) => {
15747
16347
  let i = e[r];
15748
- return (r in t || xT(a = i) && a[_T]().matcherType === "optional") && ST(i, t[r], n);
16348
+ return (r in t || kE(a = i) && a[TE]().matcherType === "optional") && AE(i, t[r], n);
15749
16349
  var a;
15750
16350
  });
15751
16351
  }
15752
16352
  return Object.is(t, e);
15753
- }, CT = (e) => {
16353
+ }, jE = (e) => {
15754
16354
  var t;
15755
- return bT(e) ? xT(e) ? (t = e[_T]()).getSelectionKeys?.call(t) ?? [] : wT(Array.isArray(e) ? e : Object.values(e), CT) : [];
15756
- }, wT = (e, t) => e.reduce((e, n) => e.concat(t(n)), []);
15757
- function TT(e) {
16355
+ return OE(e) ? kE(e) ? (t = e[TE]()).getSelectionKeys?.call(t) ?? [] : ME(Array.isArray(e) ? e : Object.values(e), jE) : [];
16356
+ }, ME = (e, t) => e.reduce((e, n) => e.concat(t(n)), []);
16357
+ function NE(e) {
15758
16358
  return Object.assign(e, {
15759
- optional: () => DT(e),
15760
- and: (t) => OT(e, t),
15761
- or: (t) => kT(e, t),
15762
- select: (t) => t === void 0 ? jT(e) : jT(t, e)
16359
+ optional: () => FE(e),
16360
+ and: (t) => IE(e, t),
16361
+ or: (t) => LE(e, t),
16362
+ select: (t) => t === void 0 ? zE(e) : zE(t, e)
15763
16363
  });
15764
16364
  }
15765
- function ET(e) {
16365
+ function PE(e) {
15766
16366
  return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
15767
16367
  let t = 0, n = [{
15768
- value: Object.assign(e, { [vT]: !0 }),
16368
+ value: Object.assign(e, { [EE]: !0 }),
15769
16369
  done: !1
15770
16370
  }, {
15771
16371
  done: !0,
@@ -15773,142 +16373,142 @@ function ET(e) {
15773
16373
  }];
15774
16374
  return { next: () => n[t++] ?? n.at(-1) };
15775
16375
  } }))(e), {
15776
- optional: () => ET(DT(e)),
15777
- select: (t) => ET(t === void 0 ? jT(e) : jT(t, e))
16376
+ optional: () => PE(FE(e)),
16377
+ select: (t) => PE(t === void 0 ? zE(e) : zE(t, e))
15778
16378
  });
15779
16379
  }
15780
- function DT(e) {
15781
- return TT({ [_T]: () => ({
16380
+ function FE(e) {
16381
+ return NE({ [TE]: () => ({
15782
16382
  match: (t) => {
15783
16383
  let n = {}, r = (e, t) => {
15784
16384
  n[e] = t;
15785
16385
  };
15786
- return t === void 0 ? (CT(e).forEach((e) => r(e, void 0)), {
16386
+ return t === void 0 ? (jE(e).forEach((e) => r(e, void 0)), {
15787
16387
  matched: !0,
15788
16388
  selections: n
15789
16389
  }) : {
15790
- matched: ST(e, t, r),
16390
+ matched: AE(e, t, r),
15791
16391
  selections: n
15792
16392
  };
15793
16393
  },
15794
- getSelectionKeys: () => CT(e),
16394
+ getSelectionKeys: () => jE(e),
15795
16395
  matcherType: "optional"
15796
16396
  }) });
15797
16397
  }
15798
- function OT(...e) {
15799
- return TT({ [_T]: () => ({
16398
+ function IE(...e) {
16399
+ return NE({ [TE]: () => ({
15800
16400
  match: (t) => {
15801
16401
  let n = {}, r = (e, t) => {
15802
16402
  n[e] = t;
15803
16403
  };
15804
16404
  return {
15805
- matched: e.every((e) => ST(e, t, r)),
16405
+ matched: e.every((e) => AE(e, t, r)),
15806
16406
  selections: n
15807
16407
  };
15808
16408
  },
15809
- getSelectionKeys: () => wT(e, CT),
16409
+ getSelectionKeys: () => ME(e, jE),
15810
16410
  matcherType: "and"
15811
16411
  }) });
15812
16412
  }
15813
- function kT(...e) {
15814
- return TT({ [_T]: () => ({
16413
+ function LE(...e) {
16414
+ return NE({ [TE]: () => ({
15815
16415
  match: (t) => {
15816
16416
  let n = {}, r = (e, t) => {
15817
16417
  n[e] = t;
15818
16418
  };
15819
- return wT(e, CT).forEach((e) => r(e, void 0)), {
15820
- matched: e.some((e) => ST(e, t, r)),
16419
+ return ME(e, jE).forEach((e) => r(e, void 0)), {
16420
+ matched: e.some((e) => AE(e, t, r)),
15821
16421
  selections: n
15822
16422
  };
15823
16423
  },
15824
- getSelectionKeys: () => wT(e, CT),
16424
+ getSelectionKeys: () => ME(e, jE),
15825
16425
  matcherType: "or"
15826
16426
  }) });
15827
16427
  }
15828
- function AT(e) {
15829
- return { [_T]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
16428
+ function RE(e) {
16429
+ return { [TE]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
15830
16430
  }
15831
- function jT(...e) {
16431
+ function zE(...e) {
15832
16432
  let t = typeof e[0] == "string" ? e[0] : void 0, n = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
15833
- return TT({ [_T]: () => ({
16433
+ return NE({ [TE]: () => ({
15834
16434
  match: (e) => {
15835
- let r = { [t ?? yT]: e };
16435
+ let r = { [t ?? DE]: e };
15836
16436
  return {
15837
- matched: n === void 0 || ST(n, e, (e, t) => {
16437
+ matched: n === void 0 || AE(n, e, (e, t) => {
15838
16438
  r[e] = t;
15839
16439
  }),
15840
16440
  selections: r
15841
16441
  };
15842
16442
  },
15843
- getSelectionKeys: () => [t ?? yT].concat(n === void 0 ? [] : CT(n))
16443
+ getSelectionKeys: () => [t ?? DE].concat(n === void 0 ? [] : jE(n))
15844
16444
  }) });
15845
16445
  }
15846
- function MT(e) {
16446
+ function BE(e) {
15847
16447
  return !0;
15848
16448
  }
15849
- function NT(e) {
16449
+ function VE(e) {
15850
16450
  return typeof e == "number";
15851
16451
  }
15852
- function PT(e) {
16452
+ function HE(e) {
15853
16453
  return typeof e == "string";
15854
16454
  }
15855
- function FT(e) {
16455
+ function UE(e) {
15856
16456
  return typeof e == "bigint";
15857
16457
  }
15858
- TT(AT(MT)), TT(AT(MT));
15859
- var IT = (e) => Object.assign(TT(e), {
16458
+ NE(RE(BE)), NE(RE(BE));
16459
+ var WE = (e) => Object.assign(NE(e), {
15860
16460
  startsWith: (t) => {
15861
- return IT(OT(e, (n = t, AT((e) => PT(e) && e.startsWith(n)))));
16461
+ return WE(IE(e, (n = t, RE((e) => HE(e) && e.startsWith(n)))));
15862
16462
  var n;
15863
16463
  },
15864
16464
  endsWith: (t) => {
15865
- return IT(OT(e, (n = t, AT((e) => PT(e) && e.endsWith(n)))));
16465
+ return WE(IE(e, (n = t, RE((e) => HE(e) && e.endsWith(n)))));
15866
16466
  var n;
15867
16467
  },
15868
- minLength: (t) => IT(OT(e, ((e) => AT((t) => PT(t) && t.length >= e))(t))),
15869
- length: (t) => IT(OT(e, ((e) => AT((t) => PT(t) && t.length === e))(t))),
15870
- maxLength: (t) => IT(OT(e, ((e) => AT((t) => PT(t) && t.length <= e))(t))),
16468
+ minLength: (t) => WE(IE(e, ((e) => RE((t) => HE(t) && t.length >= e))(t))),
16469
+ length: (t) => WE(IE(e, ((e) => RE((t) => HE(t) && t.length === e))(t))),
16470
+ maxLength: (t) => WE(IE(e, ((e) => RE((t) => HE(t) && t.length <= e))(t))),
15871
16471
  includes: (t) => {
15872
- return IT(OT(e, (n = t, AT((e) => PT(e) && e.includes(n)))));
16472
+ return WE(IE(e, (n = t, RE((e) => HE(e) && e.includes(n)))));
15873
16473
  var n;
15874
16474
  },
15875
16475
  regex: (t) => {
15876
- return IT(OT(e, (n = t, AT((e) => PT(e) && !!e.match(n)))));
16476
+ return WE(IE(e, (n = t, RE((e) => HE(e) && !!e.match(n)))));
15877
16477
  var n;
15878
16478
  }
15879
16479
  });
15880
- IT(AT(PT));
15881
- var LT = (e) => Object.assign(TT(e), {
15882
- between: (t, n) => LT(OT(e, ((e, t) => AT((n) => NT(n) && e <= n && t >= n))(t, n))),
15883
- lt: (t) => LT(OT(e, ((e) => AT((t) => NT(t) && t < e))(t))),
15884
- gt: (t) => LT(OT(e, ((e) => AT((t) => NT(t) && t > e))(t))),
15885
- lte: (t) => LT(OT(e, ((e) => AT((t) => NT(t) && t <= e))(t))),
15886
- gte: (t) => LT(OT(e, ((e) => AT((t) => NT(t) && t >= e))(t))),
15887
- int: () => LT(OT(e, AT((e) => NT(e) && Number.isInteger(e)))),
15888
- finite: () => LT(OT(e, AT((e) => NT(e) && Number.isFinite(e)))),
15889
- positive: () => LT(OT(e, AT((e) => NT(e) && e > 0))),
15890
- negative: () => LT(OT(e, AT((e) => NT(e) && e < 0)))
16480
+ WE(RE(HE));
16481
+ var GE = (e) => Object.assign(NE(e), {
16482
+ between: (t, n) => GE(IE(e, ((e, t) => RE((n) => VE(n) && e <= n && t >= n))(t, n))),
16483
+ lt: (t) => GE(IE(e, ((e) => RE((t) => VE(t) && t < e))(t))),
16484
+ gt: (t) => GE(IE(e, ((e) => RE((t) => VE(t) && t > e))(t))),
16485
+ lte: (t) => GE(IE(e, ((e) => RE((t) => VE(t) && t <= e))(t))),
16486
+ gte: (t) => GE(IE(e, ((e) => RE((t) => VE(t) && t >= e))(t))),
16487
+ int: () => GE(IE(e, RE((e) => VE(e) && Number.isInteger(e)))),
16488
+ finite: () => GE(IE(e, RE((e) => VE(e) && Number.isFinite(e)))),
16489
+ positive: () => GE(IE(e, RE((e) => VE(e) && e > 0))),
16490
+ negative: () => GE(IE(e, RE((e) => VE(e) && e < 0)))
15891
16491
  });
15892
- LT(AT(NT));
15893
- var RT = (e) => Object.assign(TT(e), {
15894
- between: (t, n) => RT(OT(e, ((e, t) => AT((n) => FT(n) && e <= n && t >= n))(t, n))),
15895
- lt: (t) => RT(OT(e, ((e) => AT((t) => FT(t) && t < e))(t))),
15896
- gt: (t) => RT(OT(e, ((e) => AT((t) => FT(t) && t > e))(t))),
15897
- lte: (t) => RT(OT(e, ((e) => AT((t) => FT(t) && t <= e))(t))),
15898
- gte: (t) => RT(OT(e, ((e) => AT((t) => FT(t) && t >= e))(t))),
15899
- positive: () => RT(OT(e, AT((e) => FT(e) && e > 0))),
15900
- negative: () => RT(OT(e, AT((e) => FT(e) && e < 0)))
16492
+ GE(RE(VE));
16493
+ var KE = (e) => Object.assign(NE(e), {
16494
+ between: (t, n) => KE(IE(e, ((e, t) => RE((n) => UE(n) && e <= n && t >= n))(t, n))),
16495
+ lt: (t) => KE(IE(e, ((e) => RE((t) => UE(t) && t < e))(t))),
16496
+ gt: (t) => KE(IE(e, ((e) => RE((t) => UE(t) && t > e))(t))),
16497
+ lte: (t) => KE(IE(e, ((e) => RE((t) => UE(t) && t <= e))(t))),
16498
+ gte: (t) => KE(IE(e, ((e) => RE((t) => UE(t) && t >= e))(t))),
16499
+ positive: () => KE(IE(e, RE((e) => UE(e) && e > 0))),
16500
+ negative: () => KE(IE(e, RE((e) => UE(e) && e < 0)))
15901
16501
  });
15902
- RT(AT(FT)), TT(AT(function(e) {
16502
+ KE(RE(UE)), NE(RE(function(e) {
15903
16503
  return typeof e == "boolean";
15904
- })), TT(AT(function(e) {
16504
+ })), NE(RE(function(e) {
15905
16505
  return typeof e == "symbol";
15906
- })), TT(AT(function(e) {
16506
+ })), NE(RE(function(e) {
15907
16507
  return e == null;
15908
- })), TT(AT(function(e) {
16508
+ })), NE(RE(function(e) {
15909
16509
  return e != null;
15910
16510
  }));
15911
- var zT = class extends Error {
16511
+ var qE = class extends Error {
15912
16512
  constructor(e) {
15913
16513
  let t;
15914
16514
  try {
@@ -15918,14 +16518,14 @@ var zT = class extends Error {
15918
16518
  }
15919
16519
  super(`Pattern matching error: no pattern matches value ${t}`), this.input = void 0, this.input = e;
15920
16520
  }
15921
- }, BT = {
16521
+ }, JE = {
15922
16522
  matched: !1,
15923
16523
  value: void 0
15924
16524
  };
15925
- function VT(e) {
15926
- return new HT(e, BT);
16525
+ function YE(e) {
16526
+ return new XE(e, JE);
15927
16527
  }
15928
- var HT = class e {
16528
+ var XE = class e {
15929
16529
  constructor(e, t) {
15930
16530
  this.input = void 0, this.state = void 0, this.input = e, this.state = t;
15931
16531
  }
@@ -15935,9 +16535,9 @@ var HT = class e {
15935
16535
  t.length === 3 && typeof t[1] == "function" ? i = t[1] : t.length > 2 && r.push(...t.slice(1, t.length - 1));
15936
16536
  let a = !1, o = {}, s = (e, t) => {
15937
16537
  a = !0, o[e] = t;
15938
- }, c = !r.some((e) => ST(e, this.input, s)) || i && !i(this.input) ? BT : {
16538
+ }, c = !r.some((e) => AE(e, this.input, s)) || i && !i(this.input) ? JE : {
15939
16539
  matched: !0,
15940
- value: n(a ? yT in o ? o[yT] : o : this.input, this.input)
16540
+ value: n(a ? DE in o ? o[DE] : o : this.input, this.input)
15941
16541
  };
15942
16542
  return new e(this.input, c);
15943
16543
  }
@@ -15947,12 +16547,12 @@ var HT = class e {
15947
16547
  return new e(this.input, r ? {
15948
16548
  matched: !0,
15949
16549
  value: n(this.input, this.input)
15950
- } : BT);
16550
+ } : JE);
15951
16551
  }
15952
16552
  otherwise(e) {
15953
16553
  return this.state.matched ? this.state.value : e(this.input);
15954
16554
  }
15955
- exhaustive(e = UT) {
16555
+ exhaustive(e = ZE) {
15956
16556
  return this.state.matched ? this.state.value : e(this.input);
15957
16557
  }
15958
16558
  run() {
@@ -15965,46 +16565,46 @@ var HT = class e {
15965
16565
  return this;
15966
16566
  }
15967
16567
  };
15968
- function UT(e) {
15969
- throw new zT(e);
16568
+ function ZE(e) {
16569
+ throw new qE(e);
15970
16570
  }
15971
16571
  //#endregion
15972
16572
  //#region src/crypto/signature/signer/binary/BinaryEndoding.ts
15973
- var WT = /* @__PURE__ */ function(e) {
16573
+ var QE = /* @__PURE__ */ function(e) {
15974
16574
  return e.HEX = "hex", e.BASE64 = "base64", e.BASE64URL = "base64url", e;
15975
- }({}), GT = class {
16575
+ }({}), $E = class {
15976
16576
  static decode(e, t) {
15977
- return VT(t).with(WT.BASE64, () => Yg.from(e, "base64")).with(WT.HEX, () => Yg.from(e, "hex")).with(WT.BASE64URL, () => Yg.from(e, "base64url")).exhaustive();
16577
+ return YE(t).with(QE.BASE64, () => Yg.from(e, "base64")).with(QE.HEX, () => Yg.from(e, "hex")).with(QE.BASE64URL, () => Yg.from(e, "base64url")).exhaustive();
15978
16578
  }
15979
16579
  static encode(e, t) {
15980
- return VT(t).with(WT.BASE64, () => Yg.from(e).toString("base64")).with(WT.HEX, () => Yg.from(e).toString("hex")).with(WT.BASE64URL, () => Yg.from(e).toString("base64url")).exhaustive();
16580
+ return YE(t).with(QE.BASE64, () => Yg.from(e).toString("base64")).with(QE.HEX, () => Yg.from(e).toString("hex")).with(QE.BASE64URL, () => Yg.from(e).toString("base64url")).exhaustive();
15981
16581
  }
15982
- }, KT = class {
15983
- signatureEncoding = WT.HEX;
16582
+ }, eD = class {
16583
+ signatureEncoding = QE.HEX;
15984
16584
  setSignatureEncoding(e) {
15985
16585
  return this.signatureEncoding = e, this;
15986
16586
  }
15987
16587
  async sign(e, t, n) {
15988
- let r = GT.decode(n, t), i = await e.sign(r);
15989
- return GT.encode(i, this.signatureEncoding);
16588
+ let r = $E.decode(n, t), i = await e.sign(r);
16589
+ return $E.encode(i, this.signatureEncoding);
15990
16590
  }
15991
- }, qT = class {
15992
- signatureEncoding = WT.HEX;
16591
+ }, tD = class {
16592
+ signatureEncoding = QE.HEX;
15993
16593
  setSignatureEncoding(e) {
15994
16594
  return this.signatureEncoding = e, this;
15995
16595
  }
15996
16596
  async verify(e, t, n, r) {
15997
- let i = GT.decode(n, t), a = GT.decode(r, this.signatureEncoding);
16597
+ let i = $E.decode(n, t), a = $E.decode(r, this.signatureEncoding);
15998
16598
  return await e.verify(i, a);
15999
16599
  }
16000
- }, JT = class {
16600
+ }, nD = class {
16001
16601
  constructor(e) {
16002
16602
  this.signatureType = e;
16003
16603
  }
16004
16604
  getSignatureType() {
16005
16605
  return this.signatureType;
16006
16606
  }
16007
- }, YT = class extends JT {
16607
+ }, rD = class extends nD {
16008
16608
  constructor(e) {
16009
16609
  super(e.signatureType), this.signatureObject = e;
16010
16610
  }
@@ -16017,14 +16617,14 @@ var WT = /* @__PURE__ */ function(e) {
16017
16617
  getSignatureObject() {
16018
16618
  return this.signatureObject;
16019
16619
  }
16020
- }, XT = /* @__PURE__ */ function(e) {
16620
+ }, iD = /* @__PURE__ */ function(e) {
16021
16621
  return e.JSON_CANONICAL = "json-canonical", e.CBOR = "cbor", e;
16022
- }({}), ZT = "$";
16023
- function QT(e, t) {
16622
+ }({}), aD = "$";
16623
+ function oD(e, t) {
16024
16624
  let n = "", r = t && t.include, i = t && t.exclude;
16025
16625
  i && typeof i == "string" && (i = [i]), r && r.sort();
16026
16626
  let a = /* @__PURE__ */ new WeakMap(), o = t && t.allowCircular, s = t && t.filterUndefined, c = t && t.undefinedInArrayToNull;
16027
- return l(e, ZT), n;
16627
+ return l(e, aD), n;
16028
16628
  function l(e, t) {
16029
16629
  if (typeof e != "object" || !e || e.toJSON != null) {
16030
16630
  if (typeof e == "number" && !Number.isFinite(e)) throw Error(`Non-finite number (${e}) is not permitted in JSON (RFC 8785 \xA73.2.2.3)`);
@@ -16052,7 +16652,7 @@ function QT(e, t) {
16052
16652
  let u = !1, d = (r) => {
16053
16653
  i && i.includes(r) || (u && (n += ","), u = !0, n += JSON.stringify(r), n += ":", l(e[r], `${t}.${r}`));
16054
16654
  };
16055
- if (t === ZT && r) r.forEach((t) => {
16655
+ if (t === aD && r) r.forEach((t) => {
16056
16656
  e.hasOwnProperty(t) && d(t);
16057
16657
  });
16058
16658
  else {
@@ -16065,8 +16665,8 @@ function QT(e, t) {
16065
16665
  }
16066
16666
  }
16067
16667
  }
16068
- function $T(e, t) {
16069
- return QT(e, {
16668
+ function sD(e, t) {
16669
+ return oD(e, {
16070
16670
  allowCircular: t,
16071
16671
  filterUndefined: !0,
16072
16672
  undefinedInArrayToNull: !0
@@ -16074,11 +16674,11 @@ function $T(e, t) {
16074
16674
  }
16075
16675
  //#endregion
16076
16676
  //#region src/crypto/signature/signer/json/JsonEncoder.ts
16077
- var eE = class {
16677
+ var cD = class {
16078
16678
  static encode(e, t) {
16079
- return VT(t).with(XT.JSON_CANONICAL, () => new TextEncoder().encode($T(e))).with(XT.CBOR, () => new zS().encode(e)).exhaustive();
16679
+ return YE(t).with(iD.JSON_CANONICAL, () => new TextEncoder().encode(sD(e))).with(iD.CBOR, () => new zS().encode(e)).exhaustive();
16080
16680
  }
16081
- }, tE = /* @__PURE__ */ nm({
16681
+ }, lD = /* @__PURE__ */ nm({
16082
16682
  signedAt: /* @__PURE__ */ P(),
16083
16683
  purpose: /* @__PURE__ */ L(),
16084
16684
  target: /* @__PURE__ */ I(/* @__PURE__ */ L()),
@@ -16090,31 +16690,31 @@ var eE = class {
16090
16690
  applicationId: /* @__PURE__ */ I(/* @__PURE__ */ L()),
16091
16691
  applicationLedgerId: /* @__PURE__ */ I(/* @__PURE__ */ L()),
16092
16692
  applicationLedgerLatestMicroblockHash: /* @__PURE__ */ I(/* @__PURE__ */ L())
16093
- }), nE = /* @__PURE__ */ function(e) {
16693
+ }), uD = /* @__PURE__ */ function(e) {
16094
16694
  return e.JSON_CANONICAL_UTF8 = "json-canonical+utf8", e.JWS = "jws", e;
16095
- }({}), rE = /* @__PURE__ */ nm({
16096
- signatureType: /* @__PURE__ */ N(nE.JSON_CANONICAL_UTF8),
16695
+ }({}), dD = /* @__PURE__ */ nm({
16696
+ signatureType: /* @__PURE__ */ N(uD.JSON_CANONICAL_UTF8),
16097
16697
  signature: /* @__PURE__ */ L(),
16098
- signatureEncoding: /* @__PURE__ */ I(/* @__PURE__ */ Zp(WT)),
16698
+ signatureEncoding: /* @__PURE__ */ I(/* @__PURE__ */ Zp(QE)),
16099
16699
  publicKey: /* @__PURE__ */ I(/* @__PURE__ */ L()),
16100
- context: tE,
16700
+ context: lD,
16101
16701
  payload: /* @__PURE__ */ I(/* @__PURE__ */ um())
16102
- }), iE = /* @__PURE__ */ nm({
16103
- signatureType: /* @__PURE__ */ N(nE.JWS),
16702
+ }), fD = /* @__PURE__ */ nm({
16703
+ signatureType: /* @__PURE__ */ N(uD.JWS),
16104
16704
  jws: /* @__PURE__ */ L(),
16105
16705
  publicKey: /* @__PURE__ */ I(/* @__PURE__ */ L())
16106
- }), aE = /* @__PURE__ */ dm("signatureType", [rE, iE]), oE = /* @__PURE__ */ nm({
16706
+ }), pD = /* @__PURE__ */ dm("signatureType", [dD, fD]), mD = /* @__PURE__ */ nm({
16107
16707
  verifiedAt: /* @__PURE__ */ I(/* @__PURE__ */ P()),
16108
16708
  shouldBeValidOnChain: /* @__PURE__ */ im(/* @__PURE__ */ Yp())
16109
- }), sE = /* @__PURE__ */ dm("verified", [/* @__PURE__ */ F({
16709
+ }), hD = /* @__PURE__ */ dm("verified", [/* @__PURE__ */ F({
16110
16710
  verified: /* @__PURE__ */ N(!0),
16111
- context: tE,
16711
+ context: lD,
16112
16712
  payload: /* @__PURE__ */ um()
16113
16713
  }), /* @__PURE__ */ F({
16114
16714
  verified: /* @__PURE__ */ N(!1),
16115
16715
  errors: /* @__PURE__ */ M(/* @__PURE__ */ L())
16116
- })]), cE = class {
16117
- signatureEncoding = WT.BASE64;
16716
+ })]), gD = class {
16717
+ signatureEncoding = QE.BASE64;
16118
16718
  includePayload = !0;
16119
16719
  includePublicKey = !0;
16120
16720
  includeSignatureEncoding = !0;
@@ -16135,12 +16735,12 @@ var eE = class {
16135
16735
  this.location = e, this.includePayload = !1;
16136
16736
  }
16137
16737
  async sign(e, t, n) {
16138
- let r = BS.defaultStringSignatureEncoder(), i = this.includePublicKey ? await r.encodePublicKey(await e.getPublicKey()) : void 0, a = eE.encode({
16738
+ let r = BS.defaultStringSignatureEncoder(), i = this.includePublicKey ? await r.encodePublicKey(await e.getPublicKey()) : void 0, a = cD.encode({
16139
16739
  context: t,
16140
16740
  payload: n
16141
- }, XT.JSON_CANONICAL), o = await e.sign(a), s = GT.encode(o, this.signatureEncoding);
16741
+ }, iD.JSON_CANONICAL), o = await e.sign(a), s = $E.encode(o, this.signatureEncoding);
16142
16742
  return {
16143
- signatureType: nE.JSON_CANONICAL_UTF8,
16743
+ signatureType: uD.JSON_CANONICAL_UTF8,
16144
16744
  context: t,
16145
16745
  signature: s,
16146
16746
  ...this.location,
@@ -16149,28 +16749,28 @@ var eE = class {
16149
16749
  ...this.includeSignatureEncoding && { signatureEncoding: this.signatureEncoding }
16150
16750
  };
16151
16751
  }
16152
- }, lE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
16153
- function uE(e) {
16154
- let t = pE(e), n = new TextDecoder().decode(t);
16752
+ }, _D = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
16753
+ function vD(e) {
16754
+ let t = xD(e), n = new TextDecoder().decode(t);
16155
16755
  return JSON.parse(n);
16156
16756
  }
16157
- function dE(e) {
16757
+ function yD(e) {
16158
16758
  let t = "";
16159
16759
  for (let n = 0; n < e.length; n += 3) {
16160
16760
  let r = e[n], i = n + 1 < e.length ? e[n + 1] : void 0, a = n + 2 < e.length ? e[n + 2] : void 0;
16161
- t += lE[r >> 2], t += lE[(r & 3) << 4 | (i ?? 0) >> 4], i !== void 0 && (t += lE[(i & 15) << 2 | (a ?? 0) >> 6]), a !== void 0 && (t += lE[a & 63]);
16761
+ t += _D[r >> 2], t += _D[(r & 3) << 4 | (i ?? 0) >> 4], i !== void 0 && (t += _D[(i & 15) << 2 | (a ?? 0) >> 6]), a !== void 0 && (t += _D[a & 63]);
16162
16762
  }
16163
16763
  return t;
16164
16764
  }
16165
- function fE(e) {
16166
- return dE(new TextEncoder().encode(e));
16765
+ function bD(e) {
16766
+ return yD(new TextEncoder().encode(e));
16167
16767
  }
16168
- function pE(e) {
16768
+ function xD(e) {
16169
16769
  let t = e.replace(/-/g, "+").replace(/_/g, "/"), n = t + "=".repeat((4 - t.length % 4) % 4), r = atob(n), i = new Uint8Array(r.length);
16170
16770
  for (let e = 0; e < r.length; e++) i[e] = r.charCodeAt(e);
16171
16771
  return i;
16172
16772
  }
16173
- function mE(e) {
16773
+ function SD(e) {
16174
16774
  if (e.alg) return e.alg;
16175
16775
  if (e.kty === "OKP") {
16176
16776
  if (e.crv === "Ed25519") return "EdDSA";
@@ -16190,20 +16790,20 @@ function mE(e) {
16190
16790
  }
16191
16791
  throw Error(`Cannot determine JWS algorithm from JWK (kty=${e.kty}, crv=${e.crv})`);
16192
16792
  }
16193
- function hE(e) {
16793
+ function CD(e) {
16194
16794
  let t = {};
16195
16795
  return e.signedAt !== void 0 && (t.iat = e.signedAt), e.notValidBefore !== void 0 && (t.nbf = e.notValidBefore), e.notValidAfter !== void 0 && (t.exp = e.notValidAfter), e.target !== void 0 && (t.aud = e.target), t;
16196
16796
  }
16197
16797
  //#endregion
16198
16798
  //#region src/crypto/signature/signer/json/JwsSignature.ts
16199
- var gE = class extends JT {
16799
+ var wD = class extends nD {
16200
16800
  jws;
16201
16801
  context;
16202
16802
  payload;
16203
16803
  constructor(e) {
16204
16804
  super(e.signatureType), this.signature = e, this.jws = this.signature.jws;
16205
16805
  let [t, n, r] = this.jws.split(".");
16206
- this.context = R(tE, uE(t).context), this.payload = uE(n);
16806
+ this.context = R(lD, vD(t).context), this.payload = vD(n);
16207
16807
  }
16208
16808
  getContext() {
16209
16809
  return this.context;
@@ -16214,14 +16814,14 @@ var gE = class extends JT {
16214
16814
  getJws() {
16215
16815
  return this.jws;
16216
16816
  }
16217
- }, _E = class {
16817
+ }, TD = class {
16218
16818
  static parse(e) {
16219
- let t = R(aE, e);
16220
- if (t.signatureType === nE.JSON_CANONICAL_UTF8) return new YT(t);
16221
- if (t.signatureType === nE.JWS) return new gE(t);
16819
+ let t = R(pD, e);
16820
+ if (t.signatureType === uD.JSON_CANONICAL_UTF8) return new rD(t);
16821
+ if (t.signatureType === uD.JWS) return new wD(t);
16222
16822
  throw Error("Unknown signature type");
16223
16823
  }
16224
- }, vE = class {
16824
+ }, ED = class {
16225
16825
  static invalidSignature() {
16226
16826
  return {
16227
16827
  verified: !1,
@@ -16259,47 +16859,47 @@ var gE = class extends JT {
16259
16859
  errors: ["Allowed on chain not match"]
16260
16860
  };
16261
16861
  }
16262
- }, yE = class {
16862
+ }, DD = class {
16263
16863
  payload;
16264
16864
  setPayload(e) {
16265
16865
  return this.payload = e, this;
16266
16866
  }
16267
16867
  async verify(e, t, n = {}) {
16268
16868
  switch (t.getSignatureType()) {
16269
- case nE.JSON_CANONICAL_UTF8: return this.verifyJsonCanonical(e, t, n);
16270
- case nE.JWS: return this.verifyJws(e, t, n);
16869
+ case uD.JSON_CANONICAL_UTF8: return this.verifyJsonCanonical(e, t, n);
16870
+ case uD.JWS: return this.verifyJws(e, t, n);
16271
16871
  default: throw Error(`Unsupported signature type: ${t.getSignatureType()}`);
16272
16872
  }
16273
16873
  }
16274
16874
  async verifyJsonCanonical(e, t, n) {
16275
16875
  let r = t.getSignatureObject(), i = r.context, a = this.checkContext(i, n);
16276
16876
  if (a) return a;
16277
- let o = r.payload ?? this.payload, s = eE.encode({
16877
+ let o = r.payload ?? this.payload, s = cD.encode({
16278
16878
  context: r.context,
16279
16879
  payload: o
16280
- }, XT.JSON_CANONICAL), c = GT.decode(r.signature, r.signatureEncoding ?? WT.BASE64);
16281
- return await e.verify(s, c) ? vE.verified(r.context, o) : vE.invalidSignature();
16880
+ }, iD.JSON_CANONICAL), c = $E.decode(r.signature, r.signatureEncoding ?? QE.BASE64);
16881
+ return await e.verify(s, c) ? ED.verified(r.context, o) : ED.invalidSignature();
16282
16882
  }
16283
16883
  async verifyJws(e, t, n) {
16284
16884
  let r = t.getJws().split(".");
16285
- if (r.length !== 3) return console.warn(`Malformed compact JWS: expected 3 parts, got ${r.length}`), vE.malformed();
16286
- let [i, a, o] = r, s = `${i}.${a}`, c = new TextEncoder().encode(s), l = pE(o);
16287
- if (!await e.verify(c, l)) return vE.invalidSignature();
16885
+ if (r.length !== 3) return console.warn(`Malformed compact JWS: expected 3 parts, got ${r.length}`), ED.malformed();
16886
+ let [i, a, o] = r, s = `${i}.${a}`, c = new TextEncoder().encode(s), l = xD(o);
16887
+ if (!await e.verify(c, l)) return ED.invalidSignature();
16288
16888
  let u = t.getPayload(), d = t.getContext();
16289
- return this.checkContext(d, n) || vE.verified(d, u);
16889
+ return this.checkContext(d, n) || ED.verified(d, u);
16290
16890
  }
16291
16891
  checkContext(e, t) {
16292
16892
  let n = t.verifiedAt ?? Date.now();
16293
- if (e.notValidBefore && e.notValidBefore > n) return vE.notValidYet();
16294
- if (e.notValidAfter && e.notValidAfter < n) return vE.expired();
16295
- if (typeof t.shouldBeValidOnChain == "boolean" && t.shouldBeValidOnChain !== e.allowOnChain) return vE.allowedOnChainNotMatch();
16893
+ if (e.notValidBefore && e.notValidBefore > n) return ED.notValidYet();
16894
+ if (e.notValidAfter && e.notValidAfter < n) return ED.expired();
16895
+ if (typeof t.shouldBeValidOnChain == "boolean" && t.shouldBeValidOnChain !== e.allowOnChain) return ED.allowedOnChainNotMatch();
16296
16896
  }
16297
- }, bE = class {
16897
+ }, OD = class {
16298
16898
  includePublicKey = !0;
16299
16899
  typ = "JWT";
16300
16900
  async sign(e, t, n) {
16301
16901
  if (typeof n != "object" || !n || Array.isArray(n)) throw TypeError("JWS payload must be a flat, plain object so it can be inlined as JWT claims");
16302
- let r = e.getPrivateJwk(), i = mE(r), a = hE(t), o = Object.keys(a).find((e) => e in n);
16902
+ let r = e.getPrivateJwk(), i = SD(r), a = CD(t), o = Object.keys(a).find((e) => e in n);
16303
16903
  if (o) throw Error(`Payload defines reserved claim "${o}", already derived from the signature context`);
16304
16904
  let s = {
16305
16905
  alg: i,
@@ -16307,14 +16907,14 @@ var gE = class extends JT {
16307
16907
  ...r.kid ? { kid: r.kid } : {},
16308
16908
  context: t,
16309
16909
  ...a
16310
- }, c = `${fE(JSON.stringify(s))}.${fE(JSON.stringify(n))}`, l = new TextEncoder().encode(c), u = `${c}.${dE(await e.sign(l))}`, d;
16910
+ }, c = `${bD(JSON.stringify(s))}.${bD(JSON.stringify(n))}`, l = new TextEncoder().encode(c), u = `${c}.${yD(await e.sign(l))}`, d;
16311
16911
  return this.includePublicKey && (d = await BS.defaultStringSignatureEncoder().encodePublicKey(await e.getPublicKey())), {
16312
- signatureType: nE.JWS,
16912
+ signatureType: uD.JWS,
16313
16913
  jws: u,
16314
16914
  ...d !== void 0 && { publicKey: d }
16315
16915
  };
16316
16916
  }
16317
- }, xE = class {
16917
+ }, kD = class {
16318
16918
  constructor() {}
16319
16919
  async has(e) {
16320
16920
  return !1;
@@ -16323,7 +16923,7 @@ var gE = class extends JT {
16323
16923
  return !1;
16324
16924
  }
16325
16925
  async set(e, t) {}
16326
- }, SE = class {
16926
+ }, AD = class {
16327
16927
  key;
16328
16928
  constructor(e, t, n) {
16329
16929
  this.key = `${e}|${t}|${n}`;
@@ -16331,7 +16931,7 @@ var gE = class extends JT {
16331
16931
  getKey() {
16332
16932
  return this.key;
16333
16933
  }
16334
- }, CE = class {
16934
+ }, jD = class {
16335
16935
  map;
16336
16936
  constructor() {
16337
16937
  this.map = /* @__PURE__ */ new Map();
@@ -16349,43 +16949,43 @@ var gE = class extends JT {
16349
16949
  //#endregion
16350
16950
  //#region src/crypto/signatureCache/test.ts
16351
16951
  (async function() {
16352
- new CE();
16952
+ new jD();
16353
16953
  })();
16354
16954
  //#endregion
16355
16955
  //#region src/data/base32.ts
16356
- var wE = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", TE = {
16357
- verifyFormat: EE,
16358
- encodeNumber: DE,
16359
- decodeNumber: OE,
16360
- encodeToChar: kE,
16361
- decodeFromChar: AE,
16362
- CROCKFORD_CHARS: wE
16956
+ var MD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", ND = {
16957
+ verifyFormat: PD,
16958
+ encodeNumber: FD,
16959
+ decodeNumber: ID,
16960
+ encodeToChar: LD,
16961
+ decodeFromChar: RD,
16962
+ CROCKFORD_CHARS: MD
16363
16963
  };
16364
- function EE(e, t = e.length) {
16365
- return RegExp(`^(${[...wE].join("|")}){${t}}$`).test(e);
16964
+ function PD(e, t = e.length) {
16965
+ return RegExp(`^(${[...MD].join("|")}){${t}}$`).test(e);
16366
16966
  }
16367
- function DE(e, t) {
16967
+ function FD(e, t) {
16368
16968
  if (!Number.isInteger(t) || t < 1 || t > 10) throw Error("Invalid or unsafe size for base32 encoding");
16369
16969
  if (!Number.isInteger(e) || e < 0 || e >= 32 ** t) throw Error(`Invalid number for base32 encoding of size ${t}`);
16370
- return [...Array(t).keys()].map((t) => kE(e >> t * 5 & 31)).join("");
16970
+ return [...Array(t).keys()].map((t) => LD(e >> t * 5 & 31)).join("");
16371
16971
  }
16372
- function OE(e) {
16972
+ function ID(e) {
16373
16973
  if (e.length == 0 || e.length > 10) throw Error("Invalid base32 string length");
16374
- return [...e].reduceRight((e, t) => e << 5 | AE(t), 0);
16974
+ return [...e].reduceRight((e, t) => e << 5 | RD(t), 0);
16375
16975
  }
16376
- function kE(e) {
16377
- let t = wE[e];
16976
+ function LD(e) {
16977
+ let t = MD[e];
16378
16978
  if (t === void 0) throw Error("Invalid base32 value");
16379
16979
  return t;
16380
16980
  }
16381
- function AE(e) {
16382
- let t = wE.indexOf(e);
16981
+ function RD(e) {
16982
+ let t = MD.indexOf(e);
16383
16983
  if (e.length != 1 || t == -1) throw Error("Invalid base32 character");
16384
16984
  return t;
16385
16985
  }
16386
16986
  //#endregion
16387
16987
  //#region src/data/messageSerializer.ts
16388
- var jE = class {
16988
+ var zD = class {
16389
16989
  collection;
16390
16990
  constructor(e) {
16391
16991
  this.collection = e;
@@ -16394,7 +16994,7 @@ var jE = class {
16394
16994
  let n = this.collection[e], r = new Jv(n).serialize(t);
16395
16995
  return new Uint8Array([e, ...r]);
16396
16996
  }
16397
- }, ME = class {
16997
+ }, BD = class {
16398
16998
  collection;
16399
16999
  constructor(e) {
16400
17000
  this.collection = e;
@@ -16407,7 +17007,7 @@ var jE = class {
16407
17007
  object: new Yv(n).unserialize(e.slice(1))
16408
17008
  };
16409
17009
  }
16410
- }, NE = class {
17010
+ }, VD = class {
16411
17011
  schema;
16412
17012
  constructor(e) {
16413
17013
  this.schema = e;
@@ -16445,12 +17045,12 @@ var jE = class {
16445
17045
  }
16446
17046
  }
16447
17047
  }
16448
- }, PE = {
16449
- getAccountTypeFromIdentifier: FE,
16450
- getSpecialAccountTypeIdentifier: IE,
16451
- isAllowedTransfer: LE
17048
+ }, HD = {
17049
+ getAccountTypeFromIdentifier: UD,
17050
+ getSpecialAccountTypeIdentifier: WD,
17051
+ isAllowedTransfer: GD
16452
17052
  };
16453
- function FE(e) {
17053
+ function UD(e) {
16454
17054
  if (e.length != 32) throw Error("invalid account identifier");
16455
17055
  if (e.slice(0, -1).every((e) => e == 0)) {
16456
17056
  let t = e[31];
@@ -16459,17 +17059,17 @@ function FE(e) {
16459
17059
  }
16460
17060
  return 1;
16461
17061
  }
16462
- function IE(e) {
17062
+ function WD(e) {
16463
17063
  if (e == 1 || !Ur[e]) throw Error(`${e} is not a valid special account type`);
16464
17064
  let t = new Uint8Array(32);
16465
17065
  return t[31] = e, t;
16466
17066
  }
16467
- function LE(e, t) {
17067
+ function GD(e, t) {
16468
17068
  return Wr[e] >> t & 1;
16469
17069
  }
16470
17070
  //#endregion
16471
17071
  //#region src/economics/currencies/euros.ts
16472
- var RE = class e {
17072
+ var KD = class e {
16473
17073
  constructor(e) {
16474
17074
  this.amount = e;
16475
17075
  }
@@ -16482,19 +17082,19 @@ var RE = class e {
16482
17082
  toString() {
16483
17083
  return `${this.amount} €`;
16484
17084
  }
16485
- }, zE = class {
17085
+ }, qD = class {
16486
17086
  static defaultEurosToCMTSTokenConverter() {
16487
- return new BE();
17087
+ return new JD();
16488
17088
  }
16489
- }, BE = class e {
17089
+ }, JD = class e {
16490
17090
  static TOKENS_FOR_ONE_EUROS = 100;
16491
17091
  convert(t) {
16492
17092
  return hn.create(t.getAmount() * e.TOKENS_FOR_ONE_EUROS);
16493
17093
  }
16494
17094
  invert(t) {
16495
- return RE.create(t.getAmount() / e.TOKENS_FOR_ONE_EUROS);
17095
+ return KD.create(t.getAmount() / e.TOKENS_FOR_ONE_EUROS);
16496
17096
  }
16497
- }, VE = class e {
17097
+ }, YD = class e {
16498
17098
  constructor(e, t, n) {
16499
17099
  this.verified = e, this.appLedger = t, this.importedProofs = n;
16500
17100
  }
@@ -16516,16 +17116,16 @@ var RE = class e {
16516
17116
  async getRecordContainedInBlockAtHeight(e, t) {
16517
17117
  throw Error("Not implemented");
16518
17118
  }
16519
- }, HE = /* @__PURE__ */ function(e) {
17119
+ }, XD = /* @__PURE__ */ function(e) {
16520
17120
  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;
16521
- }({}), UE = 1, WE = class e extends mw {
17121
+ }({}), ZD = 1, QD = class e extends mw {
16522
17122
  constructor(e) {
16523
17123
  super(e);
16524
17124
  }
16525
17125
  static createEmptyProof(t) {
16526
17126
  return new e({
16527
17127
  type: "accountProof",
16528
- info: mw.getDefaultInfo(UE, t),
17128
+ info: mw.getDefaultInfo(ZD, t),
16529
17129
  proof: { accounts: [] }
16530
17130
  });
16531
17131
  }
@@ -16538,14 +17138,14 @@ var RE = class e {
16538
17138
  getAccounts() {
16539
17139
  return this.wrapper.proof.accounts;
16540
17140
  }
16541
- }, GE = 1, KE = class e extends mw {
17141
+ }, $D = 1, eO = class e extends mw {
16542
17142
  constructor(e) {
16543
17143
  super(e);
16544
17144
  }
16545
17145
  static createEmptyProof(t) {
16546
17146
  return new e({
16547
17147
  type: "microblockProof",
16548
- info: mw.getDefaultInfo(GE, t),
17148
+ info: mw.getDefaultInfo($D, t),
16549
17149
  proof: { microblocks: [] }
16550
17150
  });
16551
17151
  }
@@ -16558,15 +17158,15 @@ var RE = class e {
16558
17158
  getMicroblocks() {
16559
17159
  return this.wrapper.proof.microblocks;
16560
17160
  }
16561
- }, qE = class {
17161
+ }, tO = class {
16562
17162
  static importProof(e) {
16563
17163
  switch (R(sw, e), e.type) {
16564
- case "accountProof": return new WE(e);
17164
+ case "accountProof": return new QD(e);
16565
17165
  case "appLedgerProof": return new gw(e);
16566
- case "microblockProof": return new KE(e);
17166
+ case "microblockProof": return new eO(e);
16567
17167
  }
16568
17168
  }
16569
- }, JE = class e {
17169
+ }, nO = class e {
16570
17170
  log = k.getAbstractProviderLogger(e.name);
16571
17171
  async loadValidatorNodeVirtualBlockchain(e) {
16572
17172
  let t = new CC(this);
@@ -16635,7 +17235,7 @@ var RE = class e {
16635
17235
  if (r.type !== e.getType()) throw Error("Invalid blockchain type loaded");
16636
17236
  e.setIdentifier(n), e.setHeight(r.height), e.setExpirationDay(r.expirationDay), e.setInternalState($S.createInternalStateFromObject(e.getType(), r.internalState));
16637
17237
  }
16638
- }, YE = class e {
17238
+ }, rO = class e {
16639
17239
  expirationDate;
16640
17240
  endless;
16641
17241
  constructor(e, t) {
@@ -16657,7 +17257,7 @@ var RE = class e {
16657
17257
  getExpirationDate() {
16658
17258
  return this.expirationDate.unwrap();
16659
17259
  }
16660
- }, XE = class e {
17260
+ }, iO = class e {
16661
17261
  static logger = k.getMemoryProviderLogger();
16662
17262
  static instance = new e();
16663
17263
  static getInstance() {
@@ -16745,7 +17345,7 @@ var RE = class e {
16745
17345
  let i = A.binaryToHexa(n), a = A.binaryToHexa(r), o = t.get(i);
16746
17346
  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);
16747
17347
  }
16748
- }, ZE = /* @__PURE__ */ F({
17348
+ }, aO = /* @__PURE__ */ F({
16749
17349
  jsonrpc: /* @__PURE__ */ N("2.0"),
16750
17350
  id: /* @__PURE__ */ P(),
16751
17351
  result: /* @__PURE__ */ F({
@@ -16788,101 +17388,101 @@ var RE = class e {
16788
17388
  })
16789
17389
  }), $ = /* @__PURE__ */ function(e) {
16790
17390
  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;
16791
- }({}), QE = /* @__PURE__ */ F({ requestType: /* @__PURE__ */ N($.GET_CHAIN_INFORMATION) }), $E = /* @__PURE__ */ F({
17391
+ }({}), oO = /* @__PURE__ */ F({ requestType: /* @__PURE__ */ N($.GET_CHAIN_INFORMATION) }), sO = /* @__PURE__ */ F({
16792
17392
  requestType: /* @__PURE__ */ N($.GET_BLOCK_INFORMATION),
16793
17393
  height: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0))
16794
- }), eD = /* @__PURE__ */ F({
17394
+ }), cO = /* @__PURE__ */ F({
16795
17395
  requestType: /* @__PURE__ */ N($.GET_BLOCK_CONTENT),
16796
17396
  height: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0))
16797
- }), tD = /* @__PURE__ */ F({
17397
+ }), lO = /* @__PURE__ */ F({
16798
17398
  requestType: /* @__PURE__ */ N($.GET_VIRTUAL_BLOCKCHAIN_STATE),
16799
17399
  virtualBlockchainId: Rm()
16800
- }), nD = /* @__PURE__ */ F({
17400
+ }), uO = /* @__PURE__ */ F({
16801
17401
  requestType: /* @__PURE__ */ N($.GET_VIRTUAL_BLOCKCHAIN_UPDATE),
16802
17402
  virtualBlockchainId: Rm(),
16803
17403
  knownStateHash: Rm()
16804
- }), rD = /* @__PURE__ */ F({
17404
+ }), dO = /* @__PURE__ */ F({
16805
17405
  requestType: /* @__PURE__ */ N($.GET_MICROBLOCK_INFORMATION),
16806
17406
  hash: Rm()
16807
- }), iD = /* @__PURE__ */ F({
17407
+ }), fO = /* @__PURE__ */ F({
16808
17408
  requestType: /* @__PURE__ */ N($.AWAIT_MICROBLOCK_ANCHORING),
16809
17409
  hash: Rm()
16810
- }), aD = /* @__PURE__ */ F({
17410
+ }), pO = /* @__PURE__ */ F({
16811
17411
  requestType: /* @__PURE__ */ N($.GET_MICROBLOCK_BODYS),
16812
17412
  hashes: /* @__PURE__ */ M(Rm())
16813
- }), oD = /* @__PURE__ */ F({
17413
+ }), mO = /* @__PURE__ */ F({
16814
17414
  requestType: /* @__PURE__ */ N($.GET_ACCOUNT_STATE),
16815
17415
  accountHash: Rm()
16816
- }), sD = /* @__PURE__ */ F({
17416
+ }), hO = /* @__PURE__ */ F({
16817
17417
  requestType: /* @__PURE__ */ N($.GET_ACCOUNT_HISTORY),
16818
17418
  accountHash: Rm(),
16819
17419
  lastHistoryHash: Rm(),
16820
17420
  maxRecords: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(1))
16821
- }), cD = /* @__PURE__ */ F({
17421
+ }), gO = /* @__PURE__ */ F({
16822
17422
  requestType: /* @__PURE__ */ N($.GET_ACCOUNT_BY_PUBLIC_KEY_HASH),
16823
17423
  publicKeyHash: Rm()
16824
- }), lD = /* @__PURE__ */ F({
17424
+ }), _O = /* @__PURE__ */ F({
16825
17425
  requestType: /* @__PURE__ */ N($.GET_VALIDATOR_NODE_BY_ADDRESS),
16826
17426
  address: B()
16827
- }), uD = /* @__PURE__ */ F({ requestType: /* @__PURE__ */ N($.GET_GENESIS_SNAPSHOT) }), dD = /* @__PURE__ */ F({
17427
+ }), vO = /* @__PURE__ */ F({ requestType: /* @__PURE__ */ N($.GET_GENESIS_SNAPSHOT) }), yO = /* @__PURE__ */ F({
16828
17428
  requestType: /* @__PURE__ */ N($.GET_RAW_BLOCK_CONTENT),
16829
17429
  height: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16830
17430
  partIndex: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0))
16831
- }), fD = /* @__PURE__ */ F({
17431
+ }), bO = /* @__PURE__ */ F({
16832
17432
  requestType: /* @__PURE__ */ N($.GET_BLOCK_MODIFIED_ACCOUNTS),
16833
17433
  height: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0))
16834
- }), pD = /* @__PURE__ */ F({
17434
+ }), xO = /* @__PURE__ */ F({
16835
17435
  requestType: /* @__PURE__ */ N($.GET_ACCOUNT_UPDATES),
16836
17436
  list: /* @__PURE__ */ M(yg)
16837
- }), mD = /* @__PURE__ */ F({
17437
+ }), SO = /* @__PURE__ */ F({
16838
17438
  requestType: /* @__PURE__ */ N($.GET_MICROBLOCK_INFORMATION_BY_HEIGHT),
16839
17439
  virtualBlockchainId: Rm(),
16840
17440
  height: /* @__PURE__ */ P()
16841
- }), hD = /* @__PURE__ */ F({
17441
+ }), CO = /* @__PURE__ */ F({
16842
17442
  requestType: /* @__PURE__ */ N($.GET_SERIALIZED_MICROBLOCK_BY_HEIGHT),
16843
17443
  virtualBlockchainId: Rm(),
16844
17444
  height: /* @__PURE__ */ P()
16845
- }), gD = /* @__PURE__ */ F({
17445
+ }), wO = /* @__PURE__ */ F({
16846
17446
  requestType: /* @__PURE__ */ N($.GET_MICROBLOCK_PROOF),
16847
17447
  hash: Rm()
16848
- }), _D = /* @__PURE__ */ F({
17448
+ }), TO = /* @__PURE__ */ F({
16849
17449
  requestType: /* @__PURE__ */ N($.GET_ACCOUNT_PROOF),
16850
17450
  accountId: Rm()
16851
- }), vD = /* @__PURE__ */ dm("requestType", [
16852
- QE,
16853
- $E,
16854
- eD,
16855
- tD,
16856
- nD,
16857
- rD,
16858
- iD,
16859
- aD,
16860
- oD,
16861
- sD,
16862
- cD,
16863
- lD,
16864
- uD,
16865
- dD,
16866
- fD,
16867
- pD,
16868
- mD,
16869
- hD,
16870
- gD,
16871
- _D
16872
- ]), yD = /* @__PURE__ */ function(e) {
17451
+ }), EO = /* @__PURE__ */ dm("requestType", [
17452
+ oO,
17453
+ sO,
17454
+ cO,
17455
+ lO,
17456
+ uO,
17457
+ dO,
17458
+ fO,
17459
+ pO,
17460
+ mO,
17461
+ hO,
17462
+ gO,
17463
+ _O,
17464
+ vO,
17465
+ yO,
17466
+ bO,
17467
+ xO,
17468
+ SO,
17469
+ CO,
17470
+ wO,
17471
+ TO
17472
+ ]), DO = /* @__PURE__ */ function(e) {
16873
17473
  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;
16874
- }({}), bD = /* @__PURE__ */ F({
16875
- responseType: /* @__PURE__ */ N(yD.ERROR),
17474
+ }({}), OO = /* @__PURE__ */ F({
17475
+ responseType: /* @__PURE__ */ N(DO.ERROR),
16876
17476
  error: /* @__PURE__ */ L()
16877
- }), xD = /* @__PURE__ */ F({
16878
- responseType: /* @__PURE__ */ N(yD.CHAIN_INFORMATION),
17477
+ }), kO = /* @__PURE__ */ F({
17478
+ responseType: /* @__PURE__ */ N(DO.CHAIN_INFORMATION),
16879
17479
  height: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16880
17480
  lastBlockTimestamp: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16881
17481
  microblockCount: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16882
17482
  objectCounts: /* @__PURE__ */ M(/* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0))),
16883
17483
  protocolVirtualBlockchainId: B()
16884
- }), SD = /* @__PURE__ */ F({
16885
- responseType: /* @__PURE__ */ N(yD.BLOCK_INFORMATION),
17484
+ }), AO = /* @__PURE__ */ F({
17485
+ responseType: /* @__PURE__ */ N(DO.BLOCK_INFORMATION),
16886
17486
  hash: Rm(),
16887
17487
  timestamp: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16888
17488
  proposerAddress: B(),
@@ -16895,109 +17495,109 @@ var RE = class e {
16895
17495
  }),
16896
17496
  size: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16897
17497
  microblockCount: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0))
16898
- }), CD = /* @__PURE__ */ F({
17498
+ }), jO = /* @__PURE__ */ F({
16899
17499
  hash: Rm(),
16900
17500
  vbId: Rm(),
16901
17501
  vbType: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0), /* @__PURE__ */ Hp(255)),
16902
17502
  height: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16903
17503
  size: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16904
17504
  sectionCount: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0))
16905
- }), wD = /* @__PURE__ */ F({
16906
- responseType: /* @__PURE__ */ N(yD.BLOCK_CONTENT),
16907
- microblocks: /* @__PURE__ */ M(CD)
16908
- }), TD = /* @__PURE__ */ F({
16909
- responseType: /* @__PURE__ */ N(yD.VIRTUAL_BLOCKCHAIN_STATE),
17505
+ }), MO = /* @__PURE__ */ F({
17506
+ responseType: /* @__PURE__ */ N(DO.BLOCK_CONTENT),
17507
+ microblocks: /* @__PURE__ */ M(jO)
17508
+ }), NO = /* @__PURE__ */ F({
17509
+ responseType: /* @__PURE__ */ N(DO.VIRTUAL_BLOCKCHAIN_STATE),
16910
17510
  serializedVirtualBlockchainState: B()
16911
- }), ED = /* @__PURE__ */ F({
16912
- responseType: /* @__PURE__ */ N(yD.VIRTUAL_BLOCKCHAIN_UPDATE),
17511
+ }), PO = /* @__PURE__ */ F({
17512
+ responseType: /* @__PURE__ */ N(DO.VIRTUAL_BLOCKCHAIN_UPDATE),
16913
17513
  exists: /* @__PURE__ */ Yp(),
16914
17514
  changed: /* @__PURE__ */ Yp(),
16915
17515
  serializedVirtualBlockchainState: B()
16916
- }), DD = /* @__PURE__ */ F({
16917
- responseType: /* @__PURE__ */ N(yD.MICROBLOCK_INFORMATION),
17516
+ }), FO = /* @__PURE__ */ F({
17517
+ responseType: /* @__PURE__ */ N(DO.MICROBLOCK_INFORMATION),
16918
17518
  ...$h.entries
16919
- }), OD = /* @__PURE__ */ F({
16920
- responseType: /* @__PURE__ */ N(yD.MICROBLOCK_ANCHORING),
17519
+ }), IO = /* @__PURE__ */ F({
17520
+ responseType: /* @__PURE__ */ N(DO.MICROBLOCK_ANCHORING),
16921
17521
  ...$h.entries
16922
- }), kD = /* @__PURE__ */ F({
17522
+ }), LO = /* @__PURE__ */ F({
16923
17523
  microblockHash: Rm(),
16924
17524
  microblockBody: Nh
16925
- }), AD = /* @__PURE__ */ F({
16926
- responseType: /* @__PURE__ */ N(yD.MICROBLOCK_BODYS),
16927
- list: /* @__PURE__ */ M(kD)
16928
- }), jD = /* @__PURE__ */ F({
16929
- responseType: /* @__PURE__ */ N(yD.ACCOUNT_STATE),
17525
+ }), RO = /* @__PURE__ */ F({
17526
+ responseType: /* @__PURE__ */ N(DO.MICROBLOCK_BODYS),
17527
+ list: /* @__PURE__ */ M(LO)
17528
+ }), zO = /* @__PURE__ */ F({
17529
+ responseType: /* @__PURE__ */ N(DO.ACCOUNT_STATE),
16930
17530
  height: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16931
17531
  balance: /* @__PURE__ */ z(/* @__PURE__ */ P(), /* @__PURE__ */ Bp(), /* @__PURE__ */ Wp(0)),
16932
17532
  lastHistoryHash: Rm(),
16933
17533
  locks: /* @__PURE__ */ M(pg)
16934
- }), MD = /* @__PURE__ */ F({
16935
- responseType: /* @__PURE__ */ N(yD.ACCOUNT_HISTORY),
17534
+ }), BO = /* @__PURE__ */ F({
17535
+ responseType: /* @__PURE__ */ N(DO.ACCOUNT_HISTORY),
16936
17536
  list: vg
16937
- }), ND = /* @__PURE__ */ F({
16938
- responseType: /* @__PURE__ */ N(yD.ACCOUNT_BY_PUBLIC_KEY_HASH),
17537
+ }), VO = /* @__PURE__ */ F({
17538
+ responseType: /* @__PURE__ */ N(DO.ACCOUNT_BY_PUBLIC_KEY_HASH),
16939
17539
  accountHash: Rm()
16940
- }), PD = /* @__PURE__ */ F({
16941
- responseType: /* @__PURE__ */ N(yD.VALIDATOR_NODE_BY_ADDRESS),
17540
+ }), HO = /* @__PURE__ */ F({
17541
+ responseType: /* @__PURE__ */ N(DO.VALIDATOR_NODE_BY_ADDRESS),
16942
17542
  validatorNodeHash: Rm()
16943
- }), FD = /* @__PURE__ */ F({
16944
- responseType: /* @__PURE__ */ N(yD.GENESIS_SNAPSHOT),
17543
+ }), UO = /* @__PURE__ */ F({
17544
+ responseType: /* @__PURE__ */ N(DO.GENESIS_SNAPSHOT),
16945
17545
  base64EncodedChunks: /* @__PURE__ */ M(/* @__PURE__ */ L())
16946
- }), ID = /* @__PURE__ */ F({
16947
- responseType: /* @__PURE__ */ N(yD.RAW_BLOCK_CONTENT),
17546
+ }), WO = /* @__PURE__ */ F({
17547
+ responseType: /* @__PURE__ */ N(DO.RAW_BLOCK_CONTENT),
16948
17548
  partIndex: /* @__PURE__ */ P(),
16949
17549
  numberOfParts: /* @__PURE__ */ P(),
16950
17550
  serializedMicroblocks: /* @__PURE__ */ M(B())
16951
- }), LD = /* @__PURE__ */ F({
16952
- responseType: /* @__PURE__ */ N(yD.BLOCK_MODIFIED_ACCOUNTS),
17551
+ }), GO = /* @__PURE__ */ F({
17552
+ responseType: /* @__PURE__ */ N(DO.BLOCK_MODIFIED_ACCOUNTS),
16953
17553
  modifiedAccounts: /* @__PURE__ */ M(B())
16954
- }), RD = /* @__PURE__ */ F({
16955
- responseType: /* @__PURE__ */ N(yD.ACCOUNT_UPDATES),
17554
+ }), KO = /* @__PURE__ */ F({
17555
+ responseType: /* @__PURE__ */ N(DO.ACCOUNT_UPDATES),
16956
17556
  list: /* @__PURE__ */ M(bg)
16957
- }), zD = /* @__PURE__ */ F({
16958
- responseType: /* @__PURE__ */ N(yD.SERIALIAZED_MICROBLOCK_BY_HEIGHT),
17557
+ }), qO = /* @__PURE__ */ F({
17558
+ responseType: /* @__PURE__ */ N(DO.SERIALIAZED_MICROBLOCK_BY_HEIGHT),
16959
17559
  serializedContent: B()
16960
- }), BD = /* @__PURE__ */ F({
16961
- responseType: /* @__PURE__ */ N(yD.MICROBLOCK_PROOF),
17560
+ }), JO = /* @__PURE__ */ F({
17561
+ responseType: /* @__PURE__ */ N(DO.MICROBLOCK_PROOF),
16962
17562
  proof: YC
16963
- }), VD = /* @__PURE__ */ F({
16964
- responseType: /* @__PURE__ */ N(yD.ACCOUNT_PROOF),
17563
+ }), YO = /* @__PURE__ */ F({
17564
+ responseType: /* @__PURE__ */ N(DO.ACCOUNT_PROOF),
16965
17565
  proof: KC
16966
- }), HD = /* @__PURE__ */ dm("responseType", [
16967
- bD,
16968
- xD,
16969
- SD,
16970
- wD,
16971
- ID,
16972
- TD,
16973
- ED,
16974
- DD,
16975
- OD,
16976
- AD,
16977
- jD,
16978
- MD,
16979
- ND,
16980
- PD,
16981
- FD,
16982
- LD,
16983
- RD,
16984
- zD,
16985
- BD,
16986
- VD
16987
- ]), UD = class {
17566
+ }), XO = /* @__PURE__ */ dm("responseType", [
17567
+ OO,
17568
+ kO,
17569
+ AO,
17570
+ MO,
17571
+ WO,
17572
+ NO,
17573
+ PO,
17574
+ FO,
17575
+ IO,
17576
+ RO,
17577
+ zO,
17578
+ BO,
17579
+ VO,
17580
+ HO,
17581
+ UO,
17582
+ GO,
17583
+ KO,
17584
+ qO,
17585
+ JO,
17586
+ YO
17587
+ ]), ZO = class {
16988
17588
  static encodeAbciRequest(e) {
16989
- return Rx(R(vD, e));
17589
+ return Rx(R(EO, e));
16990
17590
  }
16991
17591
  static decodeAbciRequest(e) {
16992
- return R(vD, sx(e));
17592
+ return R(EO, sx(e));
16993
17593
  }
16994
17594
  static encodeAbciResponse(e) {
16995
- return Rx(R(HD, e));
17595
+ return Rx(R(XO, e));
16996
17596
  }
16997
17597
  static decodeAbciResponse(e) {
16998
- return R(HD, sx(e));
17598
+ return R(XO, sx(e));
16999
17599
  }
17000
- }, WD = class e {
17600
+ }, QO = class e {
17001
17601
  static staticLogger = k.getNetworkProviderLogger();
17002
17602
  logger = e.staticLogger;
17003
17603
  requestLogger = e.staticLogger.getChild("request");
@@ -17034,7 +17634,7 @@ var RE = class e {
17034
17634
  }));
17035
17635
  }
17036
17636
  async getChainInformation() {
17037
- return this.requestLogger.info("Requesting chain information"), R(xD, await this.abciQuery({ requestType: $.GET_CHAIN_INFORMATION }));
17637
+ return this.requestLogger.info("Requesting chain information"), R(kO, await this.abciQuery({ requestType: $.GET_CHAIN_INFORMATION }));
17038
17638
  }
17039
17639
  async getBlockInformation(e) {
17040
17640
  this.requestLogger.info(`Requesting block information at height: ${e}`);
@@ -17042,11 +17642,11 @@ var RE = class e {
17042
17642
  requestType: $.GET_BLOCK_INFORMATION,
17043
17643
  height: e
17044
17644
  });
17045
- return this.responseLogger.info(`Received block information at height ${e}`), R(SD, t);
17645
+ return this.responseLogger.info(`Received block information at height ${e}`), R(AO, t);
17046
17646
  }
17047
17647
  async getBlockContent(e) {
17048
17648
  this.requestLogger.info(`Requesting block content for height ${e}`);
17049
- let t = R(wD, await this.abciQuery({
17649
+ let t = R(MO, await this.abciQuery({
17050
17650
  requestType: $.GET_BLOCK_CONTENT,
17051
17651
  height: e
17052
17652
  }));
@@ -17058,11 +17658,11 @@ var RE = class e {
17058
17658
  requestType: $.GET_VALIDATOR_NODE_BY_ADDRESS,
17059
17659
  address: e
17060
17660
  });
17061
- return this.responseLogger.info("Receiving validator node id {id}", () => ({ id: A.binaryToHexa(e) })), R(PD, t);
17661
+ return this.responseLogger.info("Receiving validator node id {id}", () => ({ id: A.binaryToHexa(e) })), R(HO, t);
17062
17662
  }
17063
17663
  async getAccountState(e) {
17064
17664
  this.requestLogger.info("Requesting account state for account hash {accountHash}", () => ({ accountHash: A.binaryToHexa(e) }));
17065
- let t = R(jD, await this.abciQuery({
17665
+ let t = R(zO, await this.abciQuery({
17066
17666
  requestType: $.GET_ACCOUNT_STATE,
17067
17667
  accountHash: e
17068
17668
  }));
@@ -17073,7 +17673,7 @@ var RE = class e {
17073
17673
  }
17074
17674
  async getAccountHistory(e, t, n) {
17075
17675
  this.requestLogger.info(`Requesting account history for account hash: ${A.binaryToHexa(e)}, lastHistoryHash: ${A.binaryToHexa(t)}, maxRecords: ${n}`);
17076
- let r = R(MD, await this.abciQuery({
17676
+ let r = R(BO, await this.abciQuery({
17077
17677
  requestType: $.GET_ACCOUNT_HISTORY,
17078
17678
  accountHash: e,
17079
17679
  lastHistoryHash: t,
@@ -17083,7 +17683,7 @@ var RE = class e {
17083
17683
  }
17084
17684
  async getAccountByPublicKeyHash(e) {
17085
17685
  this.requestLogger.info(`Requesting account hash by public key hash: ${A.binaryToHexa(e)}`);
17086
- let t = R(ND, await this.abciQuery({
17686
+ let t = R(VO, await this.abciQuery({
17087
17687
  requestType: $.GET_ACCOUNT_BY_PUBLIC_KEY_HASH,
17088
17688
  publicKeyHash: e
17089
17689
  }));
@@ -17091,7 +17691,7 @@ var RE = class e {
17091
17691
  }
17092
17692
  async getMicroblockInformation(e) {
17093
17693
  this.requestLogger.info(`Requesting microblock information for hash ${A.binaryToHexa(e)}`);
17094
- let t = R(DD, await this.abciQuery({
17694
+ let t = R(FO, await this.abciQuery({
17095
17695
  requestType: $.GET_MICROBLOCK_INFORMATION,
17096
17696
  hash: e
17097
17697
  }));
@@ -17102,7 +17702,7 @@ var RE = class e {
17102
17702
  }
17103
17703
  async getSerializedMicroblockByHeight(e, t) {
17104
17704
  this.requestLogger.info(`Requesting microblock for VB ${A.binaryToHexa(e)} at height ${t}`);
17105
- let n = R(zD, await this.abciQuery({
17705
+ let n = R(qO, await this.abciQuery({
17106
17706
  requestType: $.GET_SERIALIZED_MICROBLOCK_BY_HEIGHT,
17107
17707
  virtualBlockchainId: e,
17108
17708
  height: t
@@ -17111,7 +17711,7 @@ var RE = class e {
17111
17711
  }
17112
17712
  async getMicroblockBodys(e) {
17113
17713
  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(", ") }));
17114
- let t = R(AD, await this.abciQuery({
17714
+ let t = R(RO, await this.abciQuery({
17115
17715
  requestType: $.GET_MICROBLOCK_BODYS,
17116
17716
  hashes: e
17117
17717
  }));
@@ -17124,11 +17724,11 @@ var RE = class e {
17124
17724
  virtualBlockchainId: e,
17125
17725
  knownStateHash: t
17126
17726
  });
17127
- return this.responseLogger.info("Receiving virtual blockchain update"), R(ED, n);
17727
+ return this.responseLogger.info("Receiving virtual blockchain update"), R(PO, n);
17128
17728
  }
17129
17729
  async getSerializedVirtualBlockchainState(e) {
17130
17730
  this.requestLogger.info("Requesting virtual blockchain state for vb id {vbId}", () => ({ vbId: A.binaryToHexa(e) }));
17131
- let t = R(TD, await this.abciQuery({
17731
+ let t = R(NO, await this.abciQuery({
17132
17732
  requestType: $.GET_VIRTUAL_BLOCKCHAIN_STATE,
17133
17733
  virtualBlockchainId: e
17134
17734
  }));
@@ -17169,7 +17769,7 @@ var RE = class e {
17169
17769
  async abciQuery(t) {
17170
17770
  if (t === void 0) throw new i("Cannot send an undefined request");
17171
17771
  this.logger.debug("Sending ABCI request:", t);
17172
- let n = UD.encodeAbciRequest(t);
17772
+ let n = ZO.encodeAbciRequest(t);
17173
17773
  return await e.sendABCIQueryToNodeServer(this.nodeUrl, n);
17174
17774
  }
17175
17775
  static async sendABCIQueryToNodeServer(t, n) {
@@ -17178,8 +17778,8 @@ var RE = class e {
17178
17778
  r.pathname = "abci_query", r.searchParams.append("path", "\"/carmentis\""), r.searchParams.append("data", "0x" + A.binaryToHexa(n));
17179
17779
  let i = await e.query(r), a = i?.result?.response?.value;
17180
17780
  if (typeof a != "string") throw this.staticLogger.error("Invalid response type detected:", i), this.staticLogger.error("rawBase64EncodedResponse: ", a), new h("Invalid response detected");
17181
- let o = Cg.decodeBinary(a), s = UD.decodeAbciResponse(o);
17182
- if (s.responseType == yD.ERROR) {
17781
+ let o = Cg.decodeBinary(a), s = ZO.decodeAbciResponse(o);
17782
+ if (s.responseType == DO.ERROR) {
17183
17783
  let t = s.error;
17184
17784
  throw e.staticLogger.error("sendABCIQueryToNodeServer <- {*}", () => ({ error: t })), new h(`Remote error: ${t}`);
17185
17785
  }
@@ -17189,16 +17789,16 @@ var RE = class e {
17189
17789
  e.staticLogger.debug(`sendStatusQueryToNodeServer -> nodeUrl: ${t}`);
17190
17790
  let n = new URL(t);
17191
17791
  n.pathname = "status";
17192
- let r = /* @__PURE__ */ fm(ZE, await e.query(n));
17792
+ let r = /* @__PURE__ */ fm(aO, await e.query(n));
17193
17793
  if (r.success) return e.staticLogger.debug("sendStatusQueryToNodeServer <- received valid status response"), r.output;
17194
17794
  throw e.staticLogger.debug(`sendStatusQueryToNodeServer <- parsing error: ${r.issues}`), new h(r.issues.map((e) => e.message).join(", "));
17195
17795
  }
17196
17796
  async getGenesisSnapshot() {
17197
17797
  this.requestLogger.info("Requesting genesis snapshot");
17198
- let e = R(FD, await this.abciQuery({ requestType: $.GET_GENESIS_SNAPSHOT }));
17798
+ let e = R(UO, await this.abciQuery({ requestType: $.GET_GENESIS_SNAPSHOT }));
17199
17799
  return this.responseLogger.info("Received genesis snapshots containing {chunksNumber} chunks", () => ({ chunksNumber: e.base64EncodedChunks.length })), e;
17200
17800
  }
17201
- }, GD = class e {
17801
+ }, $O = class e {
17202
17802
  static logger = k.getMemoryProviderLogger();
17203
17803
  static instance = new e();
17204
17804
  static getInstance() {
@@ -17238,7 +17838,7 @@ var RE = class e {
17238
17838
  async setMicroblockHeader(e, t) {}
17239
17839
  async setMicroblockBody(e, t) {}
17240
17840
  async setSerializedVirtualBlockchainState(e, t) {}
17241
- }, KD = class {
17841
+ }, ek = class {
17242
17842
  constructor() {}
17243
17843
  getChainId() {
17244
17844
  throw Error("Method not implemented.");
@@ -17294,11 +17894,11 @@ var RE = class e {
17294
17894
  getGenesisSnapshot() {
17295
17895
  throw Error("Method not implemented.");
17296
17896
  }
17297
- }, qD = class {
17897
+ }, tk = class {
17298
17898
  static convertRawPublicKeyIntoAddress(e) {
17299
17899
  return Qc.sha256AsBinary(e).slice(0, 20);
17300
17900
  }
17301
- }, JD = class e extends JE {
17901
+ }, nk = class e extends nO {
17302
17902
  logger = k.getProviderLogger();
17303
17903
  externalProvider;
17304
17904
  internalProvider;
@@ -17456,30 +18056,30 @@ var RE = class e {
17456
18056
  return await this.externalProvider.sendSerializedMicroblock(t), e.getHash();
17457
18057
  }
17458
18058
  async getNodeStatus(e) {
17459
- return WD.sendStatusQueryToNodeServer(e);
18059
+ return QO.sendStatusQueryToNodeServer(e);
17460
18060
  }
17461
18061
  async getValidatorNodeIdByAddress(e) {
17462
18062
  return (await this.externalProvider.getValidatorNodeByAddress(e.toBytes())).validatorNodeHash;
17463
18063
  }
17464
18064
  async getValidatorNodeIdByCometbftPublicKey(e) {
17465
- let t = Og.bytesToBase64Encoder(), n = qD.convertRawPublicKeyIntoAddress(t.decode(e));
18065
+ let t = Og.bytesToBase64Encoder(), n = tk.convertRawPublicKeyIntoAddress(t.decode(e));
17466
18066
  return this.getValidatorNodeIdByAddress(KS.from(n));
17467
18067
  }
17468
- }, YD = class {
18068
+ }, rk = class {
17469
18069
  static createInMemoryProvider() {
17470
- return new JD(new XE(), new KD());
18070
+ return new nk(new iO(), new ek());
17471
18071
  }
17472
18072
  static createInMemoryProviderWithExternalProvider(e) {
17473
- return new JD(new XE(), WD.createFromUrl(e));
18073
+ return new nk(new iO(), QO.createFromUrl(e));
17474
18074
  }
17475
18075
  static createNullInMemoryProviderWithExternalProvider(e) {
17476
- return new JD(new GD(), WD.createFromUrl(e));
18076
+ return new nk(new $O(), QO.createFromUrl(e));
17477
18077
  }
17478
- }, XD = class extends WD {
18078
+ }, ik = class extends QO {
17479
18079
  constructor(e) {
17480
18080
  super(e);
17481
18081
  }
17482
- }, ZD = /* @__PURE__ */ F({
18082
+ }, ak = /* @__PURE__ */ F({
17483
18083
  jsonrpc: /* @__PURE__ */ N("2.0"),
17484
18084
  id: /* @__PURE__ */ P(),
17485
18085
  result: /* @__PURE__ */ F({
@@ -17548,7 +18148,7 @@ var RE = class e {
17548
18148
  }),
17549
18149
  events: /* @__PURE__ */ F({ "tm.event": /* @__PURE__ */ M(/* @__PURE__ */ L()) })
17550
18150
  })
17551
- }), QD = class e {
18151
+ }), ok = class e {
17552
18152
  callbacks = [];
17553
18153
  constructor(e) {
17554
18154
  this.ws = e, e.onmessage = this.onMessage.bind(this), e.onopen = this.onConnect.bind(this), e.onclose = this.onDisconnect.bind(this);
@@ -17568,7 +18168,7 @@ var RE = class e {
17568
18168
  }));
17569
18169
  }
17570
18170
  onMessage(e) {
17571
- let t = /* @__PURE__ */ fm(ZD, JSON.parse(e.data));
18171
+ let t = /* @__PURE__ */ fm(ak, JSON.parse(e.data));
17572
18172
  if (t.success) {
17573
18173
  let e = t.output;
17574
18174
  this.onNewBlock(e);
@@ -17578,9 +18178,9 @@ var RE = class e {
17578
18178
  for (let t of this.callbacks) t.onNewBlock && t.onNewBlock(e);
17579
18179
  }
17580
18180
  onDisconnect(e) {}
17581
- }, $D = /* @__PURE__ */ F({ x509Base64Der: /* @__PURE__ */ L() }), eO = class e {
18181
+ }, sk = /* @__PURE__ */ F({ x509Base64Der: /* @__PURE__ */ L() }), ck = class e {
17582
18182
  static fromObject(t) {
17583
- return new e(R($D, t));
18183
+ return new e(R(sk, t));
17584
18184
  }
17585
18185
  constructor(e) {
17586
18186
  this.certificateTag = e;
@@ -17588,7 +18188,7 @@ var RE = class e {
17588
18188
  getX509Base64Der() {
17589
18189
  return this.certificateTag.x509Base64Der;
17590
18190
  }
17591
- }, tO = class {
18191
+ }, lk = class {
17592
18192
  constructor(e) {
17593
18193
  this.transaction = e;
17594
18194
  }
@@ -17656,7 +18256,7 @@ var RE = class e {
17656
18256
  isReceivedPayment() {
17657
18257
  return this.transaction.type == 9;
17658
18258
  }
17659
- }, nO = class {
18259
+ }, uk = class {
17660
18260
  transactionByHeight;
17661
18261
  constructor() {
17662
18262
  this.transactionByHeight = /* @__PURE__ */ new Map();
@@ -17671,7 +18271,7 @@ var RE = class e {
17671
18271
  return Array.from(this.transactionByHeight.keys());
17672
18272
  }
17673
18273
  getAllTransactions() {
17674
- return Array.from(this.transactionByHeight.values()).map((e) => new tO(e));
18274
+ return Array.from(this.transactionByHeight.values()).map((e) => new lk(e));
17675
18275
  }
17676
18276
  getNumberOfTransactions() {
17677
18277
  return this.transactionByHeight.size;
@@ -17682,105 +18282,105 @@ var RE = class e {
17682
18282
  getTransactionAtHeight(e) {
17683
18283
  let t = this.transactionByHeight.get(e);
17684
18284
  if (t === void 0) throw new i(`No transaction found at height ${e}`);
17685
- return new tO(t);
18285
+ return new lk(t);
17686
18286
  }
17687
- }, rO = {
18287
+ }, dk = {
17688
18288
  [H.PROTOCOL_VIRTUAL_BLOCKCHAIN]: "PROTOCOL_VIRTUAL_BLOCKCHAIN",
17689
18289
  [H.NODE_VIRTUAL_BLOCKCHAIN]: "NODE_VIRTUAL_BLOCKCHAIN",
17690
18290
  [H.APPLICATION_VIRTUAL_BLOCKCHAIN]: "APPLICATION_VIRTUAL_BLOCKCHAIN",
17691
18291
  [H.ORGANIZATION_VIRTUAL_BLOCKCHAIN]: "ORGANIZATION_VIRTUAL_BLOCKCHAIN",
17692
18292
  [H.APP_LEDGER_VIRTUAL_BLOCKCHAIN]: "APP_LEDGER_VIRTUAL_BLOCKCHAIN",
17693
18293
  [H.ACCOUNT_VIRTUAL_BLOCKCHAIN]: "ACCOUNT_VIRTUAL_BLOCKCHAIN"
17694
- }, iO = class {
18294
+ }, fk = class {
17695
18295
  static getVirtualBlockchainLabelFromVirtualBlockchainType(e) {
17696
- return rO[e];
18296
+ return dk[e];
17697
18297
  }
17698
- }, aO = aE, oO = /* @__PURE__ */ function(e) {
18298
+ }, pk = pD, mk = /* @__PURE__ */ function(e) {
17699
18299
  return e.AUTH_BY_PUBLIC_KEY = "WALLET_REQUEST_AUTH_BY_PUBLIC_KEY", e.DATA_APPROVAL = "WALLET_REQUEST_DATA_APPROVAL", e;
17700
- }({}), sO = /* @__PURE__ */ function(e) {
18300
+ }({}), hk = /* @__PURE__ */ function(e) {
17701
18301
  return e.AUTH_BY_PUBLIC_KEY = "WALLET_RESPONSE_AUTH_BY_PUBLIC_KEY", e.DATA_APPROVAL = "WALLET_RESPONSE_DATA_APPROVAL", e;
17702
- }({}), cO = /* @__PURE__ */ F({
17703
- type: /* @__PURE__ */ N(oO.AUTH_BY_PUBLIC_KEY),
18302
+ }({}), gk = /* @__PURE__ */ F({
18303
+ type: /* @__PURE__ */ N(mk.AUTH_BY_PUBLIC_KEY),
17704
18304
  base64EncodedChallenge: /* @__PURE__ */ L()
17705
- }), lO = /* @__PURE__ */ F({
17706
- type: /* @__PURE__ */ N(oO.DATA_APPROVAL),
18305
+ }), _k = /* @__PURE__ */ F({
18306
+ type: /* @__PURE__ */ N(mk.DATA_APPROVAL),
17707
18307
  anchorRequestId: /* @__PURE__ */ L(),
17708
18308
  serverUrl: /* @__PURE__ */ L()
17709
- }), uO = /* @__PURE__ */ dm("type", [cO, lO]), dO = /* @__PURE__ */ F({
17710
- type: /* @__PURE__ */ N(sO.AUTH_BY_PUBLIC_KEY),
18309
+ }), vk = /* @__PURE__ */ dm("type", [gk, _k]), yk = /* @__PURE__ */ F({
18310
+ type: /* @__PURE__ */ N(hk.AUTH_BY_PUBLIC_KEY),
17711
18311
  publicKey: /* @__PURE__ */ L(),
17712
18312
  signature: /* @__PURE__ */ L()
17713
- }), fO = /* @__PURE__ */ F({
17714
- type: /* @__PURE__ */ N(sO.DATA_APPROVAL),
18313
+ }), bk = /* @__PURE__ */ F({
18314
+ type: /* @__PURE__ */ N(hk.DATA_APPROVAL),
17715
18315
  b64VbHash: /* @__PURE__ */ L(),
17716
18316
  b64MbHash: /* @__PURE__ */ L(),
17717
18317
  height: /* @__PURE__ */ P()
17718
- }), pO = /* @__PURE__ */ dm("type", [dO, fO]), mO = 100, hO = /* @__PURE__ */ function(e) {
18318
+ }), xk = /* @__PURE__ */ dm("type", [yk, bk]), Sk = 100, Ck = /* @__PURE__ */ function(e) {
17719
18319
  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;
17720
- }({}), gO = /* @__PURE__ */ F({
18320
+ }({}), wk = /* @__PURE__ */ F({
17721
18321
  base64EncodedQrId: /* @__PURE__ */ L(),
17722
18322
  timestamp: /* @__PURE__ */ P(),
17723
18323
  serverUrl: /* @__PURE__ */ z(/* @__PURE__ */ L(), /* @__PURE__ */ Vp(100))
17724
- }), _O = /* @__PURE__ */ F({
17725
- type: /* @__PURE__ */ N(hO.REQUEST),
17726
- walletRequest: uO,
18324
+ }), Tk = /* @__PURE__ */ F({
18325
+ type: /* @__PURE__ */ N(Ck.REQUEST),
18326
+ walletRequest: vk,
17727
18327
  deviceId: Rm(),
17728
18328
  withToken: /* @__PURE__ */ P()
17729
- }), vO = /* @__PURE__ */ F({
17730
- type: /* @__PURE__ */ N(hO.UPDATE_QR),
18329
+ }), Ek = /* @__PURE__ */ F({
18330
+ type: /* @__PURE__ */ N(Ck.UPDATE_QR),
17731
18331
  base64EncodedQrId: /* @__PURE__ */ L(),
17732
18332
  timestamp: /* @__PURE__ */ P()
17733
- }), yO = /* @__PURE__ */ F({
17734
- type: /* @__PURE__ */ N(hO.CONNECTION_TOKEN),
18333
+ }), Dk = /* @__PURE__ */ F({
18334
+ type: /* @__PURE__ */ N(Ck.CONNECTION_TOKEN),
17735
18335
  token: Rm()
17736
- }), bO = /* @__PURE__ */ F({
17737
- type: /* @__PURE__ */ N(hO.FORWARDED_ANSWER),
17738
- walletResponse: pO
17739
- }), xO = /* @__PURE__ */ F({
17740
- type: /* @__PURE__ */ N(hO.GET_CONNECTION_INFO),
18336
+ }), Ok = /* @__PURE__ */ F({
18337
+ type: /* @__PURE__ */ N(Ck.FORWARDED_ANSWER),
18338
+ walletResponse: xk
18339
+ }), kk = /* @__PURE__ */ F({
18340
+ type: /* @__PURE__ */ N(Ck.GET_CONNECTION_INFO),
17741
18341
  base64EncodedQrId: /* @__PURE__ */ L()
17742
- }), SO = /* @__PURE__ */ F({
17743
- type: /* @__PURE__ */ N(hO.ANSWER),
17744
- walletResponse: pO
17745
- }), CO = /* @__PURE__ */ F({ type: /* @__PURE__ */ N(hO.CONNECTION_INFO) }), wO = /* @__PURE__ */ F({
17746
- type: /* @__PURE__ */ N(hO.CONNECTION_ACCEPTED),
18342
+ }), Ak = /* @__PURE__ */ F({
18343
+ type: /* @__PURE__ */ N(Ck.ANSWER),
18344
+ walletResponse: xk
18345
+ }), jk = /* @__PURE__ */ F({ type: /* @__PURE__ */ N(Ck.CONNECTION_INFO) }), Mk = /* @__PURE__ */ F({
18346
+ type: /* @__PURE__ */ N(Ck.CONNECTION_ACCEPTED),
17747
18347
  base64EncodedQrId: /* @__PURE__ */ L()
17748
- }), TO = /* @__PURE__ */ F({
17749
- type: /* @__PURE__ */ N(hO.FORWARDED_REQUEST),
17750
- walletRequest: uO
17751
- }), EO = /* @__PURE__ */ F({
17752
- type: /* @__PURE__ */ N(hO.ERROR),
18348
+ }), Nk = /* @__PURE__ */ F({
18349
+ type: /* @__PURE__ */ N(Ck.FORWARDED_REQUEST),
18350
+ walletRequest: vk
18351
+ }), Pk = /* @__PURE__ */ F({
18352
+ type: /* @__PURE__ */ N(Ck.ERROR),
17753
18353
  errorMessage: /* @__PURE__ */ L()
17754
- }), DO = /* @__PURE__ */ dm("type", [
17755
- _O,
17756
- vO,
17757
- yO,
17758
- bO,
17759
- xO,
17760
- SO,
17761
- CO,
17762
- wO,
17763
- TO,
17764
- EO
17765
- ]), OO = class {
18354
+ }), Fk = /* @__PURE__ */ dm("type", [
18355
+ Tk,
18356
+ Ek,
18357
+ Dk,
18358
+ Ok,
18359
+ kk,
18360
+ Ak,
18361
+ jk,
18362
+ Mk,
18363
+ Nk,
18364
+ Pk
18365
+ ]), Ik = class {
17766
18366
  static encode(e) {
17767
- return Rx(R(DO, e));
18367
+ return Rx(R(Fk, e));
17768
18368
  }
17769
18369
  static decode(e) {
17770
- return R(DO, sx(e));
18370
+ return R(Fk, sx(e));
17771
18371
  }
17772
- }, kO = class {
18372
+ }, Lk = class {
17773
18373
  static validateClientBridgeMessage(e) {
17774
- return R(DO, e);
18374
+ return R(Fk, e);
17775
18375
  }
17776
- }, AO = class {
18376
+ }, Rk = class {
17777
18377
  static encode(e) {
17778
- return Rx(R(gO, e));
18378
+ return Rx(R(wk, e));
17779
18379
  }
17780
18380
  static decode(e) {
17781
- return R(gO, sx(e));
18381
+ return R(wk, sx(e));
17782
18382
  }
17783
- }, jO = /* @__PURE__ */ sm(/* @__PURE__ */ L(), /* @__PURE__ */ F({
18383
+ }, zk = /* @__PURE__ */ sm(/* @__PURE__ */ L(), /* @__PURE__ */ F({
17784
18384
  networkName: /* @__PURE__ */ I(/* @__PURE__ */ L()),
17785
18385
  nodes: /* @__PURE__ */ sm(/* @__PURE__ */ L(), /* @__PURE__ */ F({
17786
18386
  nodeName: /* @__PURE__ */ I(/* @__PURE__ */ L()),
@@ -17790,89 +18390,73 @@ var RE = class e {
17790
18390
  trusted: /* @__PURE__ */ I(/* @__PURE__ */ Yp(), !1),
17791
18391
  nodeId: /* @__PURE__ */ L()
17792
18392
  }))
17793
- })), MO = /* @__PURE__ */ F({
18393
+ })), Bk = /* @__PURE__ */ F({
17794
18394
  state: Zh,
17795
18395
  microblockHashes: /* @__PURE__ */ M(B())
17796
- }), NO = /* @__PURE__ */ function(e) {
18396
+ }), Vk = /* @__PURE__ */ function(e) {
17797
18397
  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;
17798
- }({}), PO = /* @__PURE__ */ function(e) {
18398
+ }({}), Hk = /* @__PURE__ */ function(e) {
17799
18399
  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;
17800
- }({}), FO = /* @__PURE__ */ F({
17801
- type: /* @__PURE__ */ N(NO.APPROVAL_HANDSHAKE),
18400
+ }({}), Uk = /* @__PURE__ */ F({
18401
+ type: /* @__PURE__ */ N(Vk.APPROVAL_HANDSHAKE),
17802
18402
  anchorRequestId: /* @__PURE__ */ L()
17803
- }), IO = /* @__PURE__ */ F({
17804
- type: /* @__PURE__ */ N(NO.ACTOR_KEY),
18403
+ }), Wk = /* @__PURE__ */ F({
18404
+ type: /* @__PURE__ */ N(Vk.ACTOR_KEY),
17805
18405
  anchorRequestId: /* @__PURE__ */ L(),
17806
18406
  actorSignaturePublicKey: /* @__PURE__ */ L(),
17807
18407
  actorPkePublicKey: /* @__PURE__ */ L()
17808
- }), LO = /* @__PURE__ */ F({
17809
- type: /* @__PURE__ */ N(NO.APPROVAL_SIGNATURE),
18408
+ }), Gk = /* @__PURE__ */ F({
18409
+ type: /* @__PURE__ */ N(Vk.APPROVAL_SIGNATURE),
17810
18410
  anchorRequestId: /* @__PURE__ */ L(),
17811
18411
  b64Signature: /* @__PURE__ */ L()
17812
- }), RO = /* @__PURE__ */ dm("type", [
17813
- FO,
17814
- IO,
17815
- LO
17816
- ]), zO = /* @__PURE__ */ F({
17817
- type: /* @__PURE__ */ N(PO.ERROR),
18412
+ }), Kk = /* @__PURE__ */ dm("type", [
18413
+ Uk,
18414
+ Wk,
18415
+ Gk
18416
+ ]), qk = /* @__PURE__ */ F({
18417
+ type: /* @__PURE__ */ N(Hk.ERROR),
17818
18418
  errorMessage: /* @__PURE__ */ I(/* @__PURE__ */ L(), "")
17819
- }), BO = /* @__PURE__ */ F({
17820
- type: /* @__PURE__ */ N(PO.ACTOR_KEY_REQUIRED),
18419
+ }), Jk = /* @__PURE__ */ F({
18420
+ type: /* @__PURE__ */ N(Hk.ACTOR_KEY_REQUIRED),
17821
18421
  b64GenesisSeed: /* @__PURE__ */ L()
17822
- }), VO = /* @__PURE__ */ F({
17823
- type: /* @__PURE__ */ N(PO.APPROVAL_DATA),
18422
+ }), Yk = /* @__PURE__ */ F({
18423
+ type: /* @__PURE__ */ N(Hk.APPROVAL_DATA),
17824
18424
  b64SerializedMicroblock: /* @__PURE__ */ L()
17825
- }), HO = /* @__PURE__ */ F({
17826
- type: /* @__PURE__ */ N(PO.APPROVAL_SIGNATURE),
18425
+ }), Xk = /* @__PURE__ */ F({
18426
+ type: /* @__PURE__ */ N(Hk.APPROVAL_SIGNATURE),
17827
18427
  b64VbHash: /* @__PURE__ */ L(),
17828
18428
  b64MbHash: /* @__PURE__ */ L(),
17829
18429
  height: /* @__PURE__ */ P()
17830
- }), UO = /* @__PURE__ */ dm("type", [
17831
- zO,
17832
- BO,
17833
- VO,
17834
- HO
17835
- ]), WO = class {
18430
+ }), Zk = /* @__PURE__ */ dm("type", [
18431
+ qk,
18432
+ Jk,
18433
+ Yk,
18434
+ Xk
18435
+ ]), Qk = class {
17836
18436
  static encodeRequest(e) {
17837
- return Rx(R(uO, e));
18437
+ return Rx(R(vk, e));
17838
18438
  }
17839
18439
  static decodeRequest(e) {
17840
- return R(uO, sx(e));
18440
+ return R(vk, sx(e));
17841
18441
  }
17842
18442
  static encodeResponse(e) {
17843
- return Rx(R(pO, e));
18443
+ return Rx(R(xk, e));
17844
18444
  }
17845
18445
  static decodeResponse(e) {
17846
- return R(pO, sx(e));
18446
+ return R(xk, sx(e));
17847
18447
  }
17848
- }, GO = class {
18448
+ }, $k = class {
17849
18449
  static validateWalletRequest(e) {
17850
- return R(uO, e);
18450
+ return R(vk, e);
17851
18451
  }
17852
18452
  static validateWalletResponse(e) {
17853
- return R(pO, e);
17854
- }
17855
- }, KO = class {
17856
- constructor(e = new kg()) {
17857
- this.stringEncoder = e;
17858
- }
17859
- decode(e) {
17860
- let t = this.getPrefix(), n = Mg.decode(e);
17861
- if (n.matchesKeys(...t)) return this.stringEncoder.decode(n.getValue());
17862
- throw new l("Invalid seed format");
17863
- }
17864
- encode(e) {
17865
- let t = this.getPrefix();
17866
- return Mg.encode(...t, this.stringEncoder.encode(e));
18453
+ return R(xk, e);
17867
18454
  }
17868
- getPrefix() {
17869
- return ["SEED"];
17870
- }
17871
- }, qO = class extends KO {
18455
+ }, eA = class extends zw {
17872
18456
  getPrefix() {
17873
18457
  return ["ACCOUNT", "SEED"];
17874
18458
  }
17875
- }, JO = class e {
18459
+ }, tA = class e {
17876
18460
  static createFromAbciResponse(t) {
17877
18461
  return new e(t.list);
17878
18462
  }
@@ -17883,9 +18467,9 @@ var RE = class e {
17883
18467
  return this.transactions.length > 0;
17884
18468
  }
17885
18469
  getTransactions() {
17886
- return this.transactions.map((e) => new YO(e));
18470
+ return this.transactions.map((e) => new nA(e));
17887
18471
  }
17888
- }, YO = class {
18472
+ }, nA = class {
17889
18473
  constructor(e) {
17890
18474
  this.transaction = e;
17891
18475
  }
@@ -17956,11 +18540,11 @@ var RE = class e {
17956
18540
  isReceivedPayment() {
17957
18541
  return this.transaction.type == 9;
17958
18542
  }
17959
- }, XO = class extends KO {
18543
+ }, rA = class extends zw {
17960
18544
  getPrefix() {
17961
18545
  return ["ACTOR", "SEED"];
17962
18546
  }
17963
- }, ZO = class e {
18547
+ }, iA = class e {
17964
18548
  static createFromAccountStateAbciResponse(t) {
17965
18549
  return new e(t.balance, t.locks);
17966
18550
  }
@@ -18173,176 +18757,34 @@ var RE = class e {
18173
18757
  getEscrowed() {
18174
18758
  return hn.createAtomic(this.getBreakdown().escrowed);
18175
18759
  }
18176
- }, QO = class {
18760
+ }, aA = class {
18177
18761
  static encoder = new Tx({
18178
18762
  tagUint8Array: !0,
18179
18763
  mapsAsObjects: !0
18180
18764
  });
18181
18765
  static encodeRequest(e) {
18182
- return this.encoder.encode(R(RO, e));
18766
+ return this.encoder.encode(R(Kk, e));
18183
18767
  }
18184
18768
  static decodeRequest(e) {
18185
- return R(RO, this.encoder.decode(e));
18769
+ return R(Kk, this.encoder.decode(e));
18186
18770
  }
18187
18771
  static encodeResponse(e) {
18188
- return this.encoder.encode(R(UO, e));
18772
+ return this.encoder.encode(R(Zk, e));
18189
18773
  }
18190
18774
  static decodeResponse(e) {
18191
- return R(UO, this.encoder.decode(e));
18775
+ return R(Zk, this.encoder.decode(e));
18192
18776
  }
18193
- }, $O = class {
18777
+ }, oA = class {
18194
18778
  static validateRequest(e) {
18195
- return R(RO, e);
18779
+ return R(Kk, e);
18196
18780
  }
18197
18781
  static validateResponse(e) {
18198
- return R(UO, e);
18782
+ return R(Zk, e);
18199
18783
  }
18200
- }, ek = class extends KO {
18784
+ }, sA = class extends zw {
18201
18785
  getPrefix() {
18202
18786
  return ["WALLET", "SEED"];
18203
18787
  }
18204
- }, tk = class e {
18205
- signatureSchemeId = Ja.SECP256K1;
18206
- pkeSchemeId = Pv.ML_KEM_768_AES_256_GCM;
18207
- constructor(e) {
18208
- this.actorSeed = e;
18209
- }
18210
- static encoderStringAsBytes(e) {
18211
- return new TextEncoder().encode(e);
18212
- }
18213
- static createFromAccountSeedAndVbSeed(t, n) {
18214
- let r = t, i = Jx.createDefaultKDF(), a = A.binaryFrom(this.encoderStringAsBytes("ACTOR_SEED"), this.encoderStringAsBytes("VB_SEED"), n);
18215
- return new e(i.deriveKeyNoSalt(r, a, 32));
18216
- }
18217
- static parseFromString(t, n = new KO()) {
18218
- return new e(n.decode(t));
18219
- }
18220
- encode(e = new KO()) {
18221
- return e.encode(this.actorSeed);
18222
- }
18223
- getSeedAsBytes() {
18224
- return this.actorSeed;
18225
- }
18226
- async getPrivateSignatureKey(e = this.signatureSchemeId) {
18227
- let t = Jx.createDefaultKDF(), n = A.binaryFrom(this.encoderStringAsBytes("SIG"), new Uint8Array(A.intToByteArray(e, 6))), r = t.deriveKeyNoSalt(this.actorSeed, n, 32);
18228
- return Jx.createPrivateSignatureKey(e, r);
18229
- }
18230
- async getPublicSignatureKey(e = this.signatureSchemeId) {
18231
- return (await this.getPrivateSignatureKey(e)).getPublicKey();
18232
- }
18233
- getPrivateDecryptionKey(e = this.pkeSchemeId) {
18234
- let t = Jx.createDefaultKDF(), n = A.binaryFrom(this.encoderStringAsBytes("PKE"), new Uint8Array(A.intToByteArray(e, 6))), r = t.deriveKeyNoSalt(this.actorSeed, n, 64);
18235
- return Jx.createPrivateDecryptionKey(e, r);
18236
- }
18237
- async getPublicEncryptionKey(e = this.pkeSchemeId) {
18238
- return (await this.getPrivateDecryptionKey(e)).getPublicKey();
18239
- }
18240
- encoderStringAsBytes(e) {
18241
- return new TextEncoder().encode(e);
18242
- }
18243
- getSignatureSchemeId() {
18244
- return this.signatureSchemeId;
18245
- }
18246
- setSignatureSchemeId(e) {
18247
- this.signatureSchemeId = e;
18248
- }
18249
- getPkeSchemeId() {
18250
- return this.pkeSchemeId;
18251
- }
18252
- setPkeSchemeId(e) {
18253
- this.pkeSchemeId = e;
18254
- }
18255
- }, nk = class e {
18256
- signatureSchemeId = Ja.SECP256K1;
18257
- pkeSchemeId = Pv.ML_KEM_768_AES_256_GCM;
18258
- static createFromWalletSeedAndNonce(t, n) {
18259
- let r = A.binaryFrom(t, n), i = Jx.createDefaultKDF(), a = this.encoderStringAsBytes("ACCOUNT_SEED");
18260
- return new e(i.deriveKeyNoSalt(r, a, 32));
18261
- }
18262
- static parseFromString(t, n = new KO()) {
18263
- return new e(n.decode(t));
18264
- }
18265
- encode(e = new KO()) {
18266
- return e.encode(this.accountSeed);
18267
- }
18268
- constructor(e) {
18269
- this.accountSeed = e;
18270
- }
18271
- deriveActorFromVbSeed(e) {
18272
- return tk.createFromAccountSeedAndVbSeed(this.accountSeed, e);
18273
- }
18274
- async getPrivateSignatureKey(t = this.signatureSchemeId) {
18275
- let n = Jx.createDefaultKDF(), r = e.encoderStringAsBytes(`SIG_${t}`), i = n.deriveKeyNoSalt(this.accountSeed, r, 32);
18276
- return Jx.createPrivateSignatureKey(t, i);
18277
- }
18278
- async getPublicSignatureKey(e = this.signatureSchemeId) {
18279
- return (await this.getPrivateSignatureKey(e)).getPublicKey();
18280
- }
18281
- async getPrivateDecryptionKey(t = this.pkeSchemeId) {
18282
- let n = Jx.createDefaultKDF(), r = e.encoderStringAsBytes(`PKE_${t}`), i = n.deriveKeyNoSalt(this.accountSeed, r, 64);
18283
- return Jx.createPrivateDecryptionKey(t, i);
18284
- }
18285
- async getPublicEncryptionKey(e = this.pkeSchemeId) {
18286
- return (await this.getPrivateDecryptionKey(e)).getPublicKey();
18287
- }
18288
- static encoderStringAsBytes(e) {
18289
- return new TextEncoder().encode(e);
18290
- }
18291
- getSeedAsBytes() {
18292
- return this.accountSeed;
18293
- }
18294
- getAccountSeed() {
18295
- return this.accountSeed;
18296
- }
18297
- static concatWalletSeedWith(e, t) {
18298
- return new Uint8Array([...e, ...t]);
18299
- }
18300
- static numberToUint8Array(e, t = 4) {
18301
- let n = new ArrayBuffer(t), r = new DataView(n);
18302
- 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);
18303
- }
18304
- getActor(e) {
18305
- return tk.createFromAccountSeedAndVbSeed(this.accountSeed, e);
18306
- }
18307
- getSignatureSchemeId() {
18308
- return this.signatureSchemeId;
18309
- }
18310
- setSignatureSchemeId(e) {
18311
- this.signatureSchemeId = e;
18312
- }
18313
- getPkeSchemeId() {
18314
- return this.pkeSchemeId;
18315
- }
18316
- setPkeSchemeId(e) {
18317
- this.pkeSchemeId = e;
18318
- }
18319
- }, rk = class e {
18320
- static generateWallet() {
18321
- return new e(Fu(64));
18322
- }
18323
- static fromSeed(t) {
18324
- if (!(t instanceof Uint8Array)) throw new i(`Seed must be a Uint8Array, got ${typeof t}`);
18325
- return new e(t);
18326
- }
18327
- static parseFromString(t, n = new KO()) {
18328
- if (typeof t != "string") throw new i(`Seed must be a string, got ${typeof t}`);
18329
- return new e(n.decode(t));
18330
- }
18331
- encode(e = new KO()) {
18332
- return e.encode(this.walletSeed);
18333
- }
18334
- constructor(e) {
18335
- this.walletSeed = e;
18336
- }
18337
- getDefaultAccountCrypto() {
18338
- return nk.createFromWalletSeedAndNonce(this.walletSeed, 0);
18339
- }
18340
- getAccount(e) {
18341
- return nk.createFromWalletSeedAndNonce(this.walletSeed, e);
18342
- }
18343
- getSeedAsBytes() {
18344
- return this.walletSeed;
18345
- }
18346
18788
  };
18347
18789
  //#endregion
18348
- 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, Qg as AES256GCMSymmetricEncryptionKey, Zg 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, pm as ARRAY, UD as AbciQueryEncoder, vD as AbciRequestSchema, $ as AbciRequestType, HD as AbciResponseSchema, yD as AbciResponseType, Rv as AbstractPrivateDecryptionKey, JE as AbstractProvider, Lv as AbstractPublicEncryptionKey, Iv as AbstractPublicKeyEncryptionScheme, mg as AccountBreakdownSchema, ND as AccountByPublicKeyHashAbciResponseSchema, ih as AccountCreationSectionSchema, nk as AccountCrypto, ch as AccountEscrowSettlementSectionSchema, sh as AccountEscrowTransferSectionSchema, MD as AccountHistoryAbciResponseSchema, _g as AccountHistoryEntrySchema, vg as AccountHistorySchema, nO as AccountHistoryView, gg as AccountInformationSchema, GS as AccountInternalState, eC as AccountInternalStateUpdater, vC as AccountMicroblockStructureChecker, _e as AccountNotFoundForAccountHashError, ge as AccountNotFoundForPublicKeyError, xe as AccountNotFoundForPublicKeyHashError, VD as AccountProofAbciResponseSchema, qC as AccountProofEntrySchema, KC as AccountProofObjectSchema, JC as AccountProofSchema, WE as AccountProofWrapper, nh as AccountPublicKeySectionSchema, qO as AccountSeedEncoder, lh as AccountStakeSectionSchema, jD as AccountStateAbciResponseSchema, hg as AccountStateSchema, rh as AccountTokenIssuanceSectionSchema, YO as AccountTransaction, JO as AccountTransactions, ah as AccountTransferSectionSchema, uh as AccountUnstakeSectionSchema, bg as AccountUpdateSchema, RD as AccountUpdatesAbciResponseSchema, yC as AccountVb, oh as AccountVestingTransferSectionSchema, Fh as AccountVirtualBlockchainInternalStateSchema, Gh as AccountVirtualBlockchainStateSchema, re as ActorAlreadyDefinedError, tk as ActorCrypto, oe as ActorNotDefinedError, he as ActorNotInvitedError, Te as ActorNotSubscribedError, XO as ActorSeedEncoder, zw as ActorType, su as Aes, Qm as AllowedAdditionalWriterSectionSchema, S as AlreadySubscribedError, iC as AppLedgerLocalStateUpdaterV1, qw as AppLedgerMicroblockBuildRequestSchema, Jw as AppLedgerMicroblockBuildRequestValidation, UC as AppLedgerProofSchema, OC as AppLedgerProofVB, gw as AppLedgerProofWrapper, vh as ApplicationCreationSectionSchema, yh as ApplicationDescriptionSectionSchema, qS as ApplicationInternalState, tC as ApplicationInternalStateUpdater, Ch as ApplicationLedgerActorCreationSectionSchema, Bh as ApplicationLedgerActorInvitationStateSchema, Hh as ApplicationLedgerActorSchema, Dh as ApplicationLedgerActorSubscriptionSectionSchema, xh as ApplicationLedgerAllowedPkeSchemesSectionSchema, bh as ApplicationLedgerAllowedSigSchemesSectionSchema, Ah as ApplicationLedgerAuthorSectionSchema, wh as ApplicationLedgerChannelCreationSectionSchema, Eh as ApplicationLedgerChannelInvitationSectionSchema, zh as ApplicationLedgerChannelSchema, Sh as ApplicationLedgerCreationSectionSchema, jh as ApplicationLedgerEndorsementRequestSectionSchema, JS as ApplicationLedgerInternalState, Uh as ApplicationLedgerInternalStateObjectSchema, Rw as ApplicationLedgerMicroblockBuilder, DC as ApplicationLedgerMicroblockStructureChecker, Ce as ApplicationLedgerNotFoundError, kh as ApplicationLedgerPrivateChannelDataSectionSchema, Oh as ApplicationLedgerPublicChannelDataSectionSchema, Th as ApplicationLedgerSharedSecretSectionSchema, Vh as ApplicationLedgerSharedSecretStateSchema, Ew as ApplicationLedgerVb, Yh as ApplicationLedgerVirtualBlockchainStateSchema, bC as ApplicationMicroblockStructureChecker, ye as ApplicationNotFoundError, Rh as ApplicationVBInternalStateObjectSchema, xC as ApplicationVb, Jh as ApplicationVirtualBlockchainStateSchema, EC as Assertion, Zm as AuxiliarySignatureSectionSchema, iD as AwaitMicroblockAnchoringAbciRequestSchema, Tm as BIN256, wm 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, _m as BOOLEAN, ZO as BalanceAvailability, TE as Base32, Cg as Base64, MS as BaseHCVSignatureDecoder, nT as BaseHCVSignatureEncoder, t_ as BasePrivateSignatureKey, n_ as BasePublicSignatureKey, GT as BinaryEncoder, WT as BinaryEncoding, KT as BinarySigner, qT as BinaryVerifier, wD as BlockContentAbciResponseSchema, SD as BlockInformationAbciResponseSchema, LD as BlockModifiedAccountsAbciResponseSchema, tg as BlockReferenceSchema, b as BlockchainError, X as BlockchainUtils, Zw as BytesSignatureEncoder, kg as BytesToBase64Encoder, Ag as BytesToHexEncoder, zS 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, eO as CertificateTagHandler, $D as CertificateTagSchema, xD as ChainInformationAbciResponseSchema, ig as ChainReferenceSchema, eg as ChainReferenceType, ae as ChannelAlreadyDefinedError, se as ChannelNotDefinedError, OO as ClientBridgeEncoder, DO as ClientBridgeMessageSchema, SO as ClientBridgeMessageSchema_Answer, wO as ClientBridgeMessageSchema_ConnectionAccepted, CO as ClientBridgeMessageSchema_ConnectionInfo, yO as ClientBridgeMessageSchema_ConnectionToken, EO as ClientBridgeMessageSchema_Error, bO as ClientBridgeMessageSchema_ForwardedAnswer, TO as ClientBridgeMessageSchema_ForwardedRequest, xO as ClientBridgeMessageSchema_GetConnectionInfo, _O as ClientBridgeMessageSchema_Request, vO as ClientBridgeMessageSchema_UpdateQr, hO as ClientBridgeMessageType, kO as ClientBridgeValidation, HE as CometBFTErrorCode, QD as CometBFTNodeWebSocket, Xw as CometBFTPublicKey, qD as CometBFTPublicKeyConverter, mC as ConstraintNameByConstraint, Tp as Crypto, BS as CryptoEncoderFactory, d as CryptoError, Jx as CryptoSchemeFactory, vv as CryptographicHashSchemeId, zE as CurrencyConverterFactory, pe as CurrentActorNotFoundError, Ym as CustomSectionSchema, gn as DATA, Ga as DEF, TS as DID_TAG, LS as DckfSignatureDecoder, OS as DckfSignatureEncoder, f as DecryptionError, ir as ECO, Kr as ERROR, Ka as ERRORS, PE as Economics, v as EconomicsError, iy as Ed25519PrivateSignatureKey, ry as Ed25519PublicSignatureKey, ny as Ed25519SignatureScheme, u as EmptyBlockError, Og as EncoderFactory, hS as EnvApiKeyPkmsCredentialProvider, bD as ErrorAbciResponseSchema, cg as EscrowLockSchema, sg as EscrowParametersSchema, RE as Euros, BE as EurosToCMTSConverter, YE as ExpirationDate, $g as ExtendedSymmetricEncryptionKey, Vn as FORMAT, WS as FeesCalculationFormulaFactory, US as FirstFeesFormula, pr as GAS_ATOMS_PER_GAS, fr as GAS_PER_BYTE, cT as GenericSymmetricKeyEncoder, FD as GenesisSnapshotAbciResponseSchema, cD as GetAccountByPublicKeyHashAbciRequestSchema, sD as GetAccountHistoryAbciRequestSchema, _D as GetAccountProofAbciRequestSchema, oD as GetAccountStateAbciRequestSchema, pD as GetAccountUpdatesAbciRequestSchema, eD as GetBlockContentAbciRequestSchema, $E as GetBlockInformationAbciRequestSchema, fD as GetBlockModifiedAccountsAbciRequestSchema, QE as GetChainInformationAbciRequestSchema, uD as GetGenesisSnapshotAbciRequestSchema, aD as GetMicroblockBodysAbciRequestSchema, rD as GetMicroblockInformationAbciRequestSchema, mD as GetMicroblockInformationByHeightAbciRequestSchema, gD as GetMicroblockProofAbciRequestSchema, dD as GetRawBlockContentAbciRequestSchema, hD as GetSerializedMicroblockByHeightAbciRequestSchema, lD as GetValidatorNodeByAddressAbciRequestSchema, tD as GetVirtualBlockchainStateAbciRequestSchema, nD as GetVirtualBlockchainUpdateAbciRequestSchema, Fn as HASHABLE, zn as HASHED, Em as HASH_STR, Mg as HCVCodec, jg as HCVDecoded, Yx as HCVPkeEncoder, Nv as HKDF, RS as HandlerBasedSignatureEncoder, KS as Hash, Qc as Hashes, lr as INITIAL_OFFER, i as IllegalParameterError, a as IllegalStateError, r as IllegalUsageError, m as InternalError, $S as InternalStateFactory, cC as InternalStateUpdaterFactory, ie as InvalidActorError, fe as InvalidChannelError, y as InvalidTokenUnitError, ES as JWK_TAG, YT as JsonCanonicalUtf8Signature, rE as JsonCanonicalUtf8SignatureSchema, cE as JsonCanonicalUtf8Signer, XT as JsonCanonicalizationMethod, eE as JsonEncoder, Cw as JsonSchema, JT as JsonSignature, _E as JsonSignatureParser, yE as JsonSignatureVerifier, DS as JwkPrivateSignatureKey, qx as JwkPublicSignatureKey, Qw as JwkSignatureEncoder, Ry as JwkSignatureScheme, gE as JwsSignature, iE as JwsSignatureSchema, bE as JwsSigner, jv as KeyDerivationFunction, Mv as KeyDerivationFunctionSchemeId, e_ as KeyExchangeSchemeId, ag as LOCK_TYPE_COUNT, pg as LockSchema, og 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, FS as MLDSA65HCVSignatureDecoder, iT as MLDSA65HCVSignatureEncoder, a_ as MLDSA65PrivateSignatureKey, i_ as MLDSA65PublicSignatureKey, r_ as MLDSA65SignatureScheme, xS as MLDSA65_TAG, xd as MLDsa, Gd 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, XE as MemoryProvider, vw as MerkleLeaf, Q as MerkleLeafTypeEnum, Sw as MerkleRecord, _w as MerkleTree, jE as MessageSerializer, ME as MessageUnserializer, te as MicroBlockNotFoundError, ne as MicroBlockNotFoundInBlockError, x as MicroBlockNotFoundInVirtualBlockchainAtHeightError, dC as Microblock, OD as MicroblockAnchoringAbciResponseSchema, kD as MicroblockBodyItemSchema, Nh as MicroblockBodySchema, AD as MicroblockBodysAbciResponseSchema, Ow as MicroblockConsistencyChecker, Um as MicroblockHeaderSchema, DD as MicroblockInformationAbciResponseSchema, $h as MicroblockInformationSchema, BD as MicroblockProofAbciResponseSchema, XC as MicroblockProofEntrySchema, YC as MicroblockProofObjectSchema, ZC as MicroblockProofSchema, KE as MicroblockProofWrapper, ng as MicroblockReferenceSchema, uC as MicroblockStructSchema, s as MicroblockStructureCheckingError, Xv as MlKemCiphertextEncoder, Qv as MlKemPrivateDecryptionKey, Zv as MlKemPublicEncryptionKey, zv as MlKemPublicKeyEncryptionScheme, D as NODE_MESSAGES, vm as NULL, gm as NUMBER, Zn as N_VIRTUAL_BLOCKCHAINS, NS as NativeHCVSignatureDecoder, rT as NativeHCVSignatureEncoder, WD as NetworkProvider, jO as NetworksFileSchema, ZD as NewBlockEventSchema, De as NoSharedSecretError, g as NodeConnectionRefusedError, _ as NodeEndpointClosedWhileCatchingUpError, h as NodeError, fg as NodeStakingLockSchema, dg as NodeStakingParametersSchema, de as NotAllowedPkeSchemeError, ue as NotAllowedSignatureSchemeError, c as NotAuthenticatedError, ee as NotImplementedError, GD as NullMemoryProvider, KD as NullNetworkProvider, mm as OBJECT, Ta as ORG_CREATION, Ea as ORG_DESCRIPTION, IC as OnChainChannelSchema, RC as OnChainItemListSchema, LC as OnChainItemSchema, Tw as OnChainRecord, Dw as Optional, gh as OrganizationCreationSectionSchema, _h as OrganizationDescriptionSectionSchema, ZS as OrganizationInternalState, sC as OrganizationInternalStateUpdater, gC as OrganizationMicroblockStructureChecker, ve as OrganizationNotFoundError, Ih as OrganizationVBInternalStateObjectSchema, _C as OrganizationVb, Kh as OrganizationVirtualBlockchainStateSchema, Tv as PBKDF2, SS as PKMS_TAG, Ln as PROPERTIES, ca as PROTOCOL_CREATION, la as PROTOCOL_UPDATE, oi as PROTOCOL_VARIABLES, si as PROTOCOL_VB_STATE, Wn as PROTOCOL_VERSION, CS as PUBLIC_KEY_TAG, l as ParsingError, wv as PasswordBasedKeyDerivationFunction, Cv as PasswordBasedKeyDerivationFunctionSchemeId, sT as PkeEncoderFactory, _S as PkmsSecp256k1PrivateSignatureKey, vS as PkmsSecp256k1PublicSignatureKey, IS as PkmsSecp256k1SignatureDecoder, aT as PkmsSecp256k1SignatureEncoder, WC as ProofBlockObjectSchema, GC as ProofBlockSchema, qE as ProofFactory, zC as ProofFieldTypeEnum, QC as ProofInfoSchema, yw as ProofRecord, ce as ProofVerificationFailedError, VE as ProofVerificationResult, mw as ProofWrapper, $m as ProtocolCreationSectionSchema, we as ProtocolError, XS as ProtocolInternalState, oC as ProtocolInternalStateUpdater, wC as ProtocolMicroblockStructureChecker, Jm as ProtocolUpdateSchema, eh as ProtocolUpdateSectionSchema, Ph as ProtocolVBInternalStateObjectSchema, qm as ProtocolVariablesSchema, th as ProtocolVariablesSectionSchema, TC as ProtocolVb, Xh as ProtocolVirtualBlockchainStateSchema, JD as Provider, YD as ProviderFactory, Fv as PublicKeyEncryptionAlgorithmId, Pv as PublicKeyEncryptionSchemeId, jw as RADIX_CST, ni as RECORD_DESCRIPTION, Rn as REDACTED, ZE as RPCNodeStatusResponseSchema, Mw as RadixUtils, Zs as Random, ID as RawBlockContentAbciResponseSchema, qv as ReadStream, ww as Record, Uw as RecordActorAssignationSchema, Bw as RecordActorSchema, bw as RecordByChannels, Hw as RecordChannelAssignationSchema, Vw as RecordChannelSchema, Kw as RecordHashableFieldSchema, Gw as RecordMaskableFieldSchema, Ww as RecordMaskedPartSchema, yg as RequestedAccountUpdateSchema, Km as RetentionCostBreakdownSchema, HS as RetentionCostCalculator, Gm as RetentionPolicySchema, Wm as RetentionTierSchema, Gr as SCHEMAS, bS as SECP256K1_TAG, wS as SECRET_KEY_TAG, aa as SECTIONS, oa as SIGNATURE, sa as SIGNATURE_SCHEMA, yS as SIGNATURE_TAG, hm as STRING, xw as SaltShaker, Jv as SchemaSerializer, Yv as SchemaUnserializer, NE as SchemaValidator, mT as Scrypt, _p as Secp256k1, PS as Secp256k1HCVSignatureDecoder, oT as Secp256k1HCVSignatureEncoder, ty as Secp256k1PrivateSignatureKey, ey as Secp256k1PublicSignatureKey, $v as Secp256k1SignatureScheme, Z as SectionConstraint, me as SectionError, rC as SectionLabel, Ee as SectionNotFoundError, rg as SectionReferenceSchema, Mh as SectionSchema, O as SectionType, KO as SeedEncoder, gT as SelfProvidedApiKeyPkmsCredentialProvider, Oe as SerializationError, zD as SerializedMicroblockByHeightAbciResponseSchema, XD as ServerNetworkProvider, yv as Sha256CryptographicHash, p as SharedKeyDecryptionError, hT as SignatureAlgorithmId, xE as SignatureCacheDisabled, SE as SignatureCacheEntry, CE as SignatureCacheMonothread, tE as SignatureContextSchema, aE as SignatureObjectSchema, Ja as SignatureSchemeId, Xm as SignatureSectionSchema, aO as SignatureTagSchema, nE as SignatureType, oE as SignatureVerificationContextSchema, sE as SignatureVerificationSchema, vE as SignatureVerificationUtils, uw as SignedAccountPayloadSchema, cw as SignedAppLedgerPayloadSchema, fw as SignedMicroblockPayloadSchema, ow as SignedProofPayloadSchema, Lw as StateChecker, hC as StructureChecker, Xg 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, fC as ThrownErrorMicroblockSearchFailureFallback, lC as TimestampValidationResult, pn as TokenUnit, mn as TokenUnitLabel, tO as Transaction, AC as TransformationTypeEnum, ro as TypeChecker, eo as TypeCheckingFailureError, MC as TypeEnum, no as TypeManager, bm as UINT16, xm as UINT24, Sm as UINT32, Cm as UINT48, ym 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, mh as ValidatorNodeApprovalSectionSchema, PD as ValidatorNodeByAddressAbciResponseSchema, fh as ValidatorNodeCometbftPublicKeyDeclarationSectionSchema, dh as ValidatorNodeCreationSectionSchema, QS as ValidatorNodeInternalState, aC as ValidatorNodeInternalStateUpdater, SC as ValidatorNodeMicroblockStructureChecker, be as ValidatorNodeNotFoundError, ph as ValidatorNodeRpcEndpointSectionSchema, hh as ValidatorNodeSlashingCancellationSectionSchema, Lh as ValidatorNodeVBInternalStateObjectSchema, CC as ValidatorNodeVb, qh as ValidatorNodeVirtualBlockchainStateSchema, ug as VestingLockSchema, lg as VestingParametersSchema, pC as VirtualBlockchain, Qh as VirtualBlockchainInfoSchema, iO as VirtualBlockchainLabel, Se as VirtualBlockchainNotFoundError, Wh as VirtualBlockchainSharedPropertiesSchema, TD as VirtualBlockchainStateAbciResponseSchema, Zh as VirtualBlockchainStateSchema, MO as VirtualBlockchainStatusSchema, H as VirtualBlockchainType, ED 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, mO as WI_MAX_SERVER_URL_LENGTH, ra as WI_MESSAGES, qi as WI_QR_CODE, rk as WalletCrypto, QO as WalletInteractiveAnchoringEncoder, IO as WalletInteractiveAnchoringRequestActorKeySchema, FO as WalletInteractiveAnchoringRequestApprovalHandshakeSchema, LO as WalletInteractiveAnchoringRequestApprovalSignatureSchema, RO as WalletInteractiveAnchoringRequestSchema, NO as WalletInteractiveAnchoringRequestType, BO as WalletInteractiveAnchoringResponseActorKeyRequiredSchema, VO as WalletInteractiveAnchoringResponseApprovalDataSchema, HO as WalletInteractiveAnchoringResponseApprovalSignatureSchema, zO as WalletInteractiveAnchoringResponseErrorSchema, UO as WalletInteractiveAnchoringResponseSchema, PO as WalletInteractiveAnchoringResponseType, $O as WalletInteractiveAnchoringValidation, cO as WalletRequestAuthByPublicKeySchema, Yw as WalletRequestBasedApplicationLedgerMicroblockBuilder, lO as WalletRequestDataApprovalSchema, WO as WalletRequestEncoder, uO as WalletRequestSchema, oO as WalletRequestType, GO as WalletRequestValidation, dO as WalletResponseAuthByPublicKeySchema, fO as WalletResponseDataApprovalSchema, pO as WalletResponseSchema, sO as WalletResponseType, ek as WalletSeedEncoder, AO as WiQrCodeEncoder, gO as WiQrCodeSchema, dw as WrappedAccountProofSchema, lw as WrappedAppLedgerProofSchema, pw as WrappedMicroblockProofSchema, sw as WrappedProofSchema, Kv as WriteStream, zm as accountId, Dm as array, pE as base64UrlToBytes, uE as base64UrlToObject, Rm as bin256, Lm as binary, Am as boolean, dE as bytesToBase64Url, Hy as createJwkSigner, Uy as createJwkVerifier, Kx as decodeSignatureJwk, hE as deriveJwtClaimsFromSignatureContext, mE as determineJwsAlgorithm, Gx as encodeSignatureJwk, xy as extractPrivateJwk, by as extractPublicJwk, Wy as generateSignatureJwk, zy as getSubtle, Bm as height, V as naturalInt, Hm as nonNegativeInt, km as number, Vm as positiveInt, Cy as requireJwkMember, fy as resolveJwkSignatureAlgorithm, vy as resolveJwkSignatureAlgorithmByName, Sy as sortJwkMembers, Om as string, Nm as uint16, Pm as uint24, Fm as uint32, Im as uint48, Mm as uint8, B as uint8array, fE as utf8StringToBase64Url, Fw as verifyRadixProof };
18790
+ 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, Qg as AES256GCMSymmetricEncryptionKey, Zg 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, pm as ARRAY, ZO as AbciQueryEncoder, EO as AbciRequestSchema, $ as AbciRequestType, XO as AbciResponseSchema, DO as AbciResponseType, Rv as AbstractPrivateDecryptionKey, nO as AbstractProvider, Lv as AbstractPublicEncryptionKey, Iv as AbstractPublicKeyEncryptionScheme, mg as AccountBreakdownSchema, VO as AccountByPublicKeyHashAbciResponseSchema, ih as AccountCreationSectionSchema, Vw as AccountCrypto, ch as AccountEscrowSettlementSectionSchema, sh as AccountEscrowTransferSectionSchema, BO as AccountHistoryAbciResponseSchema, _g as AccountHistoryEntrySchema, vg as AccountHistorySchema, uk as AccountHistoryView, gg as AccountInformationSchema, GS as AccountInternalState, eC as AccountInternalStateUpdater, vC as AccountMicroblockStructureChecker, _e as AccountNotFoundForAccountHashError, ge as AccountNotFoundForPublicKeyError, xe as AccountNotFoundForPublicKeyHashError, YO as AccountProofAbciResponseSchema, qC as AccountProofEntrySchema, KC as AccountProofObjectSchema, JC as AccountProofSchema, QD as AccountProofWrapper, nh as AccountPublicKeySectionSchema, eA as AccountSeedEncoder, lh as AccountStakeSectionSchema, zO as AccountStateAbciResponseSchema, hg as AccountStateSchema, rh as AccountTokenIssuanceSectionSchema, nA as AccountTransaction, tA as AccountTransactions, ah as AccountTransferSectionSchema, uh as AccountUnstakeSectionSchema, bg as AccountUpdateSchema, KO as AccountUpdatesAbciResponseSchema, yC as AccountVb, oh as AccountVestingTransferSectionSchema, Fh as AccountVirtualBlockchainInternalStateSchema, Gh as AccountVirtualBlockchainStateSchema, re as ActorAlreadyDefinedError, Bw as ActorCrypto, oe as ActorNotDefinedError, he as ActorNotInvitedError, Te as ActorNotSubscribedError, rA as ActorSeedEncoder, qT as ActorType, su as Aes, Qm as AllowedAdditionalWriterSectionSchema, S as AlreadySubscribedError, iC as AppLedgerLocalStateUpdaterV1, tE as AppLedgerMicroblockBuildRequestSchema, nE as AppLedgerMicroblockBuildRequestValidation, UC as AppLedgerProofSchema, OC as AppLedgerProofVB, gw as AppLedgerProofWrapper, vh as ApplicationCreationSectionSchema, yh as ApplicationDescriptionSectionSchema, qS as ApplicationInternalState, tC as ApplicationInternalStateUpdater, Ch as ApplicationLedgerActorCreationSectionSchema, Bh as ApplicationLedgerActorInvitationStateSchema, Hh as ApplicationLedgerActorSchema, Dh as ApplicationLedgerActorSubscriptionSectionSchema, xh as ApplicationLedgerAllowedPkeSchemesSectionSchema, bh as ApplicationLedgerAllowedSigSchemesSectionSchema, Ah as ApplicationLedgerAuthorSectionSchema, wh as ApplicationLedgerChannelCreationSectionSchema, Eh as ApplicationLedgerChannelInvitationSectionSchema, zh as ApplicationLedgerChannelSchema, Sh as ApplicationLedgerCreationSectionSchema, jh as ApplicationLedgerEndorsementRequestSectionSchema, JS as ApplicationLedgerInternalState, Uh as ApplicationLedgerInternalStateObjectSchema, Rw as ApplicationLedgerMicroblockBuilder, DC as ApplicationLedgerMicroblockStructureChecker, Ce as ApplicationLedgerNotFoundError, kh as ApplicationLedgerPrivateChannelDataSectionSchema, Oh as ApplicationLedgerPublicChannelDataSectionSchema, Th as ApplicationLedgerSharedSecretSectionSchema, Vh as ApplicationLedgerSharedSecretStateSchema, Ew as ApplicationLedgerVb, Yh as ApplicationLedgerVirtualBlockchainStateSchema, bC as ApplicationMicroblockStructureChecker, ye as ApplicationNotFoundError, Rh as ApplicationVBInternalStateObjectSchema, xC as ApplicationVb, Jh as ApplicationVirtualBlockchainStateSchema, EC as Assertion, Zm as AuxiliarySignatureSectionSchema, fO as AwaitMicroblockAnchoringAbciRequestSchema, Tm as BIN256, wm 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, _m as BOOLEAN, iA as BalanceAvailability, ND as Base32, Cg as Base64, MS as BaseHCVSignatureDecoder, uE as BaseHCVSignatureEncoder, t_ as BasePrivateSignatureKey, n_ as BasePublicSignatureKey, $E as BinaryEncoder, QE as BinaryEncoding, eD as BinarySigner, tD as BinaryVerifier, MO as BlockContentAbciResponseSchema, AO as BlockInformationAbciResponseSchema, GO as BlockModifiedAccountsAbciResponseSchema, tg as BlockReferenceSchema, b as BlockchainError, X as BlockchainUtils, aE as BytesSignatureEncoder, kg as BytesToBase64Encoder, Ag as BytesToHexEncoder, zS 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, ck as CertificateTagHandler, sk as CertificateTagSchema, kO as ChainInformationAbciResponseSchema, ig as ChainReferenceSchema, eg as ChainReferenceType, ae as ChannelAlreadyDefinedError, se as ChannelNotDefinedError, Ik as ClientBridgeEncoder, Fk as ClientBridgeMessageSchema, Ak as ClientBridgeMessageSchema_Answer, Mk as ClientBridgeMessageSchema_ConnectionAccepted, jk as ClientBridgeMessageSchema_ConnectionInfo, Dk as ClientBridgeMessageSchema_ConnectionToken, Pk as ClientBridgeMessageSchema_Error, Ok as ClientBridgeMessageSchema_ForwardedAnswer, Nk as ClientBridgeMessageSchema_ForwardedRequest, kk as ClientBridgeMessageSchema_GetConnectionInfo, Tk as ClientBridgeMessageSchema_Request, Ek as ClientBridgeMessageSchema_UpdateQr, Ck as ClientBridgeMessageType, Lk as ClientBridgeValidation, XD as CometBFTErrorCode, ok as CometBFTNodeWebSocket, iE as CometBFTPublicKey, tk as CometBFTPublicKeyConverter, mC as ConstraintNameByConstraint, Tp as Crypto, BS as CryptoEncoderFactory, d as CryptoError, GT as CryptoHandlerApplicationLedgerActorIdentityAdapter, Jx as CryptoSchemeFactory, vv as CryptographicHashSchemeId, qD as CurrencyConverterFactory, pe as CurrentActorNotFoundError, Ym as CustomSectionSchema, gn as DATA, Ga as DEF, TS as DID_TAG, LS as DckfSignatureDecoder, OS as DckfSignatureEncoder, f as DecryptionError, ir as ECO, Kr as ERROR, Ka as ERRORS, HD as Economics, v as EconomicsError, iy as Ed25519PrivateSignatureKey, ry as Ed25519PublicSignatureKey, ny as Ed25519SignatureScheme, u as EmptyBlockError, Og as EncoderFactory, hS as EnvApiKeyPkmsCredentialProvider, OO as ErrorAbciResponseSchema, cg as EscrowLockSchema, sg as EscrowParametersSchema, KD as Euros, JD as EurosToCMTSConverter, rO as ExpirationDate, $g as ExtendedSymmetricEncryptionKey, KT as ExternalKeyApplicationLedgerActorIdentity, Vn as FORMAT, WS as FeesCalculationFormulaFactory, US as FirstFeesFormula, pr as GAS_ATOMS_PER_GAS, fr as GAS_PER_BYTE, gE as GenericSymmetricKeyEncoder, UO as GenesisSnapshotAbciResponseSchema, gO as GetAccountByPublicKeyHashAbciRequestSchema, hO as GetAccountHistoryAbciRequestSchema, TO as GetAccountProofAbciRequestSchema, mO as GetAccountStateAbciRequestSchema, xO as GetAccountUpdatesAbciRequestSchema, cO as GetBlockContentAbciRequestSchema, sO as GetBlockInformationAbciRequestSchema, bO as GetBlockModifiedAccountsAbciRequestSchema, oO as GetChainInformationAbciRequestSchema, vO as GetGenesisSnapshotAbciRequestSchema, pO as GetMicroblockBodysAbciRequestSchema, dO as GetMicroblockInformationAbciRequestSchema, SO as GetMicroblockInformationByHeightAbciRequestSchema, wO as GetMicroblockProofAbciRequestSchema, yO as GetRawBlockContentAbciRequestSchema, CO as GetSerializedMicroblockByHeightAbciRequestSchema, _O as GetValidatorNodeByAddressAbciRequestSchema, lO as GetVirtualBlockchainStateAbciRequestSchema, uO as GetVirtualBlockchainUpdateAbciRequestSchema, Fn as HASHABLE, zn as HASHED, Em as HASH_STR, Mg as HCVCodec, jg as HCVDecoded, Yx as HCVPkeEncoder, Nv as HKDF, RS as HandlerBasedSignatureEncoder, KS as Hash, Qc as Hashes, lr as INITIAL_OFFER, i as IllegalParameterError, a as IllegalStateError, r as IllegalUsageError, m as InternalError, $S as InternalStateFactory, cC as InternalStateUpdaterFactory, ie as InvalidActorError, fe as InvalidChannelError, y as InvalidTokenUnitError, ES as JWK_TAG, rD as JsonCanonicalUtf8Signature, dD as JsonCanonicalUtf8SignatureSchema, gD as JsonCanonicalUtf8Signer, iD as JsonCanonicalizationMethod, cD as JsonEncoder, Cw as JsonSchema, nD as JsonSignature, TD as JsonSignatureParser, DD as JsonSignatureVerifier, DS as JwkPrivateSignatureKey, qx as JwkPublicSignatureKey, oE as JwkSignatureEncoder, Ry as JwkSignatureScheme, wD as JwsSignature, fD as JwsSignatureSchema, OD as JwsSigner, jv as KeyDerivationFunction, Mv as KeyDerivationFunctionSchemeId, e_ as KeyExchangeSchemeId, ag as LOCK_TYPE_COUNT, pg as LockSchema, og 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, FS as MLDSA65HCVSignatureDecoder, fE as MLDSA65HCVSignatureEncoder, a_ as MLDSA65PrivateSignatureKey, i_ as MLDSA65PublicSignatureKey, r_ as MLDSA65SignatureScheme, xS as MLDSA65_TAG, xd as MLDsa, Gd 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, iO as MemoryProvider, vw as MerkleLeaf, Q as MerkleLeafTypeEnum, Sw as MerkleRecord, _w as MerkleTree, zD as MessageSerializer, BD as MessageUnserializer, te as MicroBlockNotFoundError, ne as MicroBlockNotFoundInBlockError, x as MicroBlockNotFoundInVirtualBlockchainAtHeightError, dC as Microblock, IO as MicroblockAnchoringAbciResponseSchema, LO as MicroblockBodyItemSchema, Nh as MicroblockBodySchema, RO as MicroblockBodysAbciResponseSchema, Ow as MicroblockConsistencyChecker, Um as MicroblockHeaderSchema, FO as MicroblockInformationAbciResponseSchema, $h as MicroblockInformationSchema, JO as MicroblockProofAbciResponseSchema, XC as MicroblockProofEntrySchema, YC as MicroblockProofObjectSchema, ZC as MicroblockProofSchema, eO as MicroblockProofWrapper, ng as MicroblockReferenceSchema, uC as MicroblockStructSchema, s as MicroblockStructureCheckingError, Xv as MlKemCiphertextEncoder, Qv as MlKemPrivateDecryptionKey, Zv as MlKemPublicEncryptionKey, zv as MlKemPublicKeyEncryptionScheme, D as NODE_MESSAGES, vm as NULL, gm as NUMBER, Zn as N_VIRTUAL_BLOCKCHAINS, NS as NativeHCVSignatureDecoder, dE as NativeHCVSignatureEncoder, QO as NetworkProvider, zk as NetworksFileSchema, ak as NewBlockEventSchema, De as NoSharedSecretError, g as NodeConnectionRefusedError, _ as NodeEndpointClosedWhileCatchingUpError, h as NodeError, fg as NodeStakingLockSchema, dg as NodeStakingParametersSchema, de as NotAllowedPkeSchemeError, ue as NotAllowedSignatureSchemeError, c as NotAuthenticatedError, ee as NotImplementedError, $O as NullMemoryProvider, ek as NullNetworkProvider, mm as OBJECT, Ta as ORG_CREATION, Ea as ORG_DESCRIPTION, IC as OnChainChannelSchema, RC as OnChainItemListSchema, LC as OnChainItemSchema, Tw as OnChainRecord, Dw as Optional, gh as OrganizationCreationSectionSchema, _h as OrganizationDescriptionSectionSchema, ZS as OrganizationInternalState, sC as OrganizationInternalStateUpdater, gC as OrganizationMicroblockStructureChecker, ve as OrganizationNotFoundError, Ih as OrganizationVBInternalStateObjectSchema, _C as OrganizationVb, Kh as OrganizationVirtualBlockchainStateSchema, Tv as PBKDF2, SS as PKMS_TAG, Ln as PROPERTIES, ca as PROTOCOL_CREATION, la as PROTOCOL_UPDATE, oi as PROTOCOL_VARIABLES, si as PROTOCOL_VB_STATE, Wn as PROTOCOL_VERSION, CS as PUBLIC_KEY_TAG, l as ParsingError, wv as PasswordBasedKeyDerivationFunction, Cv as PasswordBasedKeyDerivationFunctionSchemeId, hE as PkeEncoderFactory, _S as PkmsSecp256k1PrivateSignatureKey, vS as PkmsSecp256k1PublicSignatureKey, IS as PkmsSecp256k1SignatureDecoder, pE as PkmsSecp256k1SignatureEncoder, WC as ProofBlockObjectSchema, GC as ProofBlockSchema, tO as ProofFactory, zC as ProofFieldTypeEnum, QC as ProofInfoSchema, yw as ProofRecord, ce as ProofVerificationFailedError, YD as ProofVerificationResult, mw as ProofWrapper, $m as ProtocolCreationSectionSchema, we as ProtocolError, XS as ProtocolInternalState, oC as ProtocolInternalStateUpdater, wC as ProtocolMicroblockStructureChecker, Jm as ProtocolUpdateSchema, eh as ProtocolUpdateSectionSchema, Ph as ProtocolVBInternalStateObjectSchema, qm as ProtocolVariablesSchema, th as ProtocolVariablesSectionSchema, TC as ProtocolVb, Xh as ProtocolVirtualBlockchainStateSchema, nk as Provider, rk as ProviderFactory, Fv as PublicKeyEncryptionAlgorithmId, Pv as PublicKeyEncryptionSchemeId, jw as RADIX_CST, ni as RECORD_DESCRIPTION, Rn as REDACTED, aO as RPCNodeStatusResponseSchema, Mw as RadixUtils, Zs as Random, WO as RawBlockContentAbciResponseSchema, qv as ReadStream, ww as Record, ZT as RecordActorAssignationSchema, JT as RecordActorSchema, bw as RecordByChannels, XT as RecordChannelAssignationSchema, YT as RecordChannelSchema, eE as RecordHashableFieldSchema, $T as RecordMaskableFieldSchema, QT as RecordMaskedPartSchema, yg as RequestedAccountUpdateSchema, Km as RetentionCostBreakdownSchema, HS as RetentionCostCalculator, Gm as RetentionPolicySchema, Wm as RetentionTierSchema, Gr as SCHEMAS, bS as SECP256K1_TAG, wS as SECRET_KEY_TAG, aa as SECTIONS, oa as SIGNATURE, sa as SIGNATURE_SCHEMA, yS as SIGNATURE_TAG, hm as STRING, xw as SaltShaker, Jv as SchemaSerializer, Yv as SchemaUnserializer, VD as SchemaValidator, SE as Scrypt, _p as Secp256k1, PS as Secp256k1HCVSignatureDecoder, mE as Secp256k1HCVSignatureEncoder, ty as Secp256k1PrivateSignatureKey, ey as Secp256k1PublicSignatureKey, $v as Secp256k1SignatureScheme, Z as SectionConstraint, me as SectionError, rC as SectionLabel, Ee as SectionNotFoundError, rg as SectionReferenceSchema, Mh as SectionSchema, O as SectionType, zw as SeedEncoder, wE as SelfProvidedApiKeyPkmsCredentialProvider, Oe as SerializationError, qO as SerializedMicroblockByHeightAbciResponseSchema, ik as ServerNetworkProvider, yv as Sha256CryptographicHash, p as SharedKeyDecryptionError, CE as SignatureAlgorithmId, kD as SignatureCacheDisabled, AD as SignatureCacheEntry, jD as SignatureCacheMonothread, lD as SignatureContextSchema, pD as SignatureObjectSchema, Ja as SignatureSchemeId, Xm as SignatureSectionSchema, pk as SignatureTagSchema, uD as SignatureType, mD as SignatureVerificationContextSchema, hD as SignatureVerificationSchema, ED as SignatureVerificationUtils, uw as SignedAccountPayloadSchema, cw as SignedAppLedgerPayloadSchema, fw as SignedMicroblockPayloadSchema, ow as SignedProofPayloadSchema, Lw as StateChecker, hC as StructureChecker, Xg 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, fC as ThrownErrorMicroblockSearchFailureFallback, lC as TimestampValidationResult, pn as TokenUnit, mn as TokenUnitLabel, lk as Transaction, AC as TransformationTypeEnum, ro as TypeChecker, eo as TypeCheckingFailureError, MC as TypeEnum, no as TypeManager, bm as UINT16, xm as UINT24, Sm as UINT32, Cm as UINT48, ym 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, mh as ValidatorNodeApprovalSectionSchema, HO as ValidatorNodeByAddressAbciResponseSchema, fh as ValidatorNodeCometbftPublicKeyDeclarationSectionSchema, dh as ValidatorNodeCreationSectionSchema, QS as ValidatorNodeInternalState, aC as ValidatorNodeInternalStateUpdater, SC as ValidatorNodeMicroblockStructureChecker, be as ValidatorNodeNotFoundError, ph as ValidatorNodeRpcEndpointSectionSchema, hh as ValidatorNodeSlashingCancellationSectionSchema, Lh as ValidatorNodeVBInternalStateObjectSchema, CC as ValidatorNodeVb, qh as ValidatorNodeVirtualBlockchainStateSchema, ug as VestingLockSchema, lg as VestingParametersSchema, pC as VirtualBlockchain, Qh as VirtualBlockchainInfoSchema, fk as VirtualBlockchainLabel, Se as VirtualBlockchainNotFoundError, Wh as VirtualBlockchainSharedPropertiesSchema, NO as VirtualBlockchainStateAbciResponseSchema, Zh as VirtualBlockchainStateSchema, Bk as VirtualBlockchainStatusSchema, H as VirtualBlockchainType, PO 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, Sk as WI_MAX_SERVER_URL_LENGTH, ra as WI_MESSAGES, qi as WI_QR_CODE, Hw as WalletCrypto, aA as WalletInteractiveAnchoringEncoder, Wk as WalletInteractiveAnchoringRequestActorKeySchema, Uk as WalletInteractiveAnchoringRequestApprovalHandshakeSchema, Gk as WalletInteractiveAnchoringRequestApprovalSignatureSchema, Kk as WalletInteractiveAnchoringRequestSchema, Vk as WalletInteractiveAnchoringRequestType, Jk as WalletInteractiveAnchoringResponseActorKeyRequiredSchema, Yk as WalletInteractiveAnchoringResponseApprovalDataSchema, Xk as WalletInteractiveAnchoringResponseApprovalSignatureSchema, qk as WalletInteractiveAnchoringResponseErrorSchema, Zk as WalletInteractiveAnchoringResponseSchema, Hk as WalletInteractiveAnchoringResponseType, oA as WalletInteractiveAnchoringValidation, gk as WalletRequestAuthByPublicKeySchema, rE as WalletRequestBasedApplicationLedgerMicroblockBuilder, _k as WalletRequestDataApprovalSchema, Qk as WalletRequestEncoder, vk as WalletRequestSchema, mk as WalletRequestType, $k as WalletRequestValidation, yk as WalletResponseAuthByPublicKeySchema, bk as WalletResponseDataApprovalSchema, xk as WalletResponseSchema, hk as WalletResponseType, sA as WalletSeedEncoder, Rk as WiQrCodeEncoder, wk as WiQrCodeSchema, dw as WrappedAccountProofSchema, lw as WrappedAppLedgerProofSchema, pw as WrappedMicroblockProofSchema, sw as WrappedProofSchema, Kv as WriteStream, zm as accountId, Dm as array, xD as base64UrlToBytes, vD as base64UrlToObject, Rm as bin256, Lm as binary, Am as boolean, yD as bytesToBase64Url, Hy as createJwkSigner, Uy as createJwkVerifier, Kx as decodeSignatureJwk, CD as deriveJwtClaimsFromSignatureContext, SD as determineJwsAlgorithm, Gx as encodeSignatureJwk, xy as extractPrivateJwk, by as extractPublicJwk, Wy as generateSignatureJwk, zy as getSubtle, Bm as height, V as naturalInt, Hm as nonNegativeInt, km as number, Vm as positiveInt, Cy as requireJwkMember, fy as resolveJwkSignatureAlgorithm, vy as resolveJwkSignatureAlgorithmByName, Sy as sortJwkMembers, Om as string, Nm as uint16, Pm as uint24, Fm as uint32, Im as uint48, Mm as uint8, B as uint8array, bD as utf8StringToBase64Url, Fw as verifyRadixProof };