UNPKG

4.69 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 block: {
106 $id: string;
107 type: string;
108 required: string[];
109 additionalProperties: boolean;
110 properties: {
111 id: {
112 blockId: {};
113 };
114 idHex: {
115 blockId: {};
116 };
117 version: {
118 type: string;
119 minimum: number;
120 };
121 timestamp: {
122 type: string;
123 minimum: number;
124 };
125 previousBlock: {
126 blockId: {
127 allowNullWhenGenesis: boolean;
128 isPreviousBlock: boolean;
129 };
130 };
131 previousBlockHex: {
132 blockId: {
133 allowNullWhenGenesis: boolean;
134 isPreviousBlock: boolean;
135 };
136 };
137 height: {
138 type: string;
139 minimum: number;
140 };
141 numberOfTransactions: {
142 type: string;
143 };
144 totalAmount: {
145 bignumber: {
146 minimum: number;
147 bypassGenesis: boolean;
148 block: boolean;
149 };
150 };
151 totalFee: {
152 bignumber: {
153 minimum: number;
154 bypassGenesis: boolean;
155 block: boolean;
156 };
157 };
158 reward: {
159 bignumber: {
160 minimum: number;
161 };
162 };
163 payloadLength: {
164 type: string;
165 minimum: number;
166 };
167 payloadHash: {
168 $ref: string;
169 };
170 generatorPublicKey: {
171 $ref: string;
172 };
173 blockSignature: {
174 $ref: string;
175 };
176 transactions: {
177 $ref: string;
178 minItems: {
179 $data: string;
180 };
181 maxItems: {
182 $data: string;
183 };
184 };
185 };
186 };
187};