config stuff

This commit is contained in:
Alex 2020-11-04 20:52:47 -05:00
parent fcd2fe3d2a
commit bb67a4b059
2 changed files with 5 additions and 2 deletions

3
config.json Normal file
View File

@ -0,0 +1,3 @@
{
"url": "Infura or similar URL for Web3"
}

View File

@ -2,10 +2,10 @@ import Web3 from "web3";
import {abi} from "./abi.js";
import {allStates} from "./all-states.js";
import _ from "lodash"
import config from "../config.json"
const web3 = new Web3(
new Web3.providers.HttpProvider(
"https://mainnet.infura.io/v3/c38d6812840a42d4a9284ca2afa504b6"
config.url
)
);
const mainnetAddress = "0x0792724900B551d200D954a5Ed709d9514d73A9F";