Skip to content
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

using governedContractKits in core eval replacing committee and charter #10178

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

rabi-siddique
Copy link
Contributor

@rabi-siddique rabi-siddique commented Oct 1, 2024

refs: #10134 #10133

Description

This pull request builds on #10166 and #10164. It updates the core eval code to utilize the governorCreatorFacet for the governed contracts via the governedContractKit. Initially, the aim was to use the governedContractKit to access facets from price feed contracts. But since it also includes facets for other governed contracts, I expanded the code to incorporate these as well.

Security Considerations

Same as #10166 and #10164

Scaling Considerations

Documentation Considerations

Testing Considerations

Same as specified in #10164

Upgrade Considerations

@rabi-siddique rabi-siddique requested a review from a team as a code owner October 1, 2024 06:52
Copy link

cloudflare-workers-and-pages bot commented Oct 1, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0fba11e
Status: ✅  Deploy successful!
Preview URL: https://60671ce4.agoric-sdk.pages.dev
Branch Preview URL: https://rs-use-governedcontractkits.agoric-sdk.pages.dev

View logs

@rabi-siddique rabi-siddique force-pushed the rs-faraz-replace-charter branch from cd7809e to e993aeb Compare October 1, 2024 06:55
@rabi-siddique rabi-siddique force-pushed the rs-use-governedContractKits branch from d9d9bf2 to ed8b045 Compare October 1, 2024 06:57
@frazarshad frazarshad force-pushed the rs-faraz-replace-charter branch from e993aeb to cd7809e Compare October 1, 2024 08:47
@rabi-siddique rabi-siddique force-pushed the rs-use-governedContractKits branch from e0c2baa to 72d59ac Compare October 1, 2024 12:35
@rabi-siddique rabi-siddique force-pushed the rs-use-governedContractKits branch from 72d59ac to 8a1f820 Compare October 1, 2024 12:37
Copy link
Contributor

@Chris-Hibbert Chris-Hibbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is a definite improvement.

I notice some test failures, but you can merge this, and address them in the main PR.

One suggestion for a change, which can be done in the main PR.

governorCreatorFacet,
label,
} of governedContractKitMap.values()) {
E(creatorFacet).addInstance(instance, governorCreatorFacet, label);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are lots of contracts floating around. let's rename creatorFacet to ecCreatorFacet or committeeCreatorFacet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Made the update.

const psmKitMap = await permittedPowers.consume.psmKit;

console.log('RABI', [...governedContractKitsMap.values()]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meant to be dropped?

(I use 'CTH' (my initials) for the same purpose, and have a pre-commit script I run routinely to find phrases which should seldom be submitted. YMMV.)

@rabi-siddique rabi-siddique merged commit 8277e1b into rs-faraz-replace-charter Oct 2, 2024
61 of 75 checks passed
@rabi-siddique rabi-siddique deleted the rs-use-governedContractKits branch October 2, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants