-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintcache
1 lines (1 loc) · 5.07 KB
/
.eslintcache
1
[{"/home/pisuthd/Desktop/textsonic/demo-dapp/src/reportWebVitals.js":"1","/home/pisuthd/Desktop/textsonic/demo-dapp/src/index.js":"2","/home/pisuthd/Desktop/textsonic/demo-dapp/src/App.js":"3","/home/pisuthd/Desktop/textsonic/demo-dapp/src/containers/main.js":"4","/home/pisuthd/Desktop/textsonic/demo-dapp/src/hooks/useKulap.js":"5"},{"size":362,"mtime":1606814529856,"results":"6","hashOfConfig":"7"},{"size":525,"mtime":1606815573352,"results":"8","hashOfConfig":"7"},{"size":404,"mtime":1606817262405,"results":"9","hashOfConfig":"7"},{"size":7131,"mtime":1606911566797,"results":"10","hashOfConfig":"7"},{"size":724,"mtime":1606819491442,"results":"11","hashOfConfig":"7"},{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"br2r23",{"filePath":"14","messages":"15","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"18","messages":"19","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"20","messages":"21","errorCount":0,"warningCount":7,"fixableErrorCount":0,"fixableWarningCount":0,"source":"22"},"/home/pisuthd/Desktop/textsonic/demo-dapp/src/reportWebVitals.js",[],"/home/pisuthd/Desktop/textsonic/demo-dapp/src/index.js",[],"/home/pisuthd/Desktop/textsonic/demo-dapp/src/App.js",[],"/home/pisuthd/Desktop/textsonic/demo-dapp/src/containers/main.js",["23","24","25","26","27","28"],"/home/pisuthd/Desktop/textsonic/demo-dapp/src/hooks/useKulap.js",["29","30","31","32","33","34","35"],"import React, { useState, useReducer, useMemo, createContext, useEffect, useCallback } from 'react'\nimport { Kulap } from \"culap-sdk\"\n\nconst kulapSDK = new Kulap('access_key', window.ethereum)\n\nconst useKulap = () => {\n\n const getNetworkId = async () => {\n return await kulapSDK.getNetworkId()\n }\n\n const listSymbols = async () => {\n return kulapSDK.listSymbols()\n }\n\n const getRate = async (baseToken, pairToken, amountIn) => {\n\n const amountInWei = amountIn * (10 ** 18)\n const params = await kulapSDK.getRate(baseToken, pairToken, amountInWei)\n return params\n }\n\n return {\n getNetworkId,\n listSymbols,\n getRate\n }\n}\n\nexport default useKulap\n",{"ruleId":"36","severity":1,"message":"37","line":1,"column":44,"nodeType":"38","messageId":"39","endLine":1,"endColumn":51},{"ruleId":"36","severity":1,"message":"40","line":2,"column":27,"nodeType":"38","messageId":"39","endLine":2,"endColumn":31},{"ruleId":"36","severity":1,"message":"41","line":32,"column":16,"nodeType":"38","messageId":"39","endLine":32,"endColumn":25},{"ruleId":"36","severity":1,"message":"42","line":41,"column":16,"nodeType":"38","messageId":"39","endLine":41,"endColumn":22},{"ruleId":"43","severity":1,"message":"44","line":58,"column":12,"nodeType":"45","endLine":58,"endColumn":14,"suggestions":"46"},{"ruleId":"43","severity":1,"message":"47","line":74,"column":12,"nodeType":"45","endLine":74,"endColumn":51,"suggestions":"48"},{"ruleId":"36","severity":1,"message":"49","line":1,"column":8,"nodeType":"38","messageId":"39","endLine":1,"endColumn":13},{"ruleId":"36","severity":1,"message":"50","line":1,"column":17,"nodeType":"38","messageId":"39","endLine":1,"endColumn":25},{"ruleId":"36","severity":1,"message":"51","line":1,"column":27,"nodeType":"38","messageId":"39","endLine":1,"endColumn":37},{"ruleId":"36","severity":1,"message":"37","line":1,"column":39,"nodeType":"38","messageId":"39","endLine":1,"endColumn":46},{"ruleId":"36","severity":1,"message":"52","line":1,"column":48,"nodeType":"38","messageId":"39","endLine":1,"endColumn":61},{"ruleId":"36","severity":1,"message":"53","line":1,"column":63,"nodeType":"38","messageId":"39","endLine":1,"endColumn":72},{"ruleId":"36","severity":1,"message":"54","line":1,"column":74,"nodeType":"38","messageId":"39","endLine":1,"endColumn":85},"no-unused-vars","'useMemo' is defined but never used.","Identifier","unusedVar","'Form' is defined but never used.","'networkId' is assigned a value but never used.","'params' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'getNetworkId' and 'listSymbols'. Either include them or remove the dependency array.","ArrayExpression",["55"],"React Hook useCallback has a missing dependency: 'getRate'. Either include it or remove the dependency array.",["56"],"'React' is defined but never used.","'useState' is defined but never used.","'useReducer' is defined but never used.","'createContext' is defined but never used.","'useEffect' is defined but never used.","'useCallback' is defined but never used.",{"desc":"57","fix":"58"},{"desc":"59","fix":"60"},"Update the dependencies array to be: [getNetworkId, listSymbols]",{"range":"61","text":"62"},"Update the dependencies array to be: [baseTokenAmount, getRate, baseToken, pairToken]",{"range":"63","text":"64"},[1610,1612],"[getNetworkId, listSymbols]",[2260,2299],"[baseTokenAmount, getRate, baseToken, pairToken]"]