Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Register

Register information on blockchain using CRE

Generated by Scaffold CRE.

Project structure

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

Prerequisites

1. Install dependencies

Run from the project root directory:

bun install --cwd ./workflow-register

2. Fill in the TODOs

Search for TODO in the source files to find every placeholder.

  • Fill in EVM function argument types and values in workflow.ts
  • Update encodeAbiParameters to match your consumer contract's onReport param types

3. Simulate the workflow

Run from the project root directory:

cre workflow simulate workflow-register --target staging-settings

4. Send a real transaction on chain

On .env, define CRE_ETH_PRIVATE_KEY. Use --broadcast to submit the transaction:

cre workflow simulate workflow-register --target=staging-settings --broadcast

Push to GitHub

git 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

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages