@argonprotocol/mainchain 1.4.2-dev.cca29cfa → 1.4.2-dev.ec2972c4

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.
@@ -12862,6 +12862,8 @@ declare class Vault {
12862
12862
  openedDate: Date;
12863
12863
  openedTick: number;
12864
12864
  securitizationRatio: number;
12865
+ lockedSatoshis: number;
12866
+ securitizedSatoshis: number;
12865
12867
  constructor(id: number, vault: ArgonPrimitivesVault, tickDuration: number);
12866
12868
  load(vault: ArgonPrimitivesVault | ArgonPrimitivesVaultV144): void;
12867
12869
  availableBitcoinSpace(): bigint;
package/browser/index.js CHANGED
@@ -495,6 +495,8 @@ var Vault = class _Vault {
495
495
  __publicField(this, "openedDate");
496
496
  __publicField(this, "openedTick");
497
497
  __publicField(this, "securitizationRatio");
498
+ __publicField(this, "lockedSatoshis");
499
+ __publicField(this, "securitizedSatoshis");
498
500
  this.vaultId = id;
499
501
  this.openedTick = vault.openedTick.toNumber();
500
502
  this.openedDate = new Date(this.openedTick * this.tickDuration);
@@ -534,6 +536,13 @@ var Vault = class _Vault {
534
536
  PERMILL_DECIMALS
535
537
  )
536
538
  };
539
+ if ("lockedSatoshis" in vault) {
540
+ this.lockedSatoshis = vault.lockedSatoshis.toNumber();
541
+ this.securitizedSatoshis = vault.securitizedSatoshis.toNumber();
542
+ } else {
543
+ this.lockedSatoshis = 0;
544
+ this.securitizedSatoshis = 0;
545
+ }
537
546
  this.operatorAccountId = vault.operatorAccountId.toString();
538
547
  this.isClosed = vault.isClosed.valueOf();
539
548
  if (vault.pendingTerms.isSome) {