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
//simple button masher esp32 ttgo | |
#include <TFT_eSPI.h> | |
#include <SPI.h> | |
#define BUTTON1PIN 35 | |
#define BUTTON2PIN 0 | |
TFT_eSPI tft = TFT_eSPI(); | |
void IRAM_ATTR toggleButton1() { |
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
{ | |
tx: '0xca54c977937650be1838edfec3f72043208f15ca7a13c7da517d2f77b16892a0', | |
receipt: { | |
transactionHash: '0xca54c977937650be1838edfec3f72043208f15ca7a13c7da517d2f77b16892a0', | |
transactionIndex: 0, | |
blockHash: '0xa3b4db92527b12adb0dbe883fb6d4aa9d97136c7bdba7a066fa40b20d55a7e3d', | |
blockNumber: 79, | |
from: '0x9cb1cfefe3eec69f009304dc2f6295dcb97ff89e', | |
to: '0x44bc4edf3afad87dad89a2c7840c6d47bbce0184', | |
gasUsed: 292562, |
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
import React, { Component } from "react"; | |
import "./App.css"; | |
import contractData from "./voting"; | |
import Web3 from "web3"; | |
const web3 = new Web3(window.web3.currentProvider); | |
class App extends Component { | |
state = { | |
players: [], | |
normie: 0, |
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
var TruffleContract = require("truffle-contract"); | |
App = { | |
web3Provider: null, | |
contracts: {}, | |
account: "0x0", | |
loading: false, | |
tokenPrice: 1000000000000000, | |
tokensSold: 0, | |
tokensAvailable: 750000, |
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
{ | |
"Campaign.sol": { | |
"Campaign": { | |
"abi": [ | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "index", | |
"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
import getWeb3 from './web3'; | |
import Web3 from "web3"; | |
const web3 = getWeb3(); | |
const address = '0x8895B2ed3EF4F4f66d048A3F215aC0DeA9Eb6777'; | |
const abi =[ { constant: true, | |
inputs: [], | |
name: 'manager', | |
outputs: [ [Object] ], | |
payable: false, |
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
import Web3 from 'web3'; | |
const web3 = new Web3(window.web3.currentProvider); | |
window.addEventListener('load', async () => { | |
// Modern dapp browsers... | |
if (window.ethereum) { | |
window.web3 = new Web3(ethereum); | |
try { | |
// Request account access if needed |
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
Windows PowerShell | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
PS C:\Users\hetzer\Documents\GitHub\Lottery> node deploy.js | |
Attempting to deploy from account 0x1833797D31e3aA4fDc6BCED352B0cD8256a514a2 | |
[ { constant: true, | |
inputs: [], | |
name: 'manager', | |
outputs: [ [Object] ], | |
payable: false, |
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
C:\Users\hetzer\Documents\dApp>truffle migrate | |
Could not connect to your Ethereum client. Please check that your Ethereum client: | |
- is running | |
- is accepting RPC connections (i.e., "--rpc" option is used in geth) | |
- is accessible over the network | |
- is properly configured in your Truffle configuration file (truffle-config.js) | |
Truffle v5.0.2 (core: 5.0.2) | |
Node v11.1.0 |
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
04014f043eea58284c041a2d8660fd673b38bb7aa0c26cb60557cb2232c572704c79f364543d30a0d3d339b6f79952d4056a4ede8e9a7c449615ccfebf91ddd924;halkuon |
NewerOlder