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

skip block sdk, params migration #884

Merged
merged 108 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 98 commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
2d96f73
common module added
cgsingh33 Dec 14, 2023
44678fc
genesis added for common
cgsingh33 Dec 15, 2023
b23ba4b
params migration
cgsingh33 Dec 15, 2023
dc6872d
codec fix in asset
cgsingh33 Dec 15, 2023
ea11f4f
testnet v14 upgrade
cgsingh33 Dec 17, 2023
4160aaf
tc fixed
cgsingh33 Dec 18, 2023
97d3d43
linting fixed
cgsingh33 Dec 18, 2023
47bd654
modules refactor
cgsingh33 Jan 11, 2024
c967191
script updated
cgsingh33 Feb 7, 2024
0cf5f41
common module restructured
cgsingh33 Feb 8, 2024
93f6a12
go version 1.21
cgsingh33 Feb 13, 2024
bbf4cce
skip-mev block-sdk
cgsingh33 Feb 13, 2024
6009bfd
mev param update
cgsingh33 Feb 14, 2024
35d7488
go version update
cgsingh33 Feb 14, 2024
a7cd99c
block-sdk fork added
cgsingh33 Feb 15, 2024
b31efe0
multiplayer fix
cgsingh33 Feb 15, 2024
4ab7302
test case fixed
vishnukumavat Feb 16, 2024
9f3f720
adding missed consensus app module
cgsingh33 Feb 18, 2024
b7c10ae
moved go to stable version
cgsingh33 Feb 19, 2024
70c805a
minor refactor and error handling
pratikasr Feb 20, 2024
39c98d9
adding upgrade handlers
pratikasr Feb 20, 2024
dbaa0bb
updating upgrade handlers (testnet)
pratikasr Feb 20, 2024
49baec1
updating testcases
pratikasr Feb 20, 2024
d9d11c9
sdk bump
cgsingh33 Feb 20, 2024
c902679
gasless module initialized
vishnukumavat Feb 25, 2024
252b5f2
golang.org/x/exp replace version modified
cgsingh33 Feb 25, 2024
043e5b6
gasless store interfaces added
vishnukumavat Feb 28, 2024
c2dd64a
query interface for implementations and contracts added
vishnukumavat Feb 28, 2024
c381714
query service update for messages and contracts
vishnukumavat Feb 28, 2024
a4366b3
create gas provider added in message service
vishnukumavat Feb 28, 2024
a1c359c
validations in message service added
vishnukumavat Feb 29, 2024
8f01701
provider query added
vishnukumavat Feb 29, 2024
778b0ae
reserve deposits added
vishnukumavat Feb 29, 2024
91f368a
gas tank update message service added
vishnukumavat Feb 29, 2024
f89a838
block unblock added for consumers
vishnukumavat Feb 29, 2024
0d8287e
block unblock added for consumers
vishnukumavat Feb 29, 2024
75b772a
block, unblock consumers
vishnukumavat Feb 29, 2024
7931a0f
consumer consumptions added
vishnukumavat Feb 29, 2024
cd38d77
fee hijack added
vishnukumavat Mar 1, 2024
76cfe0f
gpids modifiers added
vishnukumavat Mar 1, 2024
ee4e350
consumer allowance at provider configs update
vishnukumavat Mar 1, 2024
25f7818
fee deduction from gastank reserves and consumer validations and elig…
vishnukumavat Mar 1, 2024
b66f136
authorized actor limit added
vishnukumavat Mar 1, 2024
80e13ee
event emitters added in fee consumption
vishnukumavat Mar 1, 2024
864f581
attribute modified
vishnukumavat Mar 1, 2024
b7dbe6c
consumption limit pending check added
vishnukumavat Mar 1, 2024
5c82f5c
consumer consumption limit upgrade added
vishnukumavat Mar 2, 2024
919ae53
free lane removed
cgsingh33 Mar 3, 2024
5d9e6f2
name/anology restructuring of the features
vishnukumavat Mar 4, 2024
e177251
reserve address renamed
vishnukumavat Mar 4, 2024
d7351ae
query tanks by provider
vishnukumavat Mar 5, 2024
4dc9d73
gas consumers by tank id
vishnukumavat Mar 6, 2024
d3f009a
proto rebuild
cgsingh33 Mar 6, 2024
95fba03
tokefactory module addition
cgsingh33 Mar 6, 2024
89f74fb
tokenfactory in app wiring
cgsingh33 Mar 6, 2024
1599d22
wasm bindings for tokenfactory
cgsingh33 Mar 6, 2024
f9f4912
default params added
vishnukumavat Mar 6, 2024
ab4625a
typo fix
vishnukumavat Mar 6, 2024
8bfe556
init and export genesis added
vishnukumavat Mar 6, 2024
9eacae1
expected bank interface refactor
vishnukumavat Mar 7, 2024
6e89508
test cases initialized, create gas tank
vishnukumavat Mar 7, 2024
d6dee22
refactor
vishnukumavat Mar 7, 2024
e29ae6f
testcases added
vishnukumavat Mar 9, 2024
8febc8d
consumer block unblock testcases
vishnukumavat Mar 10, 2024
fd51414
update consumer limit test cases
vishnukumavat Mar 10, 2024
a8fb0d5
test cases
vishnukumavat Mar 10, 2024
c74fe9f
Merge branch 'gasless' into v14upgrade
vishnukumavat Mar 11, 2024
8e3d241
binding test fixed
cgsingh33 Mar 11, 2024
34525d6
go mod fix
cgsingh33 Mar 11, 2024
d570339
gasless upgrade params proto build
cgsingh33 Mar 11, 2024
7962661
update params added
cgsingh33 Mar 11, 2024
91ea397
go mod update
cgsingh33 Mar 11, 2024
a965d81
debt auction multiple lot update
pratikasr Mar 13, 2024
e85f946
harbor burn tx
cgsingh33 Mar 14, 2024
a0521e4
minor refactor
pratikasr Mar 14, 2024
bf9b71b
tx fee burning
vishnukumavat Mar 19, 2024
50cb1ac
logs removed
vishnukumavat Mar 19, 2024
9834cee
gasles moduel and burner permissions added in v14 upgrade
vishnukumavat Mar 19, 2024
1ec0a36
feecollector module removed
cgsingh33 Mar 19, 2024
08f7fe9
module account burn permission issue fixed
cgsingh33 Mar 19, 2024
733a9a0
possible non-determinism sorce map replace with key value in gasless
vishnukumavat Mar 19, 2024
d74e93b
bug fix
vishnukumavat Mar 19, 2024
3753241
refactor
vishnukumavat Mar 19, 2024
648a287
collector refund and deposit code refactored
cgsingh33 Mar 20, 2024
0e8b609
pfm fix
cgsingh33 Mar 20, 2024
1df741d
withdraw stablemint control tx
cgsingh33 Mar 21, 2024
7d303c2
debt param change tx
cgsingh33 Mar 26, 2024
b41c346
revoke debt auctions function added
pratikasr Mar 27, 2024
1df0cb1
minor refactor
pratikasr Mar 27, 2024
41918ca
updating slots revoke logic
pratikasr Mar 29, 2024
6429c7a
minor refactor- for testcase
pratikasr Mar 29, 2024
7c3d9fe
bid query added
cgsingh33 Apr 4, 2024
349c2b8
bid proto correction
cgsingh33 Apr 9, 2024
1da77de
script improved
cgsingh33 Apr 9, 2024
871727b
ASA-2024-007 patch
cgsingh33 Apr 10, 2024
e96a76d
modules removed
cgsingh33 Jun 13, 2024
0d3fca2
go version fix
cgsingh33 Jun 14, 2024
d7223fd
skip-mev version bump
cgsingh33 Jun 14, 2024
ad7876c
testcase, linting fix
cgsingh33 Jun 14, 2024
8aab79e
unsed files removed
cgsingh33 Jun 14, 2024
4494b4c
wasmd,sdk version bumps
cgsingh33 Jun 14, 2024
824d8dc
sdk,math bump retract
cgsingh33 Jun 14, 2024
20452b7
redundant codec removed
cgsingh33 Jun 17, 2024
b13930a
upgrade testcase, back to 6sec BT for testnet
cgsingh33 Jun 17, 2024
f73471b
logger fix
cgsingh33 Jun 17, 2024
d968695
codec refactor
cgsingh33 Jun 17, 2024
5bcece1
TxSizeCostPerByte increased
cgsingh33 Jun 19, 2024
5eced3f
err handling
cgsingh33 Jun 19, 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/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/[email protected]
with:
go-version: 1.20.5
go-version: 1.21.7
id: go

