Fix lint transaction_builder.ts
This commit is contained in:
parent
e6ea0389a2
commit
512b03e284
5 changed files with 336 additions and 330 deletions
14
types/transaction_builder.d.ts
vendored
14
types/transaction_builder.d.ts
vendored
|
@ -1,24 +1,24 @@
|
|||
/// <reference types="node" />
|
||||
import { ECPairInterface } from './ecpair';
|
||||
import { Network } from './networks';
|
||||
import { Transaction } from './transaction';
|
||||
import { ECPairInterface } from './ecpair';
|
||||
export declare class TransactionBuilder {
|
||||
static fromTransaction(transaction: Transaction, network?: Network): TransactionBuilder;
|
||||
network: Network;
|
||||
maximumFeeRate: number;
|
||||
private __prevTxSet;
|
||||
private __inputs;
|
||||
private __tx;
|
||||
private __PREV_TX_SET;
|
||||
private __INPUTS;
|
||||
private __TX;
|
||||
constructor(network?: Network, maximumFeeRate?: number);
|
||||
static fromTransaction(transaction: Transaction, network?: Network): TransactionBuilder;
|
||||
setLockTime(locktime: number): void;
|
||||
setVersion(version: number): void;
|
||||
addInput(txHash: Buffer | string | Transaction, vout: number, sequence: number, prevOutScript: Buffer): number;
|
||||
private __addInputUnsafe;
|
||||
addOutput(scriptPubKey: string | Buffer, value: number): number;
|
||||
build(): Transaction;
|
||||
buildIncomplete(): Transaction;
|
||||
private __build;
|
||||
sign(vin: number, keyPair: ECPairInterface, redeemScript: Buffer, hashType: number, witnessValue: number, witnessScript: Buffer): void;
|
||||
private __addInputUnsafe;
|
||||
private __build;
|
||||
private __canModifyInputs;
|
||||
private __needsOutputs;
|
||||
private __canModifyOutputs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue