types

package
v1.8.0-cube.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "burn"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthBurn        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBurn          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBurn = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrBurnProposalNotFound = errorsmod.Register(ModuleName, 1, "burn proposal not found")
	ErrInvalidBurnAmount    = errorsmod.Register(ModuleName, 2, "invalid burn amount")
	ErrBurnProposalExists   = errorsmod.Register(ModuleName, 3, "burn proposal already exists")
)

x/burn module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	OngoingBurnProposalsPrefix = collections.NewPrefix("on_going_burn_proposals")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/burn interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
}

type BankKeeper

type BankKeeper interface {
	BurnCoins(ctx context.Context, moduleName string, amounts sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BurnProposal

type BurnProposal struct {
	ProposalId uint64                                   `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Proposer   string                                   `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	Amount     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

BurnProposal defines a ongoingburn proposal

func (*BurnProposal) Descriptor

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

func (*BurnProposal) GetAmount

func (*BurnProposal) GetProposalId

func (m *BurnProposal) GetProposalId() uint64

func (*BurnProposal) GetProposer

func (m *BurnProposal) GetProposer() string

func (*BurnProposal) Marshal

func (m *BurnProposal) Marshal() (dAtA []byte, err error)

func (*BurnProposal) MarshalTo

func (m *BurnProposal) MarshalTo(dAtA []byte) (int, error)

func (*BurnProposal) MarshalToSizedBuffer

func (m *BurnProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BurnProposal) ProtoMessage

func (*BurnProposal) ProtoMessage()

func (*BurnProposal) Reset

func (m *BurnProposal) Reset()

func (*BurnProposal) Size

func (m *BurnProposal) Size() (n int)

func (*BurnProposal) String

func (m *BurnProposal) String() string

func (*BurnProposal) Unmarshal

func (m *BurnProposal) Unmarshal(dAtA []byte) error

func (BurnProposal) Validate

func (b BurnProposal) Validate() error

func (*BurnProposal) XXX_DiscardUnknown

func (m *BurnProposal) XXX_DiscardUnknown()

func (*BurnProposal) XXX_Marshal

func (m *BurnProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BurnProposal) XXX_Merge

func (m *BurnProposal) XXX_Merge(src proto.Message)

func (*BurnProposal) XXX_Size

func (m *BurnProposal) XXX_Size() int

func (*BurnProposal) XXX_Unmarshal

func (m *BurnProposal) XXX_Unmarshal(b []byte) error

type BurnProposalSlice

type BurnProposalSlice = []*BurnProposal

BurnProposalSlice is an alias for []*BurnProposal

type GenesisState

type GenesisState struct {
	// ongoing_burn_proposals defines the ongoing burn proposals at genesis
	OngoingBurnProposals []BurnProposal `protobuf:"bytes,1,rep,name=ongoing_burn_proposals,json=ongoingBurnProposals,proto3" json:"ongoing_burn_proposals"`
}

GenesisState defines the bank module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default bank module genesis state.

func NewGenesisState

func NewGenesisState(burnProposals []BurnProposal) *GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetOngoingBurnProposals

func (m *GenesisState) GetOngoingBurnProposals() []BurnProposal

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic validation of supply genesis data returning an error for any failed validation criteria.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type GovKeeper

type GovKeeper interface {
	Proposal(ctx context.Context, req *govv1types.QueryProposalRequest) (*govv1types.QueryProposalResponse, error)
}

GovKeeper defines the expected governance keeper interface

type MsgBurn

type MsgBurn struct {
	// authority is the address of the governance account.
	Authority string                                   `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"`
	Amount    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgBurn represents a message to burn coins from an account.

func UnpackMsgBurn

func UnpackMsgBurn(cdc codec.BinaryCodec, msg *types.Any) (*MsgBurn, error)

func (*MsgBurn) Descriptor

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

func (*MsgBurn) Equal

func (this *MsgBurn) Equal(that interface{}) bool

func (*MsgBurn) Marshal

func (m *MsgBurn) Marshal() (dAtA []byte, err error)

func (*MsgBurn) MarshalTo

func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurn) MarshalToSizedBuffer

func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurn) ProtoMessage

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset

func (m *MsgBurn) Reset()

func (*MsgBurn) Size

func (m *MsgBurn) Size() (n int)

func (*MsgBurn) String

func (m *MsgBurn) String() string

func (*MsgBurn) Unmarshal

func (m *MsgBurn) Unmarshal(dAtA []byte) error

func (*MsgBurn) XXX_DiscardUnknown

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal

func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurn) XXX_Merge

func (m *MsgBurn) XXX_Merge(src proto.Message)

func (*MsgBurn) XXX_Size

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal

func (m *MsgBurn) XXX_Unmarshal(b []byte) error

type MsgBurnResponse

type MsgBurnResponse struct {
}

MsgBurnResponse defines the Msg/Burn response type.

func (*MsgBurnResponse) Descriptor

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

func (*MsgBurnResponse) Marshal

func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)

