Skip to content

Commit 1c7d170

Browse files
authored
Merge pull request #35 from smartcontractkit/VRF-415-31732-vrf-automatic-bhs-backwards-mode
Vrf 415 31732 vrf automatic bhs backwards mode
2 parents b9690eb + b01b712 commit 1c7d170

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.changeset/purple-feet-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@smartcontractkit/operator-ui': minor
3+
---
4+
5+
add new job type: BlockHeaderFeeder

src/screens/Job/JobView.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ const JOB_PAYLOAD__SPEC = gql`
108108
evmChainID
109109
fromAddresses
110110
}
111+
... on BlockHeaderFeederSpec {
112+
coordinatorV1Address
113+
coordinatorV2Address
114+
waitBlocks
115+
lookbackBlocks
116+
blockhashStoreAddress
117+
batchBlockhashStoreAddress
118+
pollPeriod
119+
runTimeout
120+
evmChainID
121+
fromAddresses
122+
getBlockhashesBatchSize
123+
storeBlockhashesBatchSize
124+
}
111125
... on BootstrapSpec {
112126
contractID
113127
relay

src/screens/Job/generateJobDefinition.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,28 @@ export const generateJobDefinition = (
242242
}
243243

244244
break
245+
case 'BlockHeaderFeederSpec':
246+
values = {
247+
...extractJobFields(job),
248+
...extractSpecFields(
249+
job.spec,
250+
'coordinatorV1Address',
251+
'coordinatorV2Address',
252+
'waitBlocks',
253+
'lookbackBlocks',
254+
'blockhashStoreAddress',
255+
'batchBlockhashStoreAddress',
256+
'pollPeriod',
257+
'runTimeout',
258+
'evmChainID',
259+
'fromAddresses',
260+
'getBlockhashesBatchSize',
261+
'storeBlockhashesBatchSize',
262+
),
263+
...extractObservationSourceField(job),
264+
}
265+
break
266+
245267
case 'BootstrapSpec':
246268
values = {
247269
...extractJobFields(job),

0 commit comments

Comments
 (0)