mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-04 22:14:25 -08:00
misc test, api, readme updates
This commit is contained in:
1
Makefile
1
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 ./...
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
10
docs/static/openapi.yml
vendored
10
docs/static/openapi.yml
vendored
@@ -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}':
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user