@proton/wrap-constants 0.0.47 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/coins.d.ts +5 -1
- package/dist/parsers/actions.d.ts +725 -289
- package/dist/parsers/address.d.ts +571 -112
- package/dist/parsers/auth.d.ts +1268 -356
- package/dist/parsers/base.d.ts +10 -7
- package/dist/parsers/currency.d.ts +48 -13
- package/dist/parsers/deposit.d.ts +23 -9
- package/dist/parsers/otc.d.ts +15 -8
- package/dist/parsers/withdraw.d.ts +646 -130
- package/dist/parsers/withdrawalHistory.d.ts +37 -9
- package/dist/parsers/wrap.d.ts +35 -11
- package/dist/wrap-constants.cjs.development.js +112 -56
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +112 -56
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +9 -5
- package/src/coins.ts +107 -59
- package/src/parsers/actions.ts +21 -7
- package/src/parsers/auth.ts +1 -2
|
@@ -5,67 +5,112 @@ export declare const addressParser: z.ZodObject<{
|
|
|
5
5
|
chain: z.ZodString;
|
|
6
6
|
address: z.ZodString;
|
|
7
7
|
address_hash: z.ZodString;
|
|
8
|
-
}, {
|
|
9
|
-
|
|
10
|
-
}, {
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
index: number;
|
|
11
10
|
account: string;
|
|
11
|
+
chain: string;
|
|
12
|
+
address: string;
|
|
13
|
+
address_hash: string;
|
|
14
|
+
}, {
|
|
12
15
|
index: number;
|
|
16
|
+
account: string;
|
|
13
17
|
chain: string;
|
|
14
18
|
address: string;
|
|
15
19
|
address_hash: string;
|
|
16
20
|
}>;
|
|
17
21
|
export declare type Address = z.infer<typeof addressParser>;
|
|
18
|
-
export declare const generateAddressBodyParser: z.ZodObject<{
|
|
22
|
+
export declare const generateAddressBodyParser: z.ZodObject<z.extendShape<{
|
|
19
23
|
coin: z.ZodString;
|
|
20
24
|
wallet: z.ZodString;
|
|
21
|
-
}
|
|
25
|
+
}, {
|
|
22
26
|
signer: z.ZodObject<{
|
|
23
27
|
actor: z.ZodString;
|
|
24
28
|
permission: z.ZodString;
|
|
25
|
-
}, {
|
|
26
|
-
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
actor: string;
|
|
31
|
+
permission: string;
|
|
27
32
|
}, {
|
|
28
33
|
actor: string;
|
|
29
34
|
permission: string;
|
|
30
35
|
}>;
|
|
31
|
-
signatures: z.ZodArray<z.ZodString>;
|
|
32
|
-
transaction: z.ZodObject<{
|
|
36
|
+
signatures: z.ZodArray<z.ZodString, "many">;
|
|
37
|
+
transaction: z.ZodObject<z.extendShape<{
|
|
33
38
|
expiration: z.ZodString;
|
|
34
39
|
ref_block_num: z.ZodNumber;
|
|
35
40
|
ref_block_prefix: z.ZodNumber;
|
|
36
41
|
max_net_usage_words: z.ZodNumber;
|
|
37
42
|
max_cpu_usage_ms: z.ZodNumber;
|
|
38
43
|
delay_sec: z.ZodNumber;
|
|
39
|
-
context_free_actions: z.ZodArray<z.
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
45
|
+
account: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
48
|
+
actor: z.ZodString;
|
|
49
|
+
permission: z.ZodString;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
actor: string;
|
|
52
|
+
permission: string;
|
|
53
|
+
}, {
|
|
54
|
+
actor: string;
|
|
55
|
+
permission: string;
|
|
56
|
+
}>, "many">;
|
|
57
|
+
data: z.ZodAny;
|
|
58
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
data?: any;
|
|
61
|
+
hex_data?: string | undefined;
|
|
62
|
+
account: string;
|
|
63
|
+
name: string;
|
|
64
|
+
authorization: {
|
|
65
|
+
actor: string;
|
|
66
|
+
permission: string;
|
|
67
|
+
}[];
|
|
68
|
+
}, {
|
|
69
|
+
data?: any;
|
|
70
|
+
hex_data?: string | undefined;
|
|
71
|
+
account: string;
|
|
72
|
+
name: string;
|
|
73
|
+
authorization: {
|
|
74
|
+
actor: string;
|
|
75
|
+
permission: string;
|
|
76
|
+
}[];
|
|
77
|
+
}>, "many">;
|
|
78
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>, "many">;
|
|
79
|
+
}, {
|
|
42
80
|
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
43
81
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
44
82
|
name: z.ZodLiteral<string>;
|
|
45
|
-
data: z.ZodObject<
|
|
46
|
-
|
|
83
|
+
data: z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, {
|
|
84
|
+
[x: string]: any;
|
|
47
85
|
}, {
|
|
48
86
|
[x: string]: any;
|
|
49
|
-
[x: number]: any;
|
|
50
87
|
}>;
|
|
51
88
|
authorization: z.ZodArray<z.ZodObject<{
|
|
52
89
|
actor: z.ZodString;
|
|
53
90
|
permission: z.ZodString;
|
|
54
|
-
}, {
|
|
55
|
-
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
actor: string;
|
|
93
|
+
permission: string;
|
|
56
94
|
}, {
|
|
57
95
|
actor: string;
|
|
58
96
|
permission: string;
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
strict: true;
|
|
62
|
-
}, {
|
|
97
|
+
}>, "many">;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
99
|
account: string;
|
|
100
|
+
data: {
|
|
101
|
+
[x: string]: any;
|
|
102
|
+
};
|
|
64
103
|
name: string;
|
|
104
|
+
authorization: {
|
|
105
|
+
actor: string;
|
|
106
|
+
permission: string;
|
|
107
|
+
}[];
|
|
108
|
+
}, {
|
|
109
|
+
account: string;
|
|
65
110
|
data: {
|
|
66
111
|
[x: string]: any;
|
|
67
|
-
[x: number]: any;
|
|
68
112
|
};
|
|
113
|
+
name: string;
|
|
69
114
|
authorization: {
|
|
70
115
|
actor: string;
|
|
71
116
|
permission: string;
|
|
@@ -79,16 +124,22 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
79
124
|
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
80
125
|
modulus: z.ZodString;
|
|
81
126
|
exponent: z.ZodString;
|
|
82
|
-
}, {
|
|
83
|
-
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
modulus: string;
|
|
129
|
+
exponent: string;
|
|
84
130
|
}, {
|
|
85
131
|
modulus: string;
|
|
86
132
|
exponent: string;
|
|
87
|
-
}>]
|
|
133
|
+
}>]>, "many">;
|
|
88
134
|
user_presence: z.ZodNumber;
|
|
89
135
|
rpid: z.ZodString;
|
|
90
|
-
}, {
|
|
91
|
-
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
key: (string | {
|
|
138
|
+
modulus: string;
|
|
139
|
+
exponent: string;
|
|
140
|
+
})[];
|
|
141
|
+
user_presence: number;
|
|
142
|
+
rpid: string;
|
|
92
143
|
}, {
|
|
93
144
|
key: (string | {
|
|
94
145
|
modulus: string;
|
|
@@ -101,94 +152,168 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
101
152
|
permissions: z.ZodArray<z.ZodObject<{
|
|
102
153
|
actor: z.ZodString;
|
|
103
154
|
permission: z.ZodString;
|
|
104
|
-
}, {
|
|
105
|
-
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
actor: string;
|
|
157
|
+
permission: string;
|
|
106
158
|
}, {
|
|
107
159
|
actor: string;
|
|
108
160
|
permission: string;
|
|
109
|
-
}
|
|
161
|
+
}>, "many">;
|
|
110
162
|
signature: z.ZodObject<{
|
|
111
163
|
auth_data: z.ZodString;
|
|
112
164
|
client_json: z.ZodString;
|
|
113
165
|
signature: z.ZodString;
|
|
114
|
-
}, {
|
|
115
|
-
|
|
116
|
-
}, {
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
signature: string;
|
|
117
168
|
auth_data: string;
|
|
118
169
|
client_json: string;
|
|
170
|
+
}, {
|
|
119
171
|
signature: string;
|
|
172
|
+
auth_data: string;
|
|
173
|
+
client_json: string;
|
|
120
174
|
}>;
|
|
121
|
-
trx: z.ZodObject<{
|
|
175
|
+
trx: z.ZodObject<z.extendShape<{
|
|
122
176
|
expiration: z.ZodString;
|
|
123
177
|
ref_block_num: z.ZodNumber;
|
|
124
178
|
ref_block_prefix: z.ZodNumber;
|
|
125
179
|
max_net_usage_words: z.ZodNumber;
|
|
126
180
|
max_cpu_usage_ms: z.ZodNumber;
|
|
127
181
|
delay_sec: z.ZodNumber;
|
|
128
|
-
context_free_actions: z.ZodArray<z.
|
|
129
|
-
|
|
130
|
-
|
|
182
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
183
|
+
account: z.ZodString;
|
|
184
|
+
name: z.ZodString;
|
|
185
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
186
|
+
actor: z.ZodString;
|
|
187
|
+
permission: z.ZodString;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
actor: string;
|
|
190
|
+
permission: string;
|
|
191
|
+
}, {
|
|
192
|
+
actor: string;
|
|
193
|
+
permission: string;
|
|
194
|
+
}>, "many">;
|
|
195
|
+
data: z.ZodAny;
|
|
196
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
data?: any;
|
|
199
|
+
hex_data?: string | undefined;
|
|
200
|
+
account: string;
|
|
201
|
+
name: string;
|
|
202
|
+
authorization: {
|
|
203
|
+
actor: string;
|
|
204
|
+
permission: string;
|
|
205
|
+
}[];
|
|
206
|
+
}, {
|
|
207
|
+
data?: any;
|
|
208
|
+
hex_data?: string | undefined;
|
|
209
|
+
account: string;
|
|
210
|
+
name: string;
|
|
211
|
+
authorization: {
|
|
212
|
+
actor: string;
|
|
213
|
+
permission: string;
|
|
214
|
+
}[];
|
|
215
|
+
}>, "many">;
|
|
216
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">>, "many">;
|
|
217
|
+
}, {
|
|
131
218
|
actions: z.ZodArray<z.ZodObject<{
|
|
132
219
|
account: z.ZodString | z.ZodLiteral<string>;
|
|
133
220
|
name: z.ZodLiteral<string>;
|
|
134
|
-
data: z.ZodUnion<[z.ZodString, z.ZodObject<
|
|
135
|
-
|
|
221
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, {
|
|
222
|
+
[x: string]: any;
|
|
136
223
|
}, {
|
|
137
224
|
[x: string]: any;
|
|
138
|
-
[x: number]: any;
|
|
139
225
|
}>]>;
|
|
140
226
|
authorization: z.ZodArray<z.ZodObject<{
|
|
141
227
|
actor: z.ZodString;
|
|
142
228
|
permission: z.ZodString;
|
|
143
|
-
}, {
|
|
144
|
-
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
actor: string;
|
|
231
|
+
permission: string;
|
|
145
232
|
}, {
|
|
146
233
|
actor: string;
|
|
147
234
|
permission: string;
|
|
148
|
-
}
|
|
149
|
-
}, {
|
|
150
|
-
|
|
235
|
+
}>, "many">;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
account: string;
|
|
238
|
+
data: string | {
|
|
239
|
+
[x: string]: any;
|
|
240
|
+
};
|
|
241
|
+
name: string;
|
|
242
|
+
authorization: {
|
|
243
|
+
actor: string;
|
|
244
|
+
permission: string;
|
|
245
|
+
}[];
|
|
151
246
|
}, {
|
|
247
|
+
account: string;
|
|
248
|
+
data: string | {
|
|
249
|
+
[x: string]: any;
|
|
250
|
+
};
|
|
251
|
+
name: string;
|
|
252
|
+
authorization: {
|
|
253
|
+
actor: string;
|
|
254
|
+
permission: string;
|
|
255
|
+
}[];
|
|
256
|
+
}>, "many">;
|
|
257
|
+
}>, "strip", z.ZodTypeAny, {
|
|
258
|
+
expiration: string;
|
|
259
|
+
ref_block_num: number;
|
|
260
|
+
ref_block_prefix: number;
|
|
261
|
+
max_net_usage_words: number;
|
|
262
|
+
max_cpu_usage_ms: number;
|
|
263
|
+
delay_sec: number;
|
|
264
|
+
context_free_actions: {
|
|
265
|
+
data?: any;
|
|
266
|
+
hex_data?: string | undefined;
|
|
152
267
|
account: string;
|
|
153
268
|
name: string;
|
|
269
|
+
authorization: {
|
|
270
|
+
actor: string;
|
|
271
|
+
permission: string;
|
|
272
|
+
}[];
|
|
273
|
+
}[];
|
|
274
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
275
|
+
actions: {
|
|
276
|
+
account: string;
|
|
154
277
|
data: string | {
|
|
155
278
|
[x: string]: any;
|
|
156
|
-
[x: number]: any;
|
|
157
279
|
};
|
|
280
|
+
name: string;
|
|
158
281
|
authorization: {
|
|
159
282
|
actor: string;
|
|
160
283
|
permission: string;
|
|
161
284
|
}[];
|
|
162
|
-
}
|
|
163
|
-
}, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
|
|
164
|
-
strict: true;
|
|
285
|
+
}[];
|
|
165
286
|
}, {
|
|
166
|
-
strict: true;
|
|
167
|
-
}>, {
|
|
168
287
|
expiration: string;
|
|
169
288
|
ref_block_num: number;
|
|
170
289
|
ref_block_prefix: number;
|
|
171
290
|
max_net_usage_words: number;
|
|
172
291
|
max_cpu_usage_ms: number;
|
|
173
292
|
delay_sec: number;
|
|
174
|
-
context_free_actions:
|
|
175
|
-
|
|
176
|
-
|
|
293
|
+
context_free_actions: {
|
|
294
|
+
data?: any;
|
|
295
|
+
hex_data?: string | undefined;
|
|
177
296
|
account: string;
|
|
178
297
|
name: string;
|
|
298
|
+
authorization: {
|
|
299
|
+
actor: string;
|
|
300
|
+
permission: string;
|
|
301
|
+
}[];
|
|
302
|
+
}[];
|
|
303
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
304
|
+
actions: {
|
|
305
|
+
account: string;
|
|
179
306
|
data: string | {
|
|
180
307
|
[x: string]: any;
|
|
181
|
-
[x: number]: any;
|
|
182
308
|
};
|
|
309
|
+
name: string;
|
|
183
310
|
authorization: {
|
|
184
311
|
actor: string;
|
|
185
312
|
permission: string;
|
|
186
313
|
}[];
|
|
187
314
|
}[];
|
|
188
315
|
}>;
|
|
189
|
-
}, {
|
|
190
|
-
strict: true;
|
|
191
|
-
}, {
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
317
|
account: string;
|
|
193
318
|
key: {
|
|
194
319
|
key: (string | {
|
|
@@ -198,16 +323,66 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
198
323
|
user_presence: number;
|
|
199
324
|
rpid: string;
|
|
200
325
|
};
|
|
326
|
+
nonce: number;
|
|
327
|
+
permissions: {
|
|
328
|
+
actor: string;
|
|
329
|
+
permission: string;
|
|
330
|
+
}[];
|
|
201
331
|
signature: {
|
|
332
|
+
signature: string;
|
|
202
333
|
auth_data: string;
|
|
203
334
|
client_json: string;
|
|
204
|
-
|
|
335
|
+
};
|
|
336
|
+
trx: {
|
|
337
|
+
expiration: string;
|
|
338
|
+
ref_block_num: number;
|
|
339
|
+
ref_block_prefix: number;
|
|
340
|
+
max_net_usage_words: number;
|
|
341
|
+
max_cpu_usage_ms: number;
|
|
342
|
+
delay_sec: number;
|
|
343
|
+
context_free_actions: {
|
|
344
|
+
data?: any;
|
|
345
|
+
hex_data?: string | undefined;
|
|
346
|
+
account: string;
|
|
347
|
+
name: string;
|
|
348
|
+
authorization: {
|
|
349
|
+
actor: string;
|
|
350
|
+
permission: string;
|
|
351
|
+
}[];
|
|
352
|
+
}[];
|
|
353
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
354
|
+
actions: {
|
|
355
|
+
account: string;
|
|
356
|
+
data: string | {
|
|
357
|
+
[x: string]: any;
|
|
358
|
+
};
|
|
359
|
+
name: string;
|
|
360
|
+
authorization: {
|
|
361
|
+
actor: string;
|
|
362
|
+
permission: string;
|
|
363
|
+
}[];
|
|
364
|
+
}[];
|
|
365
|
+
};
|
|
366
|
+
}, {
|
|
367
|
+
account: string;
|
|
368
|
+
key: {
|
|
369
|
+
key: (string | {
|
|
370
|
+
modulus: string;
|
|
371
|
+
exponent: string;
|
|
372
|
+
})[];
|
|
373
|
+
user_presence: number;
|
|
374
|
+
rpid: string;
|
|
205
375
|
};
|
|
206
376
|
nonce: number;
|
|
207
377
|
permissions: {
|
|
208
378
|
actor: string;
|
|
209
379
|
permission: string;
|
|
210
380
|
}[];
|
|
381
|
+
signature: {
|
|
382
|
+
signature: string;
|
|
383
|
+
auth_data: string;
|
|
384
|
+
client_json: string;
|
|
385
|
+
};
|
|
211
386
|
trx: {
|
|
212
387
|
expiration: string;
|
|
213
388
|
ref_block_num: number;
|
|
@@ -215,15 +390,23 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
215
390
|
max_net_usage_words: number;
|
|
216
391
|
max_cpu_usage_ms: number;
|
|
217
392
|
delay_sec: number;
|
|
218
|
-
context_free_actions:
|
|
219
|
-
|
|
220
|
-
|
|
393
|
+
context_free_actions: {
|
|
394
|
+
data?: any;
|
|
395
|
+
hex_data?: string | undefined;
|
|
221
396
|
account: string;
|
|
222
397
|
name: string;
|
|
398
|
+
authorization: {
|
|
399
|
+
actor: string;
|
|
400
|
+
permission: string;
|
|
401
|
+
}[];
|
|
402
|
+
}[];
|
|
403
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
404
|
+
actions: {
|
|
405
|
+
account: string;
|
|
223
406
|
data: string | {
|
|
224
407
|
[x: string]: any;
|
|
225
|
-
[x: number]: any;
|
|
226
408
|
};
|
|
409
|
+
name: string;
|
|
227
410
|
authorization: {
|
|
228
411
|
actor: string;
|
|
229
412
|
permission: string;
|
|
@@ -234,17 +417,15 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
234
417
|
authorization: z.ZodArray<z.ZodObject<{
|
|
235
418
|
actor: z.ZodString;
|
|
236
419
|
permission: z.ZodString;
|
|
237
|
-
}, {
|
|
238
|
-
|
|
420
|
+
}, "strip", z.ZodTypeAny, {
|
|
421
|
+
actor: string;
|
|
422
|
+
permission: string;
|
|
239
423
|
}, {
|
|
240
424
|
actor: string;
|
|
241
425
|
permission: string;
|
|
242
|
-
}
|
|
243
|
-
}, {
|
|
244
|
-
strict: true;
|
|
245
|
-
}, {
|
|
426
|
+
}>, "many">;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
428
|
account: "webauthn";
|
|
247
|
-
name: "exec";
|
|
248
429
|
data: {
|
|
249
430
|
account: string;
|
|
250
431
|
key: {
|
|
@@ -255,16 +436,74 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
255
436
|
user_presence: number;
|
|
256
437
|
rpid: string;
|
|
257
438
|
};
|
|
439
|
+
nonce: number;
|
|
440
|
+
permissions: {
|
|
441
|
+
actor: string;
|
|
442
|
+
permission: string;
|
|
443
|
+
}[];
|
|
258
444
|
signature: {
|
|
445
|
+
signature: string;
|
|
259
446
|
auth_data: string;
|
|
260
447
|
client_json: string;
|
|
261
|
-
|
|
448
|
+
};
|
|
449
|
+
trx: {
|
|
450
|
+
expiration: string;
|
|
451
|
+
ref_block_num: number;
|
|
452
|
+
ref_block_prefix: number;
|
|
453
|
+
max_net_usage_words: number;
|
|
454
|
+
max_cpu_usage_ms: number;
|
|
455
|
+
delay_sec: number;
|
|
456
|
+
context_free_actions: {
|
|
457
|
+
data?: any;
|
|
458
|
+
hex_data?: string | undefined;
|
|
459
|
+
account: string;
|
|
460
|
+
name: string;
|
|
461
|
+
authorization: {
|
|
462
|
+
actor: string;
|
|
463
|
+
permission: string;
|
|
464
|
+
}[];
|
|
465
|
+
}[];
|
|
466
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
467
|
+
actions: {
|
|
468
|
+
account: string;
|
|
469
|
+
data: string | {
|
|
470
|
+
[x: string]: any;
|
|
471
|
+
};
|
|
472
|
+
name: string;
|
|
473
|
+
authorization: {
|
|
474
|
+
actor: string;
|
|
475
|
+
permission: string;
|
|
476
|
+
}[];
|
|
477
|
+
}[];
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
name: "exec";
|
|
481
|
+
authorization: {
|
|
482
|
+
actor: string;
|
|
483
|
+
permission: string;
|
|
484
|
+
}[];
|
|
485
|
+
}, {
|
|
486
|
+
account: "webauthn";
|
|
487
|
+
data: {
|
|
488
|
+
account: string;
|
|
489
|
+
key: {
|
|
490
|
+
key: (string | {
|
|
491
|
+
modulus: string;
|
|
492
|
+
exponent: string;
|
|
493
|
+
})[];
|
|
494
|
+
user_presence: number;
|
|
495
|
+
rpid: string;
|
|
262
496
|
};
|
|
263
497
|
nonce: number;
|
|
264
498
|
permissions: {
|
|
265
499
|
actor: string;
|
|
266
500
|
permission: string;
|
|
267
501
|
}[];
|
|
502
|
+
signature: {
|
|
503
|
+
signature: string;
|
|
504
|
+
auth_data: string;
|
|
505
|
+
client_json: string;
|
|
506
|
+
};
|
|
268
507
|
trx: {
|
|
269
508
|
expiration: string;
|
|
270
509
|
ref_block_num: number;
|
|
@@ -272,15 +511,23 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
272
511
|
max_net_usage_words: number;
|
|
273
512
|
max_cpu_usage_ms: number;
|
|
274
513
|
delay_sec: number;
|
|
275
|
-
context_free_actions:
|
|
276
|
-
|
|
277
|
-
|
|
514
|
+
context_free_actions: {
|
|
515
|
+
data?: any;
|
|
516
|
+
hex_data?: string | undefined;
|
|
278
517
|
account: string;
|
|
279
518
|
name: string;
|
|
519
|
+
authorization: {
|
|
520
|
+
actor: string;
|
|
521
|
+
permission: string;
|
|
522
|
+
}[];
|
|
523
|
+
}[];
|
|
524
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
525
|
+
actions: {
|
|
526
|
+
account: string;
|
|
280
527
|
data: string | {
|
|
281
528
|
[x: string]: any;
|
|
282
|
-
[x: number]: any;
|
|
283
529
|
};
|
|
530
|
+
name: string;
|
|
284
531
|
authorization: {
|
|
285
532
|
actor: string;
|
|
286
533
|
permission: string;
|
|
@@ -288,38 +535,42 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
288
535
|
}[];
|
|
289
536
|
};
|
|
290
537
|
};
|
|
538
|
+
name: "exec";
|
|
291
539
|
authorization: {
|
|
292
540
|
actor: string;
|
|
293
541
|
permission: string;
|
|
294
542
|
}[];
|
|
295
|
-
}>]
|
|
296
|
-
}
|
|
297
|
-
strict: true;
|
|
298
|
-
}, {
|
|
299
|
-
strict: true;
|
|
300
|
-
}>, {
|
|
543
|
+
}>]>, "many">;
|
|
544
|
+
}>, "strip", z.ZodTypeAny, {
|
|
301
545
|
expiration: string;
|
|
302
546
|
ref_block_num: number;
|
|
303
547
|
ref_block_prefix: number;
|
|
304
548
|
max_net_usage_words: number;
|
|
305
549
|
max_cpu_usage_ms: number;
|
|
306
550
|
delay_sec: number;
|
|
307
|
-
context_free_actions:
|
|
308
|
-
|
|
309
|
-
|
|
551
|
+
context_free_actions: {
|
|
552
|
+
data?: any;
|
|
553
|
+
hex_data?: string | undefined;
|
|
310
554
|
account: string;
|
|
311
555
|
name: string;
|
|
556
|
+
authorization: {
|
|
557
|
+
actor: string;
|
|
558
|
+
permission: string;
|
|
559
|
+
}[];
|
|
560
|
+
}[];
|
|
561
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
562
|
+
actions: ({
|
|
563
|
+
account: string;
|
|
312
564
|
data: {
|
|
313
565
|
[x: string]: any;
|
|
314
|
-
[x: number]: any;
|
|
315
566
|
};
|
|
567
|
+
name: string;
|
|
316
568
|
authorization: {
|
|
317
569
|
actor: string;
|
|
318
570
|
permission: string;
|
|
319
571
|
}[];
|
|
320
572
|
} | {
|
|
321
573
|
account: "webauthn";
|
|
322
|
-
name: "exec";
|
|
323
574
|
data: {
|
|
324
575
|
account: string;
|
|
325
576
|
key: {
|
|
@@ -330,16 +581,103 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
330
581
|
user_presence: number;
|
|
331
582
|
rpid: string;
|
|
332
583
|
};
|
|
584
|
+
nonce: number;
|
|
585
|
+
permissions: {
|
|
586
|
+
actor: string;
|
|
587
|
+
permission: string;
|
|
588
|
+
}[];
|
|
333
589
|
signature: {
|
|
590
|
+
signature: string;
|
|
334
591
|
auth_data: string;
|
|
335
592
|
client_json: string;
|
|
336
|
-
|
|
593
|
+
};
|
|
594
|
+
trx: {
|
|
595
|
+
expiration: string;
|
|
596
|
+
ref_block_num: number;
|
|
597
|
+
ref_block_prefix: number;
|
|
598
|
+
max_net_usage_words: number;
|
|
599
|
+
max_cpu_usage_ms: number;
|
|
600
|
+
delay_sec: number;
|
|
601
|
+
context_free_actions: {
|
|
602
|
+
data?: any;
|
|
603
|
+
hex_data?: string | undefined;
|
|
604
|
+
account: string;
|
|
605
|
+
name: string;
|
|
606
|
+
authorization: {
|
|
607
|
+
actor: string;
|
|
608
|
+
permission: string;
|
|
609
|
+
}[];
|
|
610
|
+
}[];
|
|
611
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
612
|
+
actions: {
|
|
613
|
+
account: string;
|
|
614
|
+
data: string | {
|
|
615
|
+
[x: string]: any;
|
|
616
|
+
};
|
|
617
|
+
name: string;
|
|
618
|
+
authorization: {
|
|
619
|
+
actor: string;
|
|
620
|
+
permission: string;
|
|
621
|
+
}[];
|
|
622
|
+
}[];
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
name: "exec";
|
|
626
|
+
authorization: {
|
|
627
|
+
actor: string;
|
|
628
|
+
permission: string;
|
|
629
|
+
}[];
|
|
630
|
+
})[];
|
|
631
|
+
}, {
|
|
632
|
+
expiration: string;
|
|
633
|
+
ref_block_num: number;
|
|
634
|
+
ref_block_prefix: number;
|
|
635
|
+
max_net_usage_words: number;
|
|
636
|
+
max_cpu_usage_ms: number;
|
|
637
|
+
delay_sec: number;
|
|
638
|
+
context_free_actions: {
|
|
639
|
+
data?: any;
|
|
640
|
+
hex_data?: string | undefined;
|
|
641
|
+
account: string;
|
|
642
|
+
name: string;
|
|
643
|
+
authorization: {
|
|
644
|
+
actor: string;
|
|
645
|
+
permission: string;
|
|
646
|
+
}[];
|
|
647
|
+
}[];
|
|
648
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
649
|
+
actions: ({
|
|
650
|
+
account: string;
|
|
651
|
+
data: {
|
|
652
|
+
[x: string]: any;
|
|
653
|
+
};
|
|
654
|
+
name: string;
|
|
655
|
+
authorization: {
|
|
656
|
+
actor: string;
|
|
657
|
+
permission: string;
|
|
658
|
+
}[];
|
|
659
|
+
} | {
|
|
660
|
+
account: "webauthn";
|
|
661
|
+
data: {
|
|
662
|
+
account: string;
|
|
663
|
+
key: {
|
|
664
|
+
key: (string | {
|
|
665
|
+
modulus: string;
|
|
666
|
+
exponent: string;
|
|
667
|
+
})[];
|
|
668
|
+
user_presence: number;
|
|
669
|
+
rpid: string;
|
|
337
670
|
};
|
|
338
671
|
nonce: number;
|
|
339
672
|
permissions: {
|
|
340
673
|
actor: string;
|
|
341
674
|
permission: string;
|
|
342
675
|
}[];
|
|
676
|
+
signature: {
|
|
677
|
+
signature: string;
|
|
678
|
+
auth_data: string;
|
|
679
|
+
client_json: string;
|
|
680
|
+
};
|
|
343
681
|
trx: {
|
|
344
682
|
expiration: string;
|
|
345
683
|
ref_block_num: number;
|
|
@@ -347,15 +685,23 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
347
685
|
max_net_usage_words: number;
|
|
348
686
|
max_cpu_usage_ms: number;
|
|
349
687
|
delay_sec: number;
|
|
350
|
-
context_free_actions:
|
|
351
|
-
|
|
352
|
-
|
|
688
|
+
context_free_actions: {
|
|
689
|
+
data?: any;
|
|
690
|
+
hex_data?: string | undefined;
|
|
353
691
|
account: string;
|
|
354
692
|
name: string;
|
|
693
|
+
authorization: {
|
|
694
|
+
actor: string;
|
|
695
|
+
permission: string;
|
|
696
|
+
}[];
|
|
697
|
+
}[];
|
|
698
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
699
|
+
actions: {
|
|
700
|
+
account: string;
|
|
355
701
|
data: string | {
|
|
356
702
|
[x: string]: any;
|
|
357
|
-
[x: number]: any;
|
|
358
703
|
};
|
|
704
|
+
name: string;
|
|
359
705
|
authorization: {
|
|
360
706
|
actor: string;
|
|
361
707
|
permission: string;
|
|
@@ -363,17 +709,16 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
363
709
|
}[];
|
|
364
710
|
};
|
|
365
711
|
};
|
|
712
|
+
name: "exec";
|
|
366
713
|
authorization: {
|
|
367
714
|
actor: string;
|
|
368
715
|
permission: string;
|
|
369
716
|
}[];
|
|
370
717
|
})[];
|
|
371
718
|
}>;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
strict: true;
|
|
376
|
-
}>, {
|
|
719
|
+
}>, "strip", z.ZodTypeAny, {
|
|
720
|
+
coin: string;
|
|
721
|
+
wallet: string;
|
|
377
722
|
signer: {
|
|
378
723
|
actor: string;
|
|
379
724
|
permission: string;
|
|
@@ -386,22 +731,29 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
386
731
|
max_net_usage_words: number;
|
|
387
732
|
max_cpu_usage_ms: number;
|
|
388
733
|
delay_sec: number;
|
|
389
|
-
context_free_actions:
|
|
390
|
-
|
|
391
|
-
|
|
734
|
+
context_free_actions: {
|
|
735
|
+
data?: any;
|
|
736
|
+
hex_data?: string | undefined;
|
|
392
737
|
account: string;
|
|
393
738
|
name: string;
|
|
739
|
+
authorization: {
|
|
740
|
+
actor: string;
|
|
741
|
+
permission: string;
|
|
742
|
+
}[];
|
|
743
|
+
}[];
|
|
744
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
745
|
+
actions: ({
|
|
746
|
+
account: string;
|
|
394
747
|
data: {
|
|
395
748
|
[x: string]: any;
|
|
396
|
-
[x: number]: any;
|
|
397
749
|
};
|
|
750
|
+
name: string;
|
|
398
751
|
authorization: {
|
|
399
752
|
actor: string;
|
|
400
753
|
permission: string;
|
|
401
754
|
}[];
|
|
402
755
|
} | {
|
|
403
756
|
account: "webauthn";
|
|
404
|
-
name: "exec";
|
|
405
757
|
data: {
|
|
406
758
|
account: string;
|
|
407
759
|
key: {
|
|
@@ -412,16 +764,112 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
412
764
|
user_presence: number;
|
|
413
765
|
rpid: string;
|
|
414
766
|
};
|
|
767
|
+
nonce: number;
|
|
768
|
+
permissions: {
|
|
769
|
+
actor: string;
|
|
770
|
+
permission: string;
|
|
771
|
+
}[];
|
|
415
772
|
signature: {
|
|
773
|
+
signature: string;
|
|
416
774
|
auth_data: string;
|
|
417
775
|
client_json: string;
|
|
418
|
-
|
|
776
|
+
};
|
|
777
|
+
trx: {
|
|
778
|
+
expiration: string;
|
|
779
|
+
ref_block_num: number;
|
|
780
|
+
ref_block_prefix: number;
|
|
781
|
+
max_net_usage_words: number;
|
|
782
|
+
max_cpu_usage_ms: number;
|
|
783
|
+
delay_sec: number;
|
|
784
|
+
context_free_actions: {
|
|
785
|
+
data?: any;
|
|
786
|
+
hex_data?: string | undefined;
|
|
787
|
+
account: string;
|
|
788
|
+
name: string;
|
|
789
|
+
authorization: {
|
|
790
|
+
actor: string;
|
|
791
|
+
permission: string;
|
|
792
|
+
}[];
|
|
793
|
+
}[];
|
|
794
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
795
|
+
actions: {
|
|
796
|
+
account: string;
|
|
797
|
+
data: string | {
|
|
798
|
+
[x: string]: any;
|
|
799
|
+
};
|
|
800
|
+
name: string;
|
|
801
|
+
authorization: {
|
|
802
|
+
actor: string;
|
|
803
|
+
permission: string;
|
|
804
|
+
}[];
|
|
805
|
+
}[];
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
name: "exec";
|
|
809
|
+
authorization: {
|
|
810
|
+
actor: string;
|
|
811
|
+
permission: string;
|
|
812
|
+
}[];
|
|
813
|
+
})[];
|
|
814
|
+
};
|
|
815
|
+
}, {
|
|
816
|
+
coin: string;
|
|
817
|
+
wallet: string;
|
|
818
|
+
signer: {
|
|
819
|
+
actor: string;
|
|
820
|
+
permission: string;
|
|
821
|
+
};
|
|
822
|
+
signatures: string[];
|
|
823
|
+
transaction: {
|
|
824
|
+
expiration: string;
|
|
825
|
+
ref_block_num: number;
|
|
826
|
+
ref_block_prefix: number;
|
|
827
|
+
max_net_usage_words: number;
|
|
828
|
+
max_cpu_usage_ms: number;
|
|
829
|
+
delay_sec: number;
|
|
830
|
+
context_free_actions: {
|
|
831
|
+
data?: any;
|
|
832
|
+
hex_data?: string | undefined;
|
|
833
|
+
account: string;
|
|
834
|
+
name: string;
|
|
835
|
+
authorization: {
|
|
836
|
+
actor: string;
|
|
837
|
+
permission: string;
|
|
838
|
+
}[];
|
|
839
|
+
}[];
|
|
840
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
841
|
+
actions: ({
|
|
842
|
+
account: string;
|
|
843
|
+
data: {
|
|
844
|
+
[x: string]: any;
|
|
845
|
+
};
|
|
846
|
+
name: string;
|
|
847
|
+
authorization: {
|
|
848
|
+
actor: string;
|
|
849
|
+
permission: string;
|
|
850
|
+
}[];
|
|
851
|
+
} | {
|
|
852
|
+
account: "webauthn";
|
|
853
|
+
data: {
|
|
854
|
+
account: string;
|
|
855
|
+
key: {
|
|
856
|
+
key: (string | {
|
|
857
|
+
modulus: string;
|
|
858
|
+
exponent: string;
|
|
859
|
+
})[];
|
|
860
|
+
user_presence: number;
|
|
861
|
+
rpid: string;
|
|
419
862
|
};
|
|
420
863
|
nonce: number;
|
|
421
864
|
permissions: {
|
|
422
865
|
actor: string;
|
|
423
866
|
permission: string;
|
|
424
867
|
}[];
|
|
868
|
+
signature: {
|
|
869
|
+
signature: string;
|
|
870
|
+
auth_data: string;
|
|
871
|
+
client_json: string;
|
|
872
|
+
};
|
|
425
873
|
trx: {
|
|
426
874
|
expiration: string;
|
|
427
875
|
ref_block_num: number;
|
|
@@ -429,15 +877,23 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
429
877
|
max_net_usage_words: number;
|
|
430
878
|
max_cpu_usage_ms: number;
|
|
431
879
|
delay_sec: number;
|
|
432
|
-
context_free_actions:
|
|
433
|
-
|
|
434
|
-
|
|
880
|
+
context_free_actions: {
|
|
881
|
+
data?: any;
|
|
882
|
+
hex_data?: string | undefined;
|
|
435
883
|
account: string;
|
|
436
884
|
name: string;
|
|
885
|
+
authorization: {
|
|
886
|
+
actor: string;
|
|
887
|
+
permission: string;
|
|
888
|
+
}[];
|
|
889
|
+
}[];
|
|
890
|
+
transaction_extensions: ((string | number)[] | undefined)[];
|
|
891
|
+
actions: {
|
|
892
|
+
account: string;
|
|
437
893
|
data: string | {
|
|
438
894
|
[x: string]: any;
|
|
439
|
-
[x: number]: any;
|
|
440
895
|
};
|
|
896
|
+
name: string;
|
|
441
897
|
authorization: {
|
|
442
898
|
actor: string;
|
|
443
899
|
permission: string;
|
|
@@ -445,14 +901,13 @@ export declare const generateAddressBodyParser: z.ZodObject<{
|
|
|
445
901
|
}[];
|
|
446
902
|
};
|
|
447
903
|
};
|
|
904
|
+
name: "exec";
|
|
448
905
|
authorization: {
|
|
449
906
|
actor: string;
|
|
450
907
|
permission: string;
|
|
451
908
|
}[];
|
|
452
909
|
})[];
|
|
453
910
|
};
|
|
454
|
-
coin: string;
|
|
455
|
-
wallet: string;
|
|
456
911
|
}>;
|
|
457
912
|
export declare type GenerateAddressBody = z.infer<typeof generateAddressBodyParser>;
|
|
458
913
|
export declare const generateAddressResponse: z.ZodObject<{
|
|
@@ -460,14 +915,18 @@ export declare const generateAddressResponse: z.ZodObject<{
|
|
|
460
915
|
address: z.ZodString;
|
|
461
916
|
coin: z.ZodString;
|
|
462
917
|
wallet: z.ZodString;
|
|
463
|
-
memo: z.
|
|
464
|
-
}, {
|
|
465
|
-
strict: true;
|
|
466
|
-
}, {
|
|
918
|
+
memo: z.ZodOptional<z.ZodString>;
|
|
919
|
+
}, "strip", z.ZodTypeAny, {
|
|
467
920
|
memo?: string | undefined;
|
|
921
|
+
address: string;
|
|
468
922
|
coin: string;
|
|
469
923
|
wallet: string;
|
|
924
|
+
id: string;
|
|
925
|
+
}, {
|
|
926
|
+
memo?: string | undefined;
|
|
470
927
|
address: string;
|
|
928
|
+
coin: string;
|
|
929
|
+
wallet: string;
|
|
471
930
|
id: string;
|
|
472
931
|
}>;
|
|
473
932
|
export declare type GenerateAddressResponse = z.infer<typeof generateAddressResponse>;
|