We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12acb87 commit 4c1e1a4Copy full SHA for 4c1e1a4
src/wallet-api/typedData.ts
@@ -1,22 +1,14 @@
1
import { ADDRESS, FELT } from '../api/components.js';
2
import type { ABI_TYPE_ENUM } from '../api/constants.js';
3
4
-/**
5
- * A string representing an unsigned integer
6
- * @pattern ^(0|[1-9]{1}[0-9]*)$
7
- */
8
-export type NUMERIC = string;
9
10
- * UNIX time
11
12
-export type TIMESTAMP = NUMERIC;
+export type BLOCK_TIMESTAMP = number;
13
14
/**
15
* Object containing timestamps corresponding to `Execute After` and `Execute Before`
16
*/
17
export type TIME_BOUNDS = {
18
- execute_after: TIMESTAMP;
19
- execute_before: TIMESTAMP;
+ execute_after: BLOCK_TIMESTAMP;
+ execute_before: BLOCK_TIMESTAMP;
20
};
21
22
export const TypedDataRevision = {
0 commit comments