Skip to content

Commit

Permalink
chore: better encapsulations in starknet_ibc_apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Sep 11, 2024
1 parent 29db8c3 commit f3b05c5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
19 changes: 18 additions & 1 deletion cairo-contracts/packages/apps/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
pub mod transfer;
pub mod transfer {
pub mod components;
mod erc20_call;
mod errors;
pub mod interfaces;
pub mod types;

pub use erc20_call::{ERC20Contract, ERC20ContractTrait};
pub use errors::TransferErrors;

/// The poseidon hash of the transfer port id.
pub const TRANSFER_PORT_ID_HASH: felt252 =
506076466176013583354797631368330115868609515147080483618120063858966368900;

pub fn TRANSFER_PORT_ID() -> ByteArray {
"transfer"
}
}
16 changes: 0 additions & 16 deletions cairo-contracts/packages/apps/src/transfer.cairo

This file was deleted.

7 changes: 4 additions & 3 deletions cairo-contracts/packages/contracts/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
pub mod core;
pub mod erc20;

pub mod apps {
pub mod transfer;
mod transfer;
pub use transfer::TransferApp;
}
pub mod clients {
pub mod cometbft;
mod cometbft;
pub use cometbft::CometClient;
}
mod tests {
#[cfg(test)]
Expand Down

0 comments on commit f3b05c5

Please sign in to comment.