AvaProtocol / xcm-demo

Javascript usage of OAK’s XCM automation with parachains including Moonbeam, Astar and Mangata.
https://docs.oak.tech/docs/xcm/integration-overview/
4 stars 5 forks source link

Wrap up the hour to timestamp calculation in src/common/utils. #55

Closed chrisli30 closed 1 year ago

chrisli30 commented 1 year ago

Wrap up the hour to timestamp calculation in src/common/utils. Let’s do this as soon as possible.

We have seen this code many times. Copy this function to utils. https://github.com/OAK-Foundation/oak.js/blob/1e3f04e287b5a4f6c649042e8639e54e82ef3f7e/test/utils/recurrer.ts#L53

_Originally posted by @chrisli30 in https://github.com/OAK-Foundation/xcm-demo/pull/43#discussion_r1174657842_

chrisli30 commented 1 year ago

This has been fixed by Charles with get timestamp for the next hour and the next two hours.