@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/lib/index.d.cts 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/lib/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/lib/index.js CHANGED
@@ -800,6 +800,7 @@ var BitcoinLock = class _BitcoinLock {
800
800
  isFunded;
801
801
  createdAtArgonBlock;
802
802
  fundHoldExtensionsByBitcoinExpirationHeight;
803
+ couponFeesPaid;
803
804
  constructor(data) {
804
805
  this.utxoId = data.utxoId;
805
806
  this.p2wshScriptHashHex = data.p2wshScriptHashHex;
@@ -820,6 +821,7 @@ var BitcoinLock = class _BitcoinLock {
820
821
  this.isFunded = data.isFunded;
821
822
  this.fundHoldExtensionsByBitcoinExpirationHeight = data.fundHoldExtensionsByBitcoinExpirationHeight;
822
823
  this.createdAtArgonBlock = data.createdAtArgonBlock;
824
+ this.couponFeesPaid = data.couponFeesPaid ?? 0n;
823
825
  }
824
826
  /**
825
827
  * Gets the UTXO reference by ID.
@@ -1197,6 +1199,7 @@ var BitcoinLock = class _BitcoinLock {
1197
1199
  const fundHoldExtensionsByBitcoinExpirationHeight = Object.fromEntries(
1198
1200
  [...utxo.fundHoldExtensions.entries()].map(([x, y]) => [x.toNumber(), y.toBigInt()])
1199
1201
  );
1202
+ const couponFeesPaid = utxo.couponPaidFees?.toBigInt() ?? 0n;
1200
1203
  return new _BitcoinLock({
1201
1204
  utxoId,
1202
1205
  p2wshScriptHashHex,
@@ -1215,6 +1218,7 @@ var BitcoinLock = class _BitcoinLock {
1215
1218
  createdAtHeight,
1216
1219
  securityFees,
1217
1220
  isFunded,
1221
+ couponFeesPaid,
1218
1222
  fundHoldExtensionsByBitcoinExpirationHeight,
1219
1223
  createdAtArgonBlock
1220
1224
  });