types

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 37 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 = "delayedack"

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

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_delayedack"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const (
	EventTypeDelayedAck = ModuleName
)

Variables

View Source
var (
	ErrCanOnlyUpdatePendingPacket = errorsmod.Register(ModuleName, 1, "can only update pending packet")
	ErrRollappPacketDoesNotExist  = errorsmod.Register(ModuleName, 2, "rollapp packet does not exist")
	ErrEmptyEpochIdentifier       = errorsmod.Register(ModuleName, 4, "empty epoch identifier")
	ErrMismatchedStateRoots       = errorsmod.Register(ModuleName, 5, "mismatched state roots")
	ErrMismatchedSequencer        = errorsmod.Register(ModuleName, 6, "mismatched sequencer")
	ErrMissingEIBCMetadata        = errorsmod.Register(ModuleName, 7, "missing eibc metadata")
)
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 (
	ErrMemoUnmarshal         = fmt.Errorf("unmarshal memo")
	ErrEIBCMetadataUnmarshal = fmt.Errorf("unmarshal eibc metadata")
	ErrMemoHashPFMandEIBC    = fmt.Errorf("EIBC packet with PFM is currently not supported")
	ErrMemoEibcEmpty         = fmt.Errorf("memo eIBC field is missing")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 ErrEIBCFeeNotPositiveInt = fmt.Errorf("eibc fee is not a positive integer")
View Source
var KeyEpochIdentifier = []byte("EpochIdentifier")

KeyEpochIdentifier is the key for the epoch identifier

Functions

func FromIBCProofContext added in v3.1.0

func FromIBCProofContext(ctx sdk.Context, packetId commontypes.PacketUID) (clienttypes.Height, bool)

func KeyPrefix

func KeyPrefix(p string) []byte

func NewIBCProofContext added in v3.1.0

func NewIBCProofContext(ctx sdk.Context, packetId commontypes.PacketUID, height clienttypes.Height) sdk.Context

func ParamKeyTable added in v3.1.0

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterQueryHandler added in v3.1.0

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 added in v3.1.0

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 added in v3.1.0

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 added in v3.1.0

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 added in v3.1.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper added in v3.1.0

type BankKeeper interface {
	BlockedAddr(addr sdk.AccAddress) bool
}

type BaseDelayedAckHook added in v3.1.0

type BaseDelayedAckHook struct{}

func (BaseDelayedAckHook) AfterPacketDeleted added in v3.1.0

func (b BaseDelayedAckHook) AfterPacketDeleted(ctx sdk.Context, rollappPacket *commontypes.RollappPacket) error

func (BaseDelayedAckHook) AfterPacketStatusUpdated added in v3.1.0

func (b BaseDelayedAckHook) AfterPacketStatusUpdated(ctx sdk.Context, packet *commontypes.RollappPacket, oldPacketKey string, newPacketKey string) error

type ChannelKeeper

type ChannelKeeper interface {
	LookupModuleByChannel(ctx sdk.Context, portID, channelID string) (string, *capabilitytypes.Capability, error)
	GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool)
	GetChannelClientState(ctx sdk.Context, portID, channelID string) (string, exported.ClientState, error)
}

ChannelKeeper defines the expected IBC channel keeper

type ClientKeeper

type ClientKeeper interface {
	GetClientState(ctx sdk.Context, clientID string) (exported.ClientState, bool)
	GetClientConsensusState(ctx sdk.Context, clientID string, height exported.Height) (exported.ConsensusState, bool)
}

type ConnectionKeeper

type ConnectionKeeper interface {
	GetConnection(ctx sdk.Context, connectionID string) (connectiontypes.ConnectionEnd, bool)
}

type DelayedAckHooks added in v3.1.0

type DelayedAckHooks interface {
	AfterPacketStatusUpdated(ctx sdk.Context, packet *commontypes.RollappPacket, oldPacketKey string, newPacketKey string) error
	AfterPacketDeleted(ctx sdk.Context, rollappPacket *commontypes.RollappPacket) error
}

type EIBCKeeper added in v3.1.0

type EIBCKeeper interface {
	SetDemandOrder(ctx sdk.Context, order *eibctypes.DemandOrder) error
	TimeoutFee(ctx sdk.Context) sdk.Dec
	ErrAckFee(ctx sdk.Context) sdk.Dec
}

type EIBCMetadata added in v3.1.0

type EIBCMetadata struct {
	Fee string `json:"fee"`
}

func (EIBCMetadata) FeeInt added in v3.1.0

func (e EIBCMetadata) FeeInt() (math.Int, error)

func (EIBCMetadata) ValidateBasic added in v3.1.0

func (e EIBCMetadata) ValidateBasic() error

type GenesisState

type GenesisState struct {
	// params are all the parameters of the module
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// streams are all streams that should exist at genesis
	RollappPackets []types.RollappPacket `protobuf:"bytes,2,rep,name=rollapp_packets,json=rollappPackets,proto3" json:"rollapp_packets"`
}

GenesisState defines the delayedack module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams added in v3.1.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRollappPackets added in v3.1.0

