-
Notifications
You must be signed in to change notification settings - Fork 17
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
add update and disable endpoints (owner only) #9
Conversation
* add update router and disable router for engine and router * clean up imports * reorganize modules
012b783
to
792dfbb
Compare
* remove IWormhole.sol and WormholeBytesParsing.sol * add wormhole-solidity-sdk * fix Makefile
47fd525
to
244f1a5
Compare
@@ -54,6 +57,50 @@ impl common::admin::OwnerAssistant for Custodian { | |||
} | |||
} | |||
|
|||
#[derive(Accounts)] | |||
pub struct OwnerCustodian<'info> { |
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.
This is pretty slick.
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.
Got this from our boy @kcsongor
await expectIxErr(connection, [ix], [ownerAssistant], "Error Code: OwnerOnly"); | ||
}); | ||
|
||
it("Disable Router Endpoint as Owner", async function () { |
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.
Might be nice to add a test where we attempt to start an auction for a disabled endpoint.
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.
Added issue #11 to track this
Before the owner or owner assistant could update foreign endpoints.
We now enforce that only the owner can update (and disable) existing endpoints, only allowing the owner assistant to be able to add endpoints.