Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
AmbientTea committed Aug 21, 2024
1 parent acc3aff commit 06df81f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct NativeTokenManagementDataSourceImpl {

observed_async_trait!(
impl NativeTokenManagementDataSource for NativeTokenManagementDataSourceImpl {
async fn get_token_transfer_events(
async fn get_total_native_token_transfer(
&self,
after_block: Option<McBlockHash>,
to_block: McBlockHash,
Expand Down
6 changes: 3 additions & 3 deletions mainchain-follower/db-sync-follower/src/native_token/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async fn defaults_to_zero_when_there_are_no_transfers(pool: PgPool) {
let after_block = None;
let to_block = genesis_hash();
let result = source
.get_token_transfer_events(
.get_total_native_token_transfer(
after_block,
to_block,
native_token_policy_id(),
Expand All @@ -57,7 +57,7 @@ async fn gets_sum_of_all_transfers_when_queried_up_to_latest_block(pool: PgPool)
let after_block = None;
let to_block = block_hash(5);
let result = source
.get_token_transfer_events(
.get_total_native_token_transfer(
after_block,
to_block,
native_token_policy_id(),
Expand All @@ -76,7 +76,7 @@ async fn gets_sum_of_transfers_in_range(pool: PgPool) {
let after_block = Some(block_hash(1));
let to_block = block_hash(5);
let result = source
.get_token_transfer_events(
.get_total_native_token_transfer(
after_block,
to_block,
native_token_policy_id(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ mod native_token {

#[async_trait]
impl NativeTokenManagementDataSource for MockNativeTokenDataSource {
async fn get_token_transfer_events(
async fn get_total_native_token_transfer(
&self,
after_block: Option<McBlockHash>,
to_block: McBlockHash,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use sidechain_domain::*;
#[async_trait]
pub trait NativeTokenManagementDataSource {
/// Retrieves total of native token transfers into the illiquid supply in the range (after_block, to_block]
async fn get_token_transfer_events(
async fn get_total_native_token_transfer(
&self,
after_block: Option<McBlockHash>,
to_block: McBlockHash,
Expand Down
2 changes: 1 addition & 1 deletion mainchain-follower/mock/src/native_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl NativeTokenDataSourceMock {

#[async_trait]
impl NativeTokenManagementDataSource for NativeTokenDataSourceMock {
async fn get_token_transfer_events(
async fn get_total_native_token_transfer(
&self,
_after_block: Option<McBlockHash>,
_to_block: McBlockHash,
Expand Down

0 comments on commit 06df81f

Please sign in to comment.