UNPKG

4.76 kBTypeScriptView Raw
1export declare const schemas: {
2 hex: {
3 $id: string;
4 type: string;
5 pattern: string;
6 };
7 base58: {
8 $id: string;
9 type: string;
10 pattern: string;
11 };
12 alphanumeric: {
13 $id: string;
14 type: string;
15 pattern: string;
16 };
17 transactionId: {
18 $id: string;
19 allOf: ({
20 minLength: number;
21 maxLength: number;
22 $ref?: undefined;
23 } | {
24 $ref: string;
25 minLength?: undefined;
26 maxLength?: undefined;
27 })[];
28 };
29 networkByte: {
30 $id: string;
31 network: boolean;
32 };
33 address: {
34 $id: string;
35 allOf: ({
36 minLength: number;
37 maxLength: number;
38 $ref?: undefined;
39 addressOnNetwork?: undefined;
40 } | {
41 $ref: string;
42 minLength?: undefined;
43 maxLength?: undefined;
44 addressOnNetwork?: undefined;
45 } | {
46 addressOnNetwork: boolean;
47 minLength?: undefined;
48 maxLength?: undefined;
49 $ref?: undefined;
50 })[];
51 };
52 publicKey: {
53 $id: string;
54 allOf: ({
55 minLength: number;
56 maxLength: number;
57 $ref?: undefined;
58 transform?: undefined;
59 } | {
60 $ref: string;
61 minLength?: undefined;
62 maxLength?: undefined;
63 transform?: undefined;
64 } | {
65 transform: string[];
66 minLength?: undefined;
67 maxLength?: undefined;
68 $ref?: undefined;
69 })[];
70 };
71 walletVote: {
72 $id: string;
73 allOf: ({
74 type: string;
75 pattern: string;
76 transform?: undefined;
77 } | {
78 transform: string[];
79 type?: undefined;
80 pattern?: undefined;
81 })[];
82 };
83 username: {
84 $id: string;
85 allOf: ({
86 type: string;
87 pattern: string;
88 minLength?: undefined;
89 maxLength?: undefined;
90 transform?: undefined;
91 } | {
92 minLength: number;
93 maxLength: number;
94 type?: undefined;
95 pattern?: undefined;
96 transform?: undefined;
97 } | {
98 transform: string[];
99 type?: undefined;
100 pattern?: undefined;
101 minLength?: undefined;
102 maxLength?: undefined;
103 })[];
104 };
105 blockHeader: {
106 $id: string;
107 type: string;
108 required: string[];
109 properties: {
110 id: {
111 blockId: {};
112 };
113 idHex: {
114 blockId: {};
115 };
116 version: {
117 type: string;
118 minimum: number;
119 };
120 timestamp: {
121 type: string;
122 minimum: number;
123 };
124 previousBlock: {
125 blockId: {
126 allowNullWhenGenesis: boolean;
127 isPreviousBlock: boolean;
128 };
129 };
130 previousBlockHex: {
131 blockId: {
132 allowNullWhenGenesis: boolean;
133 isPreviousBlock: boolean;
134 };
135 };
136 height: {
137 type: string;
138 minimum: number;
139 };
140 numberOfTransactions: {
141 type: string;
142 };
143 totalAmount: {
144 bignumber: {
145 minimum: number;
146 bypassGenesis: boolean;
147 block: boolean;
148 };
149 };
150 totalFee: {
151 bignumber: {
152 minimum: number;
153 bypassGenesis: boolean;
154 block: boolean;
155 };
156 };
157 reward: {
158 bignumber: {
159 minimum: number;
160 };
161 };
162 payloadLength: {
163 type: string;
164 minimum: number;
165 };
166 payloadHash: {
167 $ref: string;
168 };
169 generatorPublicKey: {
170 $ref: string;
171 };
172 blockSignature: {
173 $ref: string;
174 };
175 };
176 };
177 block: {
178 $id: string;
179 $ref: string;
180 properties: {
181 transactions: {
182 $ref: string;
183 minItems: {
184 $data: string;
185 };
186 maxItems: {
187 $data: string;
188 };
189 };
190 };
191 };
192};