Phoenix Bonds -- a new bonding mechanism for LiNEAR.
To learn more about how Phoenix Bonds works, please visit: https://docs.linearprotocol.org/phoenix-bonds
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.
npm i
- To run all tests:
make test
- To run contract unit tests:
make test-unit
- To run integration tests:
make test-integration
- Build release artifact:
make
- Create a
config.js
file underbin/env/{env}
folder - Deploy and initialize contract:
./bin/cli.js deploy --env {env}
- Deploy code only:
./bin/cli.js deploy --noInit --env {env}