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

ci(mergify): upgrade configuration to current format #569

Open
wants to merge 13 commits into
base: v27.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 14 additions & 13 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ defaults:

queue_rules:
- name: default
conditions:
- "#approved-reviews-by>=1"

pull_request_rules:
- name: automerge to the base branch with label automerge and branch protection passing
conditions:
queue_conditions:
- "#approved-reviews-by>=1"
- base=v21.x
- label=A:automerge
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
merge_conditions:
- "#approved-reviews-by>=1"
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
merge_method: squash

pull_request_rules:
- name: backport patches to osmosis-main branch
conditions:
- base=v22.x
Expand Down Expand Up @@ -62,3 +58,8 @@ pull_request_rules:
backport:
branches:
- v25.x
- name: automerge to the base branch with label automerge and branch protection
passing
conditions: []
actions:
queue:
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
go-version-file: go.mod
- name: Run golangci-lint
if: env.GIT_DIFF
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v5
with:
version: v1.54
version: v1.62
skip-cache: true
4 changes: 2 additions & 2 deletions .github/workflows/required-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
branches:
- "v26.x"
- "v27.x"

jobs:
backport_labels:
Expand All @@ -26,4 +26,4 @@ jobs:
with: #Require one of the following labels
mode: exactly
count: 1
labels: "A:backport/v27.x"
labels: "A:backport/v28.x"
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

Unreleased

- Fixed claimbot panics due nil routerrepo.RouterRepository in txGasCalulator

## v27.2.0

- #593 - Add denoms filter for /pools endpoint

## v27.1.0

- #553 - Add pagination + sorting + query filtering support for /pools endpoint

## v26.2.0

- #554 - [FIX] Add missing checks for transmuter's limiter
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ endif


# --- Tooling & Variables ----------------------------------------------------------------
include ./scripts/makefiles/proto.mk
include ./misc/make/tools.Makefile

# Install local dependencies
Expand Down Expand Up @@ -176,9 +177,6 @@ sqs-update-mainnet-state:
bench-pricing:
go test -bench BenchmarkGetPrices -run BenchmarkGetPrices github.com/osmosis-labs/sqs/tokens/usecase -count=6

proto-gen:
protoc --go_out=./ --go-grpc_out=./ --proto_path=./sqsdomain/proto ./sqsdomain/proto/ingest.proto

test-prices-mainnet:
CI_SQS_PRICING_WORKER_TEST=true go test \
-timeout 300s \
Expand Down
2 changes: 1 addition & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
sdktrace "go.opentelemetry.io/otel/sdk/trace"
semconv "go.opentelemetry.io/otel/semconv/v1.4.0"

"github.com/osmosis-labs/osmosis/v27/app"
"github.com/osmosis-labs/osmosis/v28/app"
)

const (
Expand Down
5 changes: 3 additions & 2 deletions app/sidecar_query_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/osmosis-labs/osmosis/v27/app"
txfeestypes "github.com/osmosis-labs/osmosis/v27/x/txfees/types"
"github.com/osmosis-labs/osmosis/v28/app"
txfeestypes "github.com/osmosis-labs/osmosis/v28/x/txfees/types"
"github.com/osmosis-labs/sqs/domain/cosmos/auth/types"
ingestrpcdelivry "github.com/osmosis-labs/sqs/ingest/delivery/grpc"
ingestusecase "github.com/osmosis-labs/sqs/ingest/usecase"
Expand Down Expand Up @@ -317,6 +317,7 @@ func NewSideCarQueryServer(appCodec codec.Codec, config domain.Config, logger lo
keyring,
orderBookUseCase,
poolsUseCase,
gasCalculator,
logger,
config.ChainGRPCGatewayEndpoint,
config.ChainID,
Expand Down
8 changes: 4 additions & 4 deletions chaininfo/client/chain_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
rpchttp "github.com/cometbft/cometbft/rpc/client/http"
"github.com/cosmos/cosmos-sdk/client"

clpoolmodel "github.com/osmosis-labs/osmosis/v27/x/concentrated-liquidity/model"
cwpoolmodel "github.com/osmosis-labs/osmosis/v27/x/cosmwasmpool/model"
"github.com/osmosis-labs/osmosis/v27/x/gamm/pool-models/balancer"
"github.com/osmosis-labs/osmosis/v27/x/gamm/pool-models/stableswap"
clpoolmodel "github.com/osmosis-labs/osmosis/v28/x/concentrated-liquidity/model"
cwpoolmodel "github.com/osmosis-labs/osmosis/v28/x/cosmwasmpool/model"
"github.com/osmosis-labs/osmosis/v28/x/gamm/pool-models/balancer"
"github.com/osmosis-labs/osmosis/v28/x/gamm/pool-models/stableswap"

codectypes "github.com/cosmos/cosmos-sdk/codec/types"
)
Expand Down
2 changes: 1 addition & 1 deletion domain/cosmos/auth/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/gogoproto/grpc"
"github.com/osmosis-labs/osmosis/v27/app"
"github.com/osmosis-labs/osmosis/v28/app"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion domain/cosmos/tx/msg_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"

"github.com/osmosis-labs/osmosis/v27/app/params"
"github.com/osmosis-labs/osmosis/v28/app/params"
"github.com/osmosis-labs/sqs/domain"
"github.com/osmosis-labs/sqs/domain/keyring"
routerrepo "github.com/osmosis-labs/sqs/router/repository"
Expand Down
2 changes: 1 addition & 1 deletion domain/cosmos/tx/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/osmosis-labs/osmosis/osmomath"
"github.com/osmosis-labs/sqs/domain"

txfeestypes "github.com/osmosis-labs/osmosis/v27/x/txfees/types"
txfeestypes "github.com/osmosis-labs/osmosis/v28/x/txfees/types"

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
2 changes: 1 addition & 1 deletion domain/cosmos/tx/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/osmosis-labs/sqs/domain/mocks"

"github.com/osmosis-labs/osmosis/osmomath"
"github.com/osmosis-labs/osmosis/v27/app"
"github.com/osmosis-labs/osmosis/v28/app"

"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
Expand Down
2 changes: 1 addition & 1 deletion domain/mocks/chain_pool_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"cosmossdk.io/math"
"github.com/cosmos/cosmos-sdk/types"
"github.com/osmosis-labs/osmosis/osmomath"
poolmanagertypes "github.com/osmosis-labs/osmosis/v27/x/poolmanager/types"
poolmanagertypes "github.com/osmosis-labs/osmosis/v28/x/poolmanager/types"
)

type ChainPoolMock struct {
Expand Down
2 changes: 1 addition & 1 deletion domain/mocks/msg_simulator_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/osmosis-labs/osmosis/v27/app/params"
"github.com/osmosis-labs/osmosis/v28/app/params"
"github.com/osmosis-labs/sqs/domain"
sqstx "github.com/osmosis-labs/sqs/domain/cosmos/tx"
"github.com/osmosis-labs/sqs/domain/keyring"
Expand Down
4 changes: 2 additions & 2 deletions domain/mocks/pool_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/osmosis-labs/sqs/sqsdomain/cosmwasmpool"
sqspassthroughdomain "github.com/osmosis-labs/sqs/sqsdomain/passthroughdomain"

"github.com/osmosis-labs/osmosis/v27/x/gamm/pool-models/balancer"
poolmanagertypes "github.com/osmosis-labs/osmosis/v27/x/poolmanager/types"
"github.com/osmosis-labs/osmosis/v28/x/gamm/pool-models/balancer"
poolmanagertypes "github.com/osmosis-labs/osmosis/v28/x/poolmanager/types"
)

type MockRoutablePool struct {
Expand Down
2 changes: 1 addition & 1 deletion domain/mocks/txfees_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mocks
import (
"context"

txfeestypes "github.com/osmosis-labs/osmosis/v27/x/txfees/types"
txfeestypes "github.com/osmosis-labs/osmosis/v28/x/txfees/types"

"github.com/osmosis-labs/osmosis/osmomath"

Expand Down
4 changes: 2 additions & 2 deletions domain/passthrough/passthrough_grpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
distribution "github.com/cosmos/cosmos-sdk/x/distribution/types"
staking "github.com/cosmos/cosmos-sdk/x/staking/types"
math "github.com/osmosis-labs/osmosis/osmomath"
concentratedLiquidity "github.com/osmosis-labs/osmosis/v27/x/concentrated-liquidity/client/queryproto"
lockup "github.com/osmosis-labs/osmosis/v27/x/lockup/types"
concentratedLiquidity "github.com/osmosis-labs/osmosis/v28/x/concentrated-liquidity/client/queryproto"
lockup "github.com/osmosis-labs/osmosis/v28/x/lockup/types"
polarisgrpc "github.com/osmosis-labs/sqs/delivery/grpc"
"google.golang.org/grpc"
)
Expand Down
7 changes: 7 additions & 0 deletions domain/pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ func WithMarketIncentives(withMarketIncentives bool) PoolsOption {
})
}

// WithDenom configures the pools options with the denom filter.
func WithDenom(denom []string) PoolsOption {
return WithNonNilFilter(func(filter *api.GetPoolsRequestFilter) {
filter.Denom = denom
})
}

// WithPagination configures the pools options with the pagination request.
func WithFilter(f *api.GetPoolsRequestFilter) PoolsOption {
return func(o *PoolsOptions) {
Expand Down
2 changes: 1 addition & 1 deletion domain/routable_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/osmosis-labs/osmosis/osmomath"
poolmanagertypes "github.com/osmosis-labs/osmosis/v27/x/poolmanager/types"
poolmanagertypes "github.com/osmosis-labs/osmosis/v28/x/poolmanager/types"
)

// SQSPoolType is an enum that represents the type of SQS pool.
Expand Down
2 changes: 1 addition & 1 deletion domain/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/osmosis-labs/sqs/router/usecase/routertesting"

"github.com/osmosis-labs/osmosis/osmomath"
poolmanagertypes "github.com/osmosis-labs/osmosis/v27/x/poolmanager/types"
poolmanagertypes "github.com/osmosis-labs/osmosis/v28/x/poolmanager/types"
)

type RouterTestSuite struct {
Expand Down
Loading