@argonprotocol/mainchain 1.4.5-dev.9ca6e414 → 1.4.5-dev.b0ac0a8f
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 +4 -0
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +12 -8
- 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 +4 -0
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/browser/index.d.ts
CHANGED
|
@@ -13689,6 +13689,7 @@ declare class BitcoinLock implements IBitcoinLock {
|
|
|
13689
13689
|
isFunded: boolean;
|
|
13690
13690
|
createdAtArgonBlock: number;
|
|
13691
13691
|
fundHoldExtensionsByBitcoinExpirationHeight: Record<number, bigint>;
|
|
13692
|
+
couponFeesPaid: bigint;
|
|
13692
13693
|
constructor(data: IBitcoinLock);
|
|
13693
13694
|
/**
|
|
13694
13695
|
* Gets the UTXO reference by ID.
|
|
@@ -13849,6 +13850,7 @@ interface IBitcoinLock {
|
|
|
13849
13850
|
utxoSatoshis?: bigint;
|
|
13850
13851
|
vaultPubkey: string;
|
|
13851
13852
|
securityFees: bigint;
|
|
13853
|
+
couponFeesPaid: bigint;
|
|
13852
13854
|
vaultClaimPubkey: string;
|
|
13853
13855
|
ownerPubkey: string;
|
|
13854
13856
|
vaultXpubSources: {
|
package/browser/index.js
CHANGED
|
@@ -804,6 +804,7 @@ var BitcoinLock = class _BitcoinLock {
|
|
|
804
804
|
__publicField(this, "isFunded");
|
|
805
805
|
__publicField(this, "createdAtArgonBlock");
|
|
806
806
|
__publicField(this, "fundHoldExtensionsByBitcoinExpirationHeight");
|
|
807
|
+
__publicField(this, "couponFeesPaid");
|
|
807
808
|
this.utxoId = data.utxoId;
|
|
808
809
|
this.p2wshScriptHashHex = data.p2wshScriptHashHex;
|
|
809
810
|
this.vaultId = data.vaultId;
|
|
@@ -823,6 +824,7 @@ var BitcoinLock = class _BitcoinLock {
|
|
|
823
824
|
this.isFunded = data.isFunded;
|
|
824
825
|
this.fundHoldExtensionsByBitcoinExpirationHeight = data.fundHoldExtensionsByBitcoinExpirationHeight;
|
|
825
826
|
this.createdAtArgonBlock = data.createdAtArgonBlock;
|
|
827
|
+
this.couponFeesPaid = data.couponFeesPaid ?? 0n;
|
|
826
828
|
}
|
|
827
829
|
/**
|
|
828
830
|
* Gets the UTXO reference by ID.
|
|
@@ -1200,6 +1202,7 @@ var BitcoinLock = class _BitcoinLock {
|
|
|
1200
1202
|
const fundHoldExtensionsByBitcoinExpirationHeight = Object.fromEntries(
|
|
1201
1203
|
[...utxo.fundHoldExtensions.entries()].map(([x, y]) => [x.toNumber(), y.toBigInt()])
|
|
1202
1204
|
);
|
|
1205
|
+
const couponFeesPaid = utxo.couponPaidFees?.toBigInt() ?? 0n;
|
|
1203
1206
|
return new _BitcoinLock({
|
|
1204
1207
|
utxoId,
|
|
1205
1208
|
p2wshScriptHashHex,
|
|
@@ -1218,6 +1221,7 @@ var BitcoinLock = class _BitcoinLock {
|
|
|
1218
1221
|
createdAtHeight,
|
|
1219
1222
|
securityFees,
|
|
1220
1223
|
isFunded,
|
|
1224
|
+
couponFeesPaid,
|
|
1221
1225
|
fundHoldExtensionsByBitcoinExpirationHeight,
|
|
1222
1226
|
createdAtArgonBlock
|
|
1223
1227
|
});
|