├── .eslintignore ├── .eslintrc ├── .github ├── CODEOWNERS └── workflows │ └── main.yml ├── .gitignore ├── .npmignore ├── .nvmrc ├── .prettierrc ├── .yarnrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── examples └── helloworld │ ├── README.md │ ├── package.json │ ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt │ ├── src │ ├── App.css │ ├── App.test.tsx │ ├── App.tsx │ ├── ERC20.abi.json │ ├── index.css │ ├── index.tsx │ ├── logo.svg │ ├── react-app-env.d.ts │ ├── serviceWorker.ts │ ├── setupTests.ts │ └── useSomething.ts │ └── tsconfig.json ├── jest.config.js ├── logo.png ├── package.json ├── src ├── Errors.ts ├── eth-swr-config.ts ├── ether-js-fetcher.ts ├── index.ts ├── types.ts ├── useBalance.tsx ├── useBalanceOf.tsx ├── useEtherSWR.ts └── utils.ts ├── test ├── error.test.ts ├── ether-js-fetcher.test.tsx ├── ether-swr-config.test.tsx ├── integration │ └── fetcher.test.tsx ├── useBalance.test.tsx ├── useBalanceOf.test.tsx ├── useEtherSWR.test.tsx └── util │ ├── ERC20.abi.json │ ├── components │ └── DefaultContainer.tsx │ ├── test.abi.json │ └── utils.ts ├── tsconfig-example.json └── tsconfig.json /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | *.tgz 4 | .env 5 | .next 6 | .DS_Store 7 | coverage 8 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 14 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/.prettierrc -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- 1 | save-prefix "" 2 | 3 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/README.md -------------------------------------------------------------------------------- /examples/helloworld/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/README.md -------------------------------------------------------------------------------- /examples/helloworld/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/package.json -------------------------------------------------------------------------------- /examples/helloworld/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/public/favicon.ico -------------------------------------------------------------------------------- /examples/helloworld/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/public/index.html -------------------------------------------------------------------------------- /examples/helloworld/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/public/logo192.png -------------------------------------------------------------------------------- /examples/helloworld/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/public/logo512.png -------------------------------------------------------------------------------- /examples/helloworld/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/public/manifest.json -------------------------------------------------------------------------------- /examples/helloworld/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/public/robots.txt -------------------------------------------------------------------------------- /examples/helloworld/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/App.css -------------------------------------------------------------------------------- /examples/helloworld/src/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/App.test.tsx -------------------------------------------------------------------------------- /examples/helloworld/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/App.tsx -------------------------------------------------------------------------------- /examples/helloworld/src/ERC20.abi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/ERC20.abi.json -------------------------------------------------------------------------------- /examples/helloworld/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/index.css -------------------------------------------------------------------------------- /examples/helloworld/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/index.tsx -------------------------------------------------------------------------------- /examples/helloworld/src/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/logo.svg -------------------------------------------------------------------------------- /examples/helloworld/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/helloworld/src/serviceWorker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/serviceWorker.ts -------------------------------------------------------------------------------- /examples/helloworld/src/setupTests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/setupTests.ts -------------------------------------------------------------------------------- /examples/helloworld/src/useSomething.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/src/useSomething.ts -------------------------------------------------------------------------------- /examples/helloworld/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/examples/helloworld/tsconfig.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/jest.config.js -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/package.json -------------------------------------------------------------------------------- /src/Errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/Errors.ts -------------------------------------------------------------------------------- /src/eth-swr-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/eth-swr-config.ts -------------------------------------------------------------------------------- /src/ether-js-fetcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/ether-js-fetcher.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/useBalance.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/useBalance.tsx -------------------------------------------------------------------------------- /src/useBalanceOf.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/useBalanceOf.tsx -------------------------------------------------------------------------------- /src/useEtherSWR.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/useEtherSWR.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/error.test.ts -------------------------------------------------------------------------------- /test/ether-js-fetcher.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/ether-js-fetcher.test.tsx -------------------------------------------------------------------------------- /test/ether-swr-config.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/ether-swr-config.test.tsx -------------------------------------------------------------------------------- /test/integration/fetcher.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/integration/fetcher.test.tsx -------------------------------------------------------------------------------- /test/useBalance.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/useBalance.test.tsx -------------------------------------------------------------------------------- /test/useBalanceOf.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/useBalanceOf.test.tsx -------------------------------------------------------------------------------- /test/useEtherSWR.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/useEtherSWR.test.tsx -------------------------------------------------------------------------------- /test/util/ERC20.abi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/util/ERC20.abi.json -------------------------------------------------------------------------------- /test/util/components/DefaultContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/util/components/DefaultContainer.tsx -------------------------------------------------------------------------------- /test/util/test.abi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/util/test.abi.json -------------------------------------------------------------------------------- /test/util/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/test/util/utils.ts -------------------------------------------------------------------------------- /tsconfig-example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/tsconfig-example.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutlo/ether-swr/HEAD/tsconfig.json --------------------------------------------------------------------------------