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
[{"id":830,"start":1518417309,"end":1518420909,"title":"this is a long event isnt that righttt","body":"","multi":0,"allDay":false,"extension_id":2},{"id":831,"start":1518680109,"end":1518683709,"title":"830","body":"","multi":0,"allDay":false,"extension_id":2}] |
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
[{"id":830,"start":1518417309,"end":1518420909,"title":"this is a long event isnt that righttt","body":"","multi":0,"allDay":false,"extension_id":2},{"id":831,"start":1518680109,"end":1518683709,"title":"830","body":"","multi":0,"allDay":false,"extension_id":2}] |
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
var mysql = require('mysql') | |
require('dotenv').config({path: __dirname + '/process.env'}) | |
var con = mysql.createPool({ | |
connectionLimit: 100, | |
host: process.env.DB_HOST, | |
user: process.env.DB_USER, | |
password: process.env.DB_PASS, | |
port: '8889', |
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
import React, { Component } from 'react'; | |
import BigCalendar from 'react-big-calendar'; | |
import moment from 'moment'; | |
import 'react-big-calendar/lib/css/react-big-calendar.css'; | |
import axios from 'axios' | |
import logo from './logo.svg'; | |
import './App.css'; | |
moment.locale('en-GB'); | |
BigCalendar.momentLocalizer(moment); | |
class App extends Component { |
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
import React, { Component } from 'react'; | |
import Web3 from 'web3' | |
import logo from './poly_logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
constructor(props) { | |
super(props) |
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
import React, { Component } from 'react'; | |
import Web3 from 'web3' | |
import { Container, Row, Col, Button, Alert, Form, FormGroup, Label, Input, FormText } from 'reactstrap' | |
import logo from './poly_logo.svg'; | |
import './App.css'; | |
const PolyTokenFaucet = require('./contracts/PolyTokenFaucet.json'); | |
class App extends Component { |
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
import React, { Component } from 'react'; | |
import Web3 from 'web3' | |
import logo from './poly_logo.svg'; | |
import './App.css'; | |
const PolyTokenFaucet = require('./contracts/PolyTokenFaucet.json'); | |
class App extends Component { |
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 DEPLOYED_ADDRESS | |
const CONTRACT_EVENT | |
try { | |
const web3 = await this.getWeb3() | |
const accounts = await web3.eth.getAccounts() | |
const tickerRegInstance = new web3.eth.Contract(TickerRegistry.abi, DEPLOYED_ADDRESS) |
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
getWeb3 = () => new Promise((resolve, reject) => { | |
try{ | |
if(typeof window.web3 !== undefined){ | |
resolve(new Web3(Web3.givenProvider)) | |
}else{ | |
this.setState({errorMsg:'web3 not found'}) |
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; | |
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; | |
contract DAOToken is ERC20 { | |
/// The event emitted (useable by web3) when a token is purchased | |
event LogFunding(address indexed sender, uint256 tokens); | |
OlderNewer