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
const OrderBook = () => { | |
return ( | |
<div className="component exchange__orderbook"> | |
<div className='component__header flex-between'> | |
<h2>Order Book</h2> | |
</div> | |
<div className="flex"> |
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
const Trades = () => { | |
return ( | |
<div className="component exchange__trades"> | |
<div className='component__header flex-between'> | |
<h2>Trades</h2> | |
</div> | |
<table> | |
<thead> |
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
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> |
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
const PriceChart = () => { | |
return ( | |
<div className="component exchange__chart"> | |
<div className='component__header flex-between'> | |
<div className='flex'> | |
<h2></h2> | |
<div className='flex'> |
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
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"> |
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
function App() { | |
return ( | |
<div> | |
{/* Navbar */} | |
<main className='exchange grid'> | |
<section className='exchange__section--left grid'> |
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
{ | |
"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", |
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 { | |
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; |