-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: add checks for on_chan_open_init + use PortId type in IRouter
- Loading branch information
1 parent
e34a193
commit b9ad97f
Showing
7 changed files
with
30 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
use starknet::ContractAddress; | ||
use starknet_ibc_core::host::PortId; | ||
|
||
#[starknet::interface] | ||
pub trait IRouter<TContractState> { | ||
fn app_address(self: @TContractState, port_id: ByteArray) -> ContractAddress; | ||
fn app_address(self: @TContractState, port_id: PortId) -> ContractAddress; | ||
|
||
fn bind_port_id(ref self: TContractState, port_id: ByteArray, app_address: ContractAddress); | ||
fn bind_port_id(ref self: TContractState, port_id: PortId, app_address: ContractAddress); | ||
|
||
fn release_port_id(ref self: TContractState, port_id: ByteArray); | ||
fn release_port_id(ref self: TContractState, port_id: PortId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters