This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity >=0.7.0 <0.9.0; | |
| contract Base { | |
| uint x; | |
| constructor() public { | |
| x = 10; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "constant": false, | |
| "inputs": [ | |
| { | |
| "internalType": "uint256", | |
| "name": "x", | |
| "type": "uint256" | |
| } | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |