v043 audit changes for `types/` (#9290)

This commit is contained in:
Amaury 2021-05-17 14:57:24 +02:00 committed by GitHub
parent 589c67d841
commit 321aed823c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 8 additions and 10 deletions

View File

@ -715,7 +715,7 @@ pagination. Ex:
| `offset` | [uint64](#uint64) | | offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| `limit` | [uint64](#uint64) | | limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| `count_total` | [bool](#bool) | | count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| `reverse` | [bool](#bool) | | reverse is set to true indicates that, results to be returned in the descending order. |
| `reverse` | [bool](#bool) | | reverse is set to true if results are to be returned in the descending order. |

View File

@ -31,7 +31,7 @@ message PageRequest {
// is set.
bool count_total = 4;
// 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.
bool reverse = 5;
}

View File

@ -41,4 +41,4 @@ message ListImplementationsRequest {
// RPC.
message ListImplementationsResponse {
repeated string implementation_message_names = 1;
}
}

View File

@ -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"

View File

@ -1,6 +1,6 @@
# Account
This package defines Cosmos SDK address related functions.
This package defines Cosmos SDK address-related functions.
## References

View File

@ -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
}

View File

@ -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"
)

View File

@ -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"`
}

View File

@ -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"