misc test, api, readme updates

master
michael 2022-09-14 05:43:17 +00:00
parent 78945f2bc0
commit edba09b124
4 changed files with 26 additions and 2 deletions

View File

@ -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 ./...

View File

@ -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:

View File

@ -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}':

View File

@ -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 \