-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add RPC calls and checks #485
Merged
rossgalloway
merged 9 commits into
yearn:master
from
rossgalloway:worktree-add-rpc-calls
Dec 12, 2024
Merged
feat: add RPC calls and checks #485
rossgalloway
merged 9 commits into
yearn:master
from
rossgalloway:worktree-add-rpc-calls
Dec 12, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Closed
MarcoWorms
approved these changes
Dec 12, 2024
rossgalloway
added a commit
to rossgalloway/yearn-devdocs
that referenced
this pull request
Jan 21, 2025
commit 9945280 Author: rossgalloway <[email protected]> Date: Tue Jan 21 09:59:16 2025 -0500 Feat: wallet integration guide (yearn#499) * feat: wallet and portfolio tracker integration doc * fix: grammar * fix: update kong APY types. * fix: missing vaults and incorrect links * fix: add ens * fix: add info on APY/APR commit d2cd23b Author: Ross <[email protected]> Date: Thu Jan 16 09:29:39 2025 -0500 fix: conflict commit 086f888 Author: rossgalloway <[email protected]> Date: Mon Dec 30 15:30:31 2024 -0500 chore: update address checks data (yearn#498) * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check --------- Co-authored-by: rossgalloway <[email protected]> commit 3301db6 Author: rossgalloway <[email protected]> Date: Wed Dec 18 12:39:49 2024 -0500 Chore: clean up actions (yearn#497) * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * chore: clean up old actions --------- Co-authored-by: rossgalloway <[email protected]> commit 8ced3cc Author: rossgalloway <[email protected]> Date: Mon Dec 16 11:27:20 2024 -0500 Fix: AddressCheck action (yearn#495) * Update data from daily check * fix: addressCheck action --------- Co-authored-by: rossgalloway <[email protected]> commit 670cdb0 Author: rossgalloway <[email protected]> Date: Thu Dec 12 17:38:34 2024 -0500 add guardian information (yearn#494) * add guardian information * edit phrasing * update phrasing again commit f8b2d03 Author: rossgalloway <[email protected]> Date: Thu Dec 12 15:46:19 2024 -0500 Chore: add new veyfi gauges (yearn#490) * Add new gauges * update chart title and formatting commit 19afa83 Author: rossgalloway <[email protected]> Date: Thu Dec 12 15:45:49 2024 -0500 add RPC calls and checks (yearn#485) * add RPC calls and checks * add script and license, fix imports * clean up react functions. * update workflow * update workflow * update workflow * remove automatic address checking on load. commit a210351 Author: rossgalloway <[email protected]> Date: Thu Dec 12 13:53:15 2024 -0500 Feat: Add new FAQ to guides section (yearn#482) * update env * add FAQ * new faq page * update sidebar * add logic to open details tab when linked to a contained heading. * minor grammar fixes * minor grammarly fixes --------- Co-authored-by: Marco Guaspari Worms <[email protected]> commit 715ca1b Author: cuiyourong <[email protected]> Date: Wed Dec 11 23:59:30 2024 +0800 chore: remove redundant words in comment (yearn#491) Signed-off-by: cuiyourong <[email protected]> commit 2c5e245 Author: Skylar Ray <[email protected]> Date: Wed Dec 4 21:18:51 2024 +0200 Update ygift.md (yearn#487) Co-authored-by: rossgalloway <[email protected]> commit 3d529ee Author: Danil <[email protected]> Date: Wed Dec 4 20:18:34 2024 +0100 Update interfaces.md (yearn#488) Co-authored-by: rossgalloway <[email protected]> commit a80e8bf Author: rossgalloway <[email protected]> Date: Wed Dec 4 14:14:48 2024 -0500 update yETH addresses (yearn#489)
This was referenced Jan 23, 2025
rossgalloway
added a commit
to rossgalloway/yearn-devdocs
that referenced
this pull request
Feb 12, 2025
* first pass at yPools updates * fix typo * grammar fix to yeth-overview.md * fix grammar in ypools-overview.md * fix grammar in ypools-overview.md * update LSD to LST * working on it * add specs * feat: misc updates * Squashed commit of the following: commit 9945280 Author: rossgalloway <[email protected]> Date: Tue Jan 21 09:59:16 2025 -0500 Feat: wallet integration guide (yearn#499) * feat: wallet and portfolio tracker integration doc * fix: grammar * fix: update kong APY types. * fix: missing vaults and incorrect links * fix: add ens * fix: add info on APY/APR commit d2cd23b Author: Ross <[email protected]> Date: Thu Jan 16 09:29:39 2025 -0500 fix: conflict commit 086f888 Author: rossgalloway <[email protected]> Date: Mon Dec 30 15:30:31 2024 -0500 chore: update address checks data (yearn#498) * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check --------- Co-authored-by: rossgalloway <[email protected]> commit 3301db6 Author: rossgalloway <[email protected]> Date: Wed Dec 18 12:39:49 2024 -0500 Chore: clean up actions (yearn#497) * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * Update data from daily check * chore: clean up old actions --------- Co-authored-by: rossgalloway <[email protected]> commit 8ced3cc Author: rossgalloway <[email protected]> Date: Mon Dec 16 11:27:20 2024 -0500 Fix: AddressCheck action (yearn#495) * Update data from daily check * fix: addressCheck action --------- Co-authored-by: rossgalloway <[email protected]> commit 670cdb0 Author: rossgalloway <[email protected]> Date: Thu Dec 12 17:38:34 2024 -0500 add guardian information (yearn#494) * add guardian information * edit phrasing * update phrasing again commit f8b2d03 Author: rossgalloway <[email protected]> Date: Thu Dec 12 15:46:19 2024 -0500 Chore: add new veyfi gauges (yearn#490) * Add new gauges * update chart title and formatting commit 19afa83 Author: rossgalloway <[email protected]> Date: Thu Dec 12 15:45:49 2024 -0500 add RPC calls and checks (yearn#485) * add RPC calls and checks * add script and license, fix imports * clean up react functions. * update workflow * update workflow * update workflow * remove automatic address checking on load. commit a210351 Author: rossgalloway <[email protected]> Date: Thu Dec 12 13:53:15 2024 -0500 Feat: Add new FAQ to guides section (yearn#482) * update env * add FAQ * new faq page * update sidebar * add logic to open details tab when linked to a contained heading. * minor grammar fixes * minor grammarly fixes --------- Co-authored-by: Marco Guaspari Worms <[email protected]> commit 715ca1b Author: cuiyourong <[email protected]> Date: Wed Dec 11 23:59:30 2024 +0800 chore: remove redundant words in comment (yearn#491) Signed-off-by: cuiyourong <[email protected]> commit 2c5e245 Author: Skylar Ray <[email protected]> Date: Wed Dec 4 21:18:51 2024 +0200 Update ygift.md (yearn#487) Co-authored-by: rossgalloway <[email protected]> commit 3d529ee Author: Danil <[email protected]> Date: Wed Dec 4 20:18:34 2024 +0100 Update interfaces.md (yearn#488) Co-authored-by: rossgalloway <[email protected]> commit a80e8bf Author: rossgalloway <[email protected]> Date: Wed Dec 4 14:14:48 2024 -0500 update yETH addresses (yearn#489) * fix: picked wrong merge conflict choice * updates * fix: yaml formatting * feat: add new abi encoder widget * Revert "Merge remote-tracking branch 'origin/feat--update-and-re-org-yETH' into pr/rossgalloway/33" This reverts commit 7f5fc6b, reversing changes made to 9fecf30.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This supersedes #479
Implemented RPC contract reads into the site using the Viem Ethereum library. There are 2 features currently working.
1. Verifying Contract Addresses
All the V3 contract addresses shown on the V3 addresses page are now checked against from their respective registry smart contracts.
There is a single constants file with ENS names and addresses where addresses should be kept updated. A new github workflow is part of this PR, which runs a script to check the constants file against on-chain addresses every night at midnight. If the check fails, a new issue is posted to the repo issues board and a component on the addresses page gives a warning.
On initial site load:
These contract addresses and the checks are then served as context to the app.
On initial Address page load:
The checks are consumed by an <AddressCheck> component that reads the checks from the context and posts a message about whether the checks passed or failed. If they failed then the failed check information is posted to the console.
Where addresses are needed, <ContractAddress> components consume static address data from the constants file and display a link with the Address as the text and the hyperlink to the etherscan page. It takes the following argument:
contractName
which is the path to the data you want to read from the constants file.The component is used like this:
<ContractAddress contractName = {['topLevel', 'protocolAddressProvider']} />
The shape of the data object is:
2. Make arbitrary contract call reads in docs
You can make RPC calls to read contract data from on-chain sources from within the docs. You can add the information for all the read calls you want within the front-matter of a markdown document. Front-matter is metadata that docusaurus reads when serving pages.
To make a blockchain call you need to structure your data in the following format at the top of the markdown file:
When adding a new contract to call, you need to add the ABI to "src/ethereum/ABIs". Create a new typescript file with the name of your ABI. The convention is to name it in camelCase and end it with ABI (i.e. yfiTokenABI.ts). Then paste the ABI into the file (you can copy it from etherscan. It is in the contract->code section.). You need to export it and add
as const
at the end.You then need to export this element from the index.ts file in the same directory. Add a line exporting your ABI as shown below.
To display the data from the calls, use the component. It takes the following arguments: