types

package
v3.0.0-rc06 Latest Latest
Warning

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

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

Documentation

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 (
	// 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

func KeyPrefix

func KeyPrefix(p string) []byte

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 ClientKeeper interface {
	GetClientState(ctx sdk.Context, clientID string) (exported.ClientState, bool)
}

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) 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 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) MarshalTo

func (m *RollappPacket) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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