-
Notifications
You must be signed in to change notification settings - Fork 100
ERC20/721/1155 Signature Generate & Mint #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We're building your pull request over on Zeet. |
We're building your pull request over on Zeet. |
to, | ||
currencyAddress, | ||
metadata, | ||
mintEndTime, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe all these date types support only javascript date object (which wouldn't work well over HTTP) or unix timestamps, which is useable but not the most intuitive. Might be good to consider supporting date timestamps here if they don't work (worth looking into)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the expected input data-type for mintEndTime
& mintStartTime
is Number as I am expecting a date-timestamp in milliseconds.
I will take a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adam-maj I did update the datatype to be date-time
which expects ISO 8601 date-time string, which devs can get using new Date().toISOString()
. I think this what you were asking to do. plz let me know if this isn't what you meant
server/utilities/validator.ts
Outdated
} | ||
|
||
// givig 10 seconds of buffer | ||
return new Date(value).getTime() >= Date.now() - 10 * 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this as per feedback
Linear Ticket: PLAT-941