This repository constitutes the smart contracts for tokenized reinsurance of existing insurances. Do note that it is still in development and many features are planned to be added/changed.
To set up the repository, follow the following steps:
- Git clone the repository: Git clone the repository by running the command
git clone https://github.com/codebase-reinsurance/reinsurance-contracts.git
-
Install Rust, Solana, and Anchor on your local: Take a look at the Anchor Installation Guide for more details.
-
Building the repository: Run the command
anchor build --arch sbf
to build the contracts
- Generate a Solana keypair: To generate a Solana keypair, run the command:
solana-keygen new
- Deploying the contracts: To deploy the contracts on a local Solana validator,
anchor deploy
Voila, now you have successfully deployed the repository on a local Solana validator.
Once, you have generated a Solana keypair and the repository built and setup on your local, you can run the typescript test suite using the command
anchor test