-
Notifications
You must be signed in to change notification settings - Fork 6
IPC-299: Implementation of provider methods #309
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.
I feel we might not need gateway
address as parameters anymore since it should be part of the subnet config already and we should use the one passed in from config.
Some(addr) => addr, | ||
}; | ||
|
||
conn.manager().list_child_subnets(gateway_addr).await |
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.
Gateway address should not be needed in list_child_subnets
as manager
should already know which subnet it is managing
and hence should have already known the gateway
address. Ideally, manager should have owned the gateway
address?.
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.
As this is a huge change, I will fix it in a follow up PR. Tracked in this issue: https://github.com/consensus-shipyard/ipc-agent/issues/316
) -> anyhow::Result<ChainEpoch> { | ||
todo!() | ||
let parent = subnet.parent().ok_or_else(|| anyhow!("no parent found"))?; |
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.
maybe we should remove this as well, so that we can fund address in root
subnets
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.
I don't think this is the case, right? When funding you need to connect to the parent and send a fund
to the gateway. So there shouldn't be a fund
from the root as an argument.
IPC-299: implement get-chain-id
IPC-299: Cli checkpoint commands implementation
IPC-299: Implement cli cross-msg methods
IPC-299: Implementation of subnet cli commands
This PR includes the implementation of all the relevant methods currently required for the cli in the
IpcProvider
.