ebtc-protocol / ebtc

GNU General Public License v3.0
56 stars 25 forks source link

feat: Add role 11 to Governance Wiring Script #784

Closed sajanrajdev closed 8 months ago

sajanrajdev commented 9 months ago

Tested running the wiring script successfully against the Sepolia deployment:

Starting governance wiring...

CDP Authority Configuration...

Setting up roles

Setting role  0 as Admin
Setting role  1 as eBTCToken: mint
Setting role  2 as eBTCToken: burn
Setting role  3 as CDPManager: all
Setting role  4 as CDPManager+BorrowerOperations+ActivePool: pause
Setting role  5 as BorrowerOperations+ActivePool: setFeeBps
Setting role  6 as ActivePool+CollSurplusPool: sweepToken
Setting role  7 as ActivePool: claimFeeRecipientCollShares
Setting role  8 as EbtcFeed: setPrimaryOracle
Setting role  9 as EbtcFeed: setSecondaryOracle
Setting role  10 as PriceFeed: setFallbackCaller
Setting role  11 as PriceFeed+CDPManager: CollFeedSource & RedemptionFeeFloor

Setting role capabilities

Assigning  3176229869 on 0x85A074FF5adDf47fD66c94C780E7596922B3d1D9 to role 0
Assigning  1739584644 on 0x85A074FF5adDf47fD66c94C780E7596922B3d1D9 to role 0
Assigning  2101368893 on 0x85A074FF5adDf47fD66c94C780E7596922B3d1D9 to role 0
Assigning  3333432894 on 0x85A074FF5adDf47fD66c94C780E7596922B3d1D9 to role 0
Assigning  149178524 on 0x85A074FF5adDf47fD66c94C780E7596922B3d1D9 to role 0
Assigning  4076725131 on 0x85A074FF5adDf47fD66c94C780E7596922B3d1D9 to role 0
Assigning  2057199179 on 0x85A074FF5adDf47fD66c94C780E7596922B3d1D9 to role 0
Assigning  1086394137 on 0xeA2D83AA5e7da0668AdbddADAAc28e51318DDd86 to role 1
Assigning  2646777772 on 0xeA2D83AA5e7da0668AdbddADAAc28e51318DDd86 to role 2
Assigning  1117154408 on 0xeA2D83AA5e7da0668AdbddADAAc28e51318DDd86 to role 2
Assigning  3070136714 on 0x39D6613ABEDd78a0b8edEEfE62cDEc85FCbe08c0 to role 3
Assigning  1613810828 on 0x39D6613ABEDd78a0b8edEEfE62cDEc85FCbe08c0 to role 3
Assigning  3090542642 on 0x39D6613ABEDd78a0b8edEEfE62cDEc85FCbe08c0 to role 3
Assigning  3550525456 on 0x39D6613ABEDd78a0b8edEEfE62cDEc85FCbe08c0 to role 3
Assigning  393614939 on 0x39D6613ABEDd78a0b8edEEfE62cDEc85FCbe08c0 to role 3
Assigning  228742324 on 0x39D6613ABEDd78a0b8edEEfE62cDEc85FCbe08c0 to role 4
Assigning  2534156671 on 0x8EbA6a17Fcd480A96a87308C560170206186D3EA to role 4
Assigning  2534156671 on 0x3D6697c8Cfcc36b68a3077d0a94385B8904B1299 to role 4
Assigning  1925348194 on 0x3D6697c8Cfcc36b68a3077d0a94385B8904B1299 to role 5
Assigning  1925348194 on 0x8EbA6a17Fcd480A96a87308C560170206186D3EA to role 5
Assigning  3909752879 on 0x8EbA6a17Fcd480A96a87308C560170206186D3EA to role 6
Assigning  3909752879 on 0x6a6Ee2146f851fA745016B9e5592379f775b4ff3 to role 6
Assigning  3554710650 on 0x8EbA6a17Fcd480A96a87308C560170206186D3EA to role 7
Assigning  4061692006 on 0x14BBa0A866f49D1ef33096557e661bE20BeBADA0 to role 8
Assigning  3605054385 on 0x14BBa0A866f49D1ef33096557e661bE20BeBADA0 to role 9
Assigning  3069241550 on 0xd2Bdc5Acb219ECeEE3578DA86774BBE4dd85665E to role 10
Assigning  2590031843 on 0xd2Bdc5Acb219ECeEE3578DA86774BBE4dd85665E to role 11
Assigning  1613810828 on 0x39D6613ABEDd78a0b8edEEfE62cDEc85FCbe08c0 to role 11

