bitcore-wallet-service
Version:
A service for Mutisig HD Bitcoin Wallets
185 lines • 4.95 kB
TypeScript
import { TxProposalLegacy } from './txproposal_legacy';
type TxProposalStatus = 'temporary' | 'pending' | 'accepted' | 'rejected' | 'broadcasted';
export interface ITxProposal {
type: string;
creatorName: string;
createdOn: number;
txid: string;
txids?: Array<string>;
id: string;
walletId: string;
creatorId: string;
coin: string;
chain: string;
network: string;
message: string;
payProUrl: string;
from: string;
changeAddress: string;
escrowAddress: string;
inputs: any[];
outputs: Array<{
amount: number;
address: string;
toAddress?: string;
message?: string;
data?: string;
gasLimit?: number;
script?: string;
tag?: number;
}>;
outputOrder: number[];
walletM: number;
walletN: number;
requiredSignatures: number;
requiredRejections: number;
status: TxProposalStatus;
actions: [];
feeLevel: number;
feePerKb: number;
excludeUnconfirmedUtxos: boolean;
addressType: string;
customData: any;
amount: string;
fee: number;
version: number;
broadcastedOn: number;
inputPaths: string;
proposalSignature: string;
proposalSignaturePubKey: string;
proposalSignaturePubKeySig: string;
signingMethod: string;
lowFees: boolean;
nonce?: number | string;
gasPrice?: number;
maxGasFee?: number;
priorityGasFee?: number;
txType?: number | string;
gasLimit?: number;
data?: string;
tokenAddress?: string;
multisigContractAddress?: string;
destinationTag?: string;
invoiceID?: string;
lockUntilBlockHeight?: number;
instantAcceptanceEscrow?: number;
isTokenSwap?: boolean;
enableRBF?: boolean;
replaceTxByFee?: boolean;
multiTx?: boolean;
space?: number;
nonceAddress?: string;
blockHash?: string;
blockHeight?: number;
category?: string;
priorityFee?: number;
computeUnits?: number;
refreshOnPublish?: boolean;
prePublishRaw?: string;
}
export declare class TxProposal {
type: string;
creatorName: string;
createdOn: number;
id: string;
txid: string;
txids?: Array<string>;
walletId: string;
creatorId: string;
coin: string;
chain: string;
network: string;
message: string;
payProUrl: string;
from: string;
changeAddress: any;
escrowAddress: any;
inputs: any[];
outputs: Array<{
amount: number;
address?: string;
toAddress?: string;
message?: string;
data?: string;
gasLimit?: number;
script?: string;
satoshis?: number;
tag?: number;
}>;
outputOrder: number[];
walletM: number;
walletN: number;
requiredSignatures: number;
requiredRejections: number;
status: TxProposalStatus;
actions: any[];
feeLevel: number;
feePerKb: number;
excludeUnconfirmedUtxos: boolean;
addressType: string;
customData: any;
amount: string | number;
fee: number;
version: number;
broadcastedOn: number;
inputPaths: string | any[];
proposalSignature: string;
proposalSignaturePubKey: string;
proposalSignaturePubKeySig: string;
signingMethod: string;
raw?: Array<string> | string;
nonce?: number | string;
gasPrice?: number;
maxGasFee?: number;
priorityGasFee?: number;
txType?: number | string;
gasLimit?: number;
data?: string;
tokenAddress?: string;
multisigContractAddress?: string;
multisigTxId?: string;
destinationTag?: string;
invoiceID?: string;
lockUntilBlockHeight?: number;
instantAcceptanceEscrow?: number;
isTokenSwap?: boolean;
multiSendContractAddress?: string;
enableRBF?: boolean;
replaceTxByFee?: boolean;
multiTx?: boolean;
space?: number;
nonceAddress?: string;
blockHash?: string;
blockHeight?: number;
category?: string;
priorityFee?: number;
computeUnits?: number;
refreshOnPublish?: boolean;
prePublishRaw?: string;
static create(opts: any): TxProposal;
static fromObj(obj: any): TxProposal | TxProposalLegacy;
toObject(): any;
setInputs(inputs: any): void;
_updateStatus(): void;
getCurrentSignatures(): {
signatures: any;
xpub: any;
}[];
getRawTx(): any;
getTotalAmount(): number;
getActors(): any[];
getApprovers(): any[];
getActionBy(copayerId: any): any;
addAction(copayerId: any, type: any, comment: any, signatures?: any, xpub?: any): void;
sign(copayerId: any, signatures: any, xpub: any): boolean;
reject(copayerId: any, reason: any): void;
isRepublishEnabled(): boolean;
isTemporary(): boolean;
isPending(): boolean;
isAccepted(): boolean;
isRejected(): boolean;
isBroadcasted(): boolean;
setBroadcasted(): void;
}
export {};
//# sourceMappingURL=txproposal.d.ts.map