Skip to content

Instantly share code, notes, and snippets.

const helpers = require("@nomicfoundation/hardhat-network-helpers");
await helpers.mine(100);
await helpers.time.increase(3600);
const snapshot = await helpers.takeSnapshot();
await snapshot.restore()
// mine 100 blocks
await network.provider.send("hardhat_mine", ["0x64"]);
// mine a new block one hour in the future
await network.provider.send(
"evm_increaseTime",
"0xe10"
);
await network.provider.send("hardhat_mine");
require("@nomicfoundation/hardhat-toolbox");
module.exports = {
solidity: "0.8.9",
};
@alcuadrado
alcuadrado / nomic-labs-contribution-license-agreement.md
Last active November 3, 2021 23:22
Nomic Lab's contribution license agreement

Contribution License Agreement

You agree that your past, present, and future contributions to Nomic open source projects are subject to this Contribution License Agreement (“Agreement”) between you (“You”) and Nomic Labs, a Delaware limited liability company with its registered address at 2625 Weston Road - Suite D, Weston, FL 33331, USA and its affiliates (“Nomic”).

1. Definitions.

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Nomic under this Agreement.

“Project” means any of the projects owned or managed by Nomic.

{
"language": "Solidity",
"sources": {
"contracts/distribution/VELOStakingPool.sol": {
"content": "/**\n *Submitted for verification at Etherscan.io on 2020-07-17\n*/\n\n/*\n ____ __ __ __ _\n / __/__ __ ___ / /_ / / ___ / /_ (_)__ __\n _\\ \\ / // // _ \\/ __// _ \\/ -_)/ __// / \\ \\ /\n/___/ \\_, //_//_/\\__//_//_/\\__/ \\__//_/ /_\\_\\\n /___/\n\n* Synthetix: VELORewards.sol\n*\n* Docs: https://docs.synthetix.io/\n*\n*\n* MIT License\n* ===========\n*\n* Copyright (c) 2020 Synthetix\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the \"Software\"), to deal\n* in the Software without restriction, including without limitation the rights\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n* copies of the Software, and to permit persons to whom the Software is\n* furnished to do so, subject to the following conditions:\n*\n* The above copyri
#![allow(dead_code)]
#![allow(unused_variables)]
#[derive(Debug)]
struct Point {
x: f32,
y: f32,
}
#[derive(Debug)]

Keybase proof

I hereby claim:

  • I am alcuadrado on github.
  • I am patopalladino (https://keybase.io/patopalladino) on keybase.
  • I have a public key ASB4Qbadj9x_nWRAP_14fLPRncJotc_KLvk9-EE6Zroxsgo

To claim this, I am signing this object:

@alcuadrado
alcuadrado / pseudoclasicalinheritance.html
Created September 14, 2010 04:59
A Javascript pseudoclasical inheritance demo
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<script>
"use strict";
@alcuadrado
alcuadrado / object.extend.js
Created August 12, 2010 08:06
Prototypal inheritance with automatic initialization in JavaScript
"use strict"; //Remove if using non-strict compatible libraries.
(function (undefined) {
if (typeof Object.create !== 'function') {
Object.create = function (o) {
function F() {}
F.prototype = o;
return new F();
};
}