I hereby claim:
- I am buendiadas on github.
- I am buendia (https://keybase.io/buendia) on keybase.
- I have a public key ASAtnsFmiEzXQ2tZ1Ou45q1VfnOKViFydex_gSaFI_r_MQo
To claim this, I am signing this object:
Verifying that +buendia is my blockchain ID. https://onename.com/buendia |
I hereby claim:
To claim this, I am signing this object:
pragma solidity 0.4.24; | |
contract Period { | |
uint256 creationBlock; | |
constructor() public { | |
timestamp = block.timestamp; | |
} | |
function height() public view returns (uint) { |
The EIP proposes an standard on a Cron system as an attempt to deterministically schedule state changes from the EVM, simmilar in as many points as possible with existing cron standards and with complete Cron verbosity. The problem is divided into two different modules: The Crontab, a compiler of cron expressions
State scheduling has always been a tough task in the EVM. Depending on the use case, we see implementations today developing their own lazy calculations on intervals. Scheduled meta transactions also create a time interval, and manage logic offchain.
Using modular arithmetics it is possible to generically calculate the number of times a generic event has occurred from the time it was scheduled, with O(1)
complexity. This means it is possible to create a fully verbose clock function, which pasively calculates the number of occurrences of the event. This number, which we will call height, can be used to define time epochs.
<html> | |
<head> | |
<meta name="twitter:image" content="<!-- Fill in the body content here -->" /> | |
<meta name="twitter:card" content="player" /> | |
<meta name="twitter:title" content="Burner Wallet is Fire" /> | |
<meta name="twitter:description" content="Twitter speak easy?" /> | |
<meta name="twitter:player" content="https://xdai.io" /> | |
<meta name="twitter:player:width" content="360" /> | |
<meta name="twitter:player:height" content="800" /> | |
<title> Title</title> |
[ | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "stage", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint8" | |
} |
pragma solidity ^0.4.25; | |
contract ICron { | |
function initTimestamp() public view returns (uint256); | |
Return the number of occurrences of the stored crontab expression from initTimestamp() to a given _timestamp | |
// Number of current epoch (number of periods) since the Smart Contract was deployed | |
function height() public view returns (uint256); | |
// Epoch of a predefined timestamp | |
function heightOf(uint256 _timestamp) public view returns (uint256); | |
//Return the next timestamp where height will be changed, 2^256-1 if no new event is expected | |
function next) public view returns (uint256); |
{ | |
"code": "OK", | |
"sessionData": { | |
"sessionId": "b7215a49-2941-4b54-83fd-7117b09c710e", | |
"sessionVariables": { | |
"spRequest": "{ | |
"id": "_394a55a94873c15144a62678dafed1573503f4a6ab", | |
"type":"Request", | |
"issuer":"https://clave.sir2.rediris.es/module.php/saml/sp/saml2-acs.php/q2891006e_ea0002678", | |
"recipient":null, |