- name: Check out code into the Go module directory˛˜
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/[email protected]
with:
go-version: 1.20.5
go-version: 1.21.7
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.20.5 # we run the linter with go 1.20 to match dev laptops even though we use 1.18 for the chain (don't update the chain to 1.19 please-- there is an issue in golang causing 1.19 to output some hashes differently from 1.18)
go-version: 1.21.7 # we run the linter with go 1.21 to match dev laptops even though we use 1.18 for the chain (don't update the chain to 1.19 please-- there is an issue in golang causing 1.19 to output some hashes differently from 1.18)
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/[email protected]
with:
go-version: 1.20.5
go-version: 1.21.7
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
name: Setup Golang
uses: actions/[email protected]
with:
go-version: 1.20.5
go-version: 1.21.7
-
name: Display go version
run: go version
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ GOBIN = $(shell go env GOPATH)/bin
GOARCH = $(shell go env GOARCH)
GOOS = $(shell go env GOOS)
GO_MINOR_VERSION = $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
GO_MINIMUM_MINOR_VERSION = $(shell cat go.mod | grep -E 'go [0-9].[0-9]+' | cut -d ' ' -f2 | cut -d'.' -f2)

export GO111MODULE = on

Expand Down Expand Up @@ -94,8 +95,8 @@ endif
#$(info $$BUILD_FLAGS is [$(BUILD_FLAGS)])

check_version:
ifneq ($(GO_MINOR_VERSION),20)
@echo "ERROR: Please upgrade Go version to 1.20+"
ifneq ($(GO_MINIMUM_MINOR_VERSION),21)
@echo "ERROR: Please upgrade Go version to 1.21+"
exit 1
endif

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ If you have technical questions or concerns, ask a developer or community member

### Installation

Requires [Go 1.20+](https://golang.org/dl/)
Requires [Go 1.21+](https://golang.org/dl/)

### Linux

Expand Down
10 changes: 9 additions & 1 deletion app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ import (
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
"github.com/comdex-official/comdex/app/decorators"
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
ibcante "github.com/cosmos/ibc-go/v7/modules/core/ante"
ibckeeper "github.com/cosmos/ibc-go/v7/modules/core/keeper"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
auctionanteskip "github.com/skip-mev/block-sdk/x/auction/ante"
auctionkeeperskip "github.com/skip-mev/block-sdk/x/auction/keeper"
)

// HandlerOptions extend the SDK's AnteHandler options by requiring the IBC
Expand All @@ -23,6 +25,11 @@ type HandlerOptions struct {
IBCChannelKeeper *ibckeeper.Keeper
GovKeeper govkeeper.Keeper
Cdc codec.BinaryCodec

MEVLane auctionanteskip.MEVLane
TxDecoder sdk.TxDecoder
TxEncoder sdk.TxEncoder
auctionkeeperskip auctionkeeperskip.Keeper
}

func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
Expand Down Expand Up @@ -59,6 +66,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
ibcante.NewRedundantRelayDecorator(options.IBCChannelKeeper),
auctionanteskip.NewAuctionDecorator(options.auctionkeeperskip, options.TxEncoder, options.MEVLane),
}

return sdk.ChainAnteDecorators(anteDecorators...), nil
Expand Down
Loading
Loading