casper-ecosystem / casper-js-sdk

TypeScript Casper Client SDK
Apache License 2.0
71 stars 60 forks source link

Time feature 2 #308

Closed hoffmannjan closed 1 year ago

hoffmannjan commented 1 year ago

This PR adds new async method makeDeployWithAutoTimestamp which is non breaking and 100% safe as its works as standard async JS method. It basically downloads the timestamp and sets it in a deploy.

Currently we use worldtimeapi.org/api/timezone/UTC because it has CORS enabled and supports both http and https (so there won't be mixed content lock)