UNPKG

@keyper/specs

Version:

keyper specifications

44 lines (43 loc) 1.02 kB
export declare type Hash256 = string; export declare type Bytes = string; export declare type Since = string; export declare type ScriptHashType = "data" | "type"; export declare type DepType = "code" | "depGroup"; export interface CellDep { outPoint: OutPoint | null; depType: DepType; } export interface WitnessObj { lock?: string; inputType?: string; outputType?: string; } export declare type Witness = WitnessObj | string; export interface Script { args: Bytes; codeHash: Hash256; hashType: ScriptHashType; } export interface OutPoint { txHash: Hash256; index: string; } export interface Input { previousOutput: OutPoint | null; since: string; } export interface Output { capacity: string; lock: Script; type?: Script | null; } export interface RawTransaction { version: string; cellDeps: CellDep[]; headerDeps: Hash256[]; inputs: Input[]; outputs: Output[]; witnesses: Witness[]; outputsData: Bytes[]; confirmMessage?: any; }