Assigning roles to users

Assigning  0 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  3 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  4 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  5 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  6 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  7 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  8 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  9 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  10 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  11 to user 0x0393846e97ab5Ec1DC8CB7A59Ee8505F72A6aEEb
Assigning  3 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  4 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  5 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  6 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  7 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  9 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  10 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  11 to user 0xaADf07C98E2420E4d995Ba41Db53399648f50076
Assigning  4 to user 0xC8A7768D2a9EE15437c981a7130268622083c2BD
Assigning  4 to user 0x664F43229dDa9fdEE00e723753f88f3Ba81967F6
Assigning  6 to user 0x5C1246E0b464060919301273781a266Ac119A0Bb
Assigning  7 to user 0x5C1246E0b464060919301273781a266Ac119A0Bb
Governance wiring finalized...

Summary by CodeRabbit

coderabbitai[bot] commented 9 months ago

Walkthrough

The recent update introduces enhancements to the eBTC deployment script and governance mechanisms. Specifically, it adds functionalities for setting collateral feed sources and a redemption fee floor, crucial for maintaining the stability and integrity of the system. Additionally, it updates role assignments for better governance and operational efficiency. This signifies a step forward in the platform's capability to manage its financial instruments and governance processes effectively.

Changes

Files Change Summary
.../mainnetDeployment/eBTCDeployScript.js, governanceSignatures.js Added functionalities for collateral feed source and redemption fee settings; updated role assignments; added SET_COLLATERAL_FEED_SOURCE_SIG in PriceFeed.

🐰✨
To the blockchain's depth, a change we weave,
With code and magic, in the ether, we believe.
A feed for collateral, a floor for the fee,
For stability's sake, we set them free.
In the governance's grasp, roles are assigned,
With every update, to the future, we're aligned.
🌟📜🚀

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

Tips ### Chat There are 3 ways to chat with CodeRabbit: - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit-tests for this file.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit tests for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository from git and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit tests.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json` ### CodeRabbit Discord Community Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
getrecon-bot commented 9 months ago
Job ID b1a50322-fcd8-4235-92ab-0eadf0a909b4
Command yarn && git submodule init && git submodule update && solc-select use 0.8.17 && cd packages/contracts/ && yarn echidna --test-mode assertion --test-limit 300000
Instance ID i-0a48435f86fc7b8bb
Instance Type c5.2xlarge
Status Started
Elapsed
getrecon-bot commented 9 months ago
Job ID b1a50322-fcd8-4235-92ab-0eadf0a909b4
Command yarn && git submodule init && git submodule update && solc-select use 0.8.17 && cd packages/contracts/ && yarn echidna --test-mode assertion --test-limit 300000
Instance ID i-0a48435f86fc7b8bb
Instance Type c5.2xlarge
Status Running
Elapsed 51 seconds
getrecon-bot commented 9 months ago
Job ID b1a50322-fcd8-4235-92ab-0eadf0a909b4
Command yarn && git submodule init && git submodule update && solc-select use 0.8.17 && cd packages/contracts/ && yarn echidna --test-mode assertion --test-limit 300000
Instance ID i-0a48435f86fc7b8bb
Instance Type c5.2xlarge
Status Running
Elapsed 52 seconds
getrecon-bot commented 9 months ago
Job ID b1a50322-fcd8-4235-92ab-0eadf0a909b4
Command yarn && git submodule init && git submodule update && solc-select use 0.8.17 && cd packages/contracts/ && yarn echidna --test-mode assertion --test-limit 300000
Instance ID i-0a48435f86fc7b8bb
Instance Type c5.2xlarge
Status Success
Elapsed 18 hours 51 minutes 39 seconds