Skip to content

Commit

Permalink
update note
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Nov 22, 2024
1 parent a759734 commit b34fed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ain-ocean/src/model/poolswap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use serde::{Deserialize, Serialize};

use super::BlockContext;

// endianness conversion at storage layer
pub type PoolSwapKey = (u32, u32, usize); // (pool_id, height, txno)

#[derive(Serialize, Deserialize, Debug, Clone)]
Expand Down
1 change: 1 addition & 0 deletions lib/ain-ocean/src/model/poolswap_aggregated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use serde::{Deserialize, Serialize};

use super::BlockContext;

// endianness conversion at storage layer
pub type PoolSwapAggregatedId = (u32, u32, BlockHash); // (pool_id, interval, block_hash)
pub type PoolSwapAggregatedKey = (u32, u32, i64); // (pool_id, interval, bucket) bucket is for next page query

Expand Down

0 comments on commit b34fed5

Please sign in to comment.