Skip to content

Commit 4c1e1a4

Browse files
authored
fix: time bounds data type & unit (#40)
1 parent 12acb87 commit 4c1e1a4

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/wallet-api/typedData.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
import { ADDRESS, FELT } from '../api/components.js';
22
import type { ABI_TYPE_ENUM } from '../api/constants.js';
33

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;
4+
export type BLOCK_TIMESTAMP = number;
135

146
/**
157
* Object containing timestamps corresponding to `Execute After` and `Execute Before`
168
*/
179
export type TIME_BOUNDS = {
18-
execute_after: TIMESTAMP;
19-
execute_before: TIMESTAMP;
10+
execute_after: BLOCK_TIMESTAMP;
11+
execute_before: BLOCK_TIMESTAMP;
2012
};
2113

2214
export const TypedDataRevision = {

0 commit comments

Comments
 (0)