@argonprotocol/mainchain 1.3.3 → 1.3.5

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11;// src/interfaces/augment-api-consts.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10;// src/interfaces/augment-api-consts.ts
2
2
  require('@polkadot/api-base/types/consts');
3
3
 
4
4
  // src/interfaces/augment-api-errors.ts
@@ -123,20 +123,21 @@ var TxSubmitter = class {
123
123
  const { tip, unavailableBalance } = options;
124
124
  const account = await this.client.query.system.account(this.pair.address);
125
125
  let availableBalance = account.data.free.toBigInt();
126
+ const userBalance = availableBalance;
126
127
  if (unavailableBalance) {
127
128
  availableBalance -= unavailableBalance;
128
129
  }
129
130
  const existentialDeposit = options.includeExistentialDeposit ? this.client.consts.balances.existentialDeposit.toBigInt() : 0n;
130
131
  const fees = await this.feeEstimate(tip);
131
132
  const totalCharge = fees + (_nullishCoalesce(tip, () => ( 0n)));
132
- const canAfford = availableBalance > totalCharge + existentialDeposit;
133
- return { canAfford, availableBalance, txFee: fees };
133
+ const canAfford = availableBalance >= totalCharge + existentialDeposit;
134
+ return { canAfford, availableBalance: userBalance, txFee: fees };
134
135
  }
