-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shy start on the local chain feature #158
- Loading branch information
Showing
6 changed files
with
58 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ pub mod event_handler; | |
pub mod event_monitor; | ||
pub mod store; | ||
pub mod util; | ||
pub mod local_chain; |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use crate::config::LocalChainConfig; | ||
use crate::error::Error; | ||
|
||
pub struct LocalChain { | ||
pub config: LocalChainConfig, | ||
} | ||
|
||
impl LocalChain { | ||
pub fn from_config(config: LocalChainConfig) -> Result<Self, Error> { | ||
Ok(Self { | ||
config, | ||
}) | ||
} | ||
|
||
// TODO -- add a generic interface to submit any type of IBC messages. | ||
/// Submits an IBC message for creating an IBC client on the chain. It is assumed that this is | ||
/// a client for a mock chain. | ||
pub fn create_client(&self, _client_id: &String) { | ||
unimplemented!() | ||
} | ||
} |
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