CRE Workflows HubCRE Workflows Hub
  • Workflows
  • Chainlink repo
  • Sign in
CRE Workflows Hub
  • Workflows
  • Docs
  • Contribute workflow
  • Chainlink CRE Templates

A registry for Chainlink Runtime Environment workflows. List and share your CRE workflows without waiting for upstream approval.

Back

Created by Chainlink Labs

Bring Your Own Data (NAV & PoR)

A template for bringing your own off-chain Proof-of-Reserve (PoR) or Net-Asset-Value (NAV) data on-chain with the Chainlink Runtime Environment (CRE).

View on GitHub
TypeScript
Go

What This Template Does This template provides an end-to-end starting point for bringing your own off-chain Proof-of-Reserve (PoR) or Net-Asset-Value (NAV) data on-chain with the Chainlink Runtime Environment (CRE).

The template consists of two components:

Contracts (deployed on multiple chains)

  • DataFeedsCache contract that receives data on-chain
  • DecimalAggregatorProxy proxy contract for PoR data stored in the DataFeedsCache contract
  • BundleAggregatorProxy proxy contract for NAV data stored in the DataFeedsCache contract

CRE Workflows

  • Golang workflows targeting the Golang CRE SDK: PoR Workflow (Proof-of-Reserve), NAV Workflow (Net-Asset-Value)
  • TypeScript workflows targeting the TypeScript CRE SDK: PoR Workflow (Proof-of-Reserve), NAV Workflow (Net-Asset-Value)

Key Technologies:

  • CRE (Chainlink Runtime Environment) - Orchestrates workflows with DON consensus

Getting Started You can build with the CRE SDK in either Golang or TypeScript. See the Go README and TypeScript README on GitHub for detailed instructions.

Security Considerations

  • This is a demo project - Not production-ready
  • DecimalAggregatorProxy contract is demo contract - Not audited and not production-ready
  • Use your own RPC for stability - For stable deployment and chainwrite operations it is advised to use your own private RPCs
  • Secrets hygiene – Keep real secrets out of version control; use secure secret managers for .env values.

Install the CRE CLI to use this template

You can use the command below or download the latest CLI release on GitHub.

curl -sSL https://cre.chain.link/install.sh | bash
Author
Chainlink Labs
LicenseMIT

Disclaimer

This template represents an educational example to use a Chainlink system, product, or service and is provided to demonstrate how to interact with Chainlink's systems, products, and services to integrate them into your own. This template is provided "AS IS" and "AS AVAILABLE" without warranties of any kind, it has not been audited, and it may be missing key checks or error handling to make the usage of the system, product or service more clear. Do not use this example in a production environment without completing your own audits and application of best practices. Neither Chainlink Labs, the Chainlink Foundation, nor Chainlink node operators are responsible for unintended outputs that are generated due to errors in code.