chore: fix typos

This commit is contained in:
Louise Poole
2025-06-26 12:33:31 +02:00
parent c2bb3a8ca8
commit 58324a199f
5 changed files with 9 additions and 9 deletions

View File

@@ -429,8 +429,8 @@ library LibManager {
} }
} }
/// @notice Calls a hook if needed after new funds have been transfered to a /// @notice Calls a hook if needed after new funds have been transferred to
/// manager /// a manager
function invest(uint256 amount, bytes memory config) internal { function invest(uint256 amount, bytes memory config) internal {
(ManagerType managerType, bytes memory data) = (ManagerType managerType, bytes memory data) =
parseManagerConfig(config); parseManagerConfig(config);

View File

@@ -20,7 +20,7 @@ since this will error.
To create a pre-release for testing in dev you can start CD pipeline manually supplying To create a pre-release for testing in dev you can start CD pipeline manually supplying
the package you'd like to pre-release. This will create a the package you'd like to pre-release. This will create a
`[package].pre-[commit-sha]` release in our spkg repository which you can use `[package].pre-[commit-sha]` release in our spkg repository which you can use
to run the substream´. to run the substream.
For forked protocols you'll need to also supply the config file name, e.g. `ethereum-pancakeswap`. For forked protocols you'll need to also supply the config file name, e.g. `ethereum-pancakeswap`.

View File

@@ -94,7 +94,7 @@ type TxAggregatedBalances =
/// Aggregates absolute balances per transaction and token. /// Aggregates absolute balances per transaction and token.
/// ///
/// ## Arguments /// ## Arguments
/// * `balance_store` - A `StoreDeltas` with all changes that occured in the source store module. /// * `balance_store` - A `StoreDeltas` with all changes that occurred in the source store module.
/// * `deltas` - A `BlockBalanceDeltas` message containing the relative balances changes. /// * `deltas` - A `BlockBalanceDeltas` message containing the relative balances changes.
/// ///
/// This function reads absolute balance values from an additive store (see `store_balance_changes` /// This function reads absolute balance values from an additive store (see `store_balance_changes`

View File

@@ -163,7 +163,7 @@ pub fn store_balances(deltas: BlockBalanceDeltas, store: StoreAddBigInt) {
/// This is the main map that handles most of the indexing of this substream. /// This is the main map that handles most of the indexing of this substream.
/// Every contract change is grouped by transaction index via the `transaction_changes` /// Every contract change is grouped by transaction index via the `transaction_changes`
/// map. Each block of code will extend the `TransactionChanges` struct with the /// map. Each block of code will extend the `TransactionChanges` struct with the
/// cooresponding changes (balance, component, contract), inserting a new one if it doesn't exist. /// corresponding changes (balance, component, contract), inserting a new one if it doesn't exist.
/// At the very end, the map can easily be sorted by index to ensure the final /// At the very end, the map can easily be sorted by index to ensure the final
/// `BlockChanges` is ordered by transactions properly. /// `BlockChanges` is ordered by transactions properly.
#[substreams::handlers::map] #[substreams::handlers::map]

View File

@@ -64,7 +64,7 @@ pub fn map_components(params: String, block: eth::v2::Block) -> Result<BlockChan
} }
if let Some((component, mut state)) = emit_specific_pools(&params, tx).expect( if let Some((component, mut state)) = emit_specific_pools(&params, tx).expect(
"An unexpected error occured when parsing params for emitting specific pools", "An unexpected error occurred when parsing params for emitting specific pools",
) { ) {
entity_changes.append(&mut state); entity_changes.append(&mut state);
components.push(component); components.push(component);
@@ -227,7 +227,7 @@ pub fn map_protocol_changes(
entity_changes: vec![], entity_changes: vec![],
}); });
let formated_components: Vec<_> = tx_changes //TODO: format directly at creation let formatted_components: Vec<_> = tx_changes //TODO: format directly at creation
.component_changes .component_changes
.into_iter() .into_iter()
.map(|mut component| { .map(|mut component| {
@@ -238,14 +238,14 @@ pub fn map_protocol_changes(
transaction_entry transaction_entry
.component_changes .component_changes
.extend(formated_components); .extend(formatted_components);
transaction_entry transaction_entry
.entity_changes .entity_changes
.extend(tx_changes.entity_changes); .extend(tx_changes.entity_changes);
}); });
// Balance changes are gathered by the `StoreDelta` based on `TokenExchange`, etc. creating // Balance changes are gathered by the `StoreDelta` based on `TokenExchange`, etc. creating
// `BalanceDeltas`. We essentially just process the changes that occured to the `store` this // `BalanceDeltas`. We essentially just process the changes that occurred to the `store` this
// block. Then, these balance changes are merged onto the existing map of tx contract changes, // block. Then, these balance changes are merged onto the existing map of tx contract changes,
// inserting a new one if it doesn't exist. // inserting a new one if it doesn't exist.
balance_store balance_store