Skip to content

Commit

Permalink
♻️ Regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
William Cory authored and William Cory committed Jul 2, 2024
1 parent 858dd04 commit 76cd14a
Show file tree
Hide file tree
Showing 25 changed files with 88 additions and 89 deletions.
10 changes: 5 additions & 5 deletions packages/procedures/src/call/callProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { beforeEach, describe, expect, it } from 'bun:test'
import { setAccountHandler } from '@tevm/actions'
import { callProcedure } from './callProcedure.js'
import type { CallJsonRpcRequest } from './CallJsonRpcRequest.js'
import { encodeFunctionData, numberToHex, parseEther } from '@tevm/utils'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { ERC20 } from '@tevm/contract'
import { encodeFunctionData, numberToHex, parseEther } from '@tevm/utils'
import type { CallJsonRpcRequest } from './CallJsonRpcRequest.js'
import { callProcedure } from './callProcedure.js'

let client: BaseClient

Expand Down
4 changes: 2 additions & 2 deletions packages/procedures/src/createHandlers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { beforeEach, describe, expect, it } from 'bun:test'
import { createBaseClient } from '@tevm/base-client'
import { createHandlers, type RequestHandlers } from './createHandlers.js'
import { ERC20 } from '@tevm/contract'
import { numberToHex } from '@tevm/utils'
import { type RequestHandlers, createHandlers } from './createHandlers.js'

const ERC20_ADDRESS = `0x${'69'.repeat(20)}` as const

describe('createHandlers', () => {
let client
let client: any
let handlers: RequestHandlers

beforeEach(() => {
Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/dumpstate/dumpStateProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { beforeEach, describe, expect, it } from 'bun:test'
import { setAccountHandler } from '@tevm/actions'
import { dumpStateProcedure } from './dumpStateProcedure.js'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { DumpStateJsonRpcRequest } from './DumpStateJsonRpcRequest.js'
import { dumpStateProcedure } from './dumpStateProcedure.js'

let client: BaseClient

Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/eth/blockNumberProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { blockNumberProcedure } from './blockNumberProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { EthBlockNumberJsonRpcRequest } from './EthJsonRpcRequest.js'
import { blockNumberProcedure } from './blockNumberProcedure.js'

let client: BaseClient

Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/eth/chainIdProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { chainIdProcedure } from './chainIdProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { EthChainIdJsonRpcRequest } from './EthJsonRpcRequest.js'
import { chainIdProcedure } from './chainIdProcedure.js'

let client: BaseClient

Expand Down
4 changes: 2 additions & 2 deletions packages/procedures/src/eth/ethBlobBaseFeeProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { ethBlobBaseFeeJsonRpcProcedure } from './ethBlobBaseFeeProcedure.js'

let client: BaseClient
Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/eth/ethCallProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethCallProcedure } from './ethCallProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { EthCallJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethCallProcedure } from './ethCallProcedure.js'

let client: BaseClient

Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/eth/ethCoinbaseProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethCoinbaseJsonRpcProcedure } from './ethCoinbaseProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { EthCoinbaseJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethCoinbaseJsonRpcProcedure } from './ethCoinbaseProcedure.js'

let client: BaseClient

Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/eth/ethEstimateGasProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethEstimateGasJsonRpcProcedure } from './ethEstimateGasProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { EthEstimateGasJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethEstimateGasJsonRpcProcedure } from './ethEstimateGasProcedure.js'

let client: BaseClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethGetBlockByHashJsonRpcProcedure } from './ethGetBlockByHashProcedure.js'
import type { EthGetBlockByHashJsonRpcRequest } from './EthJsonRpcRequest.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { callHandler, mineHandler } from '@tevm/actions'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { bytesToHex, numberToHex } from '@tevm/utils'
import type { EthGetBlockByHashJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethGetBlockByHashJsonRpcProcedure } from './ethGetBlockByHashProcedure.js'

let client: BaseClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethGetBlockByNumberJsonRpcProcedure } from './ethGetBlockByNumberProcedure.js'
import type { EthGetBlockByNumberJsonRpcRequest } from './EthJsonRpcRequest.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { mineHandler } from '@tevm/actions'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { EthGetBlockByNumberJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethGetBlockByNumberJsonRpcProcedure } from './ethGetBlockByNumberProcedure.js'

let client: BaseClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethGetBlockTransactionCountByHashJsonRpcProcedure } from './ethGetBlockTransactionCountByHashProcedure.js'
import type { EthGetBlockTransactionCountByHashJsonRpcRequest } from './EthJsonRpcRequest.js'
import { bytesToHex, numberToHex } from '@tevm/utils'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { Block } from '@tevm/block'
import { bytesToHex, numberToHex } from '@tevm/utils'
import type { Vm } from '@tevm/vm'
import type { EthGetBlockTransactionCountByHashJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethGetBlockTransactionCountByHashJsonRpcProcedure } from './ethGetBlockTransactionCountByHashProcedure.js'

let client: BaseClient
let vm: Vm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethGetBlockTransactionCountByNumberJsonRpcProcedure } from './ethGetBlockTransactionCountByNumberProcedure.js'
import type { EthGetBlockTransactionCountByNumberJsonRpcRequest } from './EthJsonRpcRequest.js'
import { numberToHex } from '@tevm/utils'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { Block } from '@tevm/block'
import { numberToHex } from '@tevm/utils'
import type { Vm } from '@tevm/vm'
import type { EthGetBlockTransactionCountByNumberJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethGetBlockTransactionCountByNumberJsonRpcProcedure } from './ethGetBlockTransactionCountByNumberProcedure.js'

let client: BaseClient
let vm: Vm
Expand Down
10 changes: 5 additions & 5 deletions packages/procedures/src/eth/ethGetFilterChangesProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient, type Filter } from '@tevm/base-client'
import { ethGetFilterChangesProcedure } from './ethGetFilterChangesProcedure.js'
import type { EthGetFilterChangesJsonRpcRequest } from './EthJsonRpcRequest.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, type Filter, createBaseClient } from '@tevm/base-client'
import { Block } from '@tevm/block'
import { createImpersonatedTx, FeeMarketEIP1559Transaction } from '@tevm/tx'
import { createImpersonatedTx } from '@tevm/tx'
import { EthjsAddress } from '@tevm/utils'
import type { EthGetFilterChangesJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethGetFilterChangesProcedure } from './ethGetFilterChangesProcedure.js'

let client: BaseClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { ethUninstallFilterJsonRpcProcedure } from './ethUninstallFilterProcedure.js'
import type { EthUninstallFilterJsonRpcRequest } from './EthJsonRpcRequest.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { type Hex } from '@tevm/utils'
import type { EthUninstallFilterJsonRpcRequest } from './EthJsonRpcRequest.js'
import { ethUninstallFilterJsonRpcProcedure } from './ethUninstallFilterProcedure.js'

let client: BaseClient
const filterId: Hex = '0x1'
Expand Down
7 changes: 3 additions & 4 deletions packages/procedures/src/eth/gasPriceProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { gasPriceProcedure } from './gasPriceProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { EthGasPriceJsonRpcRequest } from './EthJsonRpcRequest.js'
import { numberToHex } from '@tevm/utils'
import { gasPriceProcedure } from './gasPriceProcedure.js'

let client: BaseClient

Expand Down
8 changes: 4 additions & 4 deletions packages/procedures/src/eth/getBalanceProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { getBalanceProcedure } from './getBalanceProcedure.js'
import { setAccountHandler, mineHandler } from '@tevm/actions'
import { beforeEach, describe, expect, it } from 'bun:test'
import { mineHandler, setAccountHandler } from '@tevm/actions'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { type Address, numberToHex } from '@tevm/utils'
import type { EthGetBalanceJsonRpcRequest } from './EthJsonRpcRequest.js'
import { getBalanceProcedure } from './getBalanceProcedure.js'

let client: BaseClient
let accountAddress: Address
Expand Down
8 changes: 4 additions & 4 deletions packages/procedures/src/eth/getCodeProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { getCodeProcedure } from './getCodeProcedure.js'
import { mineHandler, deployHandler } from '@tevm/actions'
import { beforeEach, describe, expect, it } from 'bun:test'
import { deployHandler, mineHandler } from '@tevm/actions'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { SimpleContract } from '@tevm/test-utils'
import { type Address } from '@tevm/utils'
import type { EthGetCodeJsonRpcRequest } from './EthJsonRpcRequest.js'
import { getCodeProcedure } from './getCodeProcedure.js'

