Skip to content

Instantly share code, notes, and snippets.

View gwmccubbin's full-sized avatar
🤢
choking on candy

Gregory McCubbin gwmccubbin

🤢
choking on candy
View GitHub Profile
const OrderBook = () => {
return (
<div className="component exchange__orderbook">
<div className='component__header flex-between'>
<h2>Order Book</h2>
</div>
<div className="flex">
const Trades = () => {
return (
<div className="component exchange__trades">
<div className='component__header flex-between'>
<h2>Trades</h2>
</div>
<table>
<thead>
const Transactions = () => {
return (
<div className="component exchange__transactions">
<div>
<div className='component__header flex-between'>
<h2>My Orders</h2>
<div className='tabs'>
<button className='tab tab--active'>Orders</button>
const PriceChart = () => {
return (
<div className="component exchange__chart">
<div className='component__header flex-between'>
<div className='flex'>
<h2></h2>
<div className='flex'>
const Alert = () => {
return (
<div>
<div className="alert alert--remove">
<h1>Transaction Pending...</h1>
</div>
<div className="alert alert--remove">
<h1>Transaction Will Fail</h1>
</div>
<div className="alert alert--remove">
@gwmccubbin
gwmccubbin / App.js
Last active July 29, 2022 02:35 — forked from GlitchicaL/App.js
Bootcamp App.js Starting Template
function App() {
return (
<div>
{/* Navbar */}
<main className='exchange grid'>
<section className='exchange__section--left grid'>
@gwmccubbin
gwmccubbin / DappToken.sol
Created March 4, 2020 16:31
DApp ERC-20 Token
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,
@gwmccubbin
gwmccubbin / Package.json
Created August 23, 2022 16:25
ICO Module Package.json
{
"name": "crowdsale",
"version": "1.0.0",
"description": "",
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.2.0",
"react": "^18.2.0",
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;
@gwmccubbin
gwmccubbin / MyContract.sol
Created March 23, 2020 17:16
Master Solidity Pt 2: Variables, Data Types, Structs
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;