Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into feature/dynamic-imports-loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
alx-khramov committed Sep 24, 2024
2 parents fd7f5ac + 37f1a5b commit 7ccabc6
Show file tree
Hide file tree
Showing 189 changed files with 4,395 additions and 4,042 deletions.
68 changes: 68 additions & 0 deletions .eslintrc.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["plugin:jsx-a11y/recommended", "@lidofinance", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "react"],
"rules": {
"@typescript-eslint/require-await": "off",
"react/display-name": "off",
"@typescript-eslint/no-shadow": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/anchor-is-valid": "off",
"@next/next/no-img-element": "off",
"eslint-plugin-unicorn": "off",
"no-console": ["warn", { "allow": ["warn", "error", "info", "debug"] }],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"promise/param-names": [
"warn",
{
"resolvePattern": "^_?(resolve)$|^_$",
"rejectPattern": "^_?(reject)$|^_$"
}
],
"func-style": ["error", "expression"],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"import/no-cycle": ["error", { "maxDepth": 1 }],
"unicorn/expiring-todo-comments": "off",
"jest/expect-expect": [
"error",
{ "assertFunctionNames": ["expect", "expect*"] }
],
"jest/no-standalone-expect": [
"error",
{
"additionalTestBlockFunctions": [
"testSpending",
"testSpending.concurrent",
"testSpending.skip",
"testSpending.only",
"testSpending.todo"
]
}
],
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
5 changes: 5 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
env:
BASE_PATH: /${{ github.event.repository.name }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
WALLETCONNECT_PROJECT_ID: ${{ vars.WALLETCONNECT_PROJECT_ID }}
RPC_PROVIDER_URL_1: ${{ vars.RPC_PROVIDER_URL_1 }}
RPC_PROVIDER_URL_17000: ${{ vars.RPC_PROVIDER_URL_17000 }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Reef Knot &nbsp; <img src="logo.svg" alt='Reef Knot logo' height='45' align='top'/> &nbsp;
![NPM Version](https://img.shields.io/npm/v/reef-knot)
[![NPM Version](https://img.shields.io/npm/v/reef-knot)](https://www.npmjs.com/package/reef-knot)

Web3 Wallets Connection Library

Expand Down
14 changes: 14 additions & 0 deletions apps/demo-react/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Public rpc urls
RPC_PROVIDER_URL_1=https://rpc.ankr.com/eth
RPC_PROVIDER_URL_17000=https://1rpc.io/holesky

# supported networks for connecting wallet
SUPPORTED_CHAINS=1,17000

# this chain uses when a wallet is not connected
DEFAULT_CHAIN=17000

# WalletConnect project ID
WALLETCONNECT_PROJECT_ID=

ANALYZE_BUNDLE=false
17 changes: 17 additions & 0 deletions apps/demo-react/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# dependencies
/node_modules
/.pnp

# testing
/coverage

# next.js
/.next/
/out/

# production
/build
/public

*.mjs
*.js
15 changes: 15 additions & 0 deletions apps/demo-react/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
extends: ['../../.eslintrc.base.json'],
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
},
rules: {
'import/no-unresolved': 'off',
'react-hooks/exhaustive-deps': 'error',
},
};
76 changes: 0 additions & 76 deletions apps/demo-react/.eslintrc.json

This file was deleted.

39 changes: 39 additions & 0 deletions apps/demo-react/analyze/nodejs.html

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions apps/demo-react/assets/icons/ETH.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions apps/demo-react/assets/icons/stETH.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions apps/demo-react/assets/icons/system.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions apps/demo-react/assets/icons/wstETH.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 0 additions & 60 deletions apps/demo-react/components/ConfigContextProviders.tsx

This file was deleted.

44 changes: 0 additions & 44 deletions apps/demo-react/components/ConnectDisconnect.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions apps/demo-react/components/Header.tsx

This file was deleted.

16 changes: 0 additions & 16 deletions apps/demo-react/components/MainContainer.tsx

This file was deleted.

Loading

0 comments on commit 7ccabc6

Please sign in to comment.