From 5041057310144bc26b631a02711c167937644c73 Mon Sep 17 00:00:00 2001 From: DenisIvanov26 Date: Fri, 29 Mar 2024 15:05:06 -0500 Subject: [PATCH] camelcase rename --- src.ts/providers/formatting.ts | 4 ++-- src.ts/transaction/transaction.ts | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src.ts/providers/formatting.ts b/src.ts/providers/formatting.ts index c5d08274..1d783219 100644 --- a/src.ts/providers/formatting.ts +++ b/src.ts/providers/formatting.ts @@ -381,9 +381,9 @@ export interface TransactionResponseParams { */ accessList: null | AccessList; - UTXOoutputs ?: UTXOTransactionOutput[]; + outputsUTXO ?: UTXOTransactionOutput[]; - UTXOinputs ?: UTXOTransactionInput[]; + inputsUTXO ?: UTXOTransactionInput[]; }; diff --git a/src.ts/transaction/transaction.ts b/src.ts/transaction/transaction.ts index 69f05989..77bf1b00 100644 --- a/src.ts/transaction/transaction.ts +++ b/src.ts/transaction/transaction.ts @@ -86,9 +86,9 @@ export interface TransactionLike { accessList?: null | AccessListish; - UTXOinputs?: null | Array; + inputsUTXO?: null | Array; - UTXOoutputs?: null | Array; + outputsUTXO?: null | Array; } function handleNumber(_value: string, param: string): number { @@ -187,8 +187,8 @@ function _serialize(tx: TransactionLike, sig?: Signature): string { } if (tx.type == 2){ - formattedTx.tx_ins = tx.UTXOinputs - formattedTx.tx_outs = tx.UTXOoutputs + formattedTx.tx_ins = tx.inputsUTXO + formattedTx.tx_outs = tx.outputsUTXO } if (sig) { @@ -227,8 +227,8 @@ export class Transaction implements TransactionLike { #sig: null | Signature; #accessList: null | AccessList; #hash: null | string; - #UTXOinputs: null | UTXOTransactionInput[]; - #UTXOoutputs: null | UTXOTransactionOutput[]; + #inputsUTXO: null | UTXOTransactionInput[]; + #outputsUTXO: null | UTXOTransactionOutput[]; /** * The transaction type. @@ -381,11 +381,11 @@ export class Transaction implements TransactionLike { } - get UTXOinputs(): null | UTXOTransactionInput[] { return this.#UTXOinputs; } - set UTXOinputs(value: null | UTXOTransactionInput[]) { this.#UTXOinputs = value; } + get inputsUTXO(): null | UTXOTransactionInput[] { return this.#inputsUTXO; } + set inputsUTXO(value: null | UTXOTransactionInput[]) { this.#inputsUTXO = value; } - get UTXOoutputs(): null | UTXOTransactionOutput[] { return this.#UTXOoutputs; } - set UTXOoutputs(value: null | UTXOTransactionOutput[]) { this.#UTXOoutputs = value; } + get outputsUTXO(): null | UTXOTransactionOutput[] { return this.#outputsUTXO; } + set outputsUTXO(value: null | UTXOTransactionOutput[]) { this.#outputsUTXO = value; } /** @@ -405,8 +405,8 @@ export class Transaction implements TransactionLike { this.#sig = null; this.#accessList = null; this.#hash = null; - this.#UTXOinputs = null; - this.#UTXOoutputs = null; + this.#inputsUTXO = null; + this.#outputsUTXO = null; } /**