authzv1beta1

package
v0.6.6-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_cosmos_authz_v1beta1_authz_proto protoreflect.FileDescriptor
View Source
var File_cosmos_authz_v1beta1_event_proto protoreflect.FileDescriptor
View Source
var File_cosmos_authz_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_authz_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_authz_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.authz.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Grant",
			Handler:    _Msg_Grant_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _Msg_Exec_Handler,
		},
		{
			MethodName: "Revoke",
			Handler:    _Msg_Revoke_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/authz/v1beta1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.authz.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Grants",
			Handler:    _Query_Grants_Handler,
		},
		{
			MethodName: "GranterGrants",
			Handler:    _Query_GranterGrants_Handler,
		},
		{
			MethodName: "GranteeGrants",
			Handler:    _Query_GranteeGrants_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/authz/v1beta1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type EventGrant

type EventGrant struct {

	// Msg type URL for which an autorization is granted
	MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// Granter account address
	Granter string `protobuf:"bytes,3,opt,name=granter,proto3" json:"granter,omitempty"`
	// Grantee account address
	Grantee string `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// contains filtered or unexported fields
}

EventGrant is emitted on Msg/Grant

func (*EventGrant) Descriptor deprecated

func (*EventGrant) Descriptor() ([]byte, []int)

Deprecated: Use EventGrant.ProtoReflect.Descriptor instead.

func (*EventGrant) GetGrantee

func (x *EventGrant) GetGrantee() string

func (*EventGrant) GetGranter

func (x *EventGrant) GetGranter() string

func (*EventGrant) GetMsgTypeUrl

func (x *EventGrant) GetMsgTypeUrl() string

func (*EventGrant) ProtoMessage

func (*EventGrant) ProtoMessage()

func (*EventGrant) ProtoReflect

func (x *EventGrant) ProtoReflect() protoreflect.Message

func (*EventGrant) Reset

func (x *EventGrant) Reset()

func (*EventGrant) String

func (x *EventGrant) String() string

type EventRevoke

type EventRevoke struct {

	// Msg type URL for which an autorization is revoked
	MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// Granter account address
	Granter string `protobuf:"bytes,3,opt,name=granter,proto3" json:"granter,omitempty"`
	// Grantee account address
	Grantee string `protobuf:"bytes,4,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// contains filtered or unexported fields
}

EventRevoke is emitted on Msg/Revoke

func (*EventRevoke) Descriptor deprecated

func (*EventRevoke) Descriptor() ([]byte, []int)

Deprecated: Use EventRevoke.ProtoReflect.Descriptor instead.

func (*EventRevoke) GetGrantee

func (x *EventRevoke) GetGrantee() string

func (*EventRevoke) GetGranter

func (x *EventRevoke) GetGranter() string

func (*EventRevoke) GetMsgTypeUrl

func (x *EventRevoke) GetMsgTypeUrl() string

func (*EventRevoke) ProtoMessage

func (*EventRevoke) ProtoMessage()

func (*EventRevoke) ProtoReflect

func (x *EventRevoke) ProtoReflect() protoreflect.Message

func (*EventRevoke) Reset

func (x *EventRevoke) Reset()

func (*EventRevoke) String

func (x *EventRevoke) String() string

type GenericAuthorization

type GenericAuthorization struct {

	// Msg, identified by it's type URL, to grant unrestricted permissions to execute
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

GenericAuthorization gives the grantee unrestricted permissions to execute the provided method on behalf of the granter's account.

func (*GenericAuthorization) Descriptor deprecated

func (*GenericAuthorization) Descriptor() ([]byte, []int)

Deprecated: Use GenericAuthorization.ProtoReflect.Descriptor instead.

func (*GenericAuthorization) GetMsg

func (x *GenericAuthorization) GetMsg() string

func (*GenericAuthorization) ProtoMessage

func (*GenericAuthorization) ProtoMessage()

func (*GenericAuthorization) ProtoReflect

func (x *GenericAuthorization) ProtoReflect() protoreflect.Message

func (*GenericAuthorization) Reset

func (x *GenericAuthorization) Reset()

func (*GenericAuthorization) String

func (x *GenericAuthorization) String() string

type GenesisState

type GenesisState struct {
	Authorization []*GrantAuthorization `protobuf:"bytes,1,rep,name=authorization,proto3" json:"authorization,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the authz module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAuthorization

func (x *GenesisState) GetAuthorization() []*GrantAuthorization

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type Grant

type Grant struct {
	Authorization *anypb.Any `protobuf:"bytes,1,opt,name=authorization,proto3" json:"authorization,omitempty"`
	// time when the grant will expire and will be pruned. If null, then the grant
	// doesn't have a time expiration (other conditions  in `authorization`
	// may apply to invalidate the grant)
	Expiration *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

Grant gives permissions to execute the provide method with expiration time.

func (*Grant) Descriptor deprecated

func (*Grant) Descriptor() ([]byte, []int)

Deprecated: Use Grant.ProtoReflect.Descriptor instead.

func (*Grant) GetAuthorization

func (x *Grant) GetAuthorization() *anypb.Any

func (*Grant) GetExpiration

func (x *Grant) GetExpiration() *timestamppb.Timestamp

func (*Grant) ProtoMessage

func (*Grant) ProtoMessage()

func (*Grant) ProtoReflect

func (x *Grant) ProtoReflect() protoreflect.Message

func (*Grant) Reset

func (x *Grant) Reset()

func (*Grant) String

func (x *Grant) String() string

type GrantAuthorization

type GrantAuthorization struct {
	Granter       string                 `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	Grantee       string                 `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	Authorization *anypb.Any             `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
	Expiration    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

GrantAuthorization extends a grant with both the addresses of the grantee and granter. It is used in genesis.proto and query.proto

func (*GrantAuthorization) Descriptor deprecated

func (*GrantAuthorization) Descriptor() ([]byte, []int)

Deprecated: Use GrantAuthorization.ProtoReflect.Descriptor instead.

func (*GrantAuthorization) GetAuthorization

func (x *GrantAuthorization) GetAuthorization() *anypb.Any

func (*GrantAuthorization) GetExpiration

func (x *GrantAuthorization) GetExpiration() *timestamppb.Timestamp

func (*GrantAuthorization) GetGrantee

func (x *GrantAuthorization) GetGrantee() string

func (*GrantAuthorization) GetGranter

func (x *GrantAuthorization) GetGranter() string

func (*GrantAuthorization) ProtoMessage

func (*GrantAuthorization) ProtoMessage()

func (*GrantAuthorization) ProtoReflect

func (x *GrantAuthorization) ProtoReflect() protoreflect.Message

func (*GrantAuthorization) Reset

func (x *GrantAuthorization) Reset()

func (*GrantAuthorization) String

func (x *GrantAuthorization) String() string

type GrantQueueItem

type GrantQueueItem struct {

	// msg_type_urls contains the list of TypeURL of a sdk.Msg.
	MsgTypeUrls []string `protobuf:"bytes,1,rep,name=msg_type_urls,json=msgTypeUrls,proto3" json:"msg_type_urls,omitempty"`
	// contains filtered or unexported fields
}

GrantQueueItem contains the list of TypeURL of a sdk.Msg.

func (*GrantQueueItem) Descriptor deprecated

func (*GrantQueueItem) Descriptor() ([]byte, []int)

Deprecated: Use GrantQueueItem.ProtoReflect.Descriptor instead.

func (*GrantQueueItem) GetMsgTypeUrls

func (x *GrantQueueItem) GetMsgTypeUrls() []string

func (*GrantQueueItem) ProtoMessage

func (*GrantQueueItem) ProtoMessage()

func (*GrantQueueItem) ProtoReflect

func (x *GrantQueueItem) ProtoReflect() protoreflect.Message

func (*GrantQueueItem) Reset

func (x *GrantQueueItem) Reset()

func (*GrantQueueItem) String

func (x *GrantQueueItem) String() string

type MsgClient

type MsgClient interface {
	// Grant grants the provided authorization to the grantee on the granter's
	// account with the provided expiration time. If there is already a grant
	// for the given (granter, grantee, Authorization) triple, then the grant
	// will be overwritten.
	Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error)
	// Exec attempts to execute the provided messages using
	// authorizations granted to the grantee. Each message should have only
	// one signer corresponding to the granter of the authorization.
	Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error)
	// Revoke revokes any authorization corresponding to the provided method name on the
	// granter's account that has been granted to the grantee.
	Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgExec

type MsgExec struct {
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// Authorization Msg requests to execute. Each msg must implement Authorization interface
	// The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg))
	// triple and validate it.
	Msgs []*anypb.Any `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs,omitempty"`
	// contains filtered or unexported fields
}

MsgExec attempts to execute the provided messages using authorizations granted to the grantee. Each message should have only one signer corresponding to the granter of the authorization.

func (*MsgExec) Descriptor deprecated

func (*MsgExec) Descriptor() ([]byte, []int)

Deprecated: Use MsgExec.ProtoReflect.Descriptor instead.

func (*MsgExec) GetGrantee

func (x *MsgExec) GetGrantee() string

func (*MsgExec) GetMsgs

func (x *MsgExec) GetMsgs() []*anypb.Any

func (*MsgExec) ProtoMessage

func (*MsgExec) ProtoMessage()

func (*MsgExec) ProtoReflect

func (x *MsgExec) ProtoReflect() protoreflect.Message

func (*MsgExec) Reset

func (x *MsgExec) Reset()

func (*MsgExec) String

func (x *MsgExec) String() string

type MsgExecResponse

type MsgExecResponse struct {
	Results [][]byte `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

MsgExecResponse defines the Msg/MsgExecResponse response type.

func (*MsgExecResponse) Descriptor deprecated

func (*MsgExecResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgExecResponse.ProtoReflect.Descriptor instead.

func (*MsgExecResponse) GetResults

func (x *MsgExecResponse) GetResults() [][]byte

func (*MsgExecResponse) ProtoMessage

func (*MsgExecResponse) ProtoMessage()

func (*MsgExecResponse) ProtoReflect

func (x *MsgExecResponse) ProtoReflect() protoreflect.Message

func (*MsgExecResponse) Reset

func (x *MsgExecResponse) Reset()

func (*MsgExecResponse) String

func (x *MsgExecResponse) String() string

type MsgGrant

type MsgGrant struct {
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	Grant   *Grant `protobuf:"bytes,3,opt,name=grant,proto3" json:"grant,omitempty"`
	// contains filtered or unexported fields
}

MsgGrant is a request type for Grant method. It declares authorization to the grantee on behalf of the granter with the provided expiration time.

func (*MsgGrant) Descriptor deprecated

func (*MsgGrant) Descriptor() ([]byte, []int)

Deprecated: Use MsgGrant.ProtoReflect.Descriptor instead.

func (*MsgGrant) GetGrant

func (x *MsgGrant) GetGrant() *Grant

func (*MsgGrant) GetGrantee

func (x *MsgGrant) GetGrantee() string

func (*MsgGrant) GetGranter

func (x *MsgGrant) GetGranter() string

func (*MsgGrant) ProtoMessage

func (*MsgGrant) ProtoMessage()

func (*MsgGrant) ProtoReflect

func (x *MsgGrant) ProtoReflect() protoreflect.Message

func (*MsgGrant) Reset

func (x *MsgGrant) Reset()

func (*MsgGrant) String

func (x *MsgGrant) String() string

type MsgGrantResponse

type MsgGrantResponse struct {
	// contains filtered or unexported fields
}

MsgGrantResponse defines the Msg/MsgGrant response type.

func (*MsgGrantResponse) Descriptor deprecated

func (*MsgGrantResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgGrantResponse.ProtoReflect.Descriptor instead.

func (*MsgGrantResponse) ProtoMessage

func (*MsgGrantResponse) ProtoMessage()

func (*MsgGrantResponse) ProtoReflect

func (x *MsgGrantResponse) ProtoReflect() protoreflect.Message

func (*MsgGrantResponse) Reset

func (x *MsgGrantResponse) Reset()

func (*MsgGrantResponse) String

func (x *MsgGrantResponse) String() string

type MsgRevoke

type MsgRevoke struct {
	Granter    string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	Grantee    string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// contains filtered or unexported fields
}

MsgRevoke revokes any authorization with the provided sdk.Msg type on the granter's account with that has been granted to the grantee.

func (*MsgRevoke) Descriptor deprecated

func (*MsgRevoke) Descriptor() ([]byte, []int)

Deprecated: Use MsgRevoke.ProtoReflect.Descriptor instead.

func (*MsgRevoke) GetGrantee

func (x *MsgRevoke) GetGrantee() string

func (*MsgRevoke) GetGranter

func (x *MsgRevoke) GetGranter() string

func (*MsgRevoke) GetMsgTypeUrl

func (x *MsgRevoke) GetMsgTypeUrl() string

func (*MsgRevoke) ProtoMessage

func (*MsgRevoke) ProtoMessage()

func (*MsgRevoke) ProtoReflect

func (x *MsgRevoke) ProtoReflect() protoreflect.Message

func (*MsgRevoke) Reset

func (x *MsgRevoke) Reset()

func (*MsgRevoke) String

func (x *MsgRevoke) String() string

type MsgRevokeResponse

type MsgRevokeResponse struct {
	// contains filtered or unexported fields
}

MsgRevokeResponse defines the Msg/MsgRevokeResponse response type.

func (*MsgRevokeResponse) Descriptor deprecated

func (*MsgRevokeResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgRevokeResponse.ProtoReflect.Descriptor instead.

func (*MsgRevokeResponse) ProtoMessage

func (*MsgRevokeResponse) ProtoMessage()

func (*MsgRevokeResponse) ProtoReflect

func (x *MsgRevokeResponse) ProtoReflect() protoreflect.Message

func (*MsgRevokeResponse) Reset

func (x *MsgRevokeResponse) Reset()

func (*MsgRevokeResponse) String

func (x *MsgRevokeResponse) String() string

type MsgServer

type MsgServer interface {
	// Grant grants the provided authorization to the grantee on the granter's
	// account with the provided expiration time. If there is already a grant
	// for the given (granter, grantee, Authorization) triple, then the grant
	// will be overwritten.
	Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error)
	// Exec attempts to execute the provided messages using
	// authorizations granted to the grantee. Each message should have only
	// one signer corresponding to the granter of the authorization.
	Exec(context.Context, *MsgExec) (*MsgExecResponse, error)
	// Revoke revokes any authorization corresponding to the provided method name on the
	// granter's account that has been granted to the grantee.
	Revoke(context.Context, *MsgRevoke) (*MsgRevokeResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type QueryClient

type QueryClient interface {
	// Returns list of `Authorization`, granted to the grantee by the granter.
	Grants(ctx context.Context, in *QueryGrantsRequest, opts ...grpc.CallOption) (*QueryGrantsResponse, error)
	// GranterGrants returns list of `GrantAuthorization`, granted by granter.
	//
	// Since: cosmos-sdk 0.46
	GranterGrants(ctx context.Context, in *QueryGranterGrantsRequest, opts ...grpc.CallOption) (*QueryGranterGrantsResponse, error)
	// GranteeGrants returns a list of `GrantAuthorization` by grantee.
	//
	// Since: cosmos-sdk 0.46
	GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryGranteeGrantsRequest

type QueryGranteeGrantsRequest struct {
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// pagination defines an pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method.

func (*QueryGranteeGrantsRequest) Descriptor deprecated

func (*QueryGranteeGrantsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGranteeGrantsRequest.ProtoReflect.Descriptor instead.

func (*QueryGranteeGrantsRequest) GetGrantee

func (x *QueryGranteeGrantsRequest) GetGrantee() string

func (*QueryGranteeGrantsRequest) GetPagination

func (x *QueryGranteeGrantsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryGranteeGrantsRequest) ProtoMessage

func (*QueryGranteeGrantsRequest) ProtoMessage()

func (*QueryGranteeGrantsRequest) ProtoReflect

func (*QueryGranteeGrantsRequest) Reset

func (x *QueryGranteeGrantsRequest) Reset()

func (*QueryGranteeGrantsRequest) String

func (x *QueryGranteeGrantsRequest) String() string

type QueryGranteeGrantsResponse

type QueryGranteeGrantsResponse struct {

	// grants is a list of grants granted to the grantee.
	Grants []*GrantAuthorization `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.

func (*QueryGranteeGrantsResponse) Descriptor deprecated

func (*QueryGranteeGrantsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGranteeGrantsResponse.ProtoReflect.Descriptor instead.

func (*QueryGranteeGrantsResponse) GetGrants

func (*QueryGranteeGrantsResponse) GetPagination

func (x *QueryGranteeGrantsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryGranteeGrantsResponse) ProtoMessage

func (*QueryGranteeGrantsResponse) ProtoMessage()

func (*QueryGranteeGrantsResponse) ProtoReflect

func (*QueryGranteeGrantsResponse) Reset

func (x *QueryGranteeGrantsResponse) Reset()

func (*QueryGranteeGrantsResponse) String

func (x *QueryGranteeGrantsResponse) String() string

type QueryGranterGrantsRequest

type QueryGranterGrantsRequest struct {
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// pagination defines an pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.

func (*QueryGranterGrantsRequest) Descriptor deprecated

func (*QueryGranterGrantsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGranterGrantsRequest.ProtoReflect.Descriptor instead.

func (*QueryGranterGrantsRequest) GetGranter

func (x *QueryGranterGrantsRequest) GetGranter() string

func (*QueryGranterGrantsRequest) GetPagination

func (x *QueryGranterGrantsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryGranterGrantsRequest) ProtoMessage

func (*QueryGranterGrantsRequest) ProtoMessage()

func (*QueryGranterGrantsRequest) ProtoReflect

func (*QueryGranterGrantsRequest) Reset

func (x *QueryGranterGrantsRequest) Reset()

func (*QueryGranterGrantsRequest) String

func (x *QueryGranterGrantsRequest) String() string

type QueryGranterGrantsResponse

type QueryGranterGrantsResponse struct {

	// grants is a list of grants granted by the granter.
	Grants []*GrantAuthorization `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.

func (*QueryGranterGrantsResponse) Descriptor deprecated

func (*QueryGranterGrantsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGranterGrantsResponse.ProtoReflect.Descriptor instead.

func (*QueryGranterGrantsResponse) GetGrants

func (*QueryGranterGrantsResponse) GetPagination

func (x *QueryGranterGrantsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryGranterGrantsResponse) ProtoMessage

func (*QueryGranterGrantsResponse) ProtoMessage()

func (*QueryGranterGrantsResponse) ProtoReflect

func (*QueryGranterGrantsResponse) Reset

func (x *QueryGranterGrantsResponse) Reset()

func (*QueryGranterGrantsResponse) String

func (x *QueryGranterGrantsResponse) String() string

type QueryGrantsRequest

type QueryGrantsRequest struct {
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// Optional, msg_type_url, when set, will query only grants matching given msg type.
	MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// pagination defines an pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGrantsRequest is the request type for the Query/Grants RPC method.

func (*QueryGrantsRequest) Descriptor deprecated

func (*QueryGrantsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGrantsRequest.ProtoReflect.Descriptor instead.

func (*QueryGrantsRequest) GetGrantee

func (x *QueryGrantsRequest) GetGrantee() string

func (*QueryGrantsRequest) GetGranter

func (x *QueryGrantsRequest) GetGranter() string

func (*QueryGrantsRequest) GetMsgTypeUrl

func (x *QueryGrantsRequest) GetMsgTypeUrl() string

func (*QueryGrantsRequest) GetPagination

func (x *QueryGrantsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryGrantsRequest) ProtoMessage

func (*QueryGrantsRequest) ProtoMessage()

func (*QueryGrantsRequest) ProtoReflect

func (x *QueryGrantsRequest) ProtoReflect() protoreflect.Message

func (*QueryGrantsRequest) Reset

func (x *QueryGrantsRequest) Reset()

func (*QueryGrantsRequest) String

func (x *QueryGrantsRequest) String() string

type QueryGrantsResponse

type QueryGrantsResponse struct {

	// authorizations is a list of grants granted for grantee by granter.
	Grants []*Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGrantsResponse is the response type for the Query/Authorizations RPC method.

func (*QueryGrantsResponse) Descriptor deprecated

func (*QueryGrantsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGrantsResponse.ProtoReflect.Descriptor instead.

func (*QueryGrantsResponse) GetGrants

func (x *QueryGrantsResponse) GetGrants() []*Grant

func (*QueryGrantsResponse) GetPagination

func (x *QueryGrantsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryGrantsResponse) ProtoMessage

func (*QueryGrantsResponse) ProtoMessage()

func (*QueryGrantsResponse) ProtoReflect

func (x *QueryGrantsResponse) ProtoReflect() protoreflect.Message

func (*QueryGrantsResponse) Reset

func (x *QueryGrantsResponse) Reset()

func (*QueryGrantsResponse) String

func (x *QueryGrantsResponse) String() string

type QueryServer

type QueryServer interface {
	// Returns list of `Authorization`, granted to the grantee by the granter.
	Grants(context.Context, *QueryGrantsRequest) (*QueryGrantsResponse, error)
	// GranterGrants returns list of `GrantAuthorization`, granted by granter.
	//
	// Since: cosmos-sdk 0.46
	GranterGrants(context.Context, *QueryGranterGrantsRequest) (*QueryGranterGrantsResponse, error)
	// GranteeGrants returns a list of `GrantAuthorization` by grantee.
	//
	// Since: cosmos-sdk 0.46
	GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Exec

func (UnimplementedMsgServer) Grant

func (UnimplementedMsgServer) Revoke

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Grants

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL