Skip to content

Commit

Permalink
Rename indexer_utils to near_utils
Browse files Browse the repository at this point in the history
It's not just for indexers. Maybe will refactor it in a separate crate in the future
  • Loading branch information
Sliman4 committed May 1, 2024
1 parent 3a52bff commit 482b441
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::path::PathBuf;
use async_trait::async_trait;
use inindexer::{
fastnear_data_server::FastNearDataServerProvider,
indexer_utils::{MAINNET_GENESIS_BLOCK_HEIGHT, TESTNET_GENESIS_BLOCK_HEIGHT},
near_utils::{MAINNET_GENESIS_BLOCK_HEIGHT, TESTNET_GENESIS_BLOCK_HEIGHT},
run_indexer, AutoContinue, BlockIterator, Indexer, IndexerOptions,
};
use near_indexer_primitives::{types::BlockHeight, StreamerMessage};
Expand Down
2 changes: 1 addition & 1 deletion examples/ft_transfers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::path::PathBuf;
use async_trait::async_trait;
use inindexer::{
fastnear_data_server::FastNearDataServerProvider,
indexer_utils::{EventLogData, FtTransferLog, MAINNET_GENESIS_BLOCK_HEIGHT},
near_utils::{EventLogData, FtTransferLog, MAINNET_GENESIS_BLOCK_HEIGHT},
run_indexer, AutoContinue, BlockIterator, Indexer, IndexerOptions,
};
use near_indexer_primitives::{views::ExecutionStatusView, StreamerMessage};
Expand Down
4 changes: 2 additions & 2 deletions src/indexer_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use std::{collections::HashMap, ops::Range, path::PathBuf};
#[cfg(feature = "lake")]
use crate::lake::LakeStreamer;
use crate::{
fastnear_data_server::FastNearDataServerProvider, indexer_utils::MAINNET_GENESIS_BLOCK_HEIGHT,
message_provider::ParallelProviderStreamer, AutoContinue, AutoContinueEnd, BlockIterator,
fastnear_data_server::FastNearDataServerProvider, message_provider::ParallelProviderStreamer,
near_utils::MAINNET_GENESIS_BLOCK_HEIGHT, AutoContinue, AutoContinueEnd, BlockIterator,
CompleteTransaction, IndexerOptions, PreprocessTransactionsSettings,
};
use async_trait::async_trait;
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ pub mod fastnear_data_server;
mod indexer_state;
#[cfg(test)]
mod indexer_tests;
pub mod indexer_utils;
#[cfg(feature = "lake")]
pub mod lake;
#[cfg(feature = "message-provider")]
pub mod message_provider;
pub mod near_utils;

use std::{
fmt::{Debug, Display},
Expand All @@ -43,13 +43,13 @@ use std::{

use async_trait::async_trait;
use indexer_state::{InIndexerError, IndexerState};
use indexer_utils::{is_receipt_successful, MAINNET_GENESIS_BLOCK_HEIGHT};
pub use near_indexer_primitives;
use near_indexer_primitives::{
types::{BlockHeight, BlockHeightDelta},
views::ExecutionStatusView,
IndexerExecutionOutcomeWithReceipt, IndexerTransactionWithOutcome, StreamerMessage,
};
use near_utils::{is_receipt_successful, MAINNET_GENESIS_BLOCK_HEIGHT};
use serde::{Deserialize, Serialize};
use tokio::{sync::mpsc, task::JoinHandle};

Expand Down
File renamed without changes.

0 comments on commit 482b441

Please sign in to comment.