Register information on blockchain using CRE
Generated by Scaffold CRE.
project.yaml ← CRE project settings (RPC endpoints)
secrets.yaml ← Secrets template (fill in before deploying)
.cre/template.yaml ← CRE project metadata
workflow-register/ ← Workflow folder
main.ts ← Entry point
workflow.ts ← Workflow logic (edit this)
package.json
tsconfig.json
workflow.yaml ← Deploy targets
config/
config.staging.json ← Staging config values
config.production.json ← Production config values
- Bun >= 1.2.21
- Chainlink CRE CLI
Run from the project root directory:
bun install --cwd ./workflow-registerSearch for TODO in the source files to find every placeholder.
- Fill in EVM function argument types and values in
workflow.ts - Update
encodeAbiParametersto match your consumer contract'sonReportparam types
Run from the project root directory:
cre workflow simulate workflow-register --target staging-settingsOn .env, define CRE_ETH_PRIVATE_KEY.
Use --broadcast to submit the transaction:
cre workflow simulate workflow-register --target=staging-settings --broadcastgit init
git add .
git commit -m "Initial scaffold: Register"
git branch -M main
git remote add origin https://github.com/<your-username>/<your-repo>.git
git push -u origin main