@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.
- package/browser/index.d.ts +2 -0
- package/browser/index.js +9 -0
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +9 -0
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +2 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/lib/index.cjs
CHANGED
|
@@ -508,6 +508,8 @@ var Vault = class _Vault {
|
|
|
508
508
|
|
|
509
509
|
|
|
510
510
|
|
|
511
|
+
|
|
512
|
+
|
|
511
513
|
load(vault) {
|
|
512
514
|
this.securitization = vault.securitization.toBigInt();
|
|
513
515
|
this.securitizationRatio = fromFixedNumber(
|
|
@@ -541,6 +543,13 @@ var Vault = class _Vault {
|
|
|
541
543
|
PERMILL_DECIMALS
|
|
542
544
|
)
|
|
543
545
|
};
|
|
546
|
+
if ("lockedSatoshis" in vault) {
|
|
547
|
+
this.lockedSatoshis = vault.lockedSatoshis.toNumber();
|
|
548
|
+
this.securitizedSatoshis = vault.securitizedSatoshis.toNumber();
|
|
549
|
+
} else {
|
|
550
|
+
this.lockedSatoshis = 0;
|
|
551
|
+
this.securitizedSatoshis = 0;
|
|
552
|
+
}
|
|
544
553
|
this.operatorAccountId = vault.operatorAccountId.toString();
|
|
545
554
|
this.isClosed = vault.isClosed.valueOf();
|
|
546
555
|
if (vault.pendingTerms.isSome) {
|