func (m *GenesisState) GetRollappPackets() []types.RollappPacket

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 genesis state validation returning an error upon any failure.

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 MultiDelayedAckHooks added in v3.1.0

type MultiDelayedAckHooks []DelayedAckHooks

func NewMultiDelayedAckHooks added in v3.1.0

func NewMultiDelayedAckHooks(hooks ...DelayedAckHooks) MultiDelayedAckHooks

func (MultiDelayedAckHooks) AfterPacketDeleted added in v3.1.0

func (h MultiDelayedAckHooks) AfterPacketDeleted(ctx sdk.Context, rollappPacket *commontypes.RollappPacket) error

func (MultiDelayedAckHooks) AfterPacketStatusUpdated added in v3.1.0

func (h MultiDelayedAckHooks) AfterPacketStatusUpdated(ctx sdk.Context, packet *commontypes.RollappPacket, oldPacketKey string, newPacketKey string) error

type PacketMetadata added in v3.1.0

type PacketMetadata struct {
	EIBC *EIBCMetadata `json:"eibc"`
}

func ParsePacketMetadata added in v3.1.0

func ParsePacketMetadata(input string) (*PacketMetadata, error)

func (PacketMetadata) ValidateBasic added in v3.1.0

func (p PacketMetadata) ValidateBasic() error

type Params added in v3.1.0

