# @cremafinance/chai-solana

Chai helpers for Solana tests.

- Address/`PublicKey` comparisons
- `TokenAmount` comparisons
- Transaction envelope validations

## Documentation

Detailed information on how to build on Cream can be found on the [Cream developer documentation website](https://docs.cream.finance/docs/developing/overview).

Automatically generated TypeScript documentation can be found [on GitHub pages](https://CremaFinance.github.io/clmm-common/).

## Installation

```
yarn add @cremafinance/chai-solana
```

## Examples

The best way to learn how to use `chai-solana` is by example. View examples in the integration tests here:

- [Cream Merkle Distributor](https://github.com/CremaFinance/merkle-distributor)
- [Cream Voter Snapshots](https://github.com/CremaFinance/snapshots)

## Common Issues

### Invalid Chai property: eventually

Downgrade to Chai v4.3.4. Versions after this changed the way Chai bundled its dependencies, causing issues in how `chai-as-promised` is installed.

## License

Apache 2.0
