Skip to content

Commit

Permalink
Merge branch 'develop' into suggestions-swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsam committed Apr 14, 2021
2 parents edec3a6 + 007913d commit e5ef323
Show file tree
Hide file tree
Showing 714 changed files with 356,417 additions and 11,192 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
client/docs/swagger-ui/* linguist-vendored
client/docs/swagger-ui/* linguist-vendored
*.ts linguist-generated
*.js linguist-generated
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
COMMIT := $(shell git log -1 --format='%H')
PACKAGES_NOSIMULATION=$(shell go list ./...)
PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
BINDIR ?= $(GOPATH)/bin
SIMAPP = ./app

Expand Down Expand Up @@ -131,14 +131,14 @@ update-swagger-docs: statik
test: test-unit
test-all: test-unit test-race test-cover

test-unit:
@VERSION=$(VERSION) go test -mod=readonly $(PACKAGES_NOSIMULATION)
test-unit:
@VERSION=$(VERSION) go test -mod=readonly -tags='norace' $(PACKAGES_NOSIMULATION)

test-race:
@VERSION=$(VERSION) go test -mod=readonly -race $(PACKAGES_NOSIMULATION)

test-cover:
@go test -mod=readonly -timeout 30m -race -coverprofile=coverage.txt -covermode=atomic -tags='ledger test_ledger_mock' ./...
@go test -mod=readonly -timeout 30m -coverprofile=coverage.txt -covermode=atomic -tags='norace ledger test_ledger_mock' ./...

test-build: build
@go test -mod=readonly -p 4 `go list ./cli_test/...` -tags=cli_test -v
Expand Down Expand Up @@ -214,12 +214,13 @@ format:
### Protobuf ###
###############################################################################

proto-all: proto-tools proto-gen proto-swagger-gen
proto-all: proto-gen proto-swagger-gen

proto-gen:
@./scripts/protocgen.sh
docker run --rm -v $(CURDIR):/workspace --workdir /workspace bharvest/liquidity-proto-gen sh ./scripts/protocgen.sh
go mod tidy

proto-swagger-gen:
@./scripts/protoc-swagger-gen.sh
docker run --rm -v $(CURDIR):/workspace --workdir /workspace bharvest/liquidity-proto-gen sh ./scripts/protoc-swagger-gen.sh

.PHONY: proto-all proto-gen proto-swagger-gen
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ For detailed Mechanism, you can find on our recent [Paper](doc/LiquidityModuleLi
| Requirement | Notes |
| ----------- | ---------------- |
| Go version | Go1.15 or higher |
| Cosmos-SDK | v0.42.1 |
| Cosmos-SDK | v0.42.4 |

### Get Liquidity Module source code
```bash
Expand Down Expand Up @@ -76,9 +76,9 @@ Usage:
liquidityd tx liquidity [command]

Available Commands:
create-pool Create new liquidity pool with the specified pool type and deposit coins
deposit Deposit coins to the specified liquidity pool
swap Swap offer coin with demand coin from the specified liquidity pool with the given order price
create-pool Create liquidity pool and deposit coins
deposit Deposit coins to a liquidity pool
swap Swap offer coin with demand coin from the liquidity pool with the given order price
withdraw Withdraw pool coin from the specified liquidity pool
```

Expand All @@ -96,16 +96,16 @@ Usage:
liquidityd query liquidity [command]

Available Commands:
batch Query details of a liquidity pool batch of the pool
deposit Query for the deposit message on the batch of the liquidity pool specified pool-id and msg-index
deposits Query for all deposit messages on the batch of the liquidity pool specified pool-id
params Query the current liquidity parameters information
batch Query details of a liquidity pool batch
deposit Query the deposit messages on the liquidity pool batch
deposits Query all deposit messages of the liquidity pool batch
params Query the values set as liquidity parameters
pool Query details of a liquidity pool
pools Query for all liquidity pools
swap Query for the swap message on the batch of the liquidity pool specified pool-id and msg-index
swaps Query for all swap messages on the batch of the liquidity pool specified pool-id
withdraw Query for the withdraw message on the batch of the liquidity pool specified pool-id and msg-index
withdraws Query for all withdraw messages on the batch of the liquidity pool specified pool-id
swaps Query all swap messages in the liquidity pool batch
withdraw Query the withdraw messages in the liquidity pool batch
withdraws Query for all withdraw messages on the liquidity pool batch
```

#### A detailed document on client can be found here. [client.md](doc/client.md)
Expand Down
Loading

0 comments on commit e5ef323

Please sign in to comment.