2022-12-12 15:43:22 -08:00
|
|
|
# Cosmwasm Wormhole Contracts
|
2022-06-16 09:48:01 -07:00
|
|
|
|
2022-12-12 15:43:22 -08:00
|
|
|
**NOTE**: _This process is only Linux host compatible at this time._
|
2022-06-16 09:48:01 -07:00
|
|
|
|
|
|
|
## Build Contracts
|
|
|
|
|
2022-12-12 15:43:22 -08:00
|
|
|
The following command can be used to build optimized cosmwasm contracts via Docker.
|
2022-06-16 09:48:01 -07:00
|
|
|
|
|
|
|
```console
|
2022-12-12 15:43:22 -08:00
|
|
|
wormhole/cosmwasm $ make artifacts
|
2022-06-16 09:48:01 -07:00
|
|
|
```
|
|
|
|
|
2022-12-12 15:43:22 -08:00
|
|
|
Upon completion, the compiled bytecode for cosmwasm contracts will be placed
|
2022-06-16 09:48:01 -07:00
|
|
|
into the `artifacts` directory.
|
|
|
|
|
|
|
|
## Run tests
|
|
|
|
|
2022-12-12 15:43:22 -08:00
|
|
|
You can run the cargo unit tests.
|
2022-06-16 09:48:01 -07:00
|
|
|
|
|
|
|
```console
|
2022-12-12 15:43:22 -08:00
|
|
|
wormhole/cosmwasm $ cargo test --workspace --locked
|
2022-06-16 09:48:01 -07:00
|
|
|
```
|