michael
5dfbc0d96f
versions newer than 0.23.0 make breaking changes. migrate later. |
||
---|---|---|
.github/workflows | ||
app | ||
cmd/colineard | ||
docs | ||
proto/colinearcore | ||
tests | ||
testutil | ||
x/colinearcore | ||
.gitignore | ||
Dockerfile | ||
Makefile | ||
README.md | ||
config.yml | ||
dev.Dockerfile | ||
go.mod | ||
go.sum | ||
sdk-readme.md |
README.md
Colinear Chain
This repository contains the base chain implementation that Colinear's compute marketplace uses as a settlement layer.
Technical Documentation
Component | Docs Path |
---|---|
Leasing & settlement module | x/colinearcore |
In-memory bid database | x/colinearcore/memdb |
Hardware provider auditing | x/colinearcore/audit |
Validators
Requirements
docker >= 20.10.*
Development
Build Requirements
ignite == 0.23.0
(see the setup section)go >= 1.18
Integration Test Requirements
bash
bc
jq
Setup
To get ignite 0.23.0:
curl https://get.ignite.com/cli@v0.23.0?type=script! | bash
...or download it from the GitHub release page.
Then, move it anywhere on $PATH
.
To build the chain:
ignite chain build
To serve the chain:
ignite chain serve
Unit Tests
Unit tests use Go's built-in testing system. To run all unit tests:
make utest
To test any specific subpackage:
go test ./path/to/package
Integration Tests
Integration tests use a custom-built testing framework that interacts with a running instance of the chain.
Before running any tests, make sure that the dev chain is running:
ignite chain serve
To run all integration tests:
make test
Integration tests can also be run individually:
./tests/<specific_test>.sh