mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 10:40:13 +00:00
trezor-connect: Update signTransaction params
This commit is contained in:
21
types/trezor-connect/index.d.ts
vendored
21
types/trezor-connect/index.d.ts
vendored
@@ -270,10 +270,31 @@ export interface OpReturnOutput {
|
||||
|
||||
export type Output = RegularOutput | InternalOutput | SendMaxOutput | OpReturnOutput;
|
||||
|
||||
export interface BinOutput {
|
||||
amount: number;
|
||||
script_pubkey: string;
|
||||
}
|
||||
|
||||
export interface RefTransaction {
|
||||
hash: string;
|
||||
version?: number;
|
||||
inputs: Input[];
|
||||
bin_outputs: BinOutput[];
|
||||
lock_time?: number;
|
||||
extra_data?: string;
|
||||
timestamp?: number;
|
||||
version_group_id?: number;
|
||||
}
|
||||
|
||||
export interface SignTransactionParams extends CommonParams {
|
||||
inputs: Input[];
|
||||
outputs: Output[];
|
||||
refTxs: RefTransaction[];
|
||||
coin: string;
|
||||
locktime?: number;
|
||||
version?: number;
|
||||
expiry?: number;
|
||||
branchId?: number;
|
||||
push?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user