-
Notifications
You must be signed in to change notification settings - Fork 53
/
index.d.ts
98 lines (89 loc) · 3.22 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
export * as validators from "./validators";
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export class Reader {
constructor(reader: string | ArrayBuffer | Reader);
static fromRawString(s: string): Reader;
static isReader(x: unknown): x is Reader;
static from(x: string | ArrayBuffer | Reader | Uint8Array): Reader;
length(): number;
indexAt(i: number): number;
toArrayBuffer(): ArrayBuffer;
serializeJson(): string;
}
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export interface TransformerOptions {
validation?: boolean;
debugPath?: string;
}
type TransformerFunction = (
value: object,
options?: TransformerOptions
) => object;
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export namespace transformers {
const TransformScript: TransformerFunction;
const TransformOutPoint: TransformerFunction;
const TransformCellInput: TransformerFunction;
const TransformCellOutput: TransformerFunction;
const TransformCellDep: TransformerFunction;
const TransformRawTransaction: TransformerFunction;
const TransformTransaction: TransformerFunction;
const TransformRawHeader: TransformerFunction;
const TransformHeader: TransformerFunction;
const TransformUncleBlock: TransformerFunction;
const TransformBlock: TransformerFunction;
const TransformCellbaseWitness: TransformerFunction;
const TransformWitnessArgs: TransformerFunction;
}
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export interface NormalizerOptions {
debugPath?: string;
}
type NormalizerFunction = (
value: object,
options?: NormalizerOptions
) => object;
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export namespace normalizers {
const NormalizeScript: NormalizerFunction;
const NormalizeOutPoint: NormalizerFunction;
const NormalizeCellInput: NormalizerFunction;
const NormalizeCellOutput: NormalizerFunction;
const NormalizeCellDep: NormalizerFunction;
const NormalizeRawTransaction: NormalizerFunction;
const NormalizeTransaction: NormalizerFunction;
const NormalizeRawHeader: NormalizerFunction;
const NormalizeHeader: NormalizerFunction;
const NormalizeUncleBlock: NormalizerFunction;
const NormalizeBlock: NormalizerFunction;
const NormalizeCellbaseWitness: NormalizerFunction;
const NormalizeWitnessArgs: NormalizerFunction;
}
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export interface Cell {
cell_output: object;
out_point: object;
block_hash: string;
data?: string;
block_number?: string;
}
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export type DepGroupUnpacker = (data: Reader) => Array<object>;
/**
* @deprecated please follow the {@link https://lumos-website.vercel.app/migrations/migrate-to-v0.19 migration-guide}
*/
export const VERSION: string;