v043 audit changes for types/ (#9290)
This commit is contained in:
+1
-2
@@ -9,9 +9,8 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
|
||||
"github.com/hashicorp/golang-lru/simplelru"
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
|
||||
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||
"github.com/cosmos/cosmos-sdk/internal/conv"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Account
|
||||
|
||||
This package defines Cosmos SDK address related functions.
|
||||
This package defines Cosmos SDK address-related functions.
|
||||
|
||||
## References
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ import (
|
||||
// Len is the length of base addresses
|
||||
const Len = sha256.Size
|
||||
|
||||
// Addressable represents any type from which we can derive an address.
|
||||
type Addressable interface {
|
||||
Address() []byte
|
||||
}
|
||||
|
||||
@@ -4,11 +4,10 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
|
||||
db "github.com/tendermint/tm-db"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
||||
db "github.com/tendermint/tm-db"
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/store/types"
|
||||
)
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ type PageRequest struct {
|
||||
// count_total is only respected when offset is used. It is ignored when key
|
||||
// is set.
|
||||
CountTotal bool `protobuf:"varint,4,opt,name=count_total,json=countTotal,proto3" json:"count_total,omitempty"`
|
||||
// reverse is set to true indicates that, results to be returned in the descending order.
|
||||
// reverse is set to true if results are to be returned in the descending order.
|
||||
Reverse bool `protobuf:"varint,5,opt,name=reverse,proto3" json:"reverse,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/suite"
|
||||
|
||||
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
||||
dbm "github.com/tendermint/tm-db"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user