feegrantv1beta1

package
v0.0.0-...-a315113 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 21 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.

Index

Constants

This section is empty.

Variables

View Source
var File_cosmos_feegrant_v1beta1_feegrant_proto protoreflect.FileDescriptor
View Source
var File_cosmos_feegrant_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_feegrant_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_feegrant_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.feegrant.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GrantAllowance",
			Handler:    _Msg_GrantAllowance_Handler,
		},
		{
			MethodName: "RevokeAllowance",
			Handler:    _Msg_RevokeAllowance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/feegrant/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.feegrant.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Allowance",
			Handler:    _Query_Allowance_Handler,
		},
		{
			MethodName: "Allowances",
			Handler:    _Query_Allowances_Handler,
		},
		{
			MethodName: "AllowancesByGranter",
			Handler:    _Query_AllowancesByGranter_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/feegrant/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 AllowedMsgAllowance

type AllowedMsgAllowance struct {

	// allowance can be any of basic and periodic fee allowance.
	Allowance *anypb.Any `protobuf:"bytes,1,opt,name=allowance,proto3" json:"allowance,omitempty"`
	// allowed_messages are the messages for which the grantee has the access.
	AllowedMessages []string `protobuf:"bytes,2,rep,name=allowed_messages,json=allowedMessages,proto3" json:"allowed_messages,omitempty"`
	// contains filtered or unexported fields
}

AllowedMsgAllowance creates allowance only for specified message types.

func (*AllowedMsgAllowance) Descriptor deprecated

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

Deprecated: Use AllowedMsgAllowance.ProtoReflect.Descriptor instead.

func (*AllowedMsgAllowance) GetAllowance

func (x *AllowedMsgAllowance) GetAllowance() *anypb.Any

func (*AllowedMsgAllowance) GetAllowedMessages

func (x *AllowedMsgAllowance) GetAllowedMessages() []string

func (*AllowedMsgAllowance) ProtoMessage

func (*AllowedMsgAllowance) ProtoMessage()

func (*AllowedMsgAllowance) ProtoReflect

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

func (*AllowedMsgAllowance) Reset

func (x *AllowedMsgAllowance) Reset()

func (*AllowedMsgAllowance) String

func (x *AllowedMsgAllowance) String() string

type BasicAllowance

type BasicAllowance struct {

	// spend_limit specifies the maximum amount of tokens that can be spent
	// by this allowance and will be updated as tokens are spent. If it is
	// empty, there is no spend limit and any amount of coins can be spent.
	SpendLimit []*v1beta1.Coin `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3" json:"spend_limit,omitempty"`
	// expiration specifies an optional time when this allowance expires
	Expiration *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

BasicAllowance implements Allowance with a one-time grant of tokens that optionally expires. The grantee can use up to SpendLimit to cover fees.

func (*BasicAllowance) Descriptor deprecated

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

Deprecated: Use BasicAllowance.ProtoReflect.Descriptor instead.

func (*BasicAllowance) GetExpiration

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

func (*BasicAllowance) GetSpendLimit

func (x *BasicAllowance) GetSpendLimit() []*v1beta1.Coin

func (*BasicAllowance) ProtoMessage

func (*BasicAllowance) ProtoMessage()

func (*BasicAllowance) ProtoReflect

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

func (*BasicAllowance) Reset

func (x *BasicAllowance) Reset()

func (*BasicAllowance) String

func (x *BasicAllowance) String() string

type GenesisState

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

GenesisState contains a set of fee allowances, persisted from the store

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAllowances

func (x *GenesisState) GetAllowances() []*Grant

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 {

	// granter is the address of the user granting an allowance of their funds.
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// grantee is the address of the user being granted an allowance of another user's funds.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// allowance can be any of basic, periodic, allowed fee allowance.
	Allowance *anypb.Any `protobuf:"bytes,3,opt,name=allowance,proto3" json:"allowance,omitempty"`
	// contains filtered or unexported fields
}

Grant is stored in the KVStore to record a grant with full context

func (*Grant) Descriptor deprecated

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

Deprecated: Use Grant.ProtoReflect.Descriptor instead.

func (*Grant) GetAllowance

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

func (*Grant) GetGrantee

func (x *Grant) GetGrantee() string

func (*Grant) GetGranter

func (x *Grant) GetGranter() string

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 MsgClient

type MsgClient interface {
	// GrantAllowance grants fee allowance to the grantee on the granter's
	// account with the provided expiration time.
	GrantAllowance(ctx context.Context, in *MsgGrantAllowance, opts ...grpc.CallOption) (*MsgGrantAllowanceResponse, error)
	// RevokeAllowance revokes any fee allowance of granter's account that
	// has been granted to the grantee.
	RevokeAllowance(ctx context.Context, in *MsgRevokeAllowance, opts ...grpc.CallOption) (*MsgRevokeAllowanceResponse, 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 MsgGrantAllowance

type MsgGrantAllowance struct {

	// granter is the address of the user granting an allowance of their funds.
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// grantee is the address of the user being granted an allowance of another user's funds.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// allowance can be any of basic, periodic, allowed fee allowance.
	Allowance *anypb.Any `protobuf:"bytes,3,opt,name=allowance,proto3" json:"allowance,omitempty"`
	// contains filtered or unexported fields
}

MsgGrantAllowance adds permission for Grantee to spend up to Allowance of fees from the account of Granter.

func (*MsgGrantAllowance) Descriptor deprecated

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

Deprecated: Use MsgGrantAllowance.ProtoReflect.Descriptor instead.

func (*MsgGrantAllowance) GetAllowance

func (x *MsgGrantAllowance) GetAllowance() *anypb.Any

func (*MsgGrantAllowance) GetGrantee

func (x *MsgGrantAllowance) GetGrantee() string

func (*MsgGrantAllowance) GetGranter

func (x *MsgGrantAllowance) GetGranter() string

func (*MsgGrantAllowance) ProtoMessage

func (*MsgGrantAllowance) ProtoMessage()

func (*MsgGrantAllowance) ProtoReflect

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

func (*MsgGrantAllowance) Reset

func (x *MsgGrantAllowance) Reset()

func (*MsgGrantAllowance) String

func (x *MsgGrantAllowance) String() string

type MsgGrantAllowanceResponse

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

MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.

func (*MsgGrantAllowanceResponse) Descriptor deprecated

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

Deprecated: Use MsgGrantAllowanceResponse.ProtoReflect.Descriptor instead.

func (*MsgGrantAllowanceResponse) ProtoMessage

func (*MsgGrantAllowanceResponse) ProtoMessage()

func (*MsgGrantAllowanceResponse) ProtoReflect

func (*MsgGrantAllowanceResponse) Reset

func (x *MsgGrantAllowanceResponse) Reset()

func (*MsgGrantAllowanceResponse) String

func (x *MsgGrantAllowanceResponse) String() string

type MsgRevokeAllowance

type MsgRevokeAllowance struct {

	// granter is the address of the user granting an allowance of their funds.
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// grantee is the address of the user being granted an allowance of another user's funds.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// contains filtered or unexported fields
}

MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.

func (*MsgRevokeAllowance) Descriptor deprecated

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

Deprecated: Use MsgRevokeAllowance.ProtoReflect.Descriptor instead.

func (*MsgRevokeAllowance) GetGrantee

func (x *MsgRevokeAllowance) GetGrantee() string

func (*MsgRevokeAllowance) GetGranter

func (x *MsgRevokeAllowance) GetGranter() string

func (*MsgRevokeAllowance) ProtoMessage

func (*MsgRevokeAllowance) ProtoMessage()

func (*MsgRevokeAllowance) ProtoReflect

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

func (*MsgRevokeAllowance) Reset

func (x *MsgRevokeAllowance) Reset()

func (*MsgRevokeAllowance) String

func (x *MsgRevokeAllowance) String() string

type MsgRevokeAllowanceResponse

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

MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type.

func (*MsgRevokeAllowanceResponse) Descriptor deprecated

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

Deprecated: Use MsgRevokeAllowanceResponse.ProtoReflect.Descriptor instead.

func (*MsgRevokeAllowanceResponse) ProtoMessage

func (*MsgRevokeAllowanceResponse) ProtoMessage()

func (*MsgRevokeAllowanceResponse) ProtoReflect

func (*MsgRevokeAllowanceResponse) Reset

func (x *MsgRevokeAllowanceResponse) Reset()

func (*MsgRevokeAllowanceResponse) String

func (x *MsgRevokeAllowanceResponse) String() string

type MsgServer

type MsgServer interface {
	// GrantAllowance grants fee allowance to the grantee on the granter's
	// account with the provided expiration time.
	GrantAllowance(context.Context, *MsgGrantAllowance) (*MsgGrantAllowanceResponse, error)
	// RevokeAllowance revokes any fee allowance of granter's account that
	// has been granted to the grantee.
	RevokeAllowance(context.Context, *MsgRevokeAllowance) (*MsgRevokeAllowanceResponse, error)
	// contains filtered or unexported methods
}

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

type PeriodicAllowance

type PeriodicAllowance struct {

	// basic specifies a struct of `BasicAllowance`
	Basic *BasicAllowance `protobuf:"bytes,1,opt,name=basic,proto3" json:"basic,omitempty"`
	// period specifies the time duration in which period_spend_limit coins can
	// be spent before that allowance is reset
	Period *durationpb.Duration `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"`
	// period_spend_limit specifies the maximum number of coins that can be spent
	// in the period
	PeriodSpendLimit []*v1beta1.Coin `protobuf:"bytes,3,rep,name=period_spend_limit,json=periodSpendLimit,proto3" json:"period_spend_limit,omitempty"`
	// period_can_spend is the number of coins left to be spent before the period_reset time
	PeriodCanSpend []*v1beta1.Coin `protobuf:"bytes,4,rep,name=period_can_spend,json=periodCanSpend,proto3" json:"period_can_spend,omitempty"`
	// period_reset is the time at which this period resets and a new one begins,
	// it is calculated from the start time of the first transaction after the
	// last period ended
	PeriodReset *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=period_reset,json=periodReset,proto3" json:"period_reset,omitempty"`
	// contains filtered or unexported fields
}

PeriodicAllowance extends Allowance to allow for both a maximum cap, as well as a limit per time period.

func (*PeriodicAllowance) Descriptor deprecated

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

Deprecated: Use PeriodicAllowance.ProtoReflect.Descriptor instead.

func (*PeriodicAllowance) GetBasic

func (x *PeriodicAllowance) GetBasic() *BasicAllowance

func (*PeriodicAllowance) GetPeriod

func (x *PeriodicAllowance) GetPeriod() *durationpb.Duration

func (*PeriodicAllowance) GetPeriodCanSpend

func (x *PeriodicAllowance) GetPeriodCanSpend() []*v1beta1.Coin

func (*PeriodicAllowance) GetPeriodReset

func (x *PeriodicAllowance) GetPeriodReset() *timestamppb.Timestamp

func (*PeriodicAllowance) GetPeriodSpendLimit

func (x *PeriodicAllowance) GetPeriodSpendLimit() []*v1beta1.Coin

func (*PeriodicAllowance) ProtoMessage

func (*PeriodicAllowance) ProtoMessage()

func (*PeriodicAllowance) ProtoReflect

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

func (*PeriodicAllowance) Reset

func (x *PeriodicAllowance) Reset()

func (*PeriodicAllowance) String

func (x *PeriodicAllowance) String() string

type QueryAllowanceRequest

type QueryAllowanceRequest struct {

	// granter is the address of the user granting an allowance of their funds.
	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
	// grantee is the address of the user being granted an allowance of another user's funds.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// contains filtered or unexported fields
}

QueryAllowanceRequest is the request type for the Query/Allowance RPC method.

func (*QueryAllowanceRequest) Descriptor deprecated

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

Deprecated: Use QueryAllowanceRequest.ProtoReflect.Descriptor instead.

func (*QueryAllowanceRequest) GetGrantee

func (x *QueryAllowanceRequest) GetGrantee() string

func (*QueryAllowanceRequest) GetGranter

func (x *QueryAllowanceRequest) GetGranter() string

func (*QueryAllowanceRequest) ProtoMessage

func (*QueryAllowanceRequest) ProtoMessage()

func (*QueryAllowanceRequest) ProtoReflect

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

func (*QueryAllowanceRequest) Reset

func (x *QueryAllowanceRequest) Reset()

func (*QueryAllowanceRequest) String

func (x *QueryAllowanceRequest) String() string

type QueryAllowanceResponse

type QueryAllowanceResponse struct {

	// allowance is a allowance granted for grantee by granter.
	Allowance *Grant `protobuf:"bytes,1,opt,name=allowance,proto3" json:"allowance,omitempty"`
	// contains filtered or unexported fields
}

QueryAllowanceResponse is the response type for the Query/Allowance RPC method.

func (*QueryAllowanceResponse) Descriptor deprecated

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

Deprecated: Use QueryAllowanceResponse.ProtoReflect.Descriptor instead.

func (*QueryAllowanceResponse) GetAllowance

func (x *QueryAllowanceResponse) GetAllowance() *Grant

func (*QueryAllowanceResponse) ProtoMessage

func (*QueryAllowanceResponse) ProtoMessage()

func (*QueryAllowanceResponse) ProtoReflect

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

func (*QueryAllowanceResponse) Reset

func (x *QueryAllowanceResponse) Reset()

func (*QueryAllowanceResponse) String

func (x *QueryAllowanceResponse) String() string

type QueryAllowancesByGranterRequest

type QueryAllowancesByGranterRequest 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
}

QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method.

func (*QueryAllowancesByGranterRequest) Descriptor deprecated

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

Deprecated: Use QueryAllowancesByGranterRequest.ProtoReflect.Descriptor instead.

func (*QueryAllowancesByGranterRequest) GetGranter

func (x *QueryAllowancesByGranterRequest) GetGranter() string

func (*QueryAllowancesByGranterRequest) GetPagination

func (*QueryAllowancesByGranterRequest) ProtoMessage

func (*QueryAllowancesByGranterRequest) ProtoMessage()

func (*QueryAllowancesByGranterRequest) ProtoReflect

func (*QueryAllowancesByGranterRequest) Reset

func (*QueryAllowancesByGranterRequest) String

type QueryAllowancesByGranterResponse

type QueryAllowancesByGranterResponse struct {

	// allowances that have been issued by the granter.
	Allowances []*Grant `protobuf:"bytes,1,rep,name=allowances,proto3" json:"allowances,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
}

QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method.

func (*QueryAllowancesByGranterResponse) Descriptor deprecated

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

Deprecated: Use QueryAllowancesByGranterResponse.ProtoReflect.Descriptor instead.

func (*QueryAllowancesByGranterResponse) GetAllowances

func (x *QueryAllowancesByGranterResponse) GetAllowances() []*Grant

func (*QueryAllowancesByGranterResponse) GetPagination

func (*QueryAllowancesByGranterResponse) ProtoMessage

func (*QueryAllowancesByGranterResponse) ProtoMessage()

func (*QueryAllowancesByGranterResponse) ProtoReflect

func (*QueryAllowancesByGranterResponse) Reset

func (*QueryAllowancesByGranterResponse) String

type QueryAllowancesRequest

type QueryAllowancesRequest 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
}

QueryAllowancesRequest is the request type for the Query/Allowances RPC method.

func (*QueryAllowancesRequest) Descriptor deprecated

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

Deprecated: Use QueryAllowancesRequest.ProtoReflect.Descriptor instead.

func (*QueryAllowancesRequest) GetGrantee

func (x *QueryAllowancesRequest) GetGrantee() string

func (*QueryAllowancesRequest) GetPagination

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

func (*QueryAllowancesRequest) ProtoMessage

func (*QueryAllowancesRequest) ProtoMessage()

func (*QueryAllowancesRequest) ProtoReflect

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

func (*QueryAllowancesRequest) Reset

func (x *QueryAllowancesRequest) Reset()

func (*QueryAllowancesRequest) String

func (x *QueryAllowancesRequest) String() string

type QueryAllowancesResponse

type QueryAllowancesResponse struct {

	// allowances are allowance's granted for grantee by granter.
	Allowances []*Grant `protobuf:"bytes,1,rep,name=allowances,proto3" json:"allowances,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
}

QueryAllowancesResponse is the response type for the Query/Allowances RPC method.

func (*QueryAllowancesResponse) Descriptor deprecated

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

Deprecated: Use QueryAllowancesResponse.ProtoReflect.Descriptor instead.

func (*QueryAllowancesResponse) GetAllowances

func (x *QueryAllowancesResponse) GetAllowances() []*Grant

func (*QueryAllowancesResponse) GetPagination

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

func (*QueryAllowancesResponse) ProtoMessage

func (*QueryAllowancesResponse) ProtoMessage()

func (*QueryAllowancesResponse) ProtoReflect

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

func (*QueryAllowancesResponse) Reset

func (x *QueryAllowancesResponse) Reset()

func (*QueryAllowancesResponse) String

func (x *QueryAllowancesResponse) String() string

type QueryClient

type QueryClient interface {
	// Allowance returns fee granted to the grantee by the granter.
	Allowance(ctx context.Context, in *QueryAllowanceRequest, opts ...grpc.CallOption) (*QueryAllowanceResponse, error)
	// Allowances returns all the grants for address.
	Allowances(ctx context.Context, in *QueryAllowancesRequest, opts ...grpc.CallOption) (*QueryAllowancesResponse, error)
	// AllowancesByGranter returns all the grants given by an address
	// Since v0.46
	AllowancesByGranter(ctx context.Context, in *QueryAllowancesByGranterRequest, opts ...grpc.CallOption) (*QueryAllowancesByGranterResponse, 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 QueryServer

type QueryServer interface {
	// Allowance returns fee granted to the grantee by the granter.
	Allowance(context.Context, *QueryAllowanceRequest) (*QueryAllowanceResponse, error)
	// Allowances returns all the grants for address.
	Allowances(context.Context, *QueryAllowancesRequest) (*QueryAllowancesResponse, error)
	// AllowancesByGranter returns all the grants given by an address
	// Since v0.46
	AllowancesByGranter(context.Context, *QueryAllowancesByGranterRequest) (*QueryAllowancesByGranterResponse, 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) GrantAllowance

func (UnimplementedMsgServer) RevokeAllowance

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Allowance

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