let client: BaseClient
let contractAddress: Address
Expand Down
10 changes: 5 additions & 5 deletions packages/procedures/src/eth/getStorageAtProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { numberToHex, type Address } from '@tevm/utils'
import { beforeEach, describe, expect, it } from 'bun:test'
import { deployHandler, mineHandler } from '@tevm/actions'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { SimpleContract } from '@tevm/test-utils'
import { getStorageAtProcedure } from './getStorageAtProcedure.js'
import { mineHandler, deployHandler } from '@tevm/actions'
import { type Address, numberToHex } from '@tevm/utils'
import type { EthGetStorageAtJsonRpcRequest } from './EthJsonRpcRequest.js'
import { getStorageAtProcedure } from './getStorageAtProcedure.js'

let client: BaseClient
let contractAddress: Address
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { getAccountProcedure } from './getAccountProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { setAccountHandler } from '@tevm/actions'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { GetAccountJsonRpcRequest } from './GetAccountJsonRpcRequest.js'
import { getAccountProcedure } from './getAccountProcedure.js'

let client: BaseClient

Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/loadstate/loadStateProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { loadStateProcedure } from './loadStateProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { LoadStateJsonRpcRequest } from './LoadStateJsonRpcRequest.js'
import { loadStateProcedure } from './loadStateProcedure.js'

let client: BaseClient

Expand Down
6 changes: 3 additions & 3 deletions packages/procedures/src/mine/mineProcedure.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, expect, it, beforeEach } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { mineProcedure } from './mineProcedure.js'
import { beforeEach, describe, expect, it } from 'bun:test'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import type { MineJsonRpcRequest } from './MineJsonRpcRequest.js'
import { mineProcedure } from './mineProcedure.js'

let client: BaseClient

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { beforeEach, describe, expect, it } from 'bun:test'
import { createBaseClient, type BaseClient } from '@tevm/base-client'
import { EthjsAddress, bytesToHex, keccak256, numberToHex } from '@tevm/utils'
import { setAccountProcedure } from './setAccountProcedure.js'
import { type BaseClient, createBaseClient } from '@tevm/base-client'
import { ERC20 } from '@tevm/contract'
import { EthjsAddress, bytesToHex, keccak256, numberToHex } from '@tevm/utils'
import type { SetAccountJsonRpcRequest } from './SetAccountJsonRpcRequest.js'
import { setAccountProcedure } from './setAccountProcedure.js'

let client: BaseClient
const ERC20_ADDRESS = `0x${'69'.repeat(20)}` as const
Expand Down
4 changes: 2 additions & 2 deletions packages/procedures/src/utils/blockToJsonRpcBlock.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { describe, expect, it } from 'bun:test'
import { createBaseClient } from '@tevm/base-client'
import { blockToJsonRpcBlock } from './blockToJsonRpcBlock.js'
import { getBlockFromRpc } from '@tevm/blockchain'
import { transports } from '@tevm/test-utils'
import { optimism } from '@tevm/common'
import { transports } from '@tevm/test-utils'
import { blockToJsonRpcBlock } from './blockToJsonRpcBlock.js'

describe('blockToJsonRpcBlock', async () => {
const client = createBaseClient({ common: optimism })
Expand Down
8 changes: 4 additions & 4 deletions packages/procedures/src/utils/txToJsonRpcTx.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { describe, expect, it } from 'bun:test'
import { txToJsonRpcTx } from './txToJsonRpcTx.js'
import { FeeMarketEIP1559Transaction } from '@tevm/tx'
import { EthjsAddress } from '@tevm/utils'
import { createBaseClient } from '@tevm/base-client'
import { getBlockFromRpc } from '@tevm/blockchain'
import { transports } from '@tevm/test-utils'
import { optimism } from '@tevm/common'
import { transports } from '@tevm/test-utils'
import { FeeMarketEIP1559Transaction } from '@tevm/tx'
import { EthjsAddress } from '@tevm/utils'
import { txToJsonRpcTx } from './txToJsonRpcTx.js'

describe(txToJsonRpcTx.name, () => {
it('should work', async () => {
Expand Down

0 comments on commit 76cd14a

Please sign in to comment.