Skip to content

Commit

Permalink
Merge branch '4.x' into fix/docs/providers
Browse files Browse the repository at this point in the history
  • Loading branch information
danforbes authored May 30, 2024
2 parents 5012b56 + b63af9f commit eac41c9
Show file tree
Hide file tree
Showing 23 changed files with 80 additions and 33 deletions.
36 changes: 36 additions & 0 deletions docs/.snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
SNYK-JS-BRACES-6838727:
- '*':
reason: Docusaurus issue
expires: 3024-06-26T17:29:07.153Z
created: 2024-05-27T17:29:07.159Z
SNYK-JS-EXPRESS-6474509:
- '*':
reason: Docusaurus issue
expires: 3024-06-26T17:29:31.142Z
created: 2024-05-27T17:29:31.149Z
SNYK-JS-INFLIGHT-6095116:
- '*':
reason: Docusaurus issue
expires: 3024-06-26T17:29:51.622Z
created: 2024-05-27T17:29:51.628Z
SNYK-JS-MICROMATCH-6838728:
- '*':
reason: Docusaurus issue
expires: 3024-06-26T17:30:47.237Z
created: 2024-05-27T17:30:47.240Z
SNYK-JS-SERIALIZEJAVASCRIPT-6147607:
- '*':
reason: Docusaurus issue
expires: 3024-06-26T17:31:06.652Z
created: 2024-05-27T17:31:06.656Z
SNYK-JS-WEBPACKDEVMIDDLEWARE-6476555:
- '*':
reason: Docusaurus issue
expires: 3024-06-26T20:52:00.793Z
created: 2024-05-27T20:52:00.797Z

patch: {}
2 changes: 1 addition & 1 deletion docs/docs/guides/advanced/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '🧠 Advanced'
collapsible: true
collapsed: true
link: null
position: 15
position: 11
2 changes: 1 addition & 1 deletion docs/docs/guides/events_subscriptions/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '🔔 Events subscription'
collapsible: true
collapsed: true
link: null
position: 7
position: 5
2 changes: 1 addition & 1 deletion docs/docs/guides/feedback/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 18
sidebar_position: 17
sidebar_label: '🗣️ Feedback'
---

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/hardhat_tutorial/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '⛑️ Hardhat Tutorial'
collapsible: true
collapsed: true
link: null
position: 3
position: 6
2 changes: 1 addition & 1 deletion docs/docs/guides/migration_from_other_libs/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '🔄 Migration Guides'
collapsible: true
collapsed: true
link: null
position: 12
position: 15
2 changes: 1 addition & 1 deletion docs/docs/guides/resources_and_troubleshooting/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 17
sidebar_position: 16
sidebar_label: '📚 Resources & Troubleshooting'
---
# Resources & Troubleshooting
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/smart_contracts/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '📜 Smart Contracts'
collapsible: true
collapsed: true
link: null
position: 6
position: 4
2 changes: 1 addition & 1 deletion docs/docs/guides/wagmi_usage/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '🔄 Wagmi usage'
collapsible: true
collapsed: true
link: null
position: 13
position: 14
2 changes: 1 addition & 1 deletion docs/docs/guides/wallet/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '🔑 Wallet and Accounts '
collapsible: true
collapsed: true
link: null
position: 5
position: 3
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 4
sidebar_label: Connecting to Metamask
sidebar_label: 'Tutorial: Connecting to Metamask'
---

# Connecting to Metamask
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/wallet/node_wallet.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 6
sidebar_position: 8
sidebar_label: 'Tutorial: Node Wallet'
---

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/wallet/signing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 4
sidebar_position: 6
sidebar_label: 'Tutorial: Signing operations'
---

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/wallet/transactions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 5
sidebar_position: 7
sidebar_label: 'Tutorial: Sending Transactions'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '📱 WalletConnect Tutorial'
collapsible: true
collapsed: true
link: null
position: 14
position: 5
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ const USDTAddress = '0xdac17f958d2ee523a2206206994597c13d831ec7';
function Components() {
const { isConnected } = useWeb3ModalAccount()
const { walletProvider } = useWeb3ModalProvider()
const [USDTBalance, setUSDTBalance] = useState(0);
const [smartContractName, setSmartContractName] = useState('');
const [USDTBalance, setUSDTBalance] = useState(0);
const [smartContractName, setSmartContractName] = useState('');

async function getContractInfo() {
if (!isConnected) throw Error('not connected');
Expand All @@ -126,5 +126,5 @@ function Components() {
```
:::info
- To learn how to set up Web3modal with vue, click [here](/guides/web3_modal_guide/vue).
:::
- To learn how to set up Web3modal with vue, click [here](/guides/wallet/web3_modal_guide/vue).
:::
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/docs/guides/web3_config/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '⚙️ Web3 config'
collapsible: true
collapsed: true
link: null
position: 16
position: 7
2 changes: 1 addition & 1 deletion docs/docs/guides/web3_plugin_guide/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '🛠️ Web3 Plugin 🧩'
collapsible: true
collapsed: true
link: null
position: 2
position: 12
2 changes: 1 addition & 1 deletion docs/docs/guides/web3_providers_guide/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '🔌 Providers'
collapsible: true
collapsed: true
link: null
position: 4
position: 2
2 changes: 1 addition & 1 deletion docs/docs/guides/web3_upgrade_guide/_category_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ label: '⬆️ Upgrading'
collapsible: true
collapsed: true
link: null
position: 11
position: 13
21 changes: 21 additions & 0 deletions packages/web3/.snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
SNYK-JS-WEB3-174533:
- '*':
reason: Ignore test issue
expires: 3024-06-26T17:16:53.075Z
created: 2024-05-27T17:16:53.080Z
SNYK-JS-JSON5-3182856:
- '*':
reason: Eslint problem
expires: 3024-06-26T20:53:53.640Z
created: 2024-05-27T20:53:53.644Z
SNYK-JS-SEMVER-3247795:
- '*':
reason: Eslint problem
expires: 3024-06-26T20:54:20.755Z
created: 2024-05-27T20:54:20.759Z

patch: {}
12 changes: 1 addition & 11 deletions .snyk → tools/eslint-config-base-web3/.snyk
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
version: v1.25.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
SNYK-JS-WEB3-174533:
- '*':
reason: Ignore test issue
expires: 3024-06-26T17:16:53.075Z
created: 2024-05-27T17:16:53.080Z
SNYK-JS-BRACES-6838727:
- '*':
reason: Docusaurus issue
Expand All @@ -24,14 +19,9 @@ ignore:
created: 2024-05-27T17:29:51.628Z
SNYK-JS-MICROMATCH-6838728:
- '*':
reason: Docusaurus issue
reason: Eslint issue
expires: 3024-06-26T17:30:47.237Z
created: 2024-05-27T17:30:47.240Z
SNYK-JS-SERIALIZEJAVASCRIPT-6147607:
- '*':
reason: Docusaurus issue
expires: 3024-06-26T17:31:06.652Z
created: 2024-05-27T17:31:06.656Z
SNYK-JS-WEBPACKDEVMIDDLEWARE-6476555:
- '*':
reason: Docusaurus issue
Expand Down

0 comments on commit eac41c9

Please sign in to comment.