Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/purple-feet-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@smartcontractkit/operator-ui': minor
---

add new job type: BlockHeaderFeeder
14 changes: 14 additions & 0 deletions src/screens/Job/JobView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,20 @@ const JOB_PAYLOAD__SPEC = gql`
evmChainID
fromAddresses
}
... on BlockHeaderFeederSpec {
coordinatorV1Address
coordinatorV2Address
waitBlocks
lookbackBlocks
blockhashStoreAddress
batchBlockhashStoreAddress
pollPeriod
runTimeout
evmChainID
fromAddresses
getBlockhashesBatchSize
storeBlockhashesBatchSize
}
... on BootstrapSpec {
contractID
relay
Expand Down
22 changes: 22 additions & 0 deletions src/screens/Job/generateJobDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,28 @@ export const generateJobDefinition = (
}

break
case 'BlockHeaderFeederSpec':
values = {
...extractJobFields(job),
...extractSpecFields(
job.spec,
'coordinatorV1Address',
'coordinatorV2Address',
'waitBlocks',
'lookbackBlocks',
'blockhashStoreAddress',
'batchBlockhashStoreAddress',
'pollPeriod',
'runTimeout',
'evmChainID',
'fromAddresses',
'getBlockhashesBatchSize',
'storeBlockhashesBatchSize',
),
...extractObservationSourceField(job),
}
break

case 'BootstrapSpec':
values = {
...extractJobFields(job),
Expand Down