Skip to content

VaultaFoundation/eosio.time

Repository files navigation

EOSIO Time smart contract

GitHub license Antelope CDT Blanc++ Vert

Quickstart

  1. Assert error if time is not passed {{time}} timestamp.
  2. Transaction silently passes if the current time is passed {{time}} timestamp.
# Check time in past
$ cleos push action eosio.time checktime '["2022-09-07T00:00:00.000"]' -p eosio.time
# //=> transaction passes

# Check time in future
$ cleos push action eosio.time checktime '["2030-01-01T00:00:00.000"]' -p eosio.time
# //=> transaction fails

Build

# using Antelope CDT
$ cdt-cpp eosio.time.cpp
# using Blanc++
$ blanc++ eosio.time.cpp

SHA256 Checksum

CDT

$ git clone https://github.com/eosnetworkfoundation/eosio.time.git
$ cd eosio.time
$ cdt-cpp eosio.time.cpp
$ shasum -a 256 eosio.time.wasm
f7d64016a473a3f43047c19932d3df42506e7973918751cc39d863c1fb6234d0  eosio.time.wasm

EOS Mainnet

$ cleos -u https://eos.api.eosnation.io get code eosio.time
code hash: f7d64016a473a3f43047c19932d3df42506e7973918751cc39d863c1fb6234d0

About

EOSIO Time smart contract

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published