Skip to content

hats-finance/Kintsu-0x7d70f9442af3a9a0a734fa6a1b4857f25518e9d2

 
 

Repository files navigation

Audit Competition for Kintsu

This repository is for the audit competition for the Kintsu. To participate, submit your findings only by using the on-chain submission process on https://app.hats.finance/vulnerability .

How to participate

Good luck!

We look forward to seeing your findings.


Kintsu Contracts

Installing Environment Pre-reqs

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

cargo install --force --locked cargo-contract

rustup toolchain install stable-2023-12-28
rustup component add rust-src --toolchain stable-2023-12-28

Building

After installing the pre-reqs above (especially the required stable toolchain), contracts must be compiled. This is done with the build-all.sh script which can be run simply via the following command. All contract artifacts will be saved in the deployments directory.

pnpm run build

Testing (Integration Tests)

The integration tests are located in contract_tests and can be run simply via the following command.

pnpm test

Deploying

At least 2 nomination pools must exist on the target network prior to deployment. Contract deployment is configured with the following environment variables.

  • CHAIN - target chain name
  • ACCOUNT_URI - deployer account
pnpm run deploy

About

Smart contracts for Kintsu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 91.7%
  • TypeScript 7.8%
  • Shell 0.5%