BREAKING_CHANGE(RNSDomainPrice): adopt chainlink pricefeed#298
Merged
huyhuynh3103 merged 10 commits intorelease/v0.3.8from Mar 6, 2026
Merged
BREAKING_CHANGE(RNSDomainPrice): adopt chainlink pricefeed#298huyhuynh3103 merged 10 commits intorelease/v0.3.8from
huyhuynh3103 merged 10 commits intorelease/v0.3.8from
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request adopts the Chainlink price feed by updating dependencies, refactoring function modifiers, and revising shared interfaces. Key changes include:
- Updating dependency references in foundry.toml and remappings.txt.
- Adding the "view" modifier to migration script functions.
- Replacing the Pyth oracle with the Chainlink price feed in RNSDomainPrice.sol.
Files not reviewed (17)
- remappings.txt: Language not supported
- script/20231106-config-prelaunch/20231106_SubmitReservedNames.s.sol: Language not supported
- script/20231106-deploy-mainnet/20231106_Deploy.s.sol: Language not supported
- script/20240215-separate-tier-and-domain-price/02_ResetCommunityNameRenewalFees_RNSDomainPrice.s.sol: Language not supported
- script/20240215-separate-tier-and-domain-price/03_DeployNewRNSOperation_RNSOperation.s.sol: Language not supported
- script/20240704-upgrade-controller-deploy-rnscommission-mainnet/20240704_UpgradeControllerAndDeployRNSCommissionMainnet.sol: Language not supported
- script/20241105-upgrade-rnscommission-mainnet /20241105_UpgradRNSCommissionMainnet.sol: Language not supported
- script/20242406-migrate-auction-controller-treasury-and-deploy-rns-commission/20240624_MigrateAuctionAndControllerTreasuryAndDeployRNSCommission.s.sol: Language not supported
- script/Migration.s.sol: Language not supported
- script/contracts/RNSDomainPriceDeploy.s.sol: Language not supported
- script/interfaces/ISharedArgument.sol: Language not supported
- src/RNSDomainPrice.sol: Language not supported
- src/interfaces/INSDomainPrice.sol: Language not supported
- src/libraries/pyth/PythConverter.sol: Language not supported
- src/utils/OwnedMulticaller.sol: Language not supported
- test/RONRegistrarController/RONRegistrarController.bulkRenew.t.sol: Language not supported
- test/RONRegistrarController/RONRegistrarController.t.sol: Language not supported
Comments suppressed due to low confidence (1)
foundry.toml:33
- The dependency name has been changed from '@fdk' to 'fdk'. Please ensure that this renaming is consistent across the build configuration and any scripts that reference the package.
+"fdk" = { version = "0.3.4-beta", url = "https://github.com/axieinfinity/foundry-deployment-kit/archive/refs/tags/v0.3.4-beta.zip" }
added 6 commits
April 1, 2025 16:24
There was a problem hiding this comment.
Pull Request Overview
This pull request adopts the Chainlink price feed in place of the Pyth oracle, while also updating dependencies and refactoring several functions to improve clarity and maintainability.
- Updated compiler settings and dependency versions in foundry.toml
- Removed old dependency references and introduced new ones with updated naming conventions
- Adjusted remappings and configuration to support the Chainlink price feed
Files not reviewed (19)
- broadcast/01_UpgradeRNSDomainPrice_AdoptChainlink.s.sol/2021/run-1743499416.json: Language not supported
- broadcast/01_UpgradeRNSDomainPrice_AdoptChainlink.s.sol/2021/run-latest.json: Language not supported
- debug.sh: Language not supported
- generate-artifact.sh: Language not supported
- remappings.txt: Language not supported
- run.sh: Language not supported
- script/20231106-config-prelaunch/20231106_SubmitReservedNames.s.sol: Language not supported
- script/20231106-deploy-mainnet/20231106_Deploy.s.sol: Language not supported
- script/20240215-separate-tier-and-domain-price/01_UpgradeRNSDomainPrice_OverrideTierForCommunityNames.s.sol: Language not supported
- script/20240215-separate-tier-and-domain-price/02_ResetCommunityNameRenewalFees_RNSDomainPrice.s.sol: Language not supported
- script/20240215-separate-tier-and-domain-price/03_DeployNewRNSOperation_RNSOperation.s.sol: Language not supported
- script/20240704-upgrade-controller-deploy-rnscommission-mainnet/20240704_UpgradeControllerAndDeployRNSCommissionMainnet.sol: Language not supported
- script/20241105-upgrade-rnscommission-mainnet /20241105_UpgradRNSCommissionMainnet.sol: Language not supported
- script/20242406-migrate-auction-controller-treasury-and-deploy-rns-commission/20240624_MigrateAuctionAndControllerTreasuryAndDeployRNSCommission.s.sol: Language not supported
- script/20250104-upgrade-rns-domain-price-adopt-chainlink/01_UpgradeRNSDomainPrice_AdoptChainlink.s.sol: Language not supported
- script/Migration.s.sol: Language not supported
- script/contracts/RNSDomainPriceDeploy.s.sol: Language not supported
- script/interfaces/ISharedArgument.sol: Language not supported
- src/RNSDomainPrice.sol: Language not supported
Comments suppressed due to low confidence (2)
foundry.toml:36
- The dependency key 'fdk' now excludes the '@' prefix used previously. Please ensure that all related documentation and remapping configurations are updated to align with this new naming convention.
fdk = { version = "0.3.5-rc", url = "https://github.com/axieinfinity/foundry-deployment-kit/archive/refs/tags/v0.3.5-rc.zip" }
foundry.toml:10
- Verify that 'cancun' is fully supported by all development, testing, and deployment environments, as this change may affect compatibility with existing tooling.
evm_version = 'cancun'
huyhuynh3103
approved these changes
Mar 6, 2026
This file contains hidden or 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
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 pull request includes several updates across multiple files to upgrade dependencies, update configurations, and improve code consistency. The most important changes include upgrading the Solidity compiler version and EVM version, updating dependencies, changing function visibility, and replacing the Pyth price feed with Chainlink.
Dependency and Configuration Updates:
foundry.toml: Updated the Solidity compiler version to0.8.22, changed the EVM version toCancun, enabled the optimizer with 1000 runs, and added new dependencies (fdk-0.3.5-rc,openzeppelin-4.9.3,contract-libs-0.1.3). [1] [2]remappings.txt: Updated remappings to reflect the new dependency versions.Script Updates:
generate-artifact.sh,run.sh,debug.sh: Updated to source the newfdk-0.3.5-rcversion. [1] [2] [3]Function Visibility Changes:
viewto reflect their read-only nature. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Typo Fixes:
Price Feed Update:
RNSDomainPrice.sol,Migration.s.sol,ISharedArgument.sol: Replaced the Pyth price feed with Chainlink'sChainlinkPriceFeedConsumer. [1] [2] [3] [4] [5] [6] [7] [8]Deployment logs
Saigon Testnet