This file contains 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
_____/\\\\\\\\\\\\_____/\\\\\\\\\________/\\\\\\\\\\\___ | |
___/\\\//////////____/\\\\\\\\\\\\\____/\\\/////////\\\_ | |
__/\\\______________/\\\/////////\\\__\//\\\______\///__ | |
_\/\\\____/\\\\\\\_\/\\\_______\/\\\___\////\\\_________ | |
_\/\\\___\/////\\\_\/\\\\\\\\\\\\\\\______\////\\\______ | |
_\/\\\_______\/\\\_\/\\\/////////\\\_________\////\\\___ | |
_\/\\\_______\/\\\_\/\\\_______\/\\\__/\\\______\//\\\__ | |
_\//\\\\\\\\\\\\/__\/\\\_______\/\\\_\///\\\\\\\\\\\/___ | |
__\////////////____\///________\///____\///////////_____ |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>QuikNode Explorer</title> | |
<!-- Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
<!-- Styles --> |
This file contains 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.5.0; | |
contract Token { | |
string public name = "DApp Token"; | |
string public symbol = "DAPP"; | |
uint256 public totalSupply = 1000000000000000000000000; // 1 million tokens | |
uint8 public decimals = 18; | |
event Transfer( | |
address indexed _from, |
This file contains 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
➜ test-folder n | |
installed : v10.5.0 (with npm 6.1.0) | |
➜ test-folder create-react-app -V | |
3.3.1 | |
➜ test-folder npm install --global [email protected] | |
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) | |
/usr/local/bin/create-react-app -> /usr/local/lib/node_modules/create-react-app/index.js | |
+ [email protected] | |
updated 7 packages in 3.571s | |
➜ test-folder create-react-app blockchain-developer-bootcamp |
This file contains 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; | |
contract MyContract { | |
string public myString = "Hello, world!"; | |
bytes32 public myBytes32 = "Hello, world!"; | |
int public myInt = 1; | |
uint public myUint = 1; | |
uint256 public myUint256 = 1; | |
uint8 public myUint8 = 1; | |
address public myAddress = 0x5A0b54D5dc17e0AadC383d2db43B0a0D3E029c4c; |
This file contains 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; | |
contract MyContract { | |
// Arrays | |
uint[] public uintArray = [1,2,3]; | |
string[] public stringArray = ['apple', 'banana', 'carrot']; | |
string[] public values; | |
uint[][] public array2D = [ [1,2,3], [4,5,6] ]; | |
This file contains 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; | |
contract MyContract { | |
// Arrays | |
uint[] public uintArray = [1,2,3]; | |
string[] public stringArray = ['apple', 'banana', 'carrot']; | |
string[] public values; | |
uint[][] public array2D = [ [1,2,3], [4,5,6] ]; | |
This file contains 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; | |
contract MyContract { | |
// Mappings | |
mapping(uint => string) public names; | |
mapping(uint => Book) public books; | |
mapping(address => mapping(uint => Book)) public myBooks; | |
struct Book { | |
string title; |
This file contains 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; | |
contract MyContract { | |
uint[] public numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; | |
address public owner; | |
constructor() public { | |
owner = msg.sender; | |
} |
This file contains 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; | |
contract HotelRoom { | |
enum Statuses { Vacant, Occupied } | |
Statuses currentStatus; | |
address payable public owner; | |
event Occupy(address _occupant, uint _value); |
OlderNewer