-
Notifications
You must be signed in to change notification settings - Fork 2
BREAKING_CHANGE(RNSDomainPrice): adopt chainlink pricefeed #298
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
base: release/v0.3.8
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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" }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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-rc
version. [1] [2] [3]Function Visibility Changes:
view
to 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