Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra/rest cosmos sdk 0.50 #429

Draft
wants to merge 54 commits into
base: extra/rest
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
d4aa859
add ibcfee module
RogerKSI Jun 9, 2024
c02b2ed
chore: fix some function names
bytetigers Aug 13, 2024
ecbacde
Bump github.com/cosmos/gogoproto from 1.4.10 to 1.7.0
dependabot[bot] Aug 14, 2024
960bb69
Bump github.com/cometbft/cometbft from 0.37.9 to 0.37.10 (#414)
dependabot[bot] Aug 15, 2024
4ad955c
Bump github.com/spf13/cast from 1.6.0 to 1.7.0 (#411)
dependabot[bot] Aug 15, 2024
f6e819b
Bump google.golang.org/grpc from 1.65.0 to 1.66.0
dependabot[bot] Aug 29, 2024
84ee382
Merge pull request #421 from bandprotocol/dependabot/go_modules/googl…
dependabot[bot] Sep 2, 2024
3dcefaa
Merge pull request #416 from bandprotocol/dependabot/go_modules/githu…
dependabot[bot] Sep 2, 2024
0cdbc19
Bump github.com/cosmos/ibc-go/v7 from 7.7.0 to 7.8.0
dependabot[bot] Sep 2, 2024
9278e9c
Merge pull request #415 from bytetigers/master
taobun Sep 2, 2024
9c93d9b
Merge pull request #422 from bandprotocol/dependabot/go_modules/githu…
dependabot[bot] Sep 2, 2024
3a69eda
Merge pull request #392 from bandprotocol/add-ibcfee
taobun Sep 2, 2024
849be54
Bump google.golang.org/grpc from 1.66.0 to 1.66.2
dependabot[bot] Sep 12, 2024
c0e4f27
Merge pull request #427 from bandprotocol/dependabot/go_modules/googl…
dependabot[bot] Sep 13, 2024
f224783
patch almost app
taobun Sep 4, 2024
2ab32b9
fix keeper from over undo
taobun Sep 4, 2024
f0d7bfa
able to compile chain and rewrite keeper test
taobun Sep 9, 2024
05d1fb9
wip- patch owasm test
taobun Sep 9, 2024
21327a4
add prepare and execute keeper test
taobun Sep 9, 2024
8e21d40
add app test
taobun Sep 13, 2024
c753d01
fix yoda event
taobun Sep 16, 2024
136b936
move seal config from init to setup app func
taobun Sep 16, 2024
480c178
refactor and fix from lint
taobun Sep 16, 2024
11b5e90
Merge branch 'patch-cosmos-sdk-0.50' into extra/rest-cosmos-sdk-0.50
taobun Sep 16, 2024
431b5ca
wip
taobun Sep 16, 2024
6030303
move owasm flag to oracle module remove legacy codec and getSignBytes…
taobun Sep 16, 2024
52a8465
fix from lint
taobun Sep 16, 2024
e358688
Merge branch 'patch-cosmos-sdk-0.50' into extra/rest-cosmos-sdk-0.50
taobun Sep 16, 2024
940efe8
Fix lint import order
taobun Sep 16, 2024
8b4ccdb
more fix import order
taobun Sep 16, 2024
b95c82f
Merge branch 'patch-cosmos-sdk-0.50' into extra/rest-cosmos-sdk-0.50
taobun Sep 16, 2024
fd80b04
able to compile and fix decoder emitter test
taobun Sep 17, 2024
3d8c82e
using ibc test instead of copy
taobun Sep 18, 2024
d93bd58
add bandApp shortcut and refactor util func
taobun Sep 18, 2024
2a3f0dd
Merge branch 'patch-cosmos-sdk-0.50' into extra/rest-cosmos-sdk-0.50
taobun Sep 18, 2024
602ffdc
Using CreateTestingAppFn
taobun Sep 18, 2024
ffa91aa
fix more import
taobun Sep 18, 2024
c77046d
fix import order
RogerKSI Sep 19, 2024
b3dbe8e
update golangci-lint version in ci
RogerKSI Sep 19, 2024
ab488e6
Add app_test for bank
taobun Sep 20, 2024
f93ccc2
fix from comment
taobun Sep 20, 2024
f28dc57
fix from comments
taobun Sep 23, 2024
e6bce49
fix comment
taobun Sep 23, 2024
5eb4460
remove unused dir
taobun Sep 23, 2024
91701a5
move to testing package
taobun Sep 24, 2024
609007f
Patch init command
taobun Sep 26, 2024
8649dd6
add comment
taobun Sep 26, 2024
c6479aa
Move testing app function to app helpers
taobun Sep 26, 2024
96a3cc6
move seal function to new file
taobun Sep 26, 2024
a1316b1
fix bugs from comment
taobun Sep 27, 2024
db78b63
rename import name
taobun Sep 27, 2024
ec2580b
update branch
RogerKSI Sep 30, 2024
5e6fb55
fix lint
RogerKSI Sep 30, 2024
9b2cfe6
handle begin/end block after finalized block
taobun Sep 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.55.2
version: v1.60
args: --timeout=5m0s
16 changes: 10 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
run:
timeout: 5m
go: '1.22.3'
go: "1.22.3"

linters:
disable-all: true
enable:
- bodyclose
- whitespace
- errcheck
- exportloopref
- copyloopvar
- gci
- gocritic
- gofumpt
Expand All @@ -30,19 +30,24 @@ issues:
- ".*\\.pb\\.gw\\.\\.go$"
- ".*\\.pulsar\\.go$"
exclude-rules:
- text: 'Use of weak random number generator'
- text: "Use of weak random number generator"
linters:
- gosec
- text: 'ST1003:'
- text: "ST1003:"
linters:
- stylecheck

linters-settings:
gci:
custom-order: true
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(github.com/cometbft/cometbft) # comet
- prefix(github.com/cosmos) # cosmos org
- prefix(cosmossdk.io) # new modules
- prefix(github.com/cosmos/cosmos-sdk) # cosmos sdk
- prefix(github.com/bandprotocol) # band org
- prefix(github.com/bandprotocol/chain)
gocritic:
disabled-checks:
Expand Down Expand Up @@ -100,4 +105,3 @@ linters-settings:
- G504 # Import blocklist: net/http/cgi
- G505 # Import blocklist: crypto/sha1
- G601 # Implicit memory aliasing of items from a range statement

7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ test:
### Protobuf ###
###############################################################################

protoVer=0.13.0
protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

Expand All @@ -103,6 +103,11 @@ proto-lint:
proto-check-breaking:
@$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main

proto-update-deps:
@echo "Updating Protobuf dependencies"

$(DOCKER) run --rm -v $(CURDIR)/proto:/workspace --workdir /workspace $(protoImageName) buf mod update

###############################################################################
### Simulation ###
###############################################################################
Expand Down
11 changes: 6 additions & 5 deletions app/ante.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package band

import (
ibcante "github.com/cosmos/ibc-go/v8/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"

"github.com/bandprotocol/chain/v2/x/globalfee/feechecker"
globalfeekeeper "github.com/bandprotocol/chain/v2/x/globalfee/keeper"
oraclekeeper "github.com/bandprotocol/chain/v2/x/oracle/keeper"
"github.com/bandprotocol/chain/v3/x/globalfee/feechecker"
globalfeekeeper "github.com/bandprotocol/chain/v3/x/globalfee/keeper"
oraclekeeper "github.com/bandprotocol/chain/v3/x/oracle/keeper"
)

// HandlerOptions extend the SDK's AnteHandler options by requiring the IBC
Expand Down
Loading
Loading