Skip to content

Instantly share code, notes, and snippets.

View buendiadas's full-sized avatar
🌅

Carlos Buendía buendiadas

🌅
View GitHub Profile
TypeError: Cannot read property 'filter' of undefined
at Pe (https://melon.avantgarde.finance/static/js/13.357222a3.chunk.js:1:27280)
at Ki (https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2706844)
at No (https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2715748)
at ys (https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2754486)
at uc (https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2745783)
at sc (https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2745708)
at Xs (https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2742717)
at https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2694102
at t.unstable_runWithPriority (https://melon.avantgarde.finance/static/js/8.a938ac03.chunk.js:2:2769684)
@buendiadas
buendiadas / aaaa
Last active December 18, 2019 15:49
{
"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,
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);
[
{
"constant": true,
"inputs": [],
"name": "stage",
"outputs": [
{
"name": "",
"type": "uint8"
}
@buendiadas
buendiadas / helena-test.html
Last active March 20, 2019 16:19
Helena-test
<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>

Simple Summary

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

Abstract

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.

pragma solidity 0.4.24;
contract Period {
uint256 creationBlock;
constructor() public {
timestamp = block.timestamp;
}
function height() public view returns (uint) {
@buendiadas
buendiadas / 0main.md
Created January 18, 2018 22:34 — forked from pandeiro/0main.md
Git Best Practices

Git Best Practices

This is a fairly common question, and there isn't a One True Answer, but still, this represents a consensus from #git

Read about git

Knowing where to look is half the battle. I strongly urge everyone to read (and support) the Pro Git book. The other resources are highly

@buendiadas
buendiadas / 0main.md
Created January 18, 2018 22:34 — forked from pandeiro/0main.md
Git Best Practices

Git Best Practices

This is a fairly common question, and there isn't a One True Answer, but still, this represents a consensus from #git

Read about git

Knowing where to look is half the battle. I strongly urge everyone to read (and support) the Pro Git book. The other resources are highly

Keybase proof

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: