Versions in this module Expand all Collapse all v0 v0.43.1 Aug 24, 2021 Changes in this version + const ModuleName + const QuerierRoute + const RouterKey + var ErrIntOverflowAuthz = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidExpirationTime = sdkerrors.Register(ModuleName, 3, ...) + var ErrInvalidLengthAuthz = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + func MsgServiceDesc() *grpc.ServiceDesc + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + func ValidateGenesis(data GenesisState) error + type AcceptResponse struct + Accept bool + Delete bool + Updated Authorization + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + type Authorization interface + Accept func(ctx sdk.Context, msg sdk.Msg) (AcceptResponse, error) + MsgTypeURL func() string + ValidateBasic func() error + type BankKeeper interface + IsSendEnabledCoins func(ctx sdk.Context, coins ...sdk.Coin) error + SpendableCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + type EventGrant struct + Grantee string + Granter string + MsgTypeUrl string + func (*EventGrant) Descriptor() ([]byte, []int) + func (*EventGrant) ProtoMessage() + func (m *EventGrant) GetGrantee() string + func (m *EventGrant) GetGranter() string + func (m *EventGrant) GetMsgTypeUrl() string + func (m *EventGrant) Marshal() (dAtA []byte, err error) + func (m *EventGrant) MarshalTo(dAtA []byte) (int, error) + func (m *EventGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EventGrant) Reset() + func (m *EventGrant) Size() (n int) + func (m *EventGrant) String() string + func (m *EventGrant) Unmarshal(dAtA []byte) error + func (m *EventGrant) XXX_DiscardUnknown() + func (m *EventGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EventGrant) XXX_Merge(src proto.Message) + func (m *EventGrant) XXX_Size() int + func (m *EventGrant) XXX_Unmarshal(b []byte) error + type EventRevoke struct + Grantee string + Granter string + MsgTypeUrl string + func (*EventRevoke) Descriptor() ([]byte, []int) + func (*EventRevoke) ProtoMessage() + func (m *EventRevoke) GetGrantee() string + func (m *EventRevoke) GetGranter() string + func (m *EventRevoke) GetMsgTypeUrl() string + func (m *EventRevoke) Marshal() (dAtA []byte, err error) + func (m *EventRevoke) MarshalTo(dAtA []byte) (int, error) + func (m *EventRevoke) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *EventRevoke) Reset() + func (m *EventRevoke) Size() (n int) + func (m *EventRevoke) String() string + func (m *EventRevoke) Unmarshal(dAtA []byte) error + func (m *EventRevoke) XXX_DiscardUnknown() + func (m *EventRevoke) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *EventRevoke) XXX_Merge(src proto.Message) + func (m *EventRevoke) XXX_Size() int + func (m *EventRevoke) XXX_Unmarshal(b []byte) error + type GenericAuthorization struct + Msg string + func NewGenericAuthorization(msgTypeURL string) *GenericAuthorization + func (*GenericAuthorization) Descriptor() ([]byte, []int) + func (*GenericAuthorization) ProtoMessage() + func (a GenericAuthorization) Accept(ctx sdk.Context, msg sdk.Msg) (AcceptResponse, error) + func (a GenericAuthorization) MsgTypeURL() string + func (a GenericAuthorization) ValidateBasic() error + func (m *GenericAuthorization) Marshal() (dAtA []byte, err error) + func (m *GenericAuthorization) MarshalTo(dAtA []byte) (int, error) + func (m *GenericAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenericAuthorization) Reset() + func (m *GenericAuthorization) Size() (n int) + func (m *GenericAuthorization) String() string + func (m *GenericAuthorization) Unmarshal(dAtA []byte) error + func (m *GenericAuthorization) XXX_DiscardUnknown() + func (m *GenericAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenericAuthorization) XXX_Merge(src proto.Message) + func (m *GenericAuthorization) XXX_Size() int + func (m *GenericAuthorization) XXX_Unmarshal(b []byte) error + type GenesisState struct + Authorization []GrantAuthorization + func DefaultGenesisState() *GenesisState + func NewGenesisState(entries []GrantAuthorization) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (data GenesisState) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error + func (m *GenesisState) GetAuthorization() []GrantAuthorization + func (m *GenesisState) Marshal() (dAtA []byte, err error) + func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) error + func (m *GenesisState) XXX_DiscardUnknown() + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisState) XXX_Merge(src proto.Message) + func (m *GenesisState) XXX_Size() int + func (m *GenesisState) XXX_Unmarshal(b []byte) error + type Grant struct + Authorization *types.Any + Expiration time.Time + func NewGrant(a Authorization, expiration time.Time) (Grant, error) + func (*Grant) Descriptor() ([]byte, []int) + func (*Grant) ProtoMessage() + func (g Grant) GetAuthorization() Authorization + func (g Grant) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error + func (g Grant) ValidateBasic() error + func (m *Grant) Marshal() (dAtA []byte, err error) + func (m *Grant) MarshalTo(dAtA []byte) (int, error) + func (m *Grant) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Grant) Reset() + func (m *Grant) Size() (n int) + func (m *Grant) String() string + func (m *Grant) Unmarshal(dAtA []byte) error + func (m *Grant) XXX_DiscardUnknown() + func (m *Grant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Grant) XXX_Merge(src proto.Message) + func (m *Grant) XXX_Size() int + func (m *Grant) XXX_Unmarshal(b []byte) error + type GrantAuthorization struct + Authorization *types.Any + Expiration time.Time + Grantee string + Granter string + func (*GrantAuthorization) Descriptor() ([]byte, []int) + func (*GrantAuthorization) ProtoMessage() + func (m *GrantAuthorization) GetAuthorization() *types.Any + func (m *GrantAuthorization) GetExpiration() time.Time + func (m *GrantAuthorization) GetGrantee() string + func (m *GrantAuthorization) GetGranter() string + func (m *GrantAuthorization) Marshal() (dAtA []byte, err error) + func (m *GrantAuthorization) MarshalTo(dAtA []byte) (int, error) + func (m *GrantAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GrantAuthorization) Reset() + func (m *GrantAuthorization) Size() (n int) + func (m *GrantAuthorization) String() string + func (m *GrantAuthorization) Unmarshal(dAtA []byte) error + func (m *GrantAuthorization) XXX_DiscardUnknown() + func (m *GrantAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GrantAuthorization) XXX_Merge(src proto.Message) + func (m *GrantAuthorization) XXX_Size() int + func (m *GrantAuthorization) XXX_Unmarshal(b []byte) error + func (msg GrantAuthorization) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error + type MsgClient interface + Exec func(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error) + Grant func(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error) + Revoke func(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgExec struct + Grantee string + Msgs []*types.Any + func NewMsgExec(grantee sdk.AccAddress, msgs []sdk.Msg) MsgExec + func (*MsgExec) Descriptor() ([]byte, []int) + func (*MsgExec) ProtoMessage() + func (m *MsgExec) Marshal() (dAtA []byte, err error) + func (m *MsgExec) MarshalTo(dAtA []byte) (int, error) + func (m *MsgExec) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgExec) Reset() + func (m *MsgExec) Size() (n int) + func (m *MsgExec) String() string + func (m *MsgExec) Unmarshal(dAtA []byte) error + func (m *MsgExec) XXX_DiscardUnknown() + func (m *MsgExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgExec) XXX_Merge(src proto.Message) + func (m *MsgExec) XXX_Size() int + func (m *MsgExec) XXX_Unmarshal(b []byte) error + func (msg MsgExec) GetMessages() ([]sdk.Msg, error) + func (msg MsgExec) GetSignBytes() []byte + func (msg MsgExec) GetSigners() []sdk.AccAddress + func (msg MsgExec) Route() string + func (msg MsgExec) Type() string + func (msg MsgExec) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error + func (msg MsgExec) ValidateBasic() error + type MsgExecResponse struct + Results [][]byte + func (*MsgExecResponse) Descriptor() ([]byte, []int) + func (*MsgExecResponse) ProtoMessage() + func (m *MsgExecResponse) Marshal() (dAtA []byte, err error) + func (m *MsgExecResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgExecResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgExecResponse) Reset() + func (m *MsgExecResponse) Size() (n int) + func (m *MsgExecResponse) String() string + func (m *MsgExecResponse) Unmarshal(dAtA []byte) error + func (m *MsgExecResponse) XXX_DiscardUnknown() + func (m *MsgExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgExecResponse) XXX_Merge(src proto.Message) + func (m *MsgExecResponse) XXX_Size() int + func (m *MsgExecResponse) XXX_Unmarshal(b []byte) error + type MsgGrant struct + Grant Grant + Grantee string + Granter string + func NewMsgGrant(granter sdk.AccAddress, grantee sdk.AccAddress, a Authorization, ...) (*MsgGrant, error) + func (*MsgGrant) Descriptor() ([]byte, []int) + func (*MsgGrant) ProtoMessage() + func (m *MsgGrant) Marshal() (dAtA []byte, err error) + func (m *MsgGrant) MarshalTo(dAtA []byte) (int, error) + func (m *MsgGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgGrant) Reset() + func (m *MsgGrant) Size() (n int) + func (m *MsgGrant) String() string + func (m *MsgGrant) Unmarshal(dAtA []byte) error + func (m *MsgGrant) XXX_DiscardUnknown() + func (m *MsgGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgGrant) XXX_Merge(src proto.Message) + func (m *MsgGrant) XXX_Size() int + func (m *MsgGrant) XXX_Unmarshal(b []byte) error + func (msg *MsgGrant) GetAuthorization() Authorization + func (msg *MsgGrant) SetAuthorization(a Authorization) error + func (msg MsgGrant) GetSignBytes() []byte + func (msg MsgGrant) GetSigners() []sdk.AccAddress + func (msg MsgGrant) Route() string + func (msg MsgGrant) Type() string + func (msg MsgGrant) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error + func (msg MsgGrant) ValidateBasic() error + type MsgGrantResponse struct + func (*MsgGrantResponse) Descriptor() ([]byte, []int) + func (*MsgGrantResponse) ProtoMessage() + func (m *MsgGrantResponse) Marshal() (dAtA []byte, err error) + func (m *MsgGrantResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgGrantResponse) Reset() + func (m *MsgGrantResponse) Size() (n int) + func (m *MsgGrantResponse) String() string + func (m *MsgGrantResponse) Unmarshal(dAtA []byte) error + func (m *MsgGrantResponse) XXX_DiscardUnknown() + func (m *MsgGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgGrantResponse) XXX_Merge(src proto.Message) + func (m *MsgGrantResponse) XXX_Size() int + func (m *MsgGrantResponse) XXX_Unmarshal(b []byte) error + type MsgRevoke struct + Grantee string + Granter string + MsgTypeUrl string + func NewMsgRevoke(granter sdk.AccAddress, grantee sdk.AccAddress, msgTypeURL string) MsgRevoke + func (*MsgRevoke) Descriptor() ([]byte, []int) + func (*MsgRevoke) ProtoMessage() + func (m *MsgRevoke) Marshal() (dAtA []byte, err error) + func (m *MsgRevoke) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRevoke) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRevoke) Reset() + func (m *MsgRevoke) Size() (n int) + func (m *MsgRevoke) String() string + func (m *MsgRevoke) Unmarshal(dAtA []byte) error + func (m *MsgRevoke) XXX_DiscardUnknown() + func (m *MsgRevoke) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRevoke) XXX_Merge(src proto.Message) + func (m *MsgRevoke) XXX_Size() int + func (m *MsgRevoke) XXX_Unmarshal(b []byte) error + func (msg MsgRevoke) GetSignBytes() []byte + func (msg MsgRevoke) GetSigners() []sdk.AccAddress + func (msg MsgRevoke) Route() string + func (msg MsgRevoke) Type() string + func (msg MsgRevoke) ValidateBasic() error + type MsgRevokeResponse struct + func (*MsgRevokeResponse) Descriptor() ([]byte, []int) + func (*MsgRevokeResponse) ProtoMessage() + func (m *MsgRevokeResponse) Marshal() (dAtA []byte, err error) + func (m *MsgRevokeResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRevokeResponse) Reset() + func (m *MsgRevokeResponse) Size() (n int) + func (m *MsgRevokeResponse) String() string + func (m *MsgRevokeResponse) Unmarshal(dAtA []byte) error + func (m *MsgRevokeResponse) XXX_DiscardUnknown() + func (m *MsgRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRevokeResponse) XXX_Merge(src proto.Message) + func (m *MsgRevokeResponse) XXX_Size() int + func (m *MsgRevokeResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + Exec func(context.Context, *MsgExec) (*MsgExecResponse, error) + Grant func(context.Context, *MsgGrant) (*MsgGrantResponse, error) + Revoke func(context.Context, *MsgRevoke) (*MsgRevokeResponse, error) + type QueryClient interface + Grants func(ctx context.Context, in *QueryGrantsRequest, opts ...grpc.CallOption) (*QueryGrantsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryGrantsRequest struct + Grantee string + Granter string + MsgTypeUrl string + Pagination *query.PageRequest + func (*QueryGrantsRequest) Descriptor() ([]byte, []int) + func (*QueryGrantsRequest) ProtoMessage() + func (m *QueryGrantsRequest) GetGrantee() string + func (m *QueryGrantsRequest) GetGranter() string + func (m *QueryGrantsRequest) GetMsgTypeUrl() string + func (m *QueryGrantsRequest) GetPagination() *query.PageRequest + func (m *QueryGrantsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryGrantsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryGrantsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryGrantsRequest) Reset() + func (m *QueryGrantsRequest) Size() (n int) + func (m *QueryGrantsRequest) String() string + func (m *QueryGrantsRequest) Unmarshal(dAtA []byte) error + func (m *QueryGrantsRequest) XXX_DiscardUnknown() + func (m *QueryGrantsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryGrantsRequest) XXX_Merge(src proto.Message) + func (m *QueryGrantsRequest) XXX_Size() int + func (m *QueryGrantsRequest) XXX_Unmarshal(b []byte) error + type QueryGrantsResponse struct + Grants []*Grant + Pagination *query.PageResponse + func (*QueryGrantsResponse) Descriptor() ([]byte, []int) + func (*QueryGrantsResponse) ProtoMessage() + func (m *QueryGrantsResponse) GetGrants() []*Grant + func (m *QueryGrantsResponse) GetPagination() *query.PageResponse + func (m *QueryGrantsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryGrantsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryGrantsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryGrantsResponse) Reset() + func (m *QueryGrantsResponse) Size() (n int) + func (m *QueryGrantsResponse) String() string + func (m *QueryGrantsResponse) Unmarshal(dAtA []byte) error + func (m *QueryGrantsResponse) XXX_DiscardUnknown() + func (m *QueryGrantsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryGrantsResponse) XXX_Merge(src proto.Message) + func (m *QueryGrantsResponse) XXX_Size() int + func (m *QueryGrantsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Grants func(context.Context, *QueryGrantsRequest) (*QueryGrantsResponse, error) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) Exec(ctx context.Context, req *MsgExec) (*MsgExecResponse, error) + func (*UnimplementedMsgServer) Grant(ctx context.Context, req *MsgGrant) (*MsgGrantResponse, error) + func (*UnimplementedMsgServer) Revoke(ctx context.Context, req *MsgRevoke) (*MsgRevokeResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Grants(ctx context.Context, req *QueryGrantsRequest) (*QueryGrantsResponse, error)