type Params struct {
	EpochIdentifier string `` /* 130-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams added in v3.1.0

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams added in v3.1.0

func NewParams(epochIdentifier string) Params

NewParams creates a new Params instance

func (*Params) Descriptor added in v3.1.0

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

func (*Params) GetEpochIdentifier added in v3.1.0

func (m *Params) GetEpochIdentifier() string

func (*Params) Marshal added in v3.1.0

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

func (*Params) MarshalTo added in v3.1.0

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

func (*Params) MarshalToSizedBuffer added in v3.1.0

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

func (*Params) ParamSetPairs added in v3.1.0

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage added in v3.1.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v3.1.0

func (m *Params) Reset()

func (*Params) Size added in v3.1.0

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

func (Params) String added in v3.1.0

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal added in v3.1.0

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

func (Params) Validate added in v3.1.0

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown added in v3.1.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v3.1.0

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

func (*Params) XXX_Merge added in v3.1.0

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

func (*Params) XXX_Size added in v3.1.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v3.1.0

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

type Prefix added in v3.1.0

type Prefix struct {
	Start []byte
	End   []byte
}

type QueryClient added in v3.1.0

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of RollappPacket items by rollappID.
	GetPackets(ctx context.Context, in *QueryRollappPacketsRequest, opts ...grpc.CallOption) (*QueryRollappPacketListResponse, 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 added in v3.1.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest added in v3.1.0

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor added in v3.1.0

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

func (*QueryParamsRequest) Marshal added in v3.1.0

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

func (*QueryParamsRequest) MarshalTo added in v3.1.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v3.1.0

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

func (*QueryParamsRequest) ProtoMessage added in v3.1.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v3.1.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v3.1.0

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

func (*QueryParamsRequest) String added in v3.1.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v3.1.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v3.1.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v3.1.0

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

func (*QueryParamsRequest) XXX_Merge added in v3.1.0

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

func (*QueryParamsRequest) XXX_Size added in v3.1.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v3.1.0

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

type QueryParamsResponse added in v3.1.0

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor added in v3.1.0

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

func (*QueryParamsResponse) GetParams added in v3.1.0

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v3.1.0

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

func (*QueryParamsResponse) MarshalTo added in v3.1.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v3.1.0

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

func (*QueryParamsResponse) ProtoMessage added in v3.1.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v3.1.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v3.1.0

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

func (*QueryParamsResponse) String added in v3.1.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v3.1.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v3.1.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v3.1.0

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

func (*QueryParamsResponse) XXX_Merge added in v3.1.0

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

func (*QueryParamsResponse) XXX_Size added in v3.1.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v3.1.0

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

type QueryRollappPacketListResponse added in v3.1.0

type QueryRollappPacketListResponse struct {
	RollappPackets []types.RollappPacket `protobuf:"bytes,1,rep,name=rollappPackets,proto3" json:"rollappPackets"`
	Pagination     *query.PageResponse   `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryRollappPacketListResponse) Descriptor added in v3.1.0

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

func (*QueryRollappPacketListResponse) GetPagination added in v3.1.0

func (*QueryRollappPacketListResponse) GetRollappPackets added in v3.1.0

func (m *QueryRollappPacketListResponse) GetRollappPackets() []types.RollappPacket

func (*QueryRollappPacketListResponse) Marshal added in v3.1.0

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

func (*QueryRollappPacketListResponse) MarshalTo added in v3.1.0

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

func (*QueryRollappPacketListResponse) MarshalToSizedBuffer added in v3.1.0

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

func (*QueryRollappPacketListResponse) ProtoMessage added in v3.1.0

func (*QueryRollappPacketListResponse) ProtoMessage()

func (*QueryRollappPacketListResponse) Reset added in v3.1.0

func (m *QueryRollappPacketListResponse) Reset()

func (*QueryRollappPacketListResponse) Size added in v3.1.0

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

func (*QueryRollappPacketListResponse) String added in v3.1.0

func (*QueryRollappPacketListResponse) Unmarshal added in v3.1.0

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

func (*QueryRollappPacketListResponse) XXX_DiscardUnknown added in v3.1.0

func (m *QueryRollappPacketListResponse) XXX_DiscardUnknown()

func (*QueryRollappPacketListResponse) XXX_Marshal added in v3.1.0

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

func (*QueryRollappPacketListResponse) XXX_Merge added in v3.1.0

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

func (*QueryRollappPacketListResponse) XXX_Size added in v3.1.0

func (m *QueryRollappPacketListResponse) XXX_Size() int

func (*QueryRollappPacketListResponse) XXX_Unmarshal added in v3.1.0

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

type QueryRollappPacketsRequest added in v3.1.0

type QueryRollappPacketsRequest struct {
	RollappId  string             `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	Status     types.Status       `protobuf:"varint,2,opt,name=status,proto3,enum=dymensionxyz.dymension.common.Status" json:"status,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryRollappPacketsRequest) Descriptor added in v3.1.0

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

func (*QueryRollappPacketsRequest) GetPagination added in v3.1.0

func (m *QueryRollappPacketsRequest) GetPagination() *query.PageRequest

func (*QueryRollappPacketsRequest) GetRollappId added in v3.1.0

func (m *QueryRollappPacketsRequest) GetRollappId() string

func (*QueryRollappPacketsRequest) GetStatus added in v3.1.0

func (m *QueryRollappPacketsRequest) GetStatus() types.Status

func (*QueryRollappPacketsRequest) Marshal added in v3.1.0

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

func (*QueryRollappPacketsRequest) MarshalTo added in v3.1.0

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

func (*QueryRollappPacketsRequest) MarshalToSizedBuffer added in v3.1.0

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

func (*QueryRollappPacketsRequest) ProtoMessage added in v3.1.0

func (*QueryRollappPacketsRequest) ProtoMessage()

func (*QueryRollappPacketsRequest) Reset added in v3.1.0

func (m *QueryRollappPacketsRequest) Reset()

func (*QueryRollappPacketsRequest) Size added in v3.1.0

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

func (*QueryRollappPacketsRequest) String added in v3.1.0

func (m *QueryRollappPacketsRequest) String() string

func (*QueryRollappPacketsRequest) Unmarshal added in v3.1.0

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

func (*QueryRollappPacketsRequest) XXX_DiscardUnknown added in v3.1.0

func (m *QueryRollappPacketsRequest) XXX_DiscardUnknown()

func (*QueryRollappPacketsRequest) XXX_Marshal added in v3.1.0

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

func (*QueryRollappPacketsRequest) XXX_Merge added in v3.1.0

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

func (*QueryRollappPacketsRequest) XXX_Size added in v3.1.0

func (m *QueryRollappPacketsRequest) XXX_Size() int

func (*QueryRollappPacketsRequest) XXX_Unmarshal added in v3.1.0

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

type QueryServer added in v3.1.0

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of RollappPacket items by rollappID.
	GetPackets(context.Context, *QueryRollappPacketsRequest) (*QueryRollappPacketListResponse, error)
}

QueryServer is the server API for Query service.

type RollappKeeper

type RollappKeeper interface {
	GetParams(ctx sdk.Context) rollapptypes.Params
	GetRollapp(ctx sdk.Context, chainID string) (rollapp rollapptypes.Rollapp, found bool)
	GetStateInfo(ctx sdk.Context, rollappId string, index uint64) (val rollapptypes.StateInfo, found bool)
	MustGetStateInfo(ctx sdk.Context, rollappId string, index uint64) rollapptypes.StateInfo
	GetLatestStateInfoIndex(ctx sdk.Context, rollappId string) (val rollapptypes.StateInfoIndex, found bool)
	GetLatestFinalizedStateIndex(ctx sdk.Context, rollappId string) (val types.StateInfoIndex, found bool)
	GetAllRollapps(ctx sdk.Context) (list []types.Rollapp)
}

type RollappPacketListFilter added in v3.1.0

type RollappPacketListFilter struct {
	Prefixes []Prefix
}

func ByRollappID added in v3.1.0

func ByRollappID(rollappID string) RollappPacketListFilter

func ByRollappIDByStatus added in v3.1.0

func ByRollappIDByStatus(rollappID string, status ...commontypes.Status) RollappPacketListFilter

func ByStatus added in v3.1.0

func ByStatus(status ...commontypes.Status) RollappPacketListFilter

func PendingByRollappIDByMaxHeight added in v3.1.0

func PendingByRollappIDByMaxHeight(
	rollappID string,
	maxProofHeight uint64,
) RollappPacketListFilter

type SequencerKeeper added in v3.1.0

type SequencerKeeper interface {
	GetSequencer(ctx sdk.Context, sequencerAddress string) (val sequencertypes.Sequencer, found bool)
}

type UnimplementedQueryServer added in v3.1.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetPackets added in v3.1.0

func (*UnimplementedQueryServer) Params added in v3.1.0

Jump to

Keyboard shortcuts

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