Skip to content

Commit 8bb999d

Browse files
authored
Merge pull request #937 from zemyblue/backporting_main
Backport main changes (#900, #911, #912, #922, #923, #934, #939, #933, #934, #938)
2 parents 11966d1 + a6ca9e7 commit 8bb999d

File tree

104 files changed

+4943
-1105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+4943
-1105
lines changed

.github/workflows/tag.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
make release
1919
env:
2020
GORELEASER_MOUNT_CONFIG: true
21-
GORELEASER_IMAGE: line/goreleaserx-wasm:1.0.0-0.10.0
21+
GORELEASER_IMAGE: line/goreleaserx:1.13.1-1.19.3
2222
GORELEASER_RELEASE: true
23-
BUILD_TAGS: static
2423
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+59
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,62 @@ builds:
1111
- amd64
1212
env:
1313
- CGO_ENABLED=1
14+
- CC=x86_64-linux-gnu-gcc
15+
- CXX=x86_64-linux-gnu-g++
16+
flags:
17+
- -mod=readonly
18+
- -trimpath
19+
- "-tags={{ .Env.BUILD_TAGS }}"
20+
ldflags:
21+
- "{{ .Env.BUILD_VARS }}"
22+
23+
- id: simd-linux-arm64
24+
main: ./simapp/simd
25+
binary: simd
26+
goos:
27+
- linux
28+
goarch:
29+
- arm64
30+
env:
31+
- CGO_ENABLED=1
32+
- CC=aarch64-linux-gnu-gcc
33+
- CXX=aarch64-linux-gnu-g++
34+
flags:
35+
- -mod=readonly
36+
- -trimpath
37+
- "-tags={{ .Env.BUILD_TAGS }}"
38+
ldflags:
39+
- "{{ .Env.BUILD_VARS }}"
40+
41+
- id: simd-darwin-amd64
42+
main: ./simapp/simd
43+
binary: simd
44+
goos:
45+
- darwin
46+
goarch:
47+
- amd64
48+
env:
49+
- CGO_ENABLED=1
50+
- CC=o64-clang
51+
- CXX=o64-clang++
52+
flags:
53+
- -mod=readonly
54+
- -trimpath
55+
- "-tags={{ .Env.BUILD_TAGS }}"
56+
ldflags:
57+
- "{{ .Env.BUILD_VARS }}"
58+
59+
- id: simd-darwin-arm64
60+
main: ./simapp/simd
61+
binary: simd
62+
goos:
63+
- darwin
64+
goarch:
65+
- arm64
66+
env:
67+
- CGO_ENABLED=1
68+
- CC=oa64-clang
69+
- CXX=oa64-clang++
1470
flags:
1571
- -mod=readonly
1672
- -trimpath
@@ -23,6 +79,9 @@ archives:
2379
id: bin-archive
2480
builds:
2581
- simd-linux-amd64
82+
- simd-linux-arm64
83+
- simd-darwin-amd64
84+
- simd-darwin-arm64
2685
format: tar.gz
2786
name_template: "simd_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
2887
wrap_in_directory: true

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,23 @@ Ref: https://keepachangelog.com/en/1.0.0/
4040
### Features
4141

4242
### Improvements
43+
* (x/collection,token) [\#900](https://github.com/line/lbm-sdk/pull/900) Add uri for MsgModify and deprecate the old ones
44+
* (x/foundation) [\#912](https://github.com/line/lbm-sdk/pull/912) Introduce censorship into x/foundation
45+
* (x/foundation) [\#933](https://github.com/line/lbm-sdk/pull/933) Clean up x/foundation apis
46+
* (x/collection) [\#938](https://github.com/line/lbm-sdk/pull/938) Add progress log into x/collection import-genesis
4347

4448
### Bug Fixes
4549
* (swagger) [\#898](https://github.com/line/lbm-sdk/pull/898) fix a bug not added `lbm.tx.v1beta1.Service/GetBlockWithTxs` in swagger
50+
* (x/collection) [\#911](https://github.com/line/lbm-sdk/pull/911) Add missing command(TxCmdModify) for CLI
51+
* (x/foundation) [\#922](https://github.com/line/lbm-sdk/pull/922) Propagate events in x/foundation through sdk.Results
4652

4753
### Removed
4854

4955
### Breaking Changes
56+
* (proto) [\#923](https://github.com/line/lbm-sdk/pull/923) deprecate broadcast mode `block`
5057

5158
### Build, CI
59+
* (ci, build) [\#901](https://github.com/line/lbm-sdk/pull/901) Update release pipeline to match non-wasm env
5260

5361
### Document Updates
62+
* (x/foundation) [\#934](https://github.com/line/lbm-sdk/pull/934) Update permlinks in x/foundation documents

Dockerfile

+1-10
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,11 @@ COPY ./go.mod /go/src/github.com/line/lbm-sdk/go.mod
3030
COPY ./go.sum /go/src/github.com/line/lbm-sdk/go.sum
3131
RUN go mod download
3232

33-
# See https://github.com/line/wasmvm/releases
34-
# See https://github.com/line/wasmvm/releases
35-
ADD https://github.com/line/wasmvm/releases/download/v1.0.0-0.10.0/libwasmvm_static.x86_64.a /lib/libwasmvm_static.x86_64.a
36-
ADD https://github.com/line/wasmvm/releases/download/v1.0.0-0.10.0/libwasmvm_static.aarch64.a /lib/libwasmvm_static.aarch64.a
37-
RUN sha256sum /lib/libwasmvm_static.aarch64.a | grep bc3db72ba32f34ad88ceb1d20479411bd7f50ccd6a5ca50cc8ca462a561e6189
38-
RUN sha256sum /lib/libwasmvm_static.x86_64.a | grep 352fa5de5f9dba66f0a38082541d3e63e21394fee3e577ea35e0906294c61276
39-
40-
RUN ln -s /lib/libwasmvm_static.${ARCH}.a /usr/lib/libwasmvm_static.a
41-
4233
# Add source files
4334
COPY . .
4435

4536
# install simapp, remove packages
46-
RUN BUILD_TAGS=static make build CGO_ENABLED=1
37+
RUN make build CGO_ENABLED=1
4738

4839
# Final image
4940
FROM alpine:edge

Makefile

+4-7
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ mocks: $(MOCKS_DIR)
152152
mockgen -source=types/handler.go -package mocks -destination tests/mocks/types_handler.go
153153
mockgen -package mocks -destination tests/mocks/grpc_server.go github.com/gogo/protobuf/grpc Server
154154
mockgen -package mocks -destination tests/mocks/tendermint_tendermint_libs_log_DB.go github.com/line/ostracon/libs/log Logger
155+
mockgen -source=x/stakingplus/expected_keepers.go -package testutil -destination x/stakingplus/testutil/expected_keepers_mocks.go
155156
.PHONY: mocks
156157

157158
$(MOCKS_DIR):
@@ -576,14 +577,12 @@ libsodium:
576577
GORELEASER_CONFIG ?= .goreleaser.yml
577578

578579
GORELEASER_BUILD_LDF = $(ldflags)
579-
GORELEASER_BUILD_LDF += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
580580
GORELEASER_BUILD_LDF := $(strip $(GORELEASER_BUILD_LDF))
581581

582582
GORELEASER_SKIP_VALIDATE ?= false
583583
GORELEASER_DEBUG ?= false
584-
GORELEASER_IMAGE ?= line/goreleaserx-wasm:1.0.0-0.10.0
584+
GORELEASER_IMAGE ?= line/goreleaserx:1.13.1-1.19.3
585585
GORELEASER_RELEASE ?= false
586-
#GO_MOD_NAME := $(shell go list -m 2>/dev/null)
587586
GO_MOD_NAME := github.com/line/lbm-sdk
588587

589588
ifeq ($(GORELEASER_RELEASE),true)
@@ -613,6 +612,7 @@ release-snapshot:
613612
--skip-validate=$(GORELEASER_SKIP_VALIDATE) \
614613
--debug=$(GORELEASER_DEBUG) \
615614
--rm-dist
615+
616616
release:
617617
docker run --rm \
618618
-e BUILD_TAGS="$(build_tags)" \
@@ -629,7 +629,4 @@ release:
629629
--debug=$(GORELEASER_DEBUG) \
630630
--rm-dist
631631

632-
build-static: go.sum
633-
CGO_ENABLED=1 go build -mod=readonly -tags "$(build_tags)" -ldflags '$(GORELEASER_BUILD_LDF)' -trimpath -o ./build/ ./...
634-
635-
.PHONY: release-snapshot release build-static
632+
.PHONY: release-snapshot release

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is forked from [`cosmos-sdk`](https://github.com/cosmos/cosmos-sdk) at 2021
1010

1111
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**.
1212

13-
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.
13+
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 require faster transaction processing to be applied to reality.
1414

1515
## Why the LBM SDK?
1616

@@ -68,6 +68,6 @@ simd start --home ~/.simapp/simapp1
6868
&nbsp;
6969

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

baseapp/testutil/messages.pb.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (ctx Context) WithKeyringOptions(opts ...keyring.Option) Context {
7171

7272
// WithInput returns a copy of the context with an updated input.
7373
func (ctx Context) WithInput(r io.Reader) Context {
74-
// convert to a bufio.Reader to have a shared buffer between the keyring and the
74+
// convert to a bufio.Reader to have a shared buffer between the keyring and
7575
// the Commands, ensuring a read from one advance the read pointer for the other.
7676
// see https://github.com/cosmos/cosmos-sdk/issues/9566.
7777
ctx.Input = bufio.NewReader(r)

client/docs/statik/statik.go

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)