Skip to content

Commit

Permalink
update some annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
KaoImin committed Oct 8, 2023
1 parent b5fb318 commit 2f47ccb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ pragma solidity >=0.8.0;

import "../libraries/CkbType.sol";

// **Notice**
// This file only defines the interface of CKB light client contract. The real
// implementation is in `core/executor/src/system_contract/ckb_light_client`.
interface CkbLightClient {
function setState(bool allowRead) public;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ library ImageCellType {
}
}

// **Notice**
// This file only defines the interface of image cell contract. The real
// implementation is in `core/executor/src/system_contract/image_cell`.
interface ImageCell {
function setState(bool allowRead) public;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ library MetadataType {
}

// **Notice**
// This solidity contract only defines the interface of metadata contract. The real
// This file only defines the interface of metadata contract. The real
// implementation is in `core/executor/src/system_contract/metadata`.
interface MetadataManager {
function appendMetadata(MetadataType.Metadata memory metadata) external;
Expand Down
4 changes: 2 additions & 2 deletions core/executor/src/system_contract/ckb_light_client/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use crate::{adapter::RocksTrieDB, MPTTrie, CURRENT_HEADER_CELL_ROOT};
/// client and image cell contract account as follow:
///
/// **CKB light client Account**
/// | address | `0xFFfffFFfFFfffFfFffFFfFfFfFffFfffFFFFFf02`|
/// | address | `0xFfFfFFFfFFfFFFFfFFFFffFfFFfffFFFfffffF02`|
/// | nonce | `0x0` |
/// | balance | `0x0` |
/// | storage | `storage_root` |
Expand All @@ -33,7 +33,7 @@ use crate::{adapter::RocksTrieDB, MPTTrie, CURRENT_HEADER_CELL_ROOT};
/// | HEADER_CELL_ROOT_KEY | HeaderCell MPT root |
///
/// **Image cell Account**
/// | address | `0xFFfffFFfFFfffFfFffFFfFfFfFffFfffFFFFFf03`|
/// | address | `0xffffffffFfFFffffFFFfffFfFFfFffFffFFFff03`|
/// | nonce | `0x0` |
/// | balance | `0x0` |
/// | storage | `storage_root` |
Expand Down
4 changes: 2 additions & 2 deletions core/executor/src/system_contract/image_cell/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct CellKey {
/// client and image cell contract account as follow:
///
/// **CKB light client Account**
/// | address | `0xFFfffFFfFFfffFfFffFFfFfFfFffFfffFFFFFf02`|
/// | address | `0xFfFfFFFfFFfFFFFfFFFFffFfFFfffFFFfffffF02`|
/// | nonce | `0x0` |
/// | balance | `0x0` |
/// | storage | `storage_root` |
Expand All @@ -40,7 +40,7 @@ pub struct CellKey {
/// | HEADER_CELL_ROOT_KEY | HeaderCell MPT root |
///
/// **Image cell Account**
/// | address | `0xFFfffFFfFFfffFfFffFFfFfFfFffFfffFFFFFf03`|
/// | address | `0xffffffffFfFFffffFFFfffFfFFfFffFffFFFff03`|
/// | nonce | `0x0` |
/// | balance | `0x0` |
/// | storage | `storage_root` |
Expand Down

0 comments on commit 2f47ccb

Please sign in to comment.