diff --git a/Makefile b/Makefile index 3fead79..47657ba 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ SHELL = /bin/bash test: ./tests/test_locking_funds.sh ./tests/test_auction_flow.sh + ./tests/test_auction_flow_verified.sh utest: go test ./... diff --git a/README.md b/README.md index 22a667b..47aa641 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,15 @@ This repository contains the base chain implementation that Colinear's compute m ## Development -### Requirements +### Build Requirements - `ignite` - [CLI Installation Guide](https://docs.ignite.com/guide/install) - `go >= 1.18` + +### Integration Test Requirements + - `bash` +- `bc` - `jq` ### Setup @@ -60,7 +64,7 @@ go test ./path/to/package ### Integration Tests -Integration tests use a custom bash testing framework that interacts with a running instance of the chain. +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: diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index caf6445..7169f0f 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -215,6 +215,16 @@ paths: in: query required: false type: boolean + - name: pagination.reverse + description: >- + reverse is set to true if results are to be returned in the + descending order. + + + Since: cosmos-sdk 0.43 + in: query + required: false + type: boolean tags: - Query '/colinearcore/colinearcore/auction/{index}': diff --git a/tests/test_auction_flow_verified.sh b/tests/test_auction_flow_verified.sh index c10941f..575435e 100755 --- a/tests/test_auction_flow_verified.sh +++ b/tests/test_auction_flow_verified.sh @@ -7,6 +7,15 @@ HERE=$(cd $(dirname $BASH_SOURCE) && pwd) source $HERE/testutil.sh +colineard tx colinearcore unlock-all-funds -y --from alice \ +| swallow "Unlock all funds before proceeding" + +colineard tx colinearcore lock-funds 550000000 -y --from alice \ + | expect_success "Re-lock funds (Alice)" + +colineard tx colinearcore lock-funds 550000000 -y --from bob \ + | expect_success "Re-lock funds (Bob)" + colineard tx colinearcore new-auction asdf asdf 200 uusdc $(now + 3700) \ $ALICE \ -y --from bob \