|
6 | 6 | # This file configures which data feeds to monitor and which on-chain |
7 | 7 | # contracts to send the data to. |
8 | 8 |
|
| 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 | + |
9 | 20 | # A list of all unique off-chain Data Streams to subscribe to. |
10 | 21 | # Find more feed IDs in the Chainlink documentation. |
11 | 22 | feeds: |
12 | 23 | - name: 'ETH/USD' |
13 | 24 | feedId: '0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782' |
14 | | - - name: 'AVAX/USD' |
15 | | - feedId: '0x0003735a076086936550bd316b18e5e27fc4f280ee5b6530ce68f5aad404c796' |
16 | 25 |
|
17 | 26 | # --- Default Global Settings --- |
18 | 27 |
|
@@ -68,15 +77,27 @@ targetChains: |
68 | 77 | # TODO: Replace with the address of your deployed contract on Fuji |
69 | 78 | address: '0xYourDataStreamsFeedContractOnFuji' # <-- CHANGED |
70 | 79 | # The name of the function to call on your smart contract |
71 | | - functionName: 'updateReport' |
| 80 | + functionName: 'verifyAndUpdateReport' |
72 | 81 | # 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'] |
74 | 85 | # The ABI for the target function, required to encode the transaction |
75 | 86 | abi: |
76 | | - - name: 'updateReport' |
| 87 | + - name: 'verifyAndUpdateReport' |
77 | 88 | type: 'function' |
78 | 89 | stateMutability: 'nonpayable' |
79 | 90 | 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 | + } |
82 | 101 | outputs: [] |
| 102 | + # Off-chain verification must run so keep skipVerify false (default) |
| 103 | + skipVerify: false |
0 commit comments