Skip to content

Commit

Permalink
indexer-common: Various small type usage and formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fordN committed May 16, 2023
1 parent 451b11c commit 9c20e03
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Sequelize } from 'sequelize'
import gql from 'graphql-tag'
import { ethers } from 'ethers'
import {
connectDatabase,
connectContracts,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Sequelize } from 'sequelize'
import gql from 'graphql-tag'
import { ethers } from 'ethers'
import {
connectDatabase,
connectContracts,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Sequelize } from 'sequelize'
import gql from 'graphql-tag'
import { ethers } from 'ethers'
import {
connectDatabase,
connectContracts,
Expand Down
12 changes: 8 additions & 4 deletions packages/indexer-common/src/indexer-management/allocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class AllocationManager {
): Promise<AllocationResult[]> {
return pMap(
actions,
async (action) => {
async (action: Action) => {
try {
return await this.confirmActionExecution(receipt, action)
} catch (error) {
Expand Down Expand Up @@ -215,9 +215,13 @@ export class AllocationManager {
}

async prepareTransactions(actions: Action[]): Promise<PopulateTransactionResult[]> {
return await pMap(actions, async (action) => await this.prepareTransaction(action), {
stopOnError: false,
})
return await pMap(
actions,
async (action: Action) => await this.prepareTransaction(action),
{
stopOnError: false,
},
)
}
async prepareTransaction(action: Action): Promise<PopulateTransactionResult> {
const logger = this.logger.child({ action: action.id })
Expand Down

0 comments on commit 9c20e03

Please sign in to comment.