diff --git a/package-lock.json b/package-lock.json index c0823d7b..76ae218d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1395,20 +1395,6 @@ "postcss": "^7.0.0" } }, - "@magic-sdk/provider": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/@magic-sdk/provider/-/provider-2.5.5.tgz", - "integrity": "sha512-gpgn7hoZCY2/f01VSgTvzyQtf1hc47a9pTX3mwDyryqnMdnZ9FXpn5ox8H1zaV0xD2HxaWSjzZ/KaqQ714wVAw==", - "requires": { - "@magic-sdk/types": "^1.4.5", - "eventemitter3": "^4.0.4" - } - }, - "@magic-sdk/types": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/@magic-sdk/types/-/types-1.4.5.tgz", - "integrity": "sha512-Tl48PpcwkJS9nPe3Jjrx9raUL8EzszpJcXrMlrxm0CUMcWyE1C8IQuKIBpfU49Ctb6MmUazAcZHkiA7UCjw2Xg==" - }, "@mrmlnc/readdir-enhanced": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", @@ -8445,11 +8431,6 @@ } } }, - "install": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/install/-/install-0.13.0.tgz", - "integrity": "sha512-zDml/jzr2PKU9I8J/xyZBQn8rPCAY//UOYNmR01XwNwyfhEWObo2SWfSl1+0tm1u6PhxLwDnfsT/6jB7OUxqFA==" - }, "internal-ip": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-4.3.0.tgz", @@ -9217,21 +9198,6 @@ "type-check": "~0.3.2" } }, - "lie": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", - "integrity": "sha1-mkNrLMd0bKWd56QfpGmz77dr2H4=", - "requires": { - "immediate": "~3.0.5" - }, - "dependencies": { - "immediate": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=" - } - } - }, "lines-and-columns": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", @@ -9338,28 +9304,6 @@ } } }, - "localforage": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.8.1.tgz", - "integrity": "sha512-azSSJJfc7h4bVpi0PGi+SmLQKJl2/8NErI+LhJsrORNikMZnhaQ7rv9fHj+ofwgSHrKRlsDCL/639a6nECIKuQ==", - "requires": { - "lie": "3.1.1" - } - }, - "localforage-driver-commons": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/localforage-driver-commons/-/localforage-driver-commons-1.0.3.tgz", - "integrity": "sha512-K9PiNNXcyX98lQVyCADjv+QKxFD71y0DtVUhqMjwCkFY/d/g7GdJLPN9U92M7RUvfkL8mzPhC+mWEKo9tur5oQ==" - }, - "localforage-driver-memory": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/localforage-driver-memory/-/localforage-driver-memory-1.0.5.tgz", - "integrity": "sha512-m4v478ixdT3hA7gKv+pAxDIWgMKiUV2GuYem5jnpOBQFVJbrHU7jmNlrj8a0MfD9qff3i48E3Yfip5Eu1AN6Qg==", - "requires": { - "localforage-driver-commons": "^1.0.1", - "tslib": "^1.6.0" - } - }, "locate-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", @@ -9476,20 +9420,6 @@ "multiaddr": "^7.3.0" } }, - "magic-sdk": { - "version": "2.4.6", - "resolved": "https://registry.npmjs.org/magic-sdk/-/magic-sdk-2.4.6.tgz", - "integrity": "sha512-6qQJQ2oQYIWCSewt/mkHsPQDvHv/5NbCP8h0xA3Zr12/Jqjkka8xl61qcOqh7mhTIn/LyG3efdh8imnjDUJ7CA==", - "requires": { - "@babel/core": "^7.9.6", - "@babel/runtime": "^7.9.6", - "@magic-sdk/provider": "^2.5.5", - "@magic-sdk/types": "^1.4.5", - "localforage": "^1.7.4", - "localforage-driver-memory": "^1.0.5", - "regenerator-runtime": "0.13.5" - } - }, "make-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", diff --git a/package.json b/package.json index 1c5ef5ff..f344453d 100644 --- a/package.json +++ b/package.json @@ -36,11 +36,9 @@ "eslint": "^6.7.2", "fortmatic": "^2.0.6", "frameguard": "^3.1.0", - "install": "^0.13.0", "json-to-graphql-query": "^2.0.0", "jsonexport": "^3.0.1", "lodash": "^4.17.15", - "magic-sdk": "^2.4.6", "numeral": "^2.0.4", "primer-support": "^5.0.0", "redis": "^3.0.2", diff --git a/src/store/modules/subgraph.ts b/src/store/modules/subgraph.ts index 633a77ff..22116fd8 100644 --- a/src/store/modules/subgraph.ts +++ b/src/store/modules/subgraph.ts @@ -1,5 +1,5 @@ -import { request } from '@/helpers/subgraph'; import { getAddress } from '@ethersproject/address'; +import { request } from '@/helpers/subgraph'; const mutations = { GET_VOTING_POWER_REQUEST() {