Documentation ¶
Index ¶
- Constants
- Variables
- func GetRollappPacketKey(rollappId string, status RollappPacket_Status, packetProofHeight uint64, ...) []byte
- func KeyPrefix(p string) []byte
- type ChannelKeeper
- type ClientKeeper
- type ConnectionKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() 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 RollappKeeper
- type RollappPacket
- func (*RollappPacket) Descriptor() ([]byte, []int)
- func (m *RollappPacket) GetError() string
- func (m *RollappPacket) GetPacket() *types.Packet
- func (m *RollappPacket) GetProofHeight() uint64
- func (m *RollappPacket) GetRelayer() []byte
- func (m *RollappPacket) GetStatus() RollappPacket_Status
- func (m *RollappPacket) Marshal() (dAtA []byte, err error)
- func (m *RollappPacket) MarshalTo(dAtA []byte) (int, error)
- func (m *RollappPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RollappPacket) ProtoMessage()
- func (m *RollappPacket) Reset()
- func (m *RollappPacket) Size() (n int)
- func (m *RollappPacket) String() string
- func (m *RollappPacket) Unmarshal(dAtA []byte) error
- func (m *RollappPacket) XXX_DiscardUnknown()
- func (m *RollappPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RollappPacket) XXX_Merge(src proto.Message)
- func (m *RollappPacket) XXX_Size() int
- func (m *RollappPacket) XXX_Unmarshal(b []byte) error
- type RollappPacket_Status
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 (
// RollappPacketKeyPrefix is the prefix to retrieve all RollappPackets
RollappPacketKeyPrefix = "RollappPacket/value/"
)
Variables ¶
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 ( ErrInvalidLengthRollappPacket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRollappPacket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRollappPacket = fmt.Errorf("proto: unexpected end of group") )
View Source
var RollappPacket_Status_name = map[int32]string{
0: "PENDING",
1: "ACCEPTED",
2: "REJECTED",
}
View Source
var RollappPacket_Status_value = map[string]int32{
"PENDING": 0,
"ACCEPTED": 1,
"REJECTED": 2,
}
Functions ¶
func GetRollappPacketKey ¶
func GetRollappPacketKey( rollappId string, status RollappPacket_Status, packetProofHeight uint64, IBCPacket channeltypes.Packet, ) []byte
GetRollappPacketKey constructs a key for a specific RollappPacket
Types ¶
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 ConnectionKeeper ¶
type ConnectionKeeper interface {
GetConnection(ctx sdk.Context, connectionID string) (connectiontypes.ConnectionEnd, bool)
}
type GenesisState ¶
type GenesisState struct { }
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) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 RollappKeeper ¶
type RollappKeeper interface { GetParams(ctx sdk.Context) rollapptypes.Params GetRollapp(ctx sdk.Context, chainID string) (rollapp rollapptypes.Rollapp, found bool) StateInfo(c context.Context, req *types.QueryGetStateInfoRequest) (*types.QueryGetStateInfoResponse, error) }
type RollappPacket ¶
type RollappPacket struct { Packet *types.Packet `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet,omitempty"` Status RollappPacket_Status `` /* 126-byte string literal not displayed */ ProofHeight uint64 `protobuf:"varint,3,opt,name=ProofHeight,proto3" json:"ProofHeight,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` Relayer []byte `protobuf:"bytes,5,opt,name=relayer,proto3" json:"relayer,omitempty"` }
func (*RollappPacket) Descriptor ¶
func (*RollappPacket) Descriptor() ([]byte, []int)
func (*RollappPacket) GetError ¶
func (m *RollappPacket) GetError() string
func (*RollappPacket) GetPacket ¶
func (m *RollappPacket) GetPacket() *types.Packet
func (*RollappPacket) GetProofHeight ¶
func (m *RollappPacket) GetProofHeight() uint64
func (*RollappPacket) GetRelayer ¶
func (m *RollappPacket) GetRelayer() []byte
func (*RollappPacket) GetStatus ¶
func (m *RollappPacket) GetStatus() RollappPacket_Status
func (*RollappPacket) Marshal ¶
func (m *RollappPacket) Marshal() (dAtA []byte, err error)
func (*RollappPacket) MarshalToSizedBuffer ¶
func (m *RollappPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RollappPacket) ProtoMessage ¶
func (*RollappPacket) ProtoMessage()
func (*RollappPacket) Reset ¶
func (m *RollappPacket) Reset()
func (*RollappPacket) Size ¶
func (m *RollappPacket) Size() (n int)
func (*RollappPacket) String ¶
func (m *RollappPacket) String() string
func (*RollappPacket) Unmarshal ¶
func (m *RollappPacket) Unmarshal(dAtA []byte) error
func (*RollappPacket) XXX_DiscardUnknown ¶
func (m *RollappPacket) XXX_DiscardUnknown()
func (*RollappPacket) XXX_Marshal ¶
func (m *RollappPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RollappPacket) XXX_Merge ¶
func (m *RollappPacket) XXX_Merge(src proto.Message)
func (*RollappPacket) XXX_Size ¶
func (m *RollappPacket) XXX_Size() int
func (*RollappPacket) XXX_Unmarshal ¶
func (m *RollappPacket) XXX_Unmarshal(b []byte) error
type RollappPacket_Status ¶
type RollappPacket_Status int32
const ( RollappPacket_PENDING RollappPacket_Status = 0 RollappPacket_ACCEPTED RollappPacket_Status = 1 RollappPacket_REJECTED RollappPacket_Status = 2 )
func (RollappPacket_Status) EnumDescriptor ¶
func (RollappPacket_Status) EnumDescriptor() ([]byte, []int)
func (RollappPacket_Status) String ¶
func (x RollappPacket_Status) String() string
Click to show internal directories.
Click to hide internal directories.