diff --git a/config.json b/config.json new file mode 100644 index 0000000..7be6c6f --- /dev/null +++ b/config.json @@ -0,0 +1,3 @@ +{ + "url": "Infura or similar URL for Web3" +} diff --git a/data/pull.js b/data/pull.js index d596215..f4bf2ab 100644 --- a/data/pull.js +++ b/data/pull.js @@ -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";