fix: rollback to tendermint v0.34.21 #38
@ -2,7 +2,7 @@ package app
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"math/rand"
|
"math/rand" // #nosec G702
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/codec"
|
"github.com/cosmos/cosmos-sdk/codec"
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
"reflect"
|
"reflect" // #nosec G702
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -313,6 +313,7 @@ func (q queryResolver) GetBondsByOwner(ctx context.Context, address string) (*Ow
|
|||||||
|
|
||||||
ownerBonds := make([]*Bond, len(bondResp.GetBonds()))
|
ownerBonds := make([]*Bond, len(bondResp.GetBonds()))
|
||||||
for i, bond := range bondResp.GetBonds() {
|
for i, bond := range bondResp.GetBonds() {
|
||||||
|
// #nosec G601
|
||||||
bondObj, err := getGQLBond(&bond) //nolint: all
|
bondObj, err := getGQLBond(&bond) //nolint: all
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -91,7 +91,7 @@ func getValidatorSet(client client.Context) ([]*ValidatorInfo, error) {
|
|||||||
|
|
||||||
// GetDiskUsage returns disk usage for the given path.
|
// GetDiskUsage returns disk usage for the given path.
|
||||||
func GetDiskUsage(dirPath string) (string, error) {
|
func GetDiskUsage(dirPath string) (string, error) {
|
||||||
out, err := exec.Command("du", "-sh", dirPath).Output()
|
out, err := exec.Command("du", "-sh", dirPath).Output() // #nosec G204
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect" // #nosec G702
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
auctiontypes "github.com/cerc-io/laconicd/x/auction/types"
|
||||||
@ -166,11 +166,11 @@ func GetGQLAuction(auction *auctiontypes.Auction, bids []*auctiontypes.Bid) (*Au
|
|||||||
func getReferences(ctx context.Context, resolver QueryResolver, r *nstypes.RecordType) ([]*Record, error) {
|
func getReferences(ctx context.Context, resolver QueryResolver, r *nstypes.RecordType) ([]*Record, error) {
|
||||||
var ids []string
|
var ids []string
|
||||||
|
|
||||||
for _, value := range r.Attributes {
|
for key := range r.Attributes {
|
||||||
//nolint: all
|
//nolint: all
|
||||||
switch value.(type) {
|
switch r.Attributes[key].(type) {
|
||||||
case interface{}:
|
case interface{}:
|
||||||
if obj, ok := value.(map[string]interface{}); ok {
|
if obj, ok := r.Attributes[key].(map[string]interface{}); ok {
|
||||||
if _, ok := obj["/"]; ok && len(obj) == 1 {
|
if _, ok := obj["/"]; ok && len(obj) == 1 {
|
||||||
if _, ok := obj["/"].(string); ok {
|
if _, ok := obj["/"].(string); ok {
|
||||||
ids = append(ids, obj["/"].(string))
|
ids = append(ids, obj["/"].(string))
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime" // #nosec G702
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
"runtime/pprof"
|
"runtime/pprof"
|
||||||
"sync"
|
"sync"
|
||||||
|
@ -2,7 +2,7 @@ package version
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
"runtime" // #nosec G702
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -169,7 +169,7 @@ func GetCmdRevealBid() *cobra.Command {
|
|||||||
auctionID := args[0]
|
auctionID := args[0]
|
||||||
revealFilePath := args[1]
|
revealFilePath := args[1]
|
||||||
|
|
||||||
revealBytes, err := ioutil.ReadFile(revealFilePath)
|
revealBytes, err := ioutil.ReadFile(revealFilePath) // #nosec G304
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) types.GenesisState {
|
|||||||
|
|
||||||
genesisAuctions := []*types.Auction{}
|
genesisAuctions := []*types.Auction{}
|
||||||
for _, auction := range auctions {
|
for _, auction := range auctions {
|
||||||
|
// #nosec G601
|
||||||
genesisAuctions = append(genesisAuctions, &auction) //nolint: all
|
genesisAuctions = append(genesisAuctions, &auction) //nolint: all
|
||||||
}
|
}
|
||||||
return types.GenesisState{Params: params, Auctions: genesisAuctions}
|
return types.GenesisState{Params: params, Auctions: genesisAuctions}
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand" // #nosec G702
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand" // #nosec G702
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||||
|
@ -375,7 +375,7 @@ $ %s tx %s delete-name [crn]
|
|||||||
func GetPayloadFromFile(filePath string) (*types.PayloadType, error) {
|
func GetPayloadFromFile(filePath string) (*types.PayloadType, error) {
|
||||||
var payload types.PayloadType
|
var payload types.PayloadType
|
||||||
|
|
||||||
data, err := ioutil.ReadFile(filePath)
|
data, err := ioutil.ReadFile(filePath) // #nosec G304
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) types.GenesisState {
|
|||||||
authorityEntries = append(authorityEntries, types.AuthorityEntry{
|
authorityEntries = append(authorityEntries, types.AuthorityEntry{
|
||||||
Name: name,
|
Name: name,
|
||||||
Entry: &record, //nolint: all
|
Entry: &record, //nolint: all
|
||||||
})
|
}) // #nosec G601
|
||||||
}
|
}
|
||||||
|
|
||||||
names := keeper.ListNameRecords(ctx)
|
names := keeper.ListNameRecords(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user