135
136
  async submit(options = {}) {
136
137
  const { logResults, waitForBlock, useLatestNonce, ...apiOptions } = options;
137
138
  await waitForLoad();
138
139
  const result = new TxResult(this.client, logResults);
139
- result.onResultCallback = options.onResultCallback;
140
+ result.txProgressCallback = options.txProgressCallback;
140
141
  let toHuman = this.tx.toHuman().method;
141
142
  let txString = [];
142
143
  let api = formatCall(toHuman);
@@ -240,7 +241,15 @@ var TxResult = (_class = class {
240
241
  if (isFinalized) {
241
242
  this.finalizedResolve(status.asFinalized);
242
243
  }
243
- _optionalChain([this, 'access', _2 => _2.onResultCallback, 'optionalCall', _3 => _3(result)]);
244
+ if (this.txProgressCallback) {
245
+ let percent = 0;
246
+ if (result.status.isBroadcast) {
247
+ percent = 50;
248
+ } else if (result.status.isInBlock) {
249
+ percent = 100;
250
+ }
251
+ this.txProgressCallback(percent, this);
252
+ }
244
253
  }
245
254
  reject(error) {
246
255
  this.inBlockReject(error);
@@ -250,13 +259,12 @@ var TxResult = (_class = class {
250
259
 
251
260
  // src/utils.ts
252
261
  var _bignumberjs = require('bignumber.js'); var BN = _interopRequireWildcard(_bignumberjs); var BN2 = _interopRequireWildcard(_bignumberjs);
253
- var _util = require('@polkadot/util');
254
262
  var { ROUND_FLOOR } = BN;
255
263
  var MICROGONS_PER_ARGON = 1e6;
256
- function formatArgons(x) {
257
- if (x === void 0 || x === null) return "na";
258
- const isNegative = x < 0;
259
- let format = BN.default.call(void 0, x.toString()).abs().div(MICROGONS_PER_ARGON).toFormat(2, ROUND_FLOOR);
264
+ function formatArgons(microgons) {
265
+ if (microgons === void 0 || microgons === null) return "na";
266
+ const isNegative = microgons < 0;
267
+ let format = BN.default.call(void 0, microgons.toString()).abs().div(MICROGONS_PER_ARGON).toFormat(2, ROUND_FLOOR);
260
268
  if (format.endsWith(".00")) {
261
269
  format = format.slice(0, -3);
262
270
  }
@@ -321,7 +329,7 @@ function convertNumberToPermill(value) {
321
329
  function eventDataToJson(event) {
322
330
  const obj = {};
323
331
  event.data.forEach((data, index) => {
324
- const name = _optionalChain([event, 'access', _4 => _4.data, 'access', _5 => _5.names, 'optionalAccess', _6 => _6[index]]);
332
+ const name = _optionalChain([event, 'access', _2 => _2.data, 'access', _3 => _3.names, 'optionalAccess', _4 => _4[index]]);
325
333
  obj[_nullishCoalesce(name, () => ( `${index}`))] = data.toJSON();
326
334
  });
327
335
  return obj;
@@ -400,7 +408,7 @@ var JsonExt = class {
400
408
  return BigInt(v.slice(0, -1));
401
409
  }
402
410
  if (typeof v === "object" && v !== null && v.type === "Buffer" && Array.isArray(v.data)) {
403
- return _util.hexToU8a.call(void 0, v.data);
411
+ return Uint8Array.from(v.data);
404
412
  }
405
413
  return v;
406
414
  });
@@ -419,7 +427,7 @@ var TypedEmitter = (_class2 = class {constructor() { _class2.prototype.__init2.c
419
427
  on(event, cb) {
420
428
  (this.events[event] ||= []).push(cb);
421
429
  return () => {
422
- this.events[event] = _optionalChain([this, 'access', _7 => _7.events, 'access', _8 => _8[event], 'optionalAccess', _9 => _9.filter, 'call', _10 => _10((i) => cb !== i)]);
430
+ this.events[event] = _optionalChain([this, 'access', _5 => _5.events, 'access', _6 => _6[event], 'optionalAccess', _7 => _7.filter, 'call', _8 => _8((i) => cb !== i)]);
423
431
  };
424
432
  }
425
433
  }, _class2);
@@ -589,7 +597,7 @@ BLOCK #${header.number}, ${header.hash.toHuman()}`);
589
597
  if (this.options.shouldLog) {
590
598
  console.log(
591
599
  `> [Failed Tx] ${section}.${name} -> ${ext.method.section}.${ext.method.method} (nonce=${ext.nonce})`,
592
- _optionalChain([ext, 'access', _11 => _11.toHuman, 'call', _12 => _12(), 'optionalAccess', _13 => _13.method, 'optionalAccess', _14 => _14.args])
600
+ _optionalChain([ext, 'access', _9 => _9.toHuman, 'call', _10 => _10(), 'optionalAccess', _11 => _11.method, 'optionalAccess', _12 => _12.args])
593
601
  );
594
602
  }
595
603
  } else {
@@ -787,7 +795,7 @@ var AccountMiners = (_class5 = class _AccountMiners {
787
795
  }, _class5);
788
796
 
789
797
  // src/Accountset.ts
790
-
798
+ var _util = require('@polkadot/util');
791
799
  var Accountset = (_class6 = class {
792
800
 
793
801
  __init9() {this.isProxy = false}
@@ -845,7 +853,7 @@ var Accountset = (_class6 = class {
845
853
  return {
846
854
  address,
847
855
  amount: account.data.free.toBigInt(),
848
- index: _nullishCoalesce(_optionalChain([this, 'access', _15 => _15.subAccountsByAddress, 'access', _16 => _16[address], 'optionalAccess', _17 => _17.index]), () => ( Number.NaN))
856
+ index: _nullishCoalesce(_optionalChain([this, 'access', _13 => _13.subAccountsByAddress, 'access', _14 => _14[address], 'optionalAccess', _15 => _15.index]), () => ( Number.NaN))
849
857
  };
850
858
  });
851
859
  }
@@ -859,7 +867,7 @@ var Accountset = (_class6 = class {
859
867
  return {
860
868
  address,
861
869
  amount: account.free.toBigInt(),
862
- index: _nullishCoalesce(_optionalChain([this, 'access', _18 => _18.subAccountsByAddress, 'access', _19 => _19[address], 'optionalAccess', _20 => _20.index]), () => ( Number.NaN))
870
+ index: _nullishCoalesce(_optionalChain([this, 'access', _16 => _16.subAccountsByAddress, 'access', _17 => _17[address], 'optionalAccess', _18 => _18.index]), () => ( Number.NaN))
863
871
  };
864
872
  });
865
873
  }
@@ -908,7 +916,7 @@ var Accountset = (_class6 = class {
908
916
  const [frameIdRaw, indexRaw] = rawIndices[i].value;
909
917
  const frameId = frameIdRaw.toNumber();
910
918
  const index = indexRaw.toNumber();
911
- const bidAmount = _optionalChain([bidAmountsByFrame, 'access', _21 => _21[frameId], 'optionalAccess', _22 => _22[index]]);
919
+ const bidAmount = _optionalChain([bidAmountsByFrame, 'access', _19 => _19[frameId], 'optionalAccess', _20 => _20[index]]);
912
920
  addressToMiningIndex[address] = {
913
921
  startingFrameId: frameId,
914
922
  index,
@@ -926,7 +934,7 @@ var Accountset = (_class6 = class {
926
934
  address,
927
935
  seat: cohort,
928
936
  isLastDay,
929
- subaccountIndex: _nullishCoalesce(_optionalChain([this, 'access', _23 => _23.subAccountsByAddress, 'access', _24 => _24[address], 'optionalAccess', _25 => _25.index]), () => ( Number.NaN))
937
+ subaccountIndex: _nullishCoalesce(_optionalChain([this, 'access', _21 => _21.subAccountsByAddress, 'access', _22 => _22[address], 'optionalAccess', _23 => _23.index]), () => ( Number.NaN))
930
938
  };
931
939
  });
932
940
  }
@@ -940,7 +948,7 @@ var Accountset = (_class6 = class {
940
948
  return {
941
949
  ...miner,
942
950
  hasWinningBid: !!bid,
943
- bidAmount: _nullishCoalesce(_nullishCoalesce(_optionalChain([bid, 'optionalAccess', _26 => _26.bid, 'access', _27 => _27.toBigInt, 'call', _28 => _28()]), () => ( _optionalChain([miner, 'access', _29 => _29.seat, 'optionalAccess', _30 => _30.bidAmount]))), () => ( 0n))
951
+ bidAmount: _nullishCoalesce(_nullishCoalesce(_optionalChain([bid, 'optionalAccess', _24 => _24.bid, 'access', _25 => _25.toBigInt, 'call', _26 => _26()]), () => ( _optionalChain([miner, 'access', _27 => _27.seat, 'optionalAccess', _28 => _28.bidAmount]))), () => ( 0n))
944
952
  };
945
953
  });
946
954
  }
@@ -956,9 +964,9 @@ var Accountset = (_class6 = class {
956
964
  const entry = registrationsByAddress[address];
957
965
  return {
958
966
  address,
959
- bidPlace: _optionalChain([entry, 'optionalAccess', _31 => _31.index]),
960
- bidAmount: _optionalChain([entry, 'optionalAccess', _32 => _32.bid, 'optionalAccess', _33 => _33.toBigInt, 'call', _34 => _34()]),
961
- index: _nullishCoalesce(_optionalChain([this, 'access', _35 => _35.subAccountsByAddress, 'access', _36 => _36[address], 'optionalAccess', _37 => _37.index]), () => ( Number.NaN))
967
+ bidPlace: _optionalChain([entry, 'optionalAccess', _29 => _29.index]),
968
+ bidAmount: _optionalChain([entry, 'optionalAccess', _30 => _30.bid, 'optionalAccess', _31 => _31.toBigInt, 'call', _32 => _32()]),
969
+ index: _nullishCoalesce(_optionalChain([this, 'access', _33 => _33.subAccountsByAddress, 'access', _34 => _34[address], 'optionalAccess', _35 => _35.index]), () => ( Number.NaN))
962
970
  };
963
971
  });
964
972
  }
@@ -1008,23 +1016,23 @@ var Accountset = (_class6 = class {
1008
1016
  {
1009
1017
  index: "main",
1010
1018
  address: this.seedAddress,
1011
- argons: formatArgons(_nullishCoalesce(_optionalChain([argons, 'access', _38 => _38.find, 'call', _39 => _39((x) => x.address === this.seedAddress), 'optionalAccess', _40 => _40.amount]), () => ( 0n))),
1012
- argonots: formatArgons(_nullishCoalesce(_optionalChain([argonots, 'access', _41 => _41.find, 'call', _42 => _42((x) => x.address === this.seedAddress), 'optionalAccess', _43 => _43.amount]), () => ( 0n)))
1019
+ argons: formatArgons(_nullishCoalesce(_optionalChain([argons, 'access', _36 => _36.find, 'call', _37 => _37((x) => x.address === this.seedAddress), 'optionalAccess', _38 => _38.amount]), () => ( 0n))),
1020
+ argonots: formatArgons(_nullishCoalesce(_optionalChain([argonots, 'access', _39 => _39.find, 'call', _40 => _40((x) => x.address === this.seedAddress), 'optionalAccess', _41 => _41.amount]), () => ( 0n)))
1013
1021
  }
1014
1022
  ];
1015
1023
  for (const [address, { index }] of Object.entries(this.subAccountsByAddress)) {
1016
- const argonAmount = _nullishCoalesce(_optionalChain([argons, 'access', _44 => _44.find, 'call', _45 => _45((x) => x.address === address), 'optionalAccess', _46 => _46.amount]), () => ( 0n));
1017
- const argonotAmount = _nullishCoalesce(_optionalChain([argonots, 'access', _47 => _47.find, 'call', _48 => _48((x) => x.address === address), 'optionalAccess', _49 => _49.amount]), () => ( 0n));
1024
+ const argonAmount = _nullishCoalesce(_optionalChain([argons, 'access', _42 => _42.find, 'call', _43 => _43((x) => x.address === address), 'optionalAccess', _44 => _44.amount]), () => ( 0n));
1025
+ const argonotAmount = _nullishCoalesce(_optionalChain([argonots, 'access', _45 => _45.find, 'call', _46 => _46((x) => x.address === address), 'optionalAccess', _47 => _47.amount]), () => ( 0n));
1018
1026
  const bid = bids.find((x) => x.address === address);
1019
- const seat = _optionalChain([seats, 'access', _50 => _50.find, 'call', _51 => _51((x) => x.address === address), 'optionalAccess', _52 => _52.seat]);
1027
+ const seat = _optionalChain([seats, 'access', _48 => _48.find, 'call', _49 => _49((x) => x.address === address), 'optionalAccess', _50 => _50.seat]);
1020
1028
  const entry = {
1021
1029
  index: ` //${index}`,
1022
1030
  address,
1023
1031
  argons: formatArgons(argonAmount),
1024
1032
  argonots: formatArgons(argonotAmount),
1025
1033
  seat,
1026
- bidPlace: _optionalChain([bid, 'optionalAccess', _53 => _53.bidPlace]),
1027
- bidAmount: _nullishCoalesce(_optionalChain([bid, 'optionalAccess', _54 => _54.bidAmount]), () => ( 0n))
1034
+ bidPlace: _optionalChain([bid, 'optionalAccess', _51 => _51.bidPlace]),
1035
+ bidAmount: _nullishCoalesce(_optionalChain([bid, 'optionalAccess', _52 => _52.bidAmount]), () => ( 0n))
1028
1036
  };
1029
1037
  if (accountSubset) {
1030
1038
  entry.isWorkingOn = accountSubset.some((x) => x.address === address);
@@ -1232,12 +1240,12 @@ var MiningBids = (_class7 = class {
1232
1240
  const nextFrameId = rawNextCohortStartingFrameId.toNumber();
1233
1241
  if (isBiddingOpen.isTrue) {
1234
1242
  if (openCohortStartingFrameId !== 0) {
1235
- await _optionalChain([onBiddingEnd, 'optionalCall', _55 => _55(openCohortStartingFrameId)]);
1243
+ await _optionalChain([onBiddingEnd, 'optionalCall', _53 => _53(openCohortStartingFrameId)]);
1236
1244
  }
1237
1245
  openCohortStartingFrameId = nextFrameId;
1238
- await _optionalChain([onBiddingStart, 'optionalCall', _56 => _56(nextFrameId)]);
1246
+ await _optionalChain([onBiddingStart, 'optionalCall', _54 => _54(nextFrameId)]);
1239
1247
  } else {
1240
- await _optionalChain([onBiddingEnd, 'optionalCall', _57 => _57(nextFrameId)]);
1248
+ await _optionalChain([onBiddingEnd, 'optionalCall', _55 => _55(nextFrameId)]);
1241
1249
  openCohortStartingFrameId = 0;
1242
1250
  }
1243
1251
  }
@@ -1294,19 +1302,20 @@ var MiningBids = (_class7 = class {
1294
1302
  var _bs58check = require('bs58check'); var _bs58check2 = _interopRequireDefault(_bs58check);
1295
1303
 
1296
1304
  var { ROUND_FLOOR: ROUND_FLOOR2 } = BN2;
1297
- var Vault = (_class8 = class _Vault {
1298
- constructor(id, vault, tickDuration) {;_class8.prototype.__init12.call(this);
1305
+ var Vault = class _Vault {
1306
+ constructor(id, vault, tickDuration) {
1299
1307
  this.tickDuration = tickDuration;
1300
1308
  this.vaultId = id;
1301
- this.load(vault);
1302
1309
  this.openedTick = vault.openedTick.toNumber();
1303
1310
  this.openedDate = new Date(this.openedTick * this.tickDuration);
1311
+ this.argonsScheduledForRelease = /* @__PURE__ */ new Map();
1312
+ this.load(vault);
1304
1313
  }
1305
1314
 
1306
1315
 
1307
1316
 
1308
1317
 
1309
- __init12() {this.argonsScheduledForRelease = /* @__PURE__ */ new Map()}
1318
+
1310
1319
 
1311
1320
 
1312
1321
 
@@ -1317,7 +1326,9 @@ var Vault = (_class8 = class _Vault {
1317
1326
 
1318
1327
  load(vault) {
1319
1328
  this.securitization = vault.securitization.toBigInt();
1320
- this.securitizationRatio = convertFixedU128ToBigNumber(vault.securitizationRatio.toBigInt());
1329
+ this.securitizationRatio = convertFixedU128ToBigNumber(
1330
+ vault.securitizationRatio.toBigInt()
1331
+ ).toNumber();
1321
1332
  this.argonsLocked = vault.argonsLocked.toBigInt();
1322
1333
  this.argonsPendingActivation = vault.argonsPendingActivation.toBigInt();
1323
1334
  if (vault.argonsScheduledForRelease.size > 0) {
@@ -1359,21 +1370,21 @@ var Vault = (_class8 = class _Vault {
1359
1370
  getRelockCapacity() {
1360
1371
  return [...this.argonsScheduledForRelease.values()].reduce((acc, val) => acc + val, 0n);
1361
1372
  }
1373
+ securitizationRatioBN() {
1374
+ return new (0, BN.default)(this.securitizationRatio);
1375
+ }
1362
1376
  recoverySecuritization() {
1363
- const reserved = new (0, BN.default)(1).div(this.securitizationRatio);
1377
+ const reserved = new (0, BN.default)(1).div(this.securitizationRatioBN());
1364
1378
  return this.securitization - BigInt(reserved.multipliedBy(this.securitization.toString()).toFixed(0, ROUND_FLOOR2));
1365
1379
  }
1366
1380
  minimumSecuritization() {
1367
1381
  return BigInt(
1368
- this.securitizationRatio.multipliedBy(this.argonsLocked.toString()).decimalPlaces(0, BN.default.ROUND_CEIL).toString()
1382
+ this.securitizationRatioBN().multipliedBy(this.argonsLocked.toString()).decimalPlaces(0, BN.default.ROUND_CEIL).toString()
1369
1383
  );
1370
1384
  }
1371
1385
  activatedSecuritization() {
1372
1386
  const activated = this.argonsLocked - this.argonsPendingActivation;
1373
- let maxRatio = this.securitizationRatio;
1374
- if (this.securitizationRatio.toNumber() > 2) {
1375
- maxRatio = BN.default.call(void 0, 2);
1376
- }
1387
+ const maxRatio = BN.default.call(void 0, Math.min(this.securitizationRatio, 2));
1377
1388
  return BigInt(maxRatio.multipliedBy(activated.toString()).toFixed(0, ROUND_FLOOR2));
1378
1389
  }
1379
1390
  /**
@@ -1404,7 +1415,7 @@ var Vault = (_class8 = class _Vault {
1404
1415
  bitcoinXpub,
1405
1416
  tip,
1406
1417
  doNotExceedBalance,
1407
- progressCallback
1418
+ txProgressCallback
1408
1419
  } = args;
1409
1420
  let xpubBytes = _util.hexToU8a.call(void 0, bitcoinXpub);
1410
1421
  if (xpubBytes.length !== 78) {
@@ -1447,21 +1458,7 @@ var Vault = (_class8 = class _Vault {
1447
1458
  tip,
1448
1459
  useLatestNonce: true,
1449
1460
  waitForBlock: true,
1450
- onResultCallback(result2) {
1451
- let percent = 0;
1452
- if (result2.status.isInvalid || result2.status.isDropped || result2.status.isUsurped || result2.status.isRetracted) {
1453
- percent = 1;
1454
- } else if (result2.status.isReady) {
1455
- percent = 0;
1456
- } else if (result2.status.isBroadcast) {
1457
- percent = 0.5;
1458
- } else if (result2.status.isInBlock) {
1459
- percent = 1;
1460
- } else if (result2.status.isFinalized) {
1461
- percent = 1.1;
1462
- }
1463
- _optionalChain([progressCallback, 'optionalCall', _58 => _58(percent, result2.status)]);
1464
- }
1461
+ txProgressCallback
1465
1462
  });
1466
1463
  await result.inBlockPromise;
1467
1464
  let vaultId;
@@ -1482,12 +1479,12 @@ var Vault = (_class8 = class _Vault {
1482
1479
  const vault = new _Vault(vaultId, rawVault.unwrap(), tickDuration);
1483
1480
  return { vault, txResult: result };
1484
1481
  }
1485
- }, _class8);
1482
+ };
1486
1483
 
1487
1484
  // src/VaultMonitor.ts
1488
1485
 
1489
- var VaultMonitor = (_class9 = class {
1490
- constructor(accountset, alerts = {}, options = {}) {;_class9.prototype.__init13.call(this);_class9.prototype.__init14.call(this);_class9.prototype.__init15.call(this);_class9.prototype.__init16.call(this);_class9.prototype.__init17.call(this);_class9.prototype.__init18.call(this);
1486
+ var VaultMonitor = (_class8 = class {
1487
+ constructor(accountset, alerts = {}, options = {}) {;_class8.prototype.__init12.call(this);_class8.prototype.__init13.call(this);_class8.prototype.__init14.call(this);_class8.prototype.__init15.call(this);_class8.prototype.__init16.call(this);_class8.prototype.__init17.call(this);
1491
1488
  this.accountset = accountset;
1492
1489
  this.alerts = alerts;
1493
1490
  this.options = options;
@@ -1515,16 +1512,16 @@ var VaultMonitor = (_class9 = class {
1515
1512
  this.printBids(header.hash);
1516
1513
  });
1517
1514
  }
1518
- __init13() {this.events = createNanoEvents()}
1519
- __init14() {this.vaultsById = {}}
1515
+ __init12() {this.events = createNanoEvents()}
1516
+ __init13() {this.vaultsById = {}}
1520
1517
 
1521
1518
 
1522
- __init15() {this.activatedCapitalByVault = {}}
1519
+ __init14() {this.activatedCapitalByVault = {}}
1523
1520
 
1524
1521
 
1525
- __init16() {this.tickDuration = 0}
1526
- __init17() {this.vaultOnlyWatchMode = false}
1527
- __init18() {this.shouldLog = true}
1522
+ __init15() {this.tickDuration = 0}
1523
+ __init16() {this.vaultOnlyWatchMode = false}
1524
+ __init17() {this.shouldLog = true}
1528
1525
  stop() {
1529
1526
  this.blockWatch.stop();
1530
1527
  }
@@ -1568,7 +1565,7 @@ var VaultMonitor = (_class9 = class {
1568
1565
  id: vaultId,
1569
1566
  btcSpace: `${formatArgons(vault.availableBitcoinSpace())} (${formatArgons(vault.argonsPendingActivation)} pending)`,
1570
1567
  btcDeal: `${formatArgons(vault.terms.bitcoinBaseFee)} + ${formatPercent(vault.terms.bitcoinAnnualPercentRate)}`,
1571
- securitization: `${formatArgons(vault.securitization)} at ${vault.securitizationRatio.toFormat(1)}x`,
1568
+ securitization: `${formatArgons(vault.securitization)} at ${vault.securitizationRatio}x`,
1572
1569
  securActivated: `${formatArgons(vault.activatedSecuritizationPerSlot())}/slot`,
1573
1570
  liquidPoolDeal: `${formatPercent(vault.terms.liquidityPoolProfitSharing)} sharing`,
1574
1571
  operator: `${this.accountset.namedAccounts.has(vault.operatorAccountId) ? ` (${this.accountset.namedAccounts.get(vault.operatorAccountId)})` : vault.operatorAccountId}`,
@@ -1655,11 +1652,11 @@ var VaultMonitor = (_class9 = class {
1655
1652
  this.miningBids.print();
1656
1653
  this.lastPrintedBids = blockHash;
1657
1654
  }
1658
- }, _class9);
1655
+ }, _class8);
1659
1656
 
1660
1657
  // src/CohortBidder.ts
1661
- var CohortBidder = (_class10 = class {
1662
- constructor(accountset, cohortStartingFrameId, subaccounts, options) {;_class10.prototype.__init19.call(this);_class10.prototype.__init20.call(this);_class10.prototype.__init21.call(this);_class10.prototype.__init22.call(this);_class10.prototype.__init23.call(this);_class10.prototype.__init24.call(this);_class10.prototype.__init25.call(this);_class10.prototype.__init26.call(this);
1658
+ var CohortBidder = (_class9 = class {
1659
+ constructor(accountset, cohortStartingFrameId, subaccounts, options) {;_class9.prototype.__init18.call(this);_class9.prototype.__init19.call(this);_class9.prototype.__init20.call(this);_class9.prototype.__init21.call(this);_class9.prototype.__init22.call(this);_class9.prototype.__init23.call(this);_class9.prototype.__init24.call(this);_class9.prototype.__init25.call(this);
1663
1660
  this.accountset = accountset;
1664
1661
  this.cohortStartingFrameId = cohortStartingFrameId;
1665
1662
  this.subaccounts = subaccounts;
@@ -1671,19 +1668,19 @@ var CohortBidder = (_class10 = class {
1671
1668
  get client() {
1672
1669
  return this.accountset.client;
1673
1670
  }
1674
- __init19() {this.txFees = 0n}
1675
- __init20() {this.winningBids = []}
1671
+ __init18() {this.txFees = 0n}
1672
+ __init19() {this.winningBids = []}
1676
1673
 
1677
1674
 
1678
1675
 
1679
- __init21() {this.isStopped = false}
1680
- __init22() {this.needsRebid = false}
1681
- __init23() {this.lastBidTime = 0}
1676
+ __init20() {this.isStopped = false}
1677
+ __init21() {this.needsRebid = false}
1678
+ __init22() {this.lastBidTime = 0}
1682
1679
 
1683
- __init24() {this.minIncrement = 10000n}
1680
+ __init23() {this.minIncrement = 10000n}
1684
1681
 
1685
- __init25() {this.lastBidBlockNumber = 0}
1686
- __init26() {this.myAddresses = /* @__PURE__ */ new Set()}
1682
+ __init24() {this.lastBidBlockNumber = 0}
1683
+ __init25() {this.myAddresses = /* @__PURE__ */ new Set()}
1687
1684
  async start() {
1688
1685
  console.log(`Starting cohort ${this.cohortStartingFrameId} bidder`, {
1689
1686
  maxBid: formatArgons(this.options.maxBid),
@@ -1911,7 +1908,7 @@ var CohortBidder = (_class10 = class {
1911
1908
  const bids = await client.query.miningSlot.bidsForNextSlotCohort();
1912
1909
  await this.checkWinningBids(bids);
1913
1910
  }
1914
- }, _class10);
1911
+ }, _class9);
1915
1912
 
1916
1913
  // src/BidPool.ts
1917
1914
 
@@ -1922,23 +1919,23 @@ var EMPTY_TABLE = {
1922
1919
  tableBottom: { left: " ", mid: " ", other: " ", right: " " },
1923
1920
  vertical: " "
1924
1921
  };
1925
- var BidPool = (_class11 = class {
1926
- constructor(client, keypair, accountRegistry = AccountRegistry.factory()) {;_class11.prototype.__init27.call(this);_class11.prototype.__init28.call(this);_class11.prototype.__init29.call(this);_class11.prototype.__init30.call(this);_class11.prototype.__init31.call(this);_class11.prototype.__init32.call(this);
1922
+ var BidPool = (_class10 = class {
1923
+ constructor(client, keypair, accountRegistry = AccountRegistry.factory()) {;_class10.prototype.__init26.call(this);_class10.prototype.__init27.call(this);_class10.prototype.__init28.call(this);_class10.prototype.__init29.call(this);_class10.prototype.__init30.call(this);_class10.prototype.__init31.call(this);
1927
1924
  this.client = client;
1928
1925
  this.keypair = keypair;
1929
1926
  this.accountRegistry = accountRegistry;
1930
1927
  this.blockWatch = new BlockWatch(client, { shouldLog: false });
1931
1928
  }
1932
- __init27() {this.bidPoolAmount = 0n}
1933
- __init28() {this.nextFrameId = 1}
1934
- __init29() {this.poolVaultCapitalByFrame = {}}
1935
- __init30() {this.vaultSecuritization = []}
1929
+ __init26() {this.bidPoolAmount = 0n}
1930
+ __init27() {this.nextFrameId = 1}
1931
+ __init28() {this.poolVaultCapitalByFrame = {}}
1932
+ __init29() {this.vaultSecuritization = []}
1936
1933
 
1937
1934
 
1938
- __init31() {this.vaultsById = {}}
1935
+ __init30() {this.vaultsById = {}}
1939
1936
 
1940
1937
 
1941
- __init32() {this.FrameSubscriptions = {}}
1938
+ __init31() {this.FrameSubscriptions = {}}
1942
1939
  async onVaultsUpdated(blockHash, vaultIdSet) {
1943
1940
  const client = await this.client;
1944
1941
  this.tickDuration ??= (await client.query.ticks.genesisTicker()).tickDurationMillis.toNumber();
@@ -2012,7 +2009,7 @@ var BidPool = (_class11 = class {
2012
2009
  const { frameId: rawFrameId } = event.data;
2013
2010
  this.lastDistributedFrameId = rawFrameId.toNumber();
2014
2011
  this.bidPoolAmount = await this.getBidPool();
2015
- _optionalChain([this, 'access', _59 => _59.FrameSubscriptions, 'access', _60 => _60[rawFrameId.toNumber()], 'optionalCall', _61 => _61()]);
2012
+ _optionalChain([this, 'access', _56 => _56.FrameSubscriptions, 'access', _57 => _57[rawFrameId.toNumber()], 'optionalCall', _58 => _58()]);
2016
2013
  const entrant = await api.query.liquidityPools.vaultPoolsByFrame(rawFrameId);
2017
2014
  this.loadFrameData(rawFrameId.toNumber(), entrant);
2018
2015
  this.printDebounce();
@@ -2058,7 +2055,7 @@ var BidPool = (_class11 = class {
2058
2055
  const tx = client.tx.liquidityPools.bondArgons(vaultId, amount);
2059
2056
  const txSubmitter = new TxSubmitter(client, tx, this.keypair);
2060
2057
  const affordability = await txSubmitter.canAfford({
2061
- tip: _optionalChain([options, 'optionalAccess', _62 => _62.tip]),
2058
+ tip: _optionalChain([options, 'optionalAccess', _59 => _59.tip]),
2062
2059
  unavailableBalance: amount
2063
2060
  });
2064
2061
  if (!affordability.canAfford) {
@@ -2069,7 +2066,7 @@ var BidPool = (_class11 = class {
2069
2066
  throw new Error("Insufficient balance to bond argons to liquidity pool");
2070
2067
  }
2071
2068
  const result = await txSubmitter.submit({
2072
- tip: _optionalChain([options, 'optionalAccess', _63 => _63.tip]),
2069
+ tip: _optionalChain([options, 'optionalAccess', _60 => _60.tip]),
2073
2070
  useLatestNonce: true
2074
2071
  });
2075
2072
  await result.inBlockPromise;
@@ -2198,7 +2195,7 @@ Raising Funds (Frame ${this.nextFrameId + 1}):`);
2198
2195
  this.poolVaultCapitalByFrame ??= {};
2199
2196
  this.poolVaultCapitalByFrame[frameId] ??= {};
2200
2197
  this.poolVaultCapitalByFrame[frameId][vaultId] ??= {
2201
- activatedCapital: _nullishCoalesce(_nullishCoalesce(data.activatedCapital, () => ( _optionalChain([data, 'access', _64 => _64.contributors, 'optionalAccess', _65 => _65.reduce, 'call', _66 => _66((a, b) => a + b.amount, 0n)]))), () => ( 0n))
2198
+ activatedCapital: _nullishCoalesce(_nullishCoalesce(data.activatedCapital, () => ( _optionalChain([data, 'access', _61 => _61.contributors, 'optionalAccess', _62 => _62.reduce, 'call', _63 => _63((a, b) => a + b.amount, 0n)]))), () => ( 0n))
2202
2199
  };
2203
2200
  Object.assign(this.poolVaultCapitalByFrame[frameId][vaultId], filterUndefined(data));
2204
2201
  }
@@ -2244,7 +2241,7 @@ Raising Funds (Frame ${this.nextFrameId + 1}):`);
2244
2241
  });
2245
2242
  }
2246
2243
  }
2247
- }, _class11);
2244
+ }, _class10);
2248
2245
 
2249
2246
  // src/BitcoinLocks.ts
2250
2247
 
@@ -2287,13 +2284,14 @@ var BitcoinLocks = class _BitcoinLocks {
2287
2284
  const bitcoinNetwork = await client.query.bitcoinUtxos.bitcoinNetwork();
2288
2285
  return {
2289
2286
  releaseExpirationBlocks: client.consts.bitcoinLocks.lockReleaseCosignDeadlineBlocks.toNumber(),
2287
+ pendingConfirmationExpirationBlocks: client.consts.bitcoinUtxos.maxPendingConfirmationBlocks.toNumber(),
2290
2288
  tickDurationMillis: await client.query.ticks.genesisTicker().then((x) => x.tickDurationMillis.toNumber()),
2291
2289
  bitcoinNetwork
2292
2290
  };
2293
2291
  }
2294
2292
  async getBitcoinConfirmedBlockHeight() {
2295
2293
  const client = await this.client;
2296
- return await client.query.bitcoinUtxos.confirmedBitcoinBlockTip().then((x) => _nullishCoalesce(_optionalChain([x, 'access', _67 => _67.value, 'optionalAccess', _68 => _68.blockHeight, 'access', _69 => _69.toNumber, 'call', _70 => _70()]), () => ( 0)));
2294
+ return await client.query.bitcoinUtxos.confirmedBitcoinBlockTip().then((x) => _nullishCoalesce(_optionalChain([x, 'access', _64 => _64.value, 'optionalAccess', _65 => _65.blockHeight, 'access', _66 => _66.toNumber, 'call', _67 => _67()]), () => ( 0)));
2297
2295
  }
2298
2296
  /**
2299
2297
  * Gets the UTXO reference by ID.
@@ -2341,7 +2339,7 @@ var BitcoinLocks = class _BitcoinLocks {
2341
2339
  return void 0;
2342
2340
  }
2343
2341
  async submitVaultSignature(args) {
2344
- const { utxoId, vaultSignature, argonKeyring } = args;
2342
+ const { utxoId, vaultSignature, argonKeyring, txProgressCallback } = args;
2345
2343
  const client = await this.client;
2346
2344
  if (!vaultSignature || vaultSignature.byteLength < 70 || vaultSignature.byteLength > 73) {
2347
2345
  throw new Error(
@@ -2351,7 +2349,7 @@ var BitcoinLocks = class _BitcoinLocks {
2351
2349
  const signature = _util.u8aToHex.call(void 0, vaultSignature);
2352
2350
  const tx = client.tx.bitcoinLocks.cosignRelease(utxoId, signature);
2353
2351
  const submitter = new TxSubmitter(client, tx, argonKeyring);
2354
- return await submitter.submit();
2352
+ return await submitter.submit({ txProgressCallback });
2355
2353
  }
2356
2354
  async getBitcoinLock(utxoId) {
2357
2355
  const client = await this.client;
@@ -2427,7 +2425,7 @@ var BitcoinLocks = class _BitcoinLocks {
2427
2425
  const atHeight = header.number.toNumber();
2428
2426
  this.getVaultCosignSignature(utxoId, atHeight).then((signature) => {
2429
2427
  if (signature) {
2430
- _optionalChain([unsub, 'optionalCall', _71 => _71()]);
2428
+ _optionalChain([unsub, 'optionalCall', _68 => _68()]);
2431
2429
  clearTimeout(timeout);
2432
2430
  resolve({ signature, blockHeight: atHeight });
2433
2431
  }
@@ -2437,7 +2435,7 @@ var BitcoinLocks = class _BitcoinLocks {
2437
2435
  });
2438
2436
  if (waitForSignatureMillis !== -1) {
2439
2437
  timeout = setTimeout(() => {
2440
- _optionalChain([unsub, 'optionalCall', _72 => _72()]);
2438
+ _optionalChain([unsub, 'optionalCall', _69 => _69()]);
2441
2439
  reject(new Error(`Timeout waiting for cosign signature for UTXO ID ${utxoId}`));
2442
2440
  }, waitForSignatureMillis);
2443
2441
  }
@@ -2522,11 +2520,16 @@ var BitcoinLocks = class _BitcoinLocks {
2522
2520
  return { tx, securityFee, txFee };
2523
2521
  }
2524
2522
  async initializeLock(args) {
2525
- const { argonKeyring, tip = 0n } = args;
2523
+ const { argonKeyring, tip = 0n, txProgressCallback } = args;
2526
2524
  const client = await this.client;
2527
2525
  const { tx, securityFee } = await this.createInitializeLockTx(args);
2528
2526
  const submitter = new TxSubmitter(client, tx, argonKeyring);
2529
- const txResult = await submitter.submit({ waitForBlock: true, logResults: true, tip });
2527
+ const txResult = await submitter.submit({
2528
+ waitForBlock: true,
2529
+ logResults: true,
2530
+ tip,
2531
+ txProgressCallback
2532
+ });
2530
2533
  const blockHash = await txResult.inBlockPromise;
2531
2534
  const blockHeight = await client.at(blockHash).then((x) => x.query.system.number()).then((x) => x.toNumber());
2532
2535
  const utxoId = await _asyncNullishCoalesce(await this.getUtxoIdFromEvents(txResult.events), async () => ( 0));
@@ -2549,7 +2552,8 @@ var BitcoinLocks = class _BitcoinLocks {
2549
2552
  lock,
2550
2553
  releaseRequest: { bitcoinNetworkFee, toScriptPubkey },
2551
2554
  argonKeyring,
2552
- tip
2555
+ tip,
2556
+ txProgressCallback
2553
2557
  } = args;
2554
2558
  if (!toScriptPubkey.startsWith("0x")) {
2555
2559
  throw new Error("toScriptPubkey must be a hex string starting with 0x");
@@ -2572,7 +2576,12 @@ var BitcoinLocks = class _BitcoinLocks {
2572
2576
  `Insufficient funds to release lock. Available: ${formatArgons(canAfford.availableBalance)}, Required: ${formatArgons(redemptionPrice)}`
2573
2577
  );
2574
2578
  }
2575
- const txResult = await submitter.submit({ waitForBlock: true, logResults: true, tip });
2579
+ const txResult = await submitter.submit({
2580
+ waitForBlock: true,
2581
+ logResults: true,
2582
+ tip,
2583
+ txProgressCallback
2584
+ });
2576
2585
  const blockHash = await txResult.inBlockPromise;
2577
2586
  const blockHeight = await client.at(blockHash).then((x) => x.query.system.number()).then((x) => x.toNumber());
2578
2587
  return {
@@ -2611,7 +2620,7 @@ var BitcoinLocks = class _BitcoinLocks {
2611
2620
  };
2612
2621
  }
2613
2622
  async ratchet(args) {
2614
- const { lock, argonKeyring, tip = 0n, vault } = args;
2623
+ const { lock, argonKeyring, tip = 0n, vault, txProgressCallback } = args;
2615
2624
  const client = await this.client;
2616
2625
  const ratchetPrice = await this.getRatchetPrice(lock, vault);
2617
2626
  const txSubmitter = new TxSubmitter(
@@ -2632,7 +2641,8 @@ var BitcoinLocks = class _BitcoinLocks {
2632
2641
  }
2633
2642
  const submission = await txSubmitter.submit({
2634
2643
  waitForBlock: true,
2635
- tip
2644
+ tip,
2645
+ txProgressCallback
2636
2646
  });
2637
2647
  const ratchetEvent = submission.events.find(
2638
2648
  (x) => client.events.bitcoinLocks.BitcoinLockRatcheted.is(x)
@@ -2833,5 +2843,6 @@ async function getClient(host) {
2833
2843
 
2834
2844
 
2835
2845
 
2836
- exports.WageProtector = WageProtector; exports.setConfig = setConfig; exports.getConfig = getConfig; exports.TxSubmitter = TxSubmitter; exports.MICROGONS_PER_ARGON = MICROGONS_PER_ARGON; exports.formatArgons = formatArgons; exports.formatPercent = formatPercent; exports.filterUndefined = filterUndefined; exports.gettersToObject = gettersToObject; exports.toFixedNumber = toFixedNumber; exports.convertNumberToFixedU128 = convertNumberToFixedU128; exports.convertFixedU128ToBigNumber = convertFixedU128ToBigNumber; exports.convertPermillToBigNumber = convertPermillToBigNumber; exports.convertNumberToPermill = convertNumberToPermill; exports.eventDataToJson = eventDataToJson; exports.dispatchErrorToString = dispatchErrorToString; exports.ExtrinsicError = ExtrinsicError2; exports.dispatchErrorToExtrinsicError = dispatchErrorToExtrinsicError; exports.checkForExtrinsicSuccess = checkForExtrinsicSuccess; exports.JsonExt = JsonExt; exports.createNanoEvents = createNanoEvents; exports.TypedEmitter = TypedEmitter; exports.AccountRegistry = AccountRegistry; exports.getTickFromHeader = getTickFromHeader; exports.getAuthorFromHeader = getAuthorFromHeader; exports.BlockWatch = BlockWatch; exports.FrameCalculator = FrameCalculator; exports.AccountMiners = AccountMiners; exports.Accountset = Accountset; exports.parseSubaccountRange = parseSubaccountRange; exports.MiningBids = MiningBids; exports.Vault = Vault; exports.VaultMonitor = VaultMonitor; exports.CohortBidder = CohortBidder; exports.BidPool = BidPool; exports.SATS_PER_BTC = SATS_PER_BTC; exports.BitcoinLocks = BitcoinLocks; exports.keyringFromSuri = keyringFromSuri; exports.createKeyringPair = createKeyringPair; exports.Keyring = _api.Keyring; exports.decodeAddress = _utilcrypto.decodeAddress; exports.mnemonicGenerate = _utilcrypto.mnemonicGenerate; exports.waitForLoad = waitForLoad; exports.getClient = getClient; exports.u8aToHex = _util.u8aToHex; exports.hexToU8a = _util.hexToU8a; exports.u8aEq = _util.u8aEq; exports.GenericEvent = _generic.GenericEvent; exports.GenericBlock = _generic.GenericBlock; exports.GenericAddress = _generic.GenericAddress; exports.BTreeMap = _typescodec.BTreeMap; exports.Bytes = _typescodec.Bytes; exports.Compact = _typescodec.Compact; exports.Enum = _typescodec.Enum; exports.Null = _typescodec.Null; exports.Option = _typescodec.Option; exports.Result = _typescodec.Result; exports.Bool = _typescodec.Bool; exports.Tuple = _typescodec.Tuple; exports.Range = _typescodec.Range; exports.Struct = _typescodec.Struct; exports.Text = _typescodec.Text; exports.U256 = _typescodec.U256; exports.U8aFixed = _typescodec.U8aFixed; exports.Vec = _typescodec.Vec; exports.bool = _typescodec.bool; exports.i128 = _typescodec.i128; exports.u128 = _typescodec.u128; exports.u16 = _typescodec.u16; exports.u32 = _typescodec.u32; exports.u64 = _typescodec.u64; exports.u8 = _typescodec.u8;
2837
- //# sourceMappingURL=chunk-OFYVHBKG.cjs.map
2846
+
2847
+ exports.WageProtector = WageProtector; exports.setConfig = setConfig; exports.getConfig = getConfig; exports.TxSubmitter = TxSubmitter; exports.TxResult = TxResult; exports.MICROGONS_PER_ARGON = MICROGONS_PER_ARGON; exports.formatArgons = formatArgons; exports.formatPercent = formatPercent; exports.filterUndefined = filterUndefined; exports.gettersToObject = gettersToObject; exports.toFixedNumber = toFixedNumber; exports.convertNumberToFixedU128 = convertNumberToFixedU128; exports.convertFixedU128ToBigNumber = convertFixedU128ToBigNumber; exports.convertPermillToBigNumber = convertPermillToBigNumber; exports.convertNumberToPermill = convertNumberToPermill; exports.eventDataToJson = eventDataToJson; exports.dispatchErrorToString = dispatchErrorToString; exports.ExtrinsicError = ExtrinsicError2; exports.dispatchErrorToExtrinsicError = dispatchErrorToExtrinsicError; exports.checkForExtrinsicSuccess = checkForExtrinsicSuccess; exports.JsonExt = JsonExt; exports.createNanoEvents = createNanoEvents; exports.TypedEmitter = TypedEmitter; exports.AccountRegistry = AccountRegistry; exports.getTickFromHeader = getTickFromHeader; exports.getAuthorFromHeader = getAuthorFromHeader; exports.BlockWatch = BlockWatch; exports.FrameCalculator = FrameCalculator; exports.AccountMiners = AccountMiners; exports.Accountset = Accountset; exports.parseSubaccountRange = parseSubaccountRange; exports.MiningBids = MiningBids; exports.Vault = Vault; exports.VaultMonitor = VaultMonitor; exports.CohortBidder = CohortBidder; exports.BidPool = BidPool; exports.SATS_PER_BTC = SATS_PER_BTC; exports.BitcoinLocks = BitcoinLocks; exports.keyringFromSuri = keyringFromSuri; exports.createKeyringPair = createKeyringPair; exports.Keyring = _api.Keyring; exports.decodeAddress = _utilcrypto.decodeAddress; exports.mnemonicGenerate = _utilcrypto.mnemonicGenerate; exports.waitForLoad = waitForLoad; exports.getClient = getClient; exports.u8aToHex = _util.u8aToHex; exports.hexToU8a = _util.hexToU8a; exports.u8aEq = _util.u8aEq; exports.GenericEvent = _generic.GenericEvent; exports.GenericBlock = _generic.GenericBlock; exports.GenericAddress = _generic.GenericAddress; exports.BTreeMap = _typescodec.BTreeMap; exports.Bytes = _typescodec.Bytes; exports.Compact = _typescodec.Compact; exports.Enum = _typescodec.Enum; exports.Null = _typescodec.Null; exports.Option = _typescodec.Option; exports.Result = _typescodec.Result; exports.Bool = _typescodec.Bool; exports.Tuple = _typescodec.Tuple; exports.Range = _typescodec.Range; exports.Struct = _typescodec.Struct; exports.Text = _typescodec.Text; exports.U256 = _typescodec.U256; exports.U8aFixed = _typescodec.U8aFixed; exports.Vec = _typescodec.Vec; exports.bool = _typescodec.bool; exports.i128 = _typescodec.i128; exports.u128 = _typescodec.u128; exports.u16 = _typescodec.u16; exports.u32 = _typescodec.u32; exports.u64 = _typescodec.u64; exports.u8 = _typescodec.u8;
2848
+ //# sourceMappingURL=chunk-P5WWWRSU.cjs.map