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