Skip to content

Commit

Permalink
chore(sdk): lint (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnons authored Dec 5, 2024
1 parent d633f97 commit 812ff94
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/sdk/src/eth/account-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { AccountProcessorState } from './account-processor-state.js'
import { fixEmptyKey, formatEthData, TypedEvent } from './eth.js'
import { EthChainId } from '@sentio/chain'
import { ServerError, Status } from 'nice-grpc'
import { metricsStorage } from '@sentio/runtime'
import { getHandlerName, proxyProcessor } from '../utils/metrics.js'

const ERC20_INTERFACE = ERC20__factory.createInterface()
Expand Down
3 changes: 1 addition & 2 deletions packages/sdk/src/eth/base-processor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AsyncLocalStorage } from 'node:async_hooks'
import { BaseContract, DeferredTopicFilter, LogDescription, TransactionResponseParams } from 'ethers'

import { BoundContractView, ContractContext, ContractView, GlobalContext } from './context.js'
Expand All @@ -19,7 +18,7 @@ import { PromiseOrVoid } from '../core/promises.js'
import { ServerError, Status } from 'nice-grpc'
import { fixEmptyKey, formatEthData, RichBlock, Trace, TypedCallTrace, TypedEvent } from './eth.js'
import sha3 from 'js-sha3'
import { ListStateStorage, metricsStorage } from '@sentio/runtime'
import { ListStateStorage } from '@sentio/runtime'
import { EthChainId } from '@sentio/chain'
import { getHandlerName, proxyProcessor } from '../utils/metrics.js'
import { ALL_ADDRESS } from '../core/index.js'
Expand Down
3 changes: 1 addition & 2 deletions packages/sdk/src/utils/metrics.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AsyncLocalStorage } from 'node:async_hooks'
import { processMetrics, metricsStorage } from '@sentio/runtime'
import { Attributes } from '@opentelemetry/api'
import { metricsStorage } from '@sentio/runtime'

export function getHandlerName() {
return metricsStorage.getStore() || 'unknown'
Expand Down

0 comments on commit 812ff94

Please sign in to comment.