junobuild_shared/ledger/types.rs
1pub mod icp {
2 use ic_ledger_types::{Block, BlockIndex};
3
4 pub type BlockIndexed = (BlockIndex, Block);
5 pub type Blocks = Vec<BlockIndexed>;
6}
7
8pub mod icrc {
9 use icrc_ledger_types::icrc1::transfer::{BlockIndex, TransferError};
10
11 pub type IcrcTransferResult = Result<BlockIndex, TransferError>;
12}