func (*MsgBurnResponse) MarshalTo

func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnResponse) MarshalToSizedBuffer

func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnResponse) ProtoMessage

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size

func (m *MsgBurnResponse) Size() (n int)

func (*MsgBurnResponse) String

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal

func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error

func (*MsgBurnResponse) XXX_DiscardUnknown

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal

func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnResponse) XXX_Merge

func (m *MsgBurnResponse) XXX_Merge(src proto.Message)

func (*MsgBurnResponse) XXX_Size

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal

func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// Burn defines a method for burning coins from an account.
	Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// Burn defines a method for burning coins from an account.
	Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
}

MsgServer is the server API for Msg service.

type QueryClient

type QueryClient interface {
	// Query all ongoing burn proposals
	OngoingProposals(ctx context.Context, in *QueryOngoingProposalsRequest, opts ...grpc.CallOption) (*QueryOngoingProposalsResponse, error)
	// Query a specific ongoing burn proposal by ID
	OngoingProposal(ctx context.Context, in *QueryOngoingProposalRequest, opts ...grpc.CallOption) (*QueryOngoingProposalResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryOngoingProposalRequest

type QueryOngoingProposalRequest struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
}

QueryOngoingProposalRequest is the request type for the Query/OngoingProposal RPC method.

func (*QueryOngoingProposalRequest) Descriptor

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

func (*QueryOngoingProposalRequest) GetProposalId

func (m *QueryOngoingProposalRequest) GetProposalId() uint64

func (*QueryOngoingProposalRequest) Marshal

func (m *QueryOngoingProposalRequest) Marshal() (dAtA []byte, err error)

func (*QueryOngoingProposalRequest) MarshalTo

func (m *QueryOngoingProposalRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOngoingProposalRequest) MarshalToSizedBuffer

func (m *QueryOngoingProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOngoingProposalRequest) ProtoMessage

func (*QueryOngoingProposalRequest) ProtoMessage()

func (*QueryOngoingProposalRequest) Reset

func (m *QueryOngoingProposalRequest) Reset()

func (*QueryOngoingProposalRequest) Size

func (m *QueryOngoingProposalRequest) Size() (n int)

func (*QueryOngoingProposalRequest) String

func (m *QueryOngoingProposalRequest) String() string

func (*QueryOngoingProposalRequest) Unmarshal

func (m *QueryOngoingProposalRequest) Unmarshal(dAtA []byte) error

func (*QueryOngoingProposalRequest) XXX_DiscardUnknown

func (m *QueryOngoingProposalRequest) XXX_DiscardUnknown()

func (*QueryOngoingProposalRequest) XXX_Marshal

func (m *QueryOngoingProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOngoingProposalRequest) XXX_Merge

func (m *QueryOngoingProposalRequest) XXX_Merge(src proto.Message)

func (*QueryOngoingProposalRequest) XXX_Size

func (m *QueryOngoingProposalRequest) XXX_Size() int

func (*QueryOngoingProposalRequest) XXX_Unmarshal

func (m *QueryOngoingProposalRequest) XXX_Unmarshal(b []byte) error

type QueryOngoingProposalResponse

type QueryOngoingProposalResponse struct {
	Proposer string                                   `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
	Amount   github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

QueryOngoingProposalResponse is the response type for the Query/OngoingProposal RPC method.

func (*QueryOngoingProposalResponse) Descriptor

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

func (*QueryOngoingProposalResponse) GetAmount

func (*QueryOngoingProposalResponse) GetProposer

func (m *QueryOngoingProposalResponse) GetProposer() string

func (*QueryOngoingProposalResponse) Marshal

func (m *QueryOngoingProposalResponse) Marshal() (dAtA []byte, err error)

func (*QueryOngoingProposalResponse) MarshalTo

func (m *QueryOngoingProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOngoingProposalResponse) MarshalToSizedBuffer

func (m *QueryOngoingProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOngoingProposalResponse) ProtoMessage

func (*QueryOngoingProposalResponse) ProtoMessage()

func (*QueryOngoingProposalResponse) Reset

func (m *QueryOngoingProposalResponse) Reset()

func (*QueryOngoingProposalResponse) Size

func (m *QueryOngoingProposalResponse) Size() (n int)

func (*QueryOngoingProposalResponse) String

func (*QueryOngoingProposalResponse) Unmarshal

func (m *QueryOngoingProposalResponse) Unmarshal(dAtA []byte) error

func (*QueryOngoingProposalResponse) XXX_DiscardUnknown

func (m *QueryOngoingProposalResponse) XXX_DiscardUnknown()

func (*QueryOngoingProposalResponse) XXX_Marshal

func (m *QueryOngoingProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOngoingProposalResponse) XXX_Merge

func (m *QueryOngoingProposalResponse) XXX_Merge(src proto.Message)

func (*QueryOngoingProposalResponse) XXX_Size

func (m *QueryOngoingProposalResponse) XXX_Size() int

func (*QueryOngoingProposalResponse) XXX_Unmarshal

func (m *QueryOngoingProposalResponse) XXX_Unmarshal(b []byte) error

type QueryOngoingProposalsRequest

type QueryOngoingProposalsRequest struct {
}

QueryOngoingProposalsRequest is the request type for the Query/OngoingProposals RPC method.

func (*QueryOngoingProposalsRequest) Descriptor

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

func (*QueryOngoingProposalsRequest) Marshal

func (m *QueryOngoingProposalsRequest) Marshal() (dAtA []byte, err error)

func (*QueryOngoingProposalsRequest) MarshalTo

func (m *QueryOngoingProposalsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOngoingProposalsRequest) MarshalToSizedBuffer

func (m *QueryOngoingProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOngoingProposalsRequest) ProtoMessage

func (*QueryOngoingProposalsRequest) ProtoMessage()

func (*QueryOngoingProposalsRequest) Reset

func (m *QueryOngoingProposalsRequest) Reset()

func (*QueryOngoingProposalsRequest) Size

func (m *QueryOngoingProposalsRequest) Size() (n int)

func (*QueryOngoingProposalsRequest) String

func (*QueryOngoingProposalsRequest) Unmarshal

func (m *QueryOngoingProposalsRequest) Unmarshal(dAtA []byte) error

func (*QueryOngoingProposalsRequest) XXX_DiscardUnknown

func (m *QueryOngoingProposalsRequest) XXX_DiscardUnknown()

func (*QueryOngoingProposalsRequest) XXX_Marshal

func (m *QueryOngoingProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOngoingProposalsRequest) XXX_Merge

func (m *QueryOngoingProposalsRequest) XXX_Merge(src proto.Message)

func (*QueryOngoingProposalsRequest) XXX_Size

func (m *QueryOngoingProposalsRequest) XXX_Size() int

func (*QueryOngoingProposalsRequest) XXX_Unmarshal

func (m *QueryOngoingProposalsRequest) XXX_Unmarshal(b []byte) error

type QueryOngoingProposalsResponse

type QueryOngoingProposalsResponse struct {
	Proposals []BurnProposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals"`
}

QueryOngoingProposalsResponse is the response type for the Query/OngoingProposals RPC method.

func (*QueryOngoingProposalsResponse) Descriptor

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

func (*QueryOngoingProposalsResponse) GetProposals

func (m *QueryOngoingProposalsResponse) GetProposals() []BurnProposal

func (*QueryOngoingProposalsResponse) Marshal

func (m *QueryOngoingProposalsResponse) Marshal() (dAtA []byte, err error)

func (*QueryOngoingProposalsResponse) MarshalTo

func (m *QueryOngoingProposalsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOngoingProposalsResponse) MarshalToSizedBuffer

func (m *QueryOngoingProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOngoingProposalsResponse) ProtoMessage

func (*QueryOngoingProposalsResponse) ProtoMessage()

func (*QueryOngoingProposalsResponse) Reset

func (m *QueryOngoingProposalsResponse) Reset()

func (*QueryOngoingProposalsResponse) Size

func (m *QueryOngoingProposalsResponse) Size() (n int)

func (*QueryOngoingProposalsResponse) String

func (*QueryOngoingProposalsResponse) Unmarshal

func (m *QueryOngoingProposalsResponse) Unmarshal(dAtA []byte) error

func (*QueryOngoingProposalsResponse) XXX_DiscardUnknown

func (m *QueryOngoingProposalsResponse) XXX_DiscardUnknown()

func (*QueryOngoingProposalsResponse) XXX_Marshal

func (m *QueryOngoingProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOngoingProposalsResponse) XXX_Merge

func (m *QueryOngoingProposalsResponse) XXX_Merge(src proto.Message)

func (*QueryOngoingProposalsResponse) XXX_Size

func (m *QueryOngoingProposalsResponse) XXX_Size() int

func (*QueryOngoingProposalsResponse) XXX_Unmarshal

func (m *QueryOngoingProposalsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Query all ongoing burn proposals
	OngoingProposals(context.Context, *QueryOngoingProposalsRequest) (*QueryOngoingProposalsResponse, error)
	// Query a specific ongoing burn proposal by ID
	OngoingProposal(context.Context, *QueryOngoingProposalRequest) (*QueryOngoingProposalResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) OngoingProposal

func (*UnimplementedQueryServer) OngoingProposals

Jump to

Keyboard shortcuts

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