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
<?xml version="1.0" encoding="UTF-8"?> | |
<mxfile modified="2019-01-07T17:33:08.616Z" host="www.draw.io" agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36" etag="Rnbu1N6nehwc8hoBSI3c" version="10.0.22" type="device"><diagram id="Q0mV26ZzpYG4VWkBgW_-" name="Page-1">7VzbdqM2FP0aP9oLENdHX+KZtEmb1l1r2r54KSBjOhhRISdxv74SRhgQvmQMhE7tPMQIAeLsfbaOjiQPwHTz9onAeP2IPRQONMV7G4DZQNNUXTPZP16y25c4osAngZdVOhQsgn9QVqhkpdvAQ0mpIsU4pEFcLnRxFCGXlsogIfi1XG2Fw/JTY+gjqWDhwlAu/RJ4dJ2VqqZzOPEZBf46e7StWfsTGygqZ2+SrKGHXwtF4G4ApgRjuv+2eZuikBtP2GV/3fzI2bxhBEX0kgvuf3Z+QO7950f/l7X5o/bTzn54HGr7u7zAcJu9MNoOX1FCh+z+yq/ID3A04JABBgiYZG9Cd8I8BG8jD/EnqOw0JG6GYFrbg8k6PccPEkrwVzTFISbppUBJP+zMKghDUR7hiF0+8Qn0AvZeleL9PQQOzIKTED6j8AknAeUNBTOXXYTYFZMXRGjAYHyoVKA45g0NA7+2+jg78YwpxZv8jflp9HbU8GoOJ/MDhDeIkh2rIi6wwP6SzAVULTt+PRDKtjKWrAtcMgWXYEZiP7/3AWf2JYP6HbAbEuy9Q7YBw2uqUzK8phiS4S1blw1vaEZLhgeywz1umZoNx39yf5stBtyLzZA1ZPJM2Deff3vcLX55kBDCWxoGETO8UD4JmdNOcJTzknes6SbMiMBULObP37z5XPBH8DUBI+IlS+95 |
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 web3 = new Web3(new Web3.providers.HttpProvider(web3HttpProvider)); | |
var gasLimit = 2000000; | |
web3.eth.getTransactionCount(account, "pending", function (err, nonce) { | |
var txCount = nonce; | |
var airdropTokens = web3.eth.contract(contractABI).at(contractAddress).airdropTokens.getData( | |
jsonItems, |
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
/* | |
* NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a | |
* function when declaring them. Failure to do so will cause commands to hang. ex: | |
* ``` | |
* mainnet: { | |
* provider: function() { | |
* return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/<infura-key>') | |
* }, | |
* network_id: '1', | |
* gas: 4500000, |
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.4.19; | |
contract StartUIContract { | |
string storedName; | |
address public owner; | |
function StartUIContract() 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
import React, { Component } from 'react'; | |
import ReactDOM from "react-dom"; | |
import Web3 from 'web3' | |
import './App.css'; | |
import {contractInstance} from "./Contracts" | |
const web3 = new Web3(window.web3.currentProvider) | |
console.log(web3.eth); // outputs not empty object |
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 Web3 from 'web3' | |
var contractAddress=""; | |
const web3 = new Web3(window.web3.currentProvider); | |
/* put contract ABI here */ | |
var startuicontractContract = ""; |