@vbyte/btc-dev 1.0.8 → 1.0.9

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/dist/module.mjs CHANGED
@@ -9880,13 +9880,7 @@ class TransactionOutput {
9880
9880
  this._txout = txout;
9881
9881
  }
9882
9882
  get data() {
9883
- return {
9884
- script_pk: this.script_pk,
9885
- size: this.size,
9886
- type: this.type,
9887
- value: this.value,
9888
- version: this.version
9889
- };
9883
+ return this._txout;
9890
9884
  }
9891
9885
  get script_pk() {
9892
9886
  return {
@@ -10080,16 +10074,7 @@ class TransactionInput {
10080
10074
  return this._txin.coinbase;
10081
10075
  }
10082
10076
  get data() {
10083
- return {
10084
- coinbase: this.coinbase,
10085
- prevout: this.prevout?.data ?? null,
10086
- script_sig: this.script_sig,
10087
- sequence: this.sequence,
10088
- size: this.size,
10089
- txid: this.txid,
10090
- vout: this.vout,
10091
- witness: this.witness?.data ?? null
10092
- };
10077
+ return this._txin;
10093
10078
  }
10094
10079
  get has_prevout() {
10095
10080
  return this._txin.prevout !== null;
@@ -10148,18 +10133,7 @@ let Transaction$1 = class Transaction {
10148
10133
  this._vout = this._tx.vout.map(txout => new TransactionOutput(txout));
10149
10134
  }
10150
10135
  get data() {
10151
- return {
10152
- hash: this.hash,
10153
- locktime: this.locktime,
10154
- return: this.return,
10155
- size: this.size,
10156
- spends: this.spends,
10157
- txid: this.txid,
10158
- value: this.value,
10159
- version: this.version,
10160
- vin: this.vin.map(txin => txin.data),
10161
- vout: this.vout.map(txout => txout.data)
10162
- };
10136
+ return this._tx;
10163
10137
  }
10164
10138
  get hash() {
10165
10139
  return this._hash;