refactor: Improve and clarify API around AccountAddressById (#13460)
* Revert "chore: change id to use uint64 in `AccountAddressByID` (#13411)"
This reverts commit 3d0e214446.
* Add since
* Update CLI command
* make proto-gen
* id->accNum
* No API breaking changes
* improve err msg
* Update CHANGELOG.md
Co-authored-by: Julien Robert <julien@rbrt.fr>
* Update CHANGELOG.md
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
parent
306a9a7170
commit
90bd3161a1
@ -142,9 +142,9 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
* (x/genutil)[#12956](https://github.com/cosmos/cosmos-sdk/pull/12956) `genutil.AppModuleBasic` has a new attribute: genesis transaction validation function. The existing validation logic is implemented in `genutiltypes.DefaultMessageValidator`. Use `genutil.NewAppModuleBasic` to create a new genutil Module Basic.
|
||||
* (codec) [#12964](https://github.com/cosmos/cosmos-sdk/pull/12964) `ProtoCodec.MarshalInterface` now returns an error when serializing unregistered types and a subsequent `ProtoCodec.UnmarshalInterface` would fail.
|
||||
* (x/staking) [#12973](https://github.com/cosmos/cosmos-sdk/pull/12973) Removed `stakingkeeper.RandomValidator`. Use `testutil.RandSliceElem(r, sk.GetAllValidators(ctx))` instead.
|
||||
* (x/gov) [13160](https://github.com/cosmos/cosmos-sdk/pull/13160) Remove custom marshaling of proposl and voteoption.
|
||||
* (x/auth) [13411](https://github.com/cosmos/cosmos-sdk/pull/13411) Change account id to use uint64 in `AccountAddressByID` grpc query.
|
||||
* (types) [13430](https://github.com/cosmos/cosmos-sdk/pull/13430) Remove unused code `ResponseCheckTx` and `ResponseDeliverTx`
|
||||
* (x/gov) [#13160](https://github.com/cosmos/cosmos-sdk/pull/13160) Remove custom marshaling of proposl and voteoption.
|
||||
* (types) [#13430](https://github.com/cosmos/cosmos-sdk/pull/13430) Remove unused code `ResponseCheckTx` and `ResponseDeliverTx`
|
||||
* (auth) [#13460](https://github.com/cosmos/cosmos-sdk/pull/13460) The `q auth address-by-id` CLI command has been renamed to `q auth address-by-acc-num` to be more explicit. However, the old `address-by-id` version is still kept as an alias, for backwards compatibility.
|
||||
|
||||
### CLI Breaking Changes
|
||||
|
||||
|
||||
@ -6058,8 +6058,8 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Interface() protoreflect
|
||||
// While iterating, mutating operations may only be performed
|
||||
// on the current field descriptor.
|
||||
func (x *fastReflection_QueryAccountAddressByIDRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
|
||||
if x.Id != uint64(0) {
|
||||
value := protoreflect.ValueOfUint64(x.Id)
|
||||
if x.Id != int64(0) {
|
||||
value := protoreflect.ValueOfInt64(x.Id)
|
||||
if !f(fd_QueryAccountAddressByIDRequest_id, value) {
|
||||
return
|
||||
}
|
||||
@ -6080,7 +6080,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Range(f func(protoreflec
|
||||
func (x *fastReflection_QueryAccountAddressByIDRequest) Has(fd protoreflect.FieldDescriptor) bool {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
|
||||
return x.Id != uint64(0)
|
||||
return x.Id != int64(0)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
|
||||
@ -6098,7 +6098,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Has(fd protoreflect.Fiel
|
||||
func (x *fastReflection_QueryAccountAddressByIDRequest) Clear(fd protoreflect.FieldDescriptor) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
|
||||
x.Id = uint64(0)
|
||||
x.Id = int64(0)
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
|
||||
@ -6117,7 +6117,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Get(descriptor protorefl
|
||||
switch descriptor.FullName() {
|
||||
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
|
||||
value := x.Id
|
||||
return protoreflect.ValueOfUint64(value)
|
||||
return protoreflect.ValueOfInt64(value)
|
||||
default:
|
||||
if descriptor.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
|
||||
@ -6139,7 +6139,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Get(descriptor protorefl
|
||||
func (x *fastReflection_QueryAccountAddressByIDRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
|
||||
x.Id = value.Uint()
|
||||
x.Id = value.Int()
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
|
||||
@ -6176,7 +6176,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) Mutable(fd protoreflect.
|
||||
func (x *fastReflection_QueryAccountAddressByIDRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
|
||||
switch fd.FullName() {
|
||||
case "cosmos.auth.v1beta1.QueryAccountAddressByIDRequest.id":
|
||||
return protoreflect.ValueOfUint64(uint64(0))
|
||||
return protoreflect.ValueOfInt64(int64(0))
|
||||
default:
|
||||
if fd.IsExtension() {
|
||||
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.auth.v1beta1.QueryAccountAddressByIDRequest"))
|
||||
@ -6346,7 +6346,7 @@ func (x *fastReflection_QueryAccountAddressByIDRequest) ProtoMethods() *protoifa
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
x.Id |= uint64(b&0x7F) << shift
|
||||
x.Id |= int64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
@ -8186,12 +8186,17 @@ func (x *AddressStringToBytesResponse) GetAddressBytes() []byte {
|
||||
}
|
||||
|
||||
// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
type QueryAccountAddressByIDRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// id is the account number of the address to be queried. This field
|
||||
// should have been an uint64 (like all account numbers), and will be
|
||||
// updated to uint64 in a future version of the auth query.
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
}
|
||||
|
||||
func (x *QueryAccountAddressByIDRequest) Reset() {
|
||||
@ -8214,7 +8219,7 @@ func (*QueryAccountAddressByIDRequest) Descriptor() ([]byte, []int) {
|
||||
return file_cosmos_auth_v1beta1_query_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *QueryAccountAddressByIDRequest) GetId() uint64 {
|
||||
func (x *QueryAccountAddressByIDRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
@ -8222,6 +8227,8 @@ func (x *QueryAccountAddressByIDRequest) GetId() uint64 {
|
||||
}
|
||||
|
||||
// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
type QueryAccountAddressByIDResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -8258,6 +8265,8 @@ func (x *QueryAccountAddressByIDResponse) GetAccountAddress() string {
|
||||
}
|
||||
|
||||
// QueryAccountInfoRequest is the Query/AccountInfo request type.
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
type QueryAccountInfoRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -8295,6 +8304,8 @@ func (x *QueryAccountInfoRequest) GetAddress() string {
|
||||
}
|
||||
|
||||
// QueryAccountInfoResponse is the Query/AccountInfo response type.
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
type QueryAccountInfoResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -8417,7 +8428,7 @@ var file_cosmos_auth_v1beta1_query_proto_rawDesc = []byte{
|
||||
0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x30, 0x0a, 0x1e,
|
||||
0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72,
|
||||
0x65, 0x73, 0x73, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x22, 0x64,
|
||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x64,
|
||||
0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64,
|
||||
0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
||||
0x65, 0x12, 0x41, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64,
|
||||
|
||||
@ -32,6 +32,8 @@ type QueryClient interface {
|
||||
// Account returns account details based on address.
|
||||
Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
|
||||
// AccountAddressByID returns account address based on account id
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
AccountAddressByID(ctx context.Context, in *QueryAccountAddressByIDRequest, opts ...grpc.CallOption) (*QueryAccountAddressByIDResponse, error)
|
||||
// Params queries all parameters.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
@ -160,6 +162,8 @@ type QueryServer interface {
|
||||
// Account returns account details based on address.
|
||||
Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
|
||||
// AccountAddressByID returns account address based on account id
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
AccountAddressByID(context.Context, *QueryAccountAddressByIDRequest) (*QueryAccountAddressByIDResponse, error)
|
||||
// Params queries all parameters.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
|
||||
@ -24,7 +24,7 @@ const _ = grpc.SupportPackageIsVersion7
|
||||
type QueryClient interface {
|
||||
// Params queries params of the distribution module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
// ValidatorDistributionInfo queries validator commision and self-delegation rewards for validator
|
||||
// ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
|
||||
ValidatorDistributionInfo(ctx context.Context, in *QueryValidatorDistributionInfoRequest, opts ...grpc.CallOption) (*QueryValidatorDistributionInfoResponse, error)
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address.
|
||||
ValidatorOutstandingRewards(ctx context.Context, in *QueryValidatorOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryValidatorOutstandingRewardsResponse, error)
|
||||
@ -149,7 +149,7 @@ func (c *queryClient) CommunityPool(ctx context.Context, in *QueryCommunityPoolR
|
||||
type QueryServer interface {
|
||||
// Params queries params of the distribution module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
// ValidatorDistributionInfo queries validator commision and self-delegation rewards for validator
|
||||
// ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
|
||||
ValidatorDistributionInfo(context.Context, *QueryValidatorDistributionInfoRequest) (*QueryValidatorDistributionInfoResponse, error)
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address.
|
||||
ValidatorOutstandingRewards(context.Context, *QueryValidatorOutstandingRewardsRequest) (*QueryValidatorOutstandingRewardsResponse, error)
|
||||
|
||||
@ -7533,10 +7533,10 @@ func (x *MemberRequest) GetMetadata() string {
|
||||
|
||||
// ThresholdDecisionPolicy is a decision policy where a proposal passes when it
|
||||
// satisfies the two following conditions:
|
||||
// 1. The sum of all `YES` voters' weights is greater or equal than the defined
|
||||
// `threshold`.
|
||||
// 2. The voting and execution periods of the proposal respect the parameters
|
||||
// given by `windows`.
|
||||
// 1. The sum of all `YES` voters' weights is greater or equal than the defined
|
||||
// `threshold`.
|
||||
// 2. The voting and execution periods of the proposal respect the parameters
|
||||
// given by `windows`.
|
||||
type ThresholdDecisionPolicy struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -7585,10 +7585,10 @@ func (x *ThresholdDecisionPolicy) GetWindows() *DecisionPolicyWindows {
|
||||
|
||||
// PercentageDecisionPolicy is a decision policy where a proposal passes when
|
||||
// it satisfies the two following conditions:
|
||||
// 1. The percentage of all `YES` voters' weights out of the total group weight
|
||||
// is greater or equal than the given `percentage`.
|
||||
// 2. The voting and execution periods of the proposal respect the parameters
|
||||
// given by `windows`.
|
||||
// 1. The percentage of all `YES` voters' weights out of the total group weight
|
||||
// is greater or equal than the given `percentage`.
|
||||
// 2. The voting and execution periods of the proposal respect the parameters
|
||||
// given by `windows`.
|
||||
type PercentageDecisionPolicy struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
|
||||
@ -1055,7 +1055,7 @@ func (m *ABCIQueryResponse) GetCodespace() string {
|
||||
}
|
||||
|
||||
// ProofOp defines an operation used for calculating Merkle root. The data could
|
||||
// be arbitrary format, providing nessecary data for example neighbouring node
|
||||
// be arbitrary format, providing necessary data for example neighbouring node
|
||||
// hash.
|
||||
//
|
||||
// Note: This type is a duplicate of the ProofOp proto type defined in Tendermint.
|
||||
|
||||
@ -30,7 +30,9 @@ service Query {
|
||||
option (google.api.http).get = "/cosmos/auth/v1beta1/accounts/{address}";
|
||||
}
|
||||
|
||||
// AccountAddressByID returns account address based on account id
|
||||
// AccountAddressByID returns account address based on account number.
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
rpc AccountAddressByID(QueryAccountAddressByIDRequest) returns (QueryAccountAddressByIDResponse) {
|
||||
option (cosmos.query.v1.module_query_safe) = true;
|
||||
option (google.api.http).get = "/cosmos/auth/v1beta1/address_by_id/{id}";
|
||||
@ -180,16 +182,25 @@ message AddressStringToBytesResponse {
|
||||
}
|
||||
|
||||
// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
message QueryAccountAddressByIDRequest {
|
||||
uint64 id = 1;
|
||||
// id is the account number of the address to be queried. This field
|
||||
// should have been an uint64 (like all account numbers), and will be
|
||||
// updated to uint64 in a future version of the auth query.
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
message QueryAccountAddressByIDResponse {
|
||||
string account_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
||||
}
|
||||
|
||||
// QueryAccountInfoRequest is the Query/AccountInfo request type.
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
message QueryAccountInfoRequest {
|
||||
|
||||
// address is the account address string.
|
||||
@ -197,6 +208,8 @@ message QueryAccountInfoRequest {
|
||||
}
|
||||
|
||||
// QueryAccountInfoResponse is the Query/AccountInfo response type.
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
message QueryAccountInfoResponse {
|
||||
|
||||
// info is the account info which is represented by BaseAccount.
|
||||
|
||||
@ -131,7 +131,7 @@ func (m *StoreInfo) GetCommitId() CommitID {
|
||||
return CommitID{}
|
||||
}
|
||||
|
||||
// CommitID defines the committment information when a specific store is
|
||||
// CommitID defines the commitment information when a specific store is
|
||||
// committed.
|
||||
type CommitID struct {
|
||||
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
||||
|
||||
@ -129,23 +129,24 @@ func GetAccountCmd() *cobra.Command {
|
||||
// GetAccountAddressByIDCmd returns a query account that will display the account address of a given account id.
|
||||
func GetAccountAddressByIDCmd() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "address-by-id [id]",
|
||||
Short: "Query for account address by account id",
|
||||
Use: "address-by-acc-num [acc-num]",
|
||||
Aliases: []string{"address-by-id"},
|
||||
Short: "Query for an address by account number",
|
||||
Args: cobra.ExactArgs(1),
|
||||
Example: fmt.Sprintf("%s q auth address-by-id 1", version.AppName),
|
||||
Example: fmt.Sprintf("%s q auth address-by-acc-num 1", version.AppName),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
clientCtx, err := client.GetClientQueryContext(cmd)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
id, err := strconv.ParseUint(args[0], 10, 64)
|
||||
accNum, err := strconv.ParseInt(args[0], 10, 64)
|
||||
if err != nil {
|
||||
return fmt.Errorf("id %s not a valid uint, please input a valid account-id", args[0])
|
||||
return err
|
||||
}
|
||||
|
||||
queryClient := types.NewQueryClient(clientCtx)
|
||||
res, err := queryClient.AccountAddressByID(cmd.Context(), &types.QueryAccountAddressByIDRequest{Id: id})
|
||||
res, err := queryClient.AccountAddressByID(cmd.Context(), &types.QueryAccountAddressByIDRequest{Id: accNum})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@ -24,10 +24,14 @@ func (ak AccountKeeper) AccountAddressByID(c context.Context, req *types.QueryAc
|
||||
return nil, status.Errorf(codes.InvalidArgument, "empty request")
|
||||
}
|
||||
|
||||
if req.Id < 0 {
|
||||
return nil, status.Error(codes.InvalidArgument, "invalid account number")
|
||||
}
|
||||
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
address := ak.GetAccountAddressByID(ctx, req.Id)
|
||||
address := ak.GetAccountAddressByID(ctx, uint64(req.GetId()))
|
||||
if len(address) == 0 {
|
||||
return nil, status.Errorf(codes.NotFound, "account address not found with id %d", req.Id)
|
||||
return nil, status.Errorf(codes.NotFound, "account address not found with account number %d", req.Id)
|
||||
}
|
||||
|
||||
return &types.QueryAccountAddressByIDResponse{AccountAddress: address}, nil
|
||||
|
||||
@ -166,6 +166,14 @@ func (suite *KeeperTestSuite) TestGRPCQueryAccountAddressByID() {
|
||||
expPass bool
|
||||
posttests func(res *types.QueryAccountAddressByIDResponse)
|
||||
}{
|
||||
{
|
||||
"invalid request",
|
||||
func() {
|
||||
req = &types.QueryAccountAddressByIDRequest{Id: -1}
|
||||
},
|
||||
false,
|
||||
func(res *types.QueryAccountAddressByIDResponse) {},
|
||||
},
|
||||
{
|
||||
"account address not found",
|
||||
func() {
|
||||
@ -179,7 +187,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryAccountAddressByID() {
|
||||
func() {
|
||||
account := suite.accountKeeper.NewAccountWithAddress(suite.ctx, addr)
|
||||
suite.accountKeeper.SetAccount(suite.ctx, account)
|
||||
req = &types.QueryAccountAddressByIDRequest{Id: account.GetAccountNumber()}
|
||||
req = &types.QueryAccountAddressByIDRequest{Id: int64(account.GetAccountNumber())}
|
||||
},
|
||||
true,
|
||||
func(res *types.QueryAccountAddressByIDResponse) {
|
||||
|
||||
@ -666,8 +666,13 @@ func (m *AddressStringToBytesResponse) GetAddressBytes() []byte {
|
||||
}
|
||||
|
||||
// QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
type QueryAccountAddressByIDRequest struct {
|
||||
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
// id is the account number of the address to be queried. This field
|
||||
// should have been an uint64 (like all account numbers), and will be
|
||||
// updated to uint64 in a future version of the auth query.
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryAccountAddressByIDRequest) Reset() { *m = QueryAccountAddressByIDRequest{} }
|
||||
@ -703,7 +708,7 @@ func (m *QueryAccountAddressByIDRequest) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_QueryAccountAddressByIDRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryAccountAddressByIDRequest) GetId() uint64 {
|
||||
func (m *QueryAccountAddressByIDRequest) GetId() int64 {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
@ -711,6 +716,8 @@ func (m *QueryAccountAddressByIDRequest) GetId() uint64 {
|
||||
}
|
||||
|
||||
// QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
type QueryAccountAddressByIDResponse struct {
|
||||
AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
|
||||
}
|
||||
@ -756,6 +763,8 @@ func (m *QueryAccountAddressByIDResponse) GetAccountAddress() string {
|
||||
}
|
||||
|
||||
// QueryAccountInfoRequest is the Query/AccountInfo request type.
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
type QueryAccountInfoRequest struct {
|
||||
// address is the account address string.
|
||||
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||
@ -802,6 +811,8 @@ func (m *QueryAccountInfoRequest) GetAddress() string {
|
||||
}
|
||||
|
||||
// QueryAccountInfoResponse is the Query/AccountInfo response type.
|
||||
//
|
||||
// Since: cosmos-sdk 0.47
|
||||
type QueryAccountInfoResponse struct {
|
||||
// info is the account info which is represented by BaseAccount.
|
||||
Info *BaseAccount `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
|
||||
@ -873,66 +884,66 @@ func init() { proto.RegisterFile("cosmos/auth/v1beta1/query.proto", fileDescript
|
||||
var fileDescriptor_c451370b3929a27c = []byte{
|
||||
// 971 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xcf, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xc7, 0xbd, 0x21, 0x24, 0xe1, 0xc5, 0x0d, 0xd2, 0xc4, 0x15, 0x61, 0x9d, 0xda, 0xd1, 0x16,
|
||||
0x1a, 0x27, 0xd4, 0xbb, 0x8d, 0x93, 0x03, 0x05, 0x84, 0x14, 0x37, 0x80, 0x72, 0xa8, 0x64, 0xb6,
|
||||
0x39, 0x71, 0xc0, 0x5a, 0x7b, 0x37, 0x9b, 0x15, 0xcd, 0x8e, 0xeb, 0x59, 0xa3, 0x46, 0x55, 0x2e,
|
||||
0x48, 0x48, 0xbd, 0x54, 0x42, 0x82, 0x3f, 0x20, 0x07, 0xc4, 0x99, 0x43, 0xe0, 0xca, 0xb5, 0xea,
|
||||
0xa9, 0x82, 0x0b, 0x27, 0x84, 0x12, 0x24, 0xf8, 0x33, 0x90, 0x67, 0xde, 0xec, 0x8f, 0x64, 0x6c,
|
||||
0x6f, 0xd4, 0x53, 0xbc, 0x33, 0xef, 0x7d, 0xdf, 0x67, 0xde, 0x7b, 0xf3, 0x26, 0x50, 0xed, 0x52,
|
||||
0x76, 0x48, 0x99, 0xe5, 0x0c, 0xa2, 0x03, 0xeb, 0xeb, 0x8d, 0x8e, 0x17, 0x39, 0x1b, 0xd6, 0xa3,
|
||||
0x81, 0xd7, 0x3f, 0x32, 0x7b, 0x7d, 0x1a, 0x51, 0xb2, 0x28, 0x0c, 0xcc, 0xa1, 0x81, 0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0xfa, 0xce, 0x41, 0x92, 0x92, 0xfb, 0x30, 0xdd, 0xe3, 0x2b, 0x98, 0xf0, 0xb2,
|
||||
0xa9, 0xe8, 0x42, 0x53, 0x38, 0x35, 0xaf, 0xbf, 0xfc, 0xb3, 0x5a, 0xb0, 0xd1, 0xc1, 0xd8, 0xcd,
|
||||
0xd6, 0x31, 0x96, 0xfc, 0x10, 0x66, 0x30, 0x63, 0xa8, 0x99, 0x27, 0xc9, 0xd2, 0xc5, 0x28, 0x01,
|
||||
0xc9, 0x70, 0x0a, 0xfa, 0x2e, 0x94, 0x95, 0x67, 0xc3, 0x90, 0xdb, 0x39, 0x0b, 0x4b, 0x5e, 0x9d,
|
||||
0xd4, 0xe7, 0x33, 0x1a, 0xa9, 0xf2, 0x1a, 0x37, 0x61, 0xa1, 0xe9, 0x75, 0xf7, 0x37, 0x1a, 0xad,
|
||||
0xbe, 0xb7, 0x17, 0x3c, 0x95, 0xb1, 0x3f, 0x80, 0x52, 0x76, 0x19, 0x83, 0xde, 0x86, 0x1b, 0x1d,
|
||||
0xbe, 0xde, 0xee, 0xf1, 0x0d, 0x51, 0x33, 0xbb, 0xd8, 0x49, 0x19, 0x1b, 0x4d, 0x28, 0x63, 0xe1,
|
||||
0x9a, 0x47, 0x91, 0xc7, 0xf6, 0x28, 0xd6, 0x0f, 0x2b, 0x7e, 0x13, 0xae, 0x61, 0x21, 0xdb, 0x9d,
|
||||
0xe1, 0x3e, 0xd7, 0x28, 0xda, 0x45, 0x27, 0xe5, 0x63, 0x7c, 0x02, 0xcb, 0x6a, 0x0d, 0x04, 0x79,
|
||||
0x17, 0x16, 0xa4, 0x08, 0xe3, 0x3b, 0x48, 0x22, 0xa5, 0x85, 0xb9, 0xb1, 0x13, 0xa3, 0x88, 0x85,
|
||||
0x3d, 0xca, 0xe5, 0x24, 0x4a, 0x4e, 0x95, 0x7b, 0x31, 0xcc, 0x05, 0x95, 0x24, 0x2b, 0x93, 0x4f,
|
||||
0x74, 0x07, 0x2a, 0xe9, 0xd6, 0x89, 0x4f, 0xb7, 0xbb, 0x23, 0x69, 0x16, 0x60, 0x2a, 0x70, 0xb9,
|
||||
0xef, 0xb4, 0x3d, 0x15, 0xb8, 0x86, 0x0b, 0xd5, 0x91, 0x1e, 0x18, 0x79, 0x1b, 0xde, 0xc4, 0x52,
|
||||
0xb6, 0xf3, 0xde, 0xa2, 0x05, 0x27, 0x23, 0x67, 0xdc, 0x87, 0xb7, 0xd2, 0x51, 0x76, 0xc3, 0x7d,
|
||||
0xfa, 0x0a, 0x77, 0xd3, 0x68, 0xc1, 0xd2, 0x65, 0x39, 0xa4, 0xdd, 0x82, 0xe9, 0x20, 0xdc, 0xa7,
|
||||
0x78, 0x45, 0x56, 0x94, 0xd7, 0xae, 0xe9, 0x30, 0xd9, 0xa7, 0x36, 0xb7, 0x6e, 0xfc, 0x36, 0x0f,
|
||||
0xaf, 0x73, 0x49, 0xf2, 0x4c, 0x03, 0x79, 0x7b, 0x18, 0x59, 0x53, 0xba, 0xab, 0xa6, 0xac, 0xbe,
|
||||
0x9e, 0xc7, 0x54, 0x30, 0x1a, 0xeb, 0x4f, 0xff, 0xfd, 0x79, 0x5d, 0xfb, 0xe6, 0x8f, 0x7f, 0xbe,
|
||||
0x9f, 0xaa, 0x92, 0x1b, 0x96, 0xf2, 0x3d, 0x90, 0x08, 0x3f, 0x68, 0x30, 0x8b, 0x02, 0xa4, 0x36,
|
||||
0x31, 0x86, 0xa4, 0x59, 0xcb, 0x61, 0x89, 0x30, 0x5b, 0x09, 0xcc, 0x1a, 0x59, 0x1d, 0x0b, 0x63,
|
||||
0x3d, 0xc1, 0x0a, 0x1c, 0x93, 0x5f, 0x34, 0x20, 0x97, 0x7b, 0x86, 0x6c, 0x4e, 0x8c, 0x7b, 0xb9,
|
||||
0x27, 0xf5, 0xad, 0xab, 0x39, 0x5d, 0x81, 0x3b, 0xbe, 0x30, 0xed, 0xc0, 0xb5, 0x9e, 0x04, 0xee,
|
||||
0x31, 0xf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fc, 0x17, 0x00,
|
||||
0x00, 0xff, 0xff, 0x83, 0xfa, 0x46, 0x09, 0x54, 0x0c, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@ -957,6 +968,8 @@ type QueryClient interface {
|
||||
// Account returns account details based on address.
|
||||
Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
|
||||
// AccountAddressByID returns account address based on account id
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
AccountAddressByID(ctx context.Context, in *QueryAccountAddressByIDRequest, opts ...grpc.CallOption) (*QueryAccountAddressByIDResponse, error)
|
||||
// Params queries all parameters.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
@ -1083,6 +1096,8 @@ type QueryServer interface {
|
||||
// Account returns account details based on address.
|
||||
Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
|
||||
// AccountAddressByID returns account address based on account id
|
||||
//
|
||||
// Since: cosmos-sdk 0.46.2
|
||||
AccountAddressByID(context.Context, *QueryAccountAddressByIDRequest) (*QueryAccountAddressByIDResponse, error)
|
||||
// Params queries all parameters.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
@ -3304,7 +3319,7 @@ func (m *QueryAccountAddressByIDRequest) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
m.Id |= uint64(b&0x7F) << shift
|
||||
m.Id |= int64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ func request_Query_AccountAddressByID_0(ctx context.Context, marshaler runtime.M
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
|
||||
}
|
||||
|
||||
protoReq.Id, err = runtime.Uint64(val)
|
||||
protoReq.Id, err = runtime.Int64(val)
|
||||
|
||||
if err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
@ -166,7 +166,7 @@ func local_request_Query_AccountAddressByID_0(ctx context.Context, marshaler run
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
|
||||
}
|
||||
|
||||
protoReq.Id, err = runtime.Uint64(val)
|
||||
protoReq.Id, err = runtime.Int64(val)
|
||||
|
||||
if err != nil {
|
||||
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
|
||||
|
||||
@ -73,7 +73,7 @@ var xxx_messageInfo_DelegatorWithdrawInfo proto.InternalMessageInfo
|
||||
type ValidatorOutstandingRewardsRecord struct {
|
||||
// validator_address is the address of the validator.
|
||||
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
|
||||
// outstanding_rewards represents the oustanding rewards of a validator.
|
||||
// outstanding_rewards represents the outstanding rewards of a validator.
|
||||
OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards"`
|
||||
}
|
||||
|
||||
@ -284,7 +284,7 @@ var xxx_messageInfo_DelegatorStartingInfoRecord proto.InternalMessageInfo
|
||||
type ValidatorSlashEventRecord struct {
|
||||
// validator_address is the address of the validator.
|
||||
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
|
||||
// height defines the block height at which the slash event occured.
|
||||
// height defines the block height at which the slash event occurred.
|
||||
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
|
||||
// period is the period of the slash event.
|
||||
Period uint64 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"`
|
||||
|
||||
@ -168,7 +168,7 @@ type QueryValidatorDistributionInfoResponse struct {
|
||||
OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
|
||||
// self_bond_rewards defines the self delegations rewards.
|
||||
SelfBondRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=self_bond_rewards,json=selfBondRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"self_bond_rewards"`
|
||||
// commission defines the commision the validator received.
|
||||
// commission defines the commission the validator received.
|
||||
Commission github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,3,rep,name=commission,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"commission"`
|
||||
}
|
||||
|
||||
@ -375,7 +375,7 @@ func (m *QueryValidatorCommissionRequest) GetValidatorAddress() string {
|
||||
// QueryValidatorCommissionResponse is the response type for the
|
||||
// Query/ValidatorCommission RPC method
|
||||
type QueryValidatorCommissionResponse struct {
|
||||
// commission defines the commision the validator received.
|
||||
// commission defines the commission the validator received.
|
||||
Commission ValidatorAccumulatedCommission `protobuf:"bytes,1,opt,name=commission,proto3" json:"commission"`
|
||||
}
|
||||
|
||||
@ -1073,7 +1073,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
type QueryClient interface {
|
||||
// Params queries params of the distribution module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
// ValidatorDistributionInfo queries validator commision and self-delegation rewards for validator
|
||||
// ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
|
||||
ValidatorDistributionInfo(ctx context.Context, in *QueryValidatorDistributionInfoRequest, opts ...grpc.CallOption) (*QueryValidatorDistributionInfoResponse, error)
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address.
|
||||
ValidatorOutstandingRewards(ctx context.Context, in *QueryValidatorOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryValidatorOutstandingRewardsResponse, error)
|
||||
@ -1196,7 +1196,7 @@ func (c *queryClient) CommunityPool(ctx context.Context, in *QueryCommunityPoolR
|
||||
type QueryServer interface {
|
||||
// Params queries params of the distribution module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
// ValidatorDistributionInfo queries validator commision and self-delegation rewards for validator
|
||||
// ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
|
||||
ValidatorDistributionInfo(context.Context, *QueryValidatorDistributionInfoRequest) (*QueryValidatorDistributionInfoResponse, error)
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address.
|
||||
ValidatorOutstandingRewards(context.Context, *QueryValidatorOutstandingRewardsRequest) (*QueryValidatorOutstandingRewardsResponse, error)
|
||||
|
||||
@ -33,11 +33,11 @@ type GenesisState struct {
|
||||
Votes Votes `protobuf:"bytes,3,rep,name=votes,proto3,castrepeated=Votes" json:"votes"`
|
||||
// proposals defines all the proposals present at genesis.
|
||||
Proposals Proposals `protobuf:"bytes,4,rep,name=proposals,proto3,castrepeated=Proposals" json:"proposals"`
|
||||
// params defines all the paramaters of related to deposit.
|
||||
// params defines all the parameters of related to deposit.
|
||||
DepositParams DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params"`
|
||||
// params defines all the paramaters of related to voting.
|
||||
// params defines all the parameters of related to voting.
|
||||
VotingParams VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params"`
|
||||
// params defines all the paramaters of related to tally.
|
||||
// params defines all the parameters of related to tally.
|
||||
TallyParams TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params"`
|
||||
}
|
||||
|
||||
|
||||
@ -715,7 +715,7 @@ type Proposal struct {
|
||||
// whichever happens first.
|
||||
FinalTallyResult TallyResult `protobuf:"bytes,9,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result"`
|
||||
// voting_period_end is the timestamp before which voting must be done.
|
||||
// Unless a successfull MsgExec is called before (to execute a proposal whose
|
||||
// Unless a successful MsgExec is called before (to execute a proposal whose
|
||||
// tally is successful before the voting period ends), tallying will be done
|
||||
// at this point, and the `final_tally_result`and `status` fields will be
|
||||
// accordingly updated.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user