Skip to content

Phoenix Bonds -- a new bonding mechanism built with LiNEAR

License

Notifications You must be signed in to change notification settings

LasaKaru/phoenix-bonds

 
 

Repository files navigation

phoenix-bonds

Phoenix Bonds -- a new bonding mechanism for LiNEAR.

To learn more about how Phoenix Bonds works, please visit: https://docs.linearprotocol.org/phoenix-bonds

Contracts

The Phoenix Bonds smart contracts are implemented with NEAR Rust SDK. The core contract is located in contracts/phoenix-bonds, and a mock LiNEAR contract is made for testing various scenarios via simulation test.

The code has been audited by BlockSec. According to BlockSec's auditing report, no issues were found, and a few recommendations and notes were reported and have been acknowledged.

Test

  • npm i
  • To run all tests: make test
  • To run contract unit tests: make test-unit
  • To run integration tests: make test-integration

Build & Deploy

  • Build release artifact: make
  • Create a config.js file under bin/env/{env} folder
  • Deploy and initialize contract: ./bin/cli.js deploy --env {env}
  • Deploy code only: ./bin/cli.js deploy --noInit --env {env}

About

Phoenix Bonds -- a new bonding mechanism built with LiNEAR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 59.1%
  • TypeScript 30.7%
  • JavaScript 9.0%
  • Makefile 1.1%
  • Shell 0.1%