forked from Finschia/finschia-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add query.GenericFilteredPaginated (backport #12253) (#12371)
- Loading branch information
1 parent
a3898d1
commit 7dc3dda
Showing
11 changed files
with
295 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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] | ||
|
@@ -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] | ||
|
@@ -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] | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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] | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
|
||
| ||
|
||
**Configure** | ||
``` | ||
zsh init_node.sh sim {N(number of nodes), default=1} | ||
``` | ||
|
||
| ||
|
||
**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/ | ||
|
||
| ||
|
||
## 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 | ||
``` | ||
|
||
| ||
|
||
**Configure** | ||
``` | ||
zsh init_node.sh sim {N(number of nodes), default=1} | ||
``` | ||
|
||
| ||
|
||
**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/ | ||
|
||
| ||
|
||
## 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
Oops, something went wrong.