Skip to content

Instantly share code, notes, and snippets.

View fabriciosantana's full-sized avatar

FABRICIO FERNANDES SANTANA fabriciosantana

View GitHub Profile
pragma solidity >=0.7.0 <0.9.0;
contract Base {
uint x;
constructor() public {
x = 10;
}
pragma solidity ^0.6.0;
import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.6/ChainlinkClient.sol";
// MyContract inherits the ChainlinkClient contract to gain the
// functionality of creating Chainlink requests
contract ChainlinkExample is ChainlinkClient {
// Stores the answer from the Chainlink oracle
uint256 public currentPrice;
address public owner;
pragma solidity >=0.7.0 <0.9.0;
contract Base {
uint public num;
address public sender;
function setNum(uint _num) public {
num = _num;
sender = msg.sender;
}
@ConsenSys-Academy
ConsenSys-Academy / SimpleStorage.json
Last active October 24, 2021 23:10
A Solidity SimpleStorage contract
[
{
"constant": false,
"inputs": [
{
"internalType": "uint256",
"name": "x",
"type": "uint256"
}
],
@ignition42
ignition42 / gen_eth_keys.sh
Last active February 10, 2023 00:22
Generate ethereum key pairs and address
#!/bin/bash
# Source: https://kobl.one/blog/create-full-ethereum-keypair-and-address/
# Install dependencies
sudo apt-get install openssl curl
# Download prebuilt sha3 keccak
if [ $(uname -m) == 'x86_64' ]; then
curl -L -O https://github.com/vkobel/ethereum-generate-wallet/raw/master/lib/x86-64/keccak-256sum
else