Skip to content

Commit

Permalink
feat: add query.GenericFilteredPaginated (backport #12253) (#12371)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored and dudong2 committed Jul 26, 2022
1 parent a3898d1 commit 7dc3dda
Show file tree
Hide file tree
Showing 11 changed files with 295 additions and 170 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Display go version
run: go version
- run: make build
Expand All @@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Display go version
run: go version
- name: Install runsim
Expand All @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand All @@ -80,7 +80,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Unshallow
run: git fetch --prune --unshallow
- name: Create release
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- name: Display go version
run: go version
- name: install tparse
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- uses: technote-space/[email protected]
id: git_diff
with:
Expand All @@ -67,7 +67,7 @@ jobs:
# - uses: actions/checkout@v3
# - uses: actions/[email protected]
# with:
# go-version: 1.15
# go-version: 1.16
# - name: Display go version
# run: go version
# - uses: technote-space/[email protected]
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.15
go-version: 1.16
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
# - uses: actions/checkout@v3
# - uses: actions/[email protected]
# with:
# go-version: 1.15
# go-version: 1.16
# - uses: technote-space/[email protected]
# id: git_diff
# with:
Expand Down
146 changes: 73 additions & 73 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
The LBM SDK is a framework for building blockchain applications in Golang.
It is being used to build [`LBM`](https://github.com/line/lbm), the first implementation of the LINE Blockchain Mainnet.
This is forked from [`cosmos-sdk`](https://github.com/cosmos/cosmos-sdk) at 2021-03-15.

**WARNING**: Breaking changes may occur because this repository is still in the pre-release development phase.

**Note**: Requires [Go 1.15+](https://golang.org/dl/)

## What is the LBM SDK?

The [LBM SDK](https://github.com/line/lbm-sdk) is an open-source framework for building multi-asset public Proof-of-Stake (PoS) <df value="blockchain">blockchains</df>, as well as permissioned Proof-Of-Authority (PoA) blockchains. Blockchains built with the Cosmos SDK are generally referred to as **application-specific blockchains**.

The purpose of `LBM SDK` is to succeed to [the objectives of `Cosmos sdk`](https://github.com/cosmos/cosmos-sdk/blob/master/docs/intro/overview.md) while helping develop blockchains that requires faster transaction processing to be applied to reality.

## Why the LBM SDK?

Cosmos-sdk, which created the philosophy of application-specific blockchain, established its status as a framework for various application blockchain development. `LBM SDK` inherited this `cosmos-sdk` philosophy, addressing slow transaction processing problem that was difficult for cosmos-sdk to apply in real financial system. Real financial systems require thousands of processing performance per second, with LBM SDK adding many performance improvements to meet that demand.
The following work was carried out to improve performance.

- Concurrent checkTx, deliverTx
- Use [fastcache](https://github.com/victoriametrics/fastcache) for inter block cache and nodedb cache of iavl
- Lock granularity enhancement

In addition, the following functions were added:

- Virtual machine using `cosmwasm` that makes smart contracts possible to be executed
- Use [Ostracon](https://github.com/line/ostracon) as consensus engine instead of `Tendermint`


To learn about Cosmos SDK, please refer [Cosmos SDK Docs](https://github.com/cosmos/cosmos-sdk/blob/master/docs).

## Quick Start

**Build**
```
make build
make install
# you can see the version!
simd version
```

&nbsp;

**Configure**
```
zsh init_node.sh sim {N(number of nodes), default=1}
```

&nbsp;

**Run**
```
# run a node
simd start --home ~/.simapp/simapp0
# If N is larger than 1, run all node.
# simapp0 has other nodes as persistant_peer.
simd start --home ~/.simapp/simapp0
simd start --home ~/.simapp/simapp1
...
```

**Visit with your browser**
* Node: http://localhost:26657/
* REST: http://localhost:1317/swagger-ui/

&nbsp;

## Follow Guide
You can refer the sample tx commands at [here](docs/sample-tx.md)
Test different commands to get a broader understanding of lbm

The LBM SDK is a framework for building blockchain applications in Golang.
It is being used to build [`LBM`](https://github.com/line/lbm), the first implementation of the LINE Blockchain Mainnet.
This is forked from [`cosmos-sdk`](https://github.com/cosmos/cosmos-sdk) at 2021-03-15.

**WARNING**: Breaking changes may occur because this repository is still in the pre-release development phase.

**Note**: Requires [Go 1.15+](https://golang.org/dl/)

## What is the LBM SDK?

The [LBM SDK](https://github.com/line/lbm-sdk) is an open-source framework for building multi-asset public Proof-of-Stake (PoS) <df value="blockchain">blockchains</df>, as well as permissioned Proof-Of-Authority (PoA) blockchains. Blockchains built with the Cosmos SDK are generally referred to as **application-specific blockchains**.

The purpose of `LBM SDK` is to succeed to [the objectives of `Cosmos sdk`](https://github.com/cosmos/cosmos-sdk/blob/master/docs/intro/overview.md) while helping develop blockchains that requires faster transaction processing to be applied to reality.

## Why the LBM SDK?

Cosmos-sdk, which created the philosophy of application-specific blockchain, established its status as a framework for various application blockchain development. `LBM SDK` inherited this `cosmos-sdk` philosophy, addressing slow transaction processing problem that was difficult for cosmos-sdk to apply in real financial system. Real financial systems require thousands of processing performance per second, with LBM SDK adding many performance improvements to meet that demand.
The following work was carried out to improve performance.

- Concurrent checkTx, deliverTx
- Use [fastcache](https://github.com/victoriametrics/fastcache) for inter block cache and nodedb cache of iavl
- Lock granularity enhancement

In addition, the following functions were added:

- Virtual machine using `cosmwasm` that makes smart contracts possible to be executed
- Use [Ostracon](https://github.com/line/ostracon) as consensus engine instead of `Tendermint`


To learn about Cosmos SDK, please refer [Cosmos SDK Docs](https://github.com/cosmos/cosmos-sdk/blob/master/docs).

## Quick Start

**Build**
```
make build
make install
# you can see the version!
simd version
```

&nbsp;

**Configure**
```
zsh init_node.sh sim {N(number of nodes), default=1}
```

&nbsp;

**Run**
```
# run a node
simd start --home ~/.simapp/simapp0
# If N is larger than 1, run all node.
# simapp0 has other nodes as persistant_peer.
simd start --home ~/.simapp/simapp0
simd start --home ~/.simapp/simapp1
...
```

**Visit with your browser**
* Node: http://localhost:26657/
* REST: http://localhost:1317/swagger-ui/

&nbsp;

## Follow Guide
You can refer the sample tx commands at [here](docs/sample-tx.md)
Test different commands to get a broader understanding of lbm

2 changes: 1 addition & 1 deletion contrib/images/simd-dlv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15-alpine AS build
FROM golang:1.16-alpine AS build
RUN apk add build-base git linux-headers libc-dev
RUN go install github.com/go-delve/delve/cmd/dlv@latest
WORKDIR /work
Expand Down
2 changes: 1 addition & 1 deletion contrib/images/simd-env/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15-alpine AS build
FROM golang:1.16-alpine AS build
RUN apk add build-base git linux-headers
WORKDIR /work
COPY go.mod go.sum /work/
Expand Down
2 changes: 1 addition & 1 deletion contrib/rosetta/node/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15-alpine as build
FROM golang:1.16-alpine as build

RUN apk add --no-cache tar

Expand Down
2 changes: 1 addition & 1 deletion contrib/rosetta/rosetta-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.15-alpine as build
FROM golang:1.16-alpine as build

RUN apk add git gcc libc-dev --no-cache

Expand Down
Loading

0 comments on commit 7dc3dda

Please sign in to comment.