You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As defined in the specification we need a way to set the address of the interchain-account on the controller chain upon successful registration on the host chain.
A function that sends a generic IBC packet to the host chain, and returns the interchain account address on packet sequence 1 needs to be defined. Also, the logic in the OnRecvPacket/OnAckPacket needs to be updated as per definition here.
Proposal
// This helper function is required for the controller chain to get the address of a newly registered interchain account on a host chain.
// Because the registration of an interchain account happens during the channel creation handshake, there is no way for the controller chain to know what the address of the interchain account is on the host chain in advance.
// This function sends an IBC packet to the host chain, on the owner port + active channel with the sole intention of eventually parsing the interchain account address from the Acknowledgement packet on the controller chain side.
// The OnAcknowledgePacket function on the controller chain will handle the parsing + setting the interchain account address in state.
// The controller chain builds the messages (before sending via IBC in the TrySendTx fn) that the host side will eventually execute. Therefore, the interchain account address must be known by the controller chain.
function GetInterchainAccountAddressFromAck(connectionId: string, counterPartyConnectionId: string, ownerAddress: string) returns (nil){
// Sends a generic IBC packet to the host chain with the intention of parsing the interchain account address associated with this port/connection/channel from the Acknowledgement packet.
}
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged/assigned
The text was updated successfully, but these errors were encountered:
Summary
As defined in the specification we need a way to set the address of the interchain-account on the controller chain upon successful registration on the host chain.
A function that sends a generic IBC packet to the host chain, and returns the interchain account address on packet sequence 1 needs to be defined. Also, the logic in the OnRecvPacket/OnAckPacket needs to be updated as per definition here.
Proposal
For Admin Use
The text was updated successfully, but these errors were encountered: