diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 0000000..092d1ee --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,8 @@ +module.exports = { + semi: true, + endOfLine: "auto", + trailingComma: "all", + singleQuote: false, + printWidth: 120, + tabWidth: 2 +}; \ No newline at end of file diff --git a/package.json b/package.json index 51591d6..c590d4e 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "io-ts": "^2.2.16", "io-ts-validator": "^0.0.5", "mkdirp": "^1.0.4", + "prettier": "^2.2.1", "ts-node": "^9.1.1", "tslib": "^2.1.0", "typescript": "^4.1.3" diff --git a/scripts/bulk_add.ts b/scripts/bulk_add.ts new file mode 100644 index 0000000..94ef6ee --- /dev/null +++ b/scripts/bulk_add.ts @@ -0,0 +1,8 @@ +const SNAPSHOT_API = "https://hub.snapshot.page/api/"; + +async function fetchAllSpaces() { + const spaces = fetch(`${SNAPSHOT_API}/spaces`).then((res) => { + console.log("res => ", res); + return res.body; + }); +} diff --git a/yarn.lock b/yarn.lock index 749a780..4cc3d28 100644 --- a/yarn.lock +++ b/yarn.lock @@ -59,6 +59,11 @@ mkdirp@^1.0.4: resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== +prettier@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" + integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== + source-map-support@^0.5.17: version "0.5.19" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"