Skip to content

Commit

Permalink
Client: Refactor Engine API (#3291)
Browse files Browse the repository at this point in the history
* Move engine.ts to dedicated engine API code folder

* Move types to dedicated types.ts file

* Move validators to a dedicated validators.ts file

* Add dedicated util.ts file, move first two methods

* Move next two methods to util.ts

* Move last remaining methods to util.ts

* Move CLConnectionManager from generic util folder to engine API RPC folder

* Adjust test paths

* Move validator initialization in Engine API constructor to dedicated private method

* Some additional initValidators() structuring and documentation

* Move util.ts to dedicated util folder, rename to generic.ts

* Adjust paths

* Add call-specific util files

* Delete accidentally re-checked in util.ts file

* Move first two methods to dedicated per-call util files

* Move remaining per-call methods to dedicated util files

* Add new validate4844BlobVersionedHashes helper

* Better newPayload documentation

* Better forkchoiceUpdate documentation, additional structuring

* Additional documentation and Engine API doc references for remaining API calls
  • Loading branch information
holgerd77 authored Feb 21, 2024
1 parent 9994875 commit e1221c9
Show file tree
Hide file tree
Showing 12 changed files with 756 additions and 495 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Hardfork } from '@ethereumjs/common'

import { Event } from '../../types'
import { short, timeDiff } from '../../util'
import { Event } from '../../../types'
import { short, timeDiff } from '../../../util'

import type { Config } from '../../config'
import type { Config } from '../../../config'
import type {
ExecutionPayloadV1,
ExecutionPayloadV2,
ExecutionPayloadV3,
ForkchoiceResponseV1,
ForkchoiceStateV1,
PayloadStatusV1,
} from '../modules/engine'
} from './types'
import type { Block } from '@ethereumjs/block'
import type winston from 'winston'

Expand Down
Loading

0 comments on commit e1221c9

Please sign in to comment.