Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
phamminh0811 committed Oct 18, 2023
2 parents aecab46 + 7521baa commit 21f5271
Show file tree
Hide file tree
Showing 72 changed files with 6,046 additions and 1,853 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func NewQuicksilver(
go func() {
// Unfortunately golangci-lint is so pedantic
// so we have to ignore this error explicitly.
_ = app.tpsCounter.start(context.Background()) //nolint:errcheck
_ = app.tpsCounter.start(context.Background()) // nolint:errcheck
}()

return app
Expand Down
2 changes: 1 addition & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (app *Quicksilver) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAdd
// withdraw all validator commission
// withdraw all validator commission
app.StakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
_, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator()) //nolint
_, _ = app.DistrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator()) // nolint
return false
})
// withdraw all delegator rewards
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (app *Quicksilver) setUpgradeStoreLoaders() {

var storeUpgrades *storetypes.StoreUpgrades

switch upgradeInfo.Name { //nolint:gocritic
switch upgradeInfo.Name { // nolint:gocritic
// case v001000UpgradeName:

// storeUpgrades = &storetypes.StoreUpgrades{
Expand Down
8 changes: 4 additions & 4 deletions app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,22 @@ type Upgrade struct {
StoreUpgrades storetypes.StoreUpgrades
}

//nolint:all //function useful for writing network specific upgrade handlers
// nolint:all //function useful for writing network specific upgrade handlers
func isTest(ctx sdk.Context) bool {
return ctx.ChainID() == TestChainID
}

//nolint:all //function useful for writing network specific upgrade handlers
// nolint:all //function useful for writing network specific upgrade handlers
func isDevnet(ctx sdk.Context) bool {
return ctx.ChainID() == DevnetChainID
}

//nolint:all //function useful for writing network specific upgrade handlers
// nolint:all //function useful for writing network specific upgrade handlers
func isTestnet(ctx sdk.Context) bool {
return ctx.ChainID() == RhyeChainID
}

//nolint:all //function useful for writing network specific upgrade handlers
// nolint:all //function useful for writing network specific upgrade handlers
func isMainnet(ctx sdk.Context) bool {
return ctx.ChainID() == ProductionChainID
}
6 changes: 3 additions & 3 deletions cmd/quicksilverd/bulk_airdrop.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@ func BulkGenesisAirdropCmd(defaultNodeHome string) *cobra.Command {
}

for _, zd := range airdropGenState.ZoneDrops {
if zd.ChainId == claimRecords[0].ChainId { //nolint:gosec
if zd.ChainId == claimRecords[0].ChainId { // nolint:gosec
zoneDrop = zd
}
}

if zoneDrop == nil {
return fmt.Errorf("zoneDrop doesn't exist for chain ID: %s", claimRecords[0].ChainId) //nolint:gosec // TODO: remove
return fmt.Errorf("zoneDrop doesn't exist for chain ID: %s", claimRecords[0].ChainId) // nolint:gosec // TODO: remove
}

authGenState := authtypes.GetGenesisStateFromAppState(clientCtx.Codec, appState)
Expand All @@ -211,7 +211,7 @@ func BulkGenesisAirdropCmd(defaultNodeHome string) *cobra.Command {
existing := airdropGenState.ClaimRecords

for _, i := range existing {
if i.ChainId == claimRecords[0].ChainId { //nolint:gosec // TODO: remove
if i.ChainId == claimRecords[0].ChainId { // nolint:gosec // TODO: remove
zoneclaims[i.Address] = true
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ func Handler(title, specURL string) http.HandlerFunc {
}{
title,
specURL,
}) //nolint:errcheck non-critical for docs
}) // nolint:errcheck non-critical for docs
}
}
Loading

0 comments on commit 21f5271

Please sign in to comment.