Skip to content

Commit 5a54101

Browse files
authored
Merge pull request #27 from dev-dist/chainlink-contract-on-chain-verification-config
chore: updated config-chainlink-example for on-chain verification
2 parents 9d1f365 + 3eee509 commit 5a54101

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

config-chainlink-example.yml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@
66
# This file configures which data feeds to monitor and which on-chain
77
# contracts to send the data to.
88

9+
# -----------------------------------------------------------------
10+
# ✅ ON-CHAIN VERIFICATION CONFIG (LINK-FUNDED FEED) ✅
11+
# -----------------------------------------------------------------
12+
# • The transmitter sends the raw report and fee-token parameter to
13+
# `verifyAndUpdateReport(bytes unverifiedReportData, bytes parameterPayload)`.
14+
# • No REPORT_VERIFIER role assignment is required; the function is public.
15+
# • The DataStreamsFeed contract MUST hold enough LINK (fee token) so the
16+
# VerifierProxy can deduct the verification fee from the contract.
17+
# Native gas for storage is, as always, paid by the caller.
18+
# -----------------------------------------------------------------
19+
920
# A list of all unique off-chain Data Streams to subscribe to.
1021
# Find more feed IDs in the Chainlink documentation.
1122
feeds:
1223
- name: 'ETH/USD'
1324
feedId: '0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782'
14-
- name: 'AVAX/USD'
15-
feedId: '0x0003735a076086936550bd316b18e5e27fc4f280ee5b6530ce68f5aad404c796'
1625

1726
# --- Default Global Settings ---
1827

@@ -68,15 +77,27 @@ targetChains:
6877
# TODO: Replace with the address of your deployed contract on Fuji
6978
address: '0xYourDataStreamsFeedContractOnFuji' # <-- CHANGED
7079
# The name of the function to call on your smart contract
71-
functionName: 'updateReport'
80+
functionName: 'verifyAndUpdateReport'
7281
# The arguments the Transmitter should prepare and send to the function
73-
functionArgs: ['reportVersion', 'verifiedReport']
82+
# • rawReport = the unverified payload from the Data Streams websocket
83+
# • parameterPayload = abi.encode(address feeToken) – produced automatically by the transmitter
84+
functionArgs: ['rawReport', 'parameterPayload']
7485
# The ABI for the target function, required to encode the transaction
7586
abi:
76-
- name: 'updateReport'
87+
- name: 'verifyAndUpdateReport'
7788
type: 'function'
7889
stateMutability: 'nonpayable'
7990
inputs:
80-
- { "internalType": "uint16", "name": "reportVersion", "type": "uint16" }
81-
- { "internalType": "bytes", "name": "verifiedReportData", "type": "bytes" }
91+
- {
92+
'internalType': 'bytes',
93+
'name': 'unverifiedReportData',
94+
'type': 'bytes',
95+
}
96+
- {
97+
'internalType': 'bytes',
98+
'name': 'parameterPayload',
99+
'type': 'bytes',
100+
}
82101
outputs: []
102+
# Off-chain verification must run so keep skipVerify false (default)
103+
skipVerify: false

0 commit comments

Comments
 (0)