Skip to content

Commit 28668aa

Browse files
authored
Apply Biome formatting fixes (#8)
1 parent 347fa2b commit 28668aa

File tree

79 files changed

+457
-414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+457
-414
lines changed

scripts/localDeployer/index.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,13 @@ const verifyDeployed = async (addresses: Address[]) => {
6363
})
6464

6565
if (bytecode === undefined) {
66-
// biome-ignore lint/suspicious/noConsoleLog: it is oke
6766
console.log(`CONTRACT ${address} NOT DEPLOYED!!!`)
6867
process.exit(1)
6968
}
7069
}
7170
}
7271

7372
const main = async () => {
74-
// biome-ignore lint/suspicious/noConsoleLog: []
7573
console.log("========== DEPLOYING V0.7 CORE CONTRACTS ==========")
7674

7775
const txs: Hex[] = []
@@ -103,7 +101,6 @@ const main = async () => {
103101
)
104102
console.log("Deployed EntryPointSimulations")
105103

106-
// biome-ignore lint/suspicious/noConsoleLog: []
107104
console.log("========== DEPLOYING V0.6 CORE CONTRACTS ==========")
108105

109106
txs.push(
@@ -124,7 +121,6 @@ const main = async () => {
124121
)
125122
console.log("Deployed SimpleAccountFactory v0.6")
126123

127-
// biome-ignore lint/suspicious/noConsoleLog: []
128124
console.log("========== DEPLOYING SAFE CONTRACTS ==========")
129125

130126
txs.push(
@@ -205,7 +201,6 @@ const main = async () => {
205201
)
206202
console.log("Deployed Safe Multi Send Call Only")
207203

208-
// biome-ignore lint/suspicious/noConsoleLog: []
209204
console.log("========== DEPLOYING BICONOMY CONTRACTS ==========")
210205

211206
await anvilClient.setCode({
@@ -250,7 +245,6 @@ const main = async () => {
250245
)
251246
console.log("Deployed Biconomy Default Fallback Handler")
252247

253-
// biome-ignore lint/suspicious/noConsoleLog: []
254248
console.log("========== DEPLOYING KERNEL CONTRACTS ==========")
255249

256250
txs.push(
@@ -280,7 +274,6 @@ const main = async () => {
280274
)
281275
console.log("Deployed Kernel Factory")
282276

283-
// biome-ignore lint/suspicious/noConsoleLog: []
284277
console.log("========== MISC ==========")
285278

286279
await anvilClient.setCode({

src/cli/alto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env node
22
import * as sentry from "@sentry/node"
33
import dotenv from "dotenv"
4+
import { HttpRequestError, InternalRpcError, TimeoutError } from "viem"
45
import yargs from "yargs"
56
import { hideBin } from "yargs/helpers"
67
import {
@@ -16,7 +17,6 @@ import {
1617
serverOptions
1718
} from "./config"
1819
import { registerCommandToYargs } from "./util"
19-
import { TimeoutError, HttpRequestError, InternalRpcError } from "viem"
2020

2121
// Load environment variables from .env file
2222
if (process.env.DOTENV_CONFIG_PATH) {

src/cli/config/options.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import type {
77
IExecutorArgsInput,
88
IGasEstimationArgsInput,
99
ILogArgsInput,
10+
IMempoolArgsInput,
1011
IOptionsInput,
1112
IRpcArgsInput,
12-
IServerArgsInput,
13-
IMempoolArgsInput
13+
IServerArgsInput
1414
} from "./bundler"
1515

1616
export const bundlerOptions: CliCommandOptions<IBundlerArgsInput> = {
@@ -100,7 +100,8 @@ export const bundlerOptions: CliCommandOptions<IBundlerArgsInput> = {
100100
default: "20000000"
101101
},
102102
"max-bundle-count": {
103-
description: "Maximum number of UserOperations to include in a bundle. If not set, no limit is applied.",
103+
description:
104+
"Maximum number of UserOperations to include in a bundle. If not set, no limit is applied.",
104105
type: "number",
105106
require: false
106107
},
@@ -407,7 +408,14 @@ export const compatibilityOptions: CliCommandOptions<ICompatibilityArgsInput> =
407408
description:
408409
"Indicates what type of chain the bundler is running on",
409410
type: "string",
410-
choices: ["default", "op-stack", "arbitrum", "hedera", "mantle", "abstract"],
411+
choices: [
412+
"default",
413+
"op-stack",
414+
"arbitrum",
415+
"hedera",
416+
"mantle",
417+
"abstract"
418+
],
411419
default: "default"
412420
},
413421
"legacy-transactions": {

src/cli/customTransport.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import type { Logger } from "@alto/utils"
22
import {
3+
type Hex,
34
type HttpTransport,
45
type HttpTransportConfig,
56
RpcRequestError,
67
UrlRequiredError,
78
createTransport,
8-
toFunctionSelector,
99
getAbiItem,
1010
isHex,
1111
slice,
12-
Hex
12+
toFunctionSelector
1313
} from "viem"
1414
import { formatAbiItem, rpc } from "viem/utils"
1515
import {

src/cli/deploySimulationsContract.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1+
import type { IOptions } from "@alto/cli"
12
import {
23
DETERMINISTIC_DEPLOYER_TRANSACTION,
3-
pimlicoEntrypointSimulationsV7DeployBytecode,
44
pimlicoEntrypointSimulationsSalt,
5+
pimlicoEntrypointSimulationsV7DeployBytecode,
56
pimlicoEntrypointSimulationsV8DeployBytecode
67
} from "@alto/types"
8+
import type { Logger } from "pino"
79
import {
10+
http,
811
type Chain,
9-
createWalletClient,
10-
getContractAddress,
1112
type Hex,
12-
http,
1313
type PublicClient,
1414
type Transport,
15-
concat
15+
concat,
16+
createWalletClient,
17+
getContractAddress
1618
} from "viem"
1719
import type { CamelCasedProperties } from "./parseArgs"
18-
import type { IOptions } from "@alto/cli"
19-
import type { Logger } from "pino"
2020

2121
const isContractDeployed = async ({
2222
publicClient,

src/cli/handler.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ import {
66
} from "@alto/utils"
77
import { Registry } from "prom-client"
88
import {
9+
type CallParameters,
910
type Chain,
1011
createPublicClient,
1112
createWalletClient,
12-
formatEther,
1313
fallback,
14-
type CallParameters,
14+
formatEther,
1515
publicActions
1616
} from "viem"
17-
import type { IOptionsInput } from "./config"
18-
import { customTransport } from "./customTransport"
19-
import { setupServer } from "./setupServer"
2017
import { type AltoConfig, createConfig } from "../createConfig"
21-
import { parseArgs } from "./parseArgs"
22-
import { deploySimulationsContract } from "./deploySimulationsContract"
2318
import { getSenderManager } from "../executor/senderManager/index"
2419
import { UtilityWalletMonitor } from "../executor/utilityWalletMonitor"
20+
import type { IOptionsInput } from "./config"
21+
import { customTransport } from "./customTransport"
22+
import { deploySimulationsContract } from "./deploySimulationsContract"
23+
import { parseArgs } from "./parseArgs"
24+
import { setupServer } from "./setupServer"
2525

2626
const preFlightChecks = async (config: AltoConfig): Promise<void> => {
2727
for (const entrypoint of config.entrypoints) {

src/cli/instrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { FastifyInstrumentation } from "@opentelemetry/instrumentation-fastify"
44
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http"
55
import { PinoInstrumentation } from "@opentelemetry/instrumentation-pino"
66
import { UndiciInstrumentation } from "@opentelemetry/instrumentation-undici"
7-
import { ViemInstrumentation } from "@pimlico/opentelemetry-instrumentation-viem"
87
import { NodeSDK } from "@opentelemetry/sdk-node"
98
import {
109
ParentBasedSampler,
1110
type Sampler,
1211
SamplingDecision
1312
} from "@opentelemetry/sdk-trace-base"
1413
import { SemanticAttributes } from "@opentelemetry/semantic-conventions"
14+
import { ViemInstrumentation } from "@pimlico/opentelemetry-instrumentation-viem"
1515

1616
class CustomSampler implements Sampler {
1717
shouldSample(

src/cli/parseArgs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type IOptions, optionArgsSchema, type IOptionsInput } from "@alto/cli"
1+
import { type IOptions, type IOptionsInput, optionArgsSchema } from "@alto/cli"
22
import { fromZodError } from "zod-validation-error"
33

44
type CamelCase<S extends string> =

src/cli/setupServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import type { InterfaceValidator } from "@alto/types"
1212
import type { Metrics } from "@alto/utils"
1313
import type { Registry } from "prom-client"
1414
import type { AltoConfig } from "../createConfig"
15-
import { validateAndRefillWallets } from "../executor/senderManager/validateAndRefill"
1615
import { flushOnStartUp } from "../executor/senderManager/flushOnStartUp"
16+
import { validateAndRefillWallets } from "../executor/senderManager/validateAndRefill"
1717
import { createMempoolStore } from "../store/createMempoolStore"
1818

1919
const getReputationManager = (

src/createConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { IOptions } from "@alto/cli"
2-
import type { CamelCasedProperties } from "./cli/parseArgs"
32
import type { Bindings, ChildLoggerOptions, Logger } from "pino"
43
import type { Chain, PublicClient, Transport, WalletClient } from "viem"
4+
import type { CamelCasedProperties } from "./cli/parseArgs"
55

66
export type AltoConfig = Readonly<CamelCasedProperties<IOptions>> & {
77
getLogger: <ChildCustomLevels extends string = never>(

0 commit comments

Comments
 (0)