Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Runnable reference implementations for hazBase. This repository provides end-to-end examples of deployment, wiring, governance, and emergency flows.

License

Notifications You must be signed in to change notification settings

hazbase/references

Repository files navigation

hazbase-references

Runnable reference implementations for hazBase.

This repository demonstrates how hazBase is actually deployed and wired in practice. While hazbase/contracts focuses on Solidity source code, this repository focuses on execution-level workflows using @hazbase/kit + ethers.

This repository is intentionally UI-free and focuses on:

  • recommended deployment order
  • required wiring (roles, addresses, dependencies)
  • governance and timelock execution flows
  • emergency pause and recovery propagation

Each folder corresponds 1:1 with a documentation page and is designed to be directly runnable on a testnet.

πŸ“˜ Documentation: https://docs.hazbase.com/reference/compliant-market


Prerequisites

  • Node.js 18+
  • An RPC endpoint (e.g. Sepolia)
  • A funded private key on the target network (testnet recommended)

Install

npm install

Configure env

Copy .env.example to .env and fill in required values.

cp .env.example .env

⚠️ Never commit real private keys.
.env is intentionally gitignored.


Run an example

Examples are executed using tsx (TypeScript runtime).

npm run ex:compliant:deploy
npm run ex:compliant:wire
npm run ex:compliant:flows

Each step is designed to be executed independently and inspected on-chain.


Structure

hazbase-references/
 compliant-market/
 README.md # scenario-specific explanation
 scripts/
 00-deploy.ts # contract deployment
 01-wire.ts # role & dependency wiring
 02-flows.ts # pause / governance flow examples
 package.json
 tsconfig.json
 .env.example

Notes

  • This repository is a reference, not a production template.
  • It may evolve faster than hazbase/contracts.
  • Treat scripts as executable documentation.
  • Secrets must never be committed to git.

About

Runnable reference implementations for hazBase. This repository provides end-to-end examples of deployment, wiring, governance, and emergency flows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /