Skip to content

Commit 87c9d14

Browse files
authored
ReceiverTemplate update (#3252)
* apply CL style guide + Receiver update * llm gen
1 parent 1613468 commit 87c9d14

File tree

7 files changed

+541
-240
lines changed

7 files changed

+541
-240
lines changed

reports/llms-report.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"startedAt": "2025-12-09T14:01:39.057Z",
2+
"startedAt": "2025-12-09T18:04:32.521Z",
33
"siteBase": "https://docs.chain.link",
44
"sections": [
55
{
66
"section": "cre-go",
77
"pagesProcessed": 83,
88
"outputPath": "src/content/cre/llms-full-go.txt",
9-
"bytes": 651615,
10-
"prevBytes": 651595,
11-
"deltaBytes": 20
9+
"bytes": 655973,
10+
"prevBytes": 651615,
11+
"deltaBytes": 4358
1212
},
1313
{
1414
"section": "cre-ts",
1515
"pagesProcessed": 78,
1616
"outputPath": "src/content/cre/llms-full-ts.txt",
17-
"bytes": 607118,
18-
"prevBytes": 607098,
19-
"deltaBytes": 20
17+
"bytes": 611476,
18+
"prevBytes": 607118,
19+
"deltaBytes": 4358
2020
},
2121
{
2222
"section": "vrf",
@@ -86,9 +86,9 @@
8686
"section": "resources",
8787
"pagesProcessed": 12,
8888
"outputPath": "src/content/resources/llms-full.txt",
89-
"bytes": 338205,
89+
"bytes": 339715,
9090
"prevBytes": 338205,
91-
"deltaBytes": 0
91+
"deltaBytes": 1510
9292
},
9393
{
9494
"section": "architecture-overview",
@@ -123,5 +123,5 @@
123123
"deltaBytes": 0
124124
}
125125
],
126-
"finishedAt": "2025-12-09T14:01:43.169Z"
126+
"finishedAt": "2025-12-09T18:04:37.177Z"
127127
}

src/content/cre/getting-started/part-4-writing-onchain-go.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ Here is the source code for the contract so you can see how it works:
3939
// SPDX-License-Identifier: MIT
4040
pragma solidity ^0.8.19;
4141
42-
import { IReceiverTemplate } from "./keystone/IReceiverTemplate.sol";
42+
import { ReceiverTemplate } from "./ReceiverTemplate.sol";
4343
4444
/**
4545
* @title CalculatorConsumer (Testing Version)
4646
* @notice This contract receives reports from a CRE workflow and stores the results of a calculation onchain.
47-
* @dev This version uses IReceiverTemplate without configuring any security checks, making it compatible
47+
* @dev This version uses ReceiverTemplate without configuring any security checks, making it compatible
4848
* with the mock Forwarder used during simulation. All permission fields remain at their default zero
4949
* values (disabled).
5050
*/
51-
contract CalculatorConsumer is IReceiverTemplate {
51+
contract CalculatorConsumer is ReceiverTemplate {
5252
// Struct to hold the data sent in a report from the workflow
5353
struct CalculatorResult {
5454
uint256 offchainValue;
@@ -66,13 +66,13 @@ contract CalculatorConsumer is IReceiverTemplate {
6666
6767
/**
6868
* @dev The constructor doesn't set any security checks.
69-
* The IReceiverTemplate parent constructor will initialize all permission fields to zero (disabled).
69+
* The ReceiverTemplate parent constructor will initialize all permission fields to zero (disabled).
7070
*/
7171
constructor() {}
7272
7373
/**
7474
* @notice Implements the core business logic for processing reports.
75-
* @dev This is called automatically by IReceiverTemplate's onReport function after security checks.
75+
* @dev This is called automatically by ReceiverTemplate's onReport function after security checks.
7676
*/
7777
function _processReport(bytes calldata report) internal override {
7878
// Decode the report bytes into our CalculatorResult struct

src/content/cre/getting-started/part-4-writing-onchain-ts.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ Here is the source code for the contract so you can see how it works:
3939
// SPDX-License-Identifier: MIT
4040
pragma solidity ^0.8.19;
4141
42-
import { IReceiverTemplate } from "./keystone/IReceiverTemplate.sol";
42+
import { ReceiverTemplate } from "./ReceiverTemplate.sol";
4343
4444
/**
4545
* @title CalculatorConsumer (Testing Version)
4646
* @notice This contract receives reports from a CRE workflow and stores the results of a calculation onchain.
47-
* @dev This version uses IReceiverTemplate without configuring any security checks, making it compatible
47+
* @dev This version uses ReceiverTemplate without configuring any security checks, making it compatible
4848
* with the mock Forwarder used during simulation. All permission fields remain at their default zero
4949
* values (disabled).
5050
*/
51-
contract CalculatorConsumer is IReceiverTemplate {
51+
contract CalculatorConsumer is ReceiverTemplate {
5252
// Struct to hold the data sent in a report from the workflow
5353
struct CalculatorResult {
5454
uint256 offchainValue;
@@ -66,13 +66,13 @@ contract CalculatorConsumer is IReceiverTemplate {
6666
6767
/**
6868
* @dev The constructor doesn't set any security checks.
69-
* The IReceiverTemplate parent constructor will initialize all permission fields to zero (disabled).
69+
* The ReceiverTemplate parent constructor will initialize all permission fields to zero (disabled).
7070
*/
7171
constructor() {}
7272
7373
/**
7474
* @notice Implements the core business logic for processing reports.
75-
* @dev This is called automatically by IReceiverTemplate's onReport function after security checks.
75+
* @dev This is called automatically by ReceiverTemplate's onReport function after security checks.
7676
*/
7777
function _processReport(bytes calldata report) internal override {
7878
// Decode the report bytes into our CalculatorResult struct

0 commit comments

Comments
 (0)