types

package
v0.3.3-gamma Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeStateUpdate  = "state_update"
	EventTypeStatusChange = "status_change"

	AttributeKeyRollappId      = "rollapp_id"
	AttributeKeyStateInfoIndex = "state_info_index"
	AttributeKeyStartHeight    = "start_height"
	AttributeKeyNumBlocks      = "num_blocks"
	AttributeKeyDAPath         = "da_path"
	AttributeKeyStatus         = "status"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "rollapp"

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_rollapp"
)
View Source
const (
	// BlockHeightToFinalizationQueueKeyPrefix is the prefix to retrieve all BlockHeightToFinalizationQueue
	BlockHeightToFinalizationQueueKeyPrefix = "BlockHeightToFinalizationQueue/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// LatestFinalizedStateIndexKeyPrefix is the prefix to retrieve all LatestFinalizedStateIndex
	LatestFinalizedStateIndexKeyPrefix = "LatestFinalizedStateIndex/value/"
)
View Source
const (
	// LatestStateInfoIndexKeyPrefix is the prefix to retrieve all LatestStateInfoIndex
	LatestStateInfoIndexKeyPrefix = "LatestStateInfoIndex/value/"
)
View Source
const (
	// RollappKeyPrefix is the prefix to retrieve all Rollapp
	RollappKeyPrefix = "Rollapp/value/"
)
View Source
const (
	// StateInfoKeyPrefix is the prefix to retrieve all StateInfo
	StateInfoKeyPrefix = "StateInfo/value/"
)
View Source
const TypeMsgCreateRollapp = "create_rollapp"
View Source
const TypeMsgUpdateState = "update_state"

Variables

View Source
var (
	ErrInvalidLengthBlockDescriptor        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBlockDescriptor          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBlockDescriptor = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrRollappExists                       = sdkerrors.Register(ModuleName, 1000, "rollapp already exist for this rollapp-id; must use new rollapp-id")
	ErrInvalidMaxSequencers                = sdkerrors.Register(ModuleName, 1001, "invalid max sequencers")
	ErrInvalidMaxWithholding               = sdkerrors.Register(ModuleName, 1002, "invalid max withholding")
	ErrInvalidPermissionedAddress          = sdkerrors.Register(ModuleName, 1003, "invalid permissioned address")
	ErrPermissionedAddressesDuplicate      = sdkerrors.Register(ModuleName, 1004, "permissioned-address has duplicates")
	ErrInvalidNumBlocks                    = sdkerrors.Register(ModuleName, 1005, "invalid number of blocks")
	ErrInvalidBlockSequence                = sdkerrors.Register(ModuleName, 1006, "invalid block sequence")
	ErrUnknownRollappID                    = sdkerrors.Register(ModuleName, 1007, "rollapp does not exist")
	ErrVersionMismatch                     = sdkerrors.Register(ModuleName, 1008, "rollapp version mismatch")
	ErrWrongBlockHeight                    = sdkerrors.Register(ModuleName, 1009, "start-height does not match rollapps state")
	ErrMultiUpdateStateInBlock             = sdkerrors.Register(ModuleName, 1010, "only one state update can take place per block")
	ErrInvalidStateRoot                    = sdkerrors.Register(ModuleName, 1011, "invalid blocks state root")
	ErrInvalidIntermediateStatesRoot       = sdkerrors.Register(ModuleName, 1012, "invalid blocks intermediate states root")
	ErrUnauthorizedRollappCreator          = sdkerrors.Register(ModuleName, 1013, "rollapp creator not register in whitelist")
	ErrInvalidClientType                   = sdkerrors.Register(ModuleName, 1014, "client type of the rollapp isn't furyint")
	ErrHeightStateNotFainalized            = sdkerrors.Register(ModuleName, 1015, "rollapp block on this height was not finalized yet")
	ErrInvalidAppHash                      = sdkerrors.Register(ModuleName, 1016, "the app hash is different from the finalized state root")
	ErrStateNotExists                      = sdkerrors.Register(ModuleName, 1017, "state of this height doesn't exist")
	ErrInvalidHeight                       = sdkerrors.Register(ModuleName, 1018, "invalid rollapp height")
	ErrRollappCreatorExceedMaximumRollapps = sdkerrors.Register(ModuleName, 1019, "rollapp creator exceed maximum allowed rollapps as register in whitelist")
	ErrInvalidRollappID                    = sdkerrors.Register(ModuleName, 1020, "invalid rollapp-id")
)

x/rollapp 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 (
	// DeployerWhitelist is store's key for DeployerWhitelist Params
	KeyDeployerWhitelist = []byte("DeployerWhitelist")
	// KeyDisputePeriodInBlocks is store's key for DisputePeriodInBlocks Params
	KeyDisputePeriodInBlocks = []byte("DisputePeriodInBlocks")
	// default value
	DefaultDisputePeriodInBlocks uint64 = 3
	// MinDisputePeriodInBlocks is the minimum numner of blocks for dispute period
	MinDisputePeriodInBlocks uint64 = 1
)
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 (
	ErrInvalidLengthRollapp        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRollapp          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRollapp = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStateInfo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStateInfo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStateInfo = 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 StateStatus_name = map[int32]string{
	0: "STATE_STATUS_UNSPECIFIED",
	1: "STATE_STATUS_RECEIVED",
	2: "STATE_STATUS_FINALIZED",
}
View Source
var StateStatus_value = map[string]int32{
	"STATE_STATUS_UNSPECIFIED": 0,
	"STATE_STATUS_RECEIVED":    1,
	"STATE_STATUS_FINALIZED":   2,
}

Functions

func BlockHeightToFinalizationQueueKey

func BlockHeightToFinalizationQueueKey(
	finalizationHeight uint64,
) []byte

BlockHeightToFinalizationQueueKey returns the store key to retrieve a BlockHeightToFinalizationQueue from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func LatestFinalizedStateIndexKey

func LatestFinalizedStateIndexKey(
	rollappId string,
) []byte

LatestFinalizedStateIndexKey returns the store key to retrieve a LatestFinalizedStateIndex from the index fields

func LatestStateInfoIndexKey

func LatestStateInfoIndexKey(
	rollappId string,
) []byte

LatestStateInfoIndexKey returns the store key to retrieve a LatestStateInfoIndex from the index fields

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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)

func RollappKey

func RollappKey(
	rollappId string,
) []byte

RollappKey returns the store key to retrieve a Rollapp from the index fields

func StateInfoKey

func StateInfoKey(
	stateInfoIndex StateInfoIndex,
) []byte

StateInfoKey returns the store key to retrieve a StateInfo from the index fields

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BlockDescriptor

type BlockDescriptor struct {
	// height is the height of the block
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// stateRoot is a 32 byte array of the hash of the block (state root of the block)
	StateRoot []byte `protobuf:"bytes,2,opt,name=stateRoot,proto3" json:"stateRoot,omitempty"`
	// intermediateStatesRoot is a 32 byte array representing
	// the root of a Merkle tree built from the ISRs of the block (Intermediate State Roots)
	IntermediateStatesRoot []byte `protobuf:"bytes,3,opt,name=intermediateStatesRoot,proto3" json:"intermediateStatesRoot,omitempty"`
}

BlockDescriptor defines a single rollapp chain block description.

func (*BlockDescriptor) Descriptor

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

func (*BlockDescriptor) GetHeight

func (m *BlockDescriptor) GetHeight() uint64

func (*BlockDescriptor) GetIntermediateStatesRoot

func (m *BlockDescriptor) GetIntermediateStatesRoot() []byte

func (*BlockDescriptor) GetStateRoot

func (m *BlockDescriptor) GetStateRoot() []byte

func (*BlockDescriptor) Marshal

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

func (*BlockDescriptor) MarshalTo

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

func (*BlockDescriptor) MarshalToSizedBuffer

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

func (*BlockDescriptor) ProtoMessage

func (*BlockDescriptor) ProtoMessage()

func (*BlockDescriptor) Reset

func (m *BlockDescriptor) Reset()

func (*BlockDescriptor) Size

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

func (*BlockDescriptor) String

func (m *BlockDescriptor) String() string

func (*BlockDescriptor) Unmarshal

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

func (*BlockDescriptor) XXX_DiscardUnknown

func (m *BlockDescriptor) XXX_DiscardUnknown()

func (*BlockDescriptor) XXX_Marshal

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

func (*BlockDescriptor) XXX_Merge

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

func (*BlockDescriptor) XXX_Size

func (m *BlockDescriptor) XXX_Size() int

func (*BlockDescriptor) XXX_Unmarshal

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

type BlockDescriptors

type BlockDescriptors struct {
	BD []BlockDescriptor `protobuf:"bytes,1,rep,name=BD,proto3" json:"BD"`
}

BlockDescriptors defines list of BlockDescriptor.

func (*BlockDescriptors) Descriptor

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

func (*BlockDescriptors) GetBD

func (m *BlockDescriptors) GetBD() []BlockDescriptor

func (*BlockDescriptors) Marshal

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

func (*BlockDescriptors) MarshalTo

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

func (*BlockDescriptors) MarshalToSizedBuffer

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

func (*BlockDescriptors) ProtoMessage

func (*BlockDescriptors) ProtoMessage()

func (*BlockDescriptors) Reset

func (m *BlockDescriptors) Reset()

func (*BlockDescriptors) Size

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

func (*BlockDescriptors) String

func (m *BlockDescriptors) String() string

func (*BlockDescriptors) Unmarshal

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

func (*BlockDescriptors) XXX_DiscardUnknown

func (m *BlockDescriptors) XXX_DiscardUnknown()

func (*BlockDescriptors) XXX_Marshal

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

func (*BlockDescriptors) XXX_Merge

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

func (*BlockDescriptors) XXX_Size

func (m *BlockDescriptors) XXX_Size() int

func (*BlockDescriptors) XXX_Unmarshal

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

type BlockHeightToFinalizationQueue

type BlockHeightToFinalizationQueue struct {
	// finalizationHeight is the block height that the state should be finalized
	FinalizationHeight uint64 `protobuf:"varint,1,opt,name=finalizationHeight,proto3" json:"finalizationHeight,omitempty"`
	// finalizationQueue is a list of states that are waiting to be finalized
	// when the block height becomes finalizationHeight
	FinalizationQueue []StateInfoIndex `protobuf:"bytes,2,rep,name=finalizationQueue,proto3" json:"finalizationQueue"`
}

BlockHeightToFinalizationQueue defines a map from block height to list of states to finalized

func (*BlockHeightToFinalizationQueue) Descriptor

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

func (*BlockHeightToFinalizationQueue) GetFinalizationHeight

func (m *BlockHeightToFinalizationQueue) GetFinalizationHeight() uint64

func (*BlockHeightToFinalizationQueue) GetFinalizationQueue

func (m *BlockHeightToFinalizationQueue) GetFinalizationQueue() []StateInfoIndex

func (*BlockHeightToFinalizationQueue) Marshal

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

func (*BlockHeightToFinalizationQueue) MarshalTo

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

func (*BlockHeightToFinalizationQueue) MarshalToSizedBuffer

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

func (*BlockHeightToFinalizationQueue) ProtoMessage

func (*BlockHeightToFinalizationQueue) ProtoMessage()

func (*BlockHeightToFinalizationQueue) Reset

func (m *BlockHeightToFinalizationQueue) Reset()

func (*BlockHeightToFinalizationQueue) Size

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

func (*BlockHeightToFinalizationQueue) String

func (*BlockHeightToFinalizationQueue) Unmarshal

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

func (*BlockHeightToFinalizationQueue) XXX_DiscardUnknown

func (m *BlockHeightToFinalizationQueue) XXX_DiscardUnknown()

func (*BlockHeightToFinalizationQueue) XXX_Marshal

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

func (*BlockHeightToFinalizationQueue) XXX_Merge

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

func (*BlockHeightToFinalizationQueue) XXX_Size

func (m *BlockHeightToFinalizationQueue) XXX_Size() int

func (*BlockHeightToFinalizationQueue) XXX_Unmarshal

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

type DeployerParams

type DeployerParams struct {
	// address is a bech32-encoded address of the
	// accounts that are allowed to create a rollapp.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// max_rollapps is the maximum number of rollapps that address allowed to deploy
	MaxRollapps uint64 `protobuf:"varint,2,opt,name=max_rollapps,json=maxRollapps,proto3" json:"max_rollapps,omitempty" yaml:"max_rollapps"`
}

func (*DeployerParams) Descriptor

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

func (*DeployerParams) GetAddress

func (m *DeployerParams) GetAddress() string

func (*DeployerParams) GetMaxRollapps

func (m *DeployerParams) GetMaxRollapps() uint64

func (*DeployerParams) Marshal

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

func (*DeployerParams) MarshalTo

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

func (*DeployerParams) MarshalToSizedBuffer

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

func (*DeployerParams) ProtoMessage

func (*DeployerParams) ProtoMessage()

func (*DeployerParams) Reset

func (m *DeployerParams) Reset()

func (*DeployerParams) Size

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

func (*DeployerParams) String

func (m *DeployerParams) String() string

func (*DeployerParams) Unmarshal

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

func (*DeployerParams) XXX_DiscardUnknown

func (m *DeployerParams) XXX_DiscardUnknown()

func (*DeployerParams) XXX_Marshal

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

func (*DeployerParams) XXX_Merge

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

func (*DeployerParams) XXX_Size

func (m *DeployerParams) XXX_Size() int

func (*DeployerParams) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params                             Params                           `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	RollappList                        []Rollapp                        `protobuf:"bytes,2,rep,name=rollappList,proto3" json:"rollappList"`
	StateInfoList                      []StateInfo                      `protobuf:"bytes,3,rep,name=stateInfoList,proto3" json:"stateInfoList"`
	LatestStateInfoIndexList           []StateInfoIndex                 `protobuf:"bytes,4,rep,name=latestStateInfoIndexList,proto3" json:"latestStateInfoIndexList"`
	LatestFinalizedStateIndexList      []StateInfoIndex                 `protobuf:"bytes,5,rep,name=latestFinalizedStateIndexList,proto3" json:"latestFinalizedStateIndexList"`
	BlockHeightToFinalizationQueueList []BlockHeightToFinalizationQueue `protobuf:"bytes,6,rep,name=blockHeightToFinalizationQueueList,proto3" json:"blockHeightToFinalizationQueueList"`
}

GenesisState defines the rollapp module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBlockHeightToFinalizationQueueList

func (m *GenesisState) GetBlockHeightToFinalizationQueueList() []BlockHeightToFinalizationQueue

func (*GenesisState) GetLatestFinalizedStateIndexList

func (m *GenesisState) GetLatestFinalizedStateIndexList() []StateInfoIndex

func (*GenesisState) GetLatestStateInfoIndexList

func (m *GenesisState) GetLatestStateInfoIndexList() []StateInfoIndex

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRollappList

func (m *GenesisState) GetRollappList() []Rollapp

func (*GenesisState) GetStateInfoList

func (m *GenesisState) GetStateInfoList() []StateInfo

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 MsgClient

type MsgClient interface {
	CreateRollapp(ctx context.Context, in *MsgCreateRollapp, opts ...grpc.CallOption) (*MsgCreateRollappResponse, error)
	UpdateState(ctx context.Context, in *MsgUpdateState, opts ...grpc.CallOption) (*MsgUpdateStateResponse, 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 MsgCreateRollapp

type MsgCreateRollapp struct {
	// creator is the bech32-encoded address of the rollapp creator
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// rollappId is the unique identifier of the rollapp chain.
	// The rollappId follows the same standard as cosmos chain_id
	RollappId string `protobuf:"bytes,2,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	// codeStamp is the description of the genesis file location on the DA
	CodeStamp string `protobuf:"bytes,3,opt,name=codeStamp,proto3" json:"codeStamp,omitempty"`
	// genesisPath is the description of the genesis file location on the DA
	GenesisPath string `protobuf:"bytes,4,opt,name=genesisPath,proto3" json:"genesisPath,omitempty"`
	// maxWithholdingBlocks is the maximum number of blocks for
	// an active sequencer to send a state update (MsgUpdateState)
	MaxWithholdingBlocks uint64 `protobuf:"varint,5,opt,name=maxWithholdingBlocks,proto3" json:"maxWithholdingBlocks,omitempty"`
	// maxSequencers is the maximum number of sequencers
	MaxSequencers uint64 `protobuf:"varint,6,opt,name=maxSequencers,proto3" json:"maxSequencers,omitempty"`
	// permissionedAddresses is a bech32-encoded address list of the
	// sequencers that are allowed to serve this rollappId.
	// In the case of an empty list, the rollapp is considered permissionless
	PermissionedAddresses types.Sequencers `protobuf:"bytes,7,opt,name=permissionedAddresses,proto3" json:"permissionedAddresses"`
}

===================== MsgCreateRollapp

func NewMsgCreateRollapp

func NewMsgCreateRollapp(creator string, rollappId string, codeStamp string, genesisPath string, maxWithholdingBlocks uint64, maxSequencers uint64, permissionedAddresses *types.Sequencers) *MsgCreateRollapp

func (*MsgCreateRollapp) Descriptor

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

func (*MsgCreateRollapp) GetCodeStamp

func (m *MsgCreateRollapp) GetCodeStamp() string

func (*MsgCreateRollapp) GetCreator

func (m *MsgCreateRollapp) GetCreator() string

func (*MsgCreateRollapp) GetGenesisPath

func (m *MsgCreateRollapp) GetGenesisPath() string

func (*MsgCreateRollapp) GetMaxSequencers

func (m *MsgCreateRollapp) GetMaxSequencers() uint64

func (*MsgCreateRollapp) GetMaxWithholdingBlocks

func (m *MsgCreateRollapp) GetMaxWithholdingBlocks() uint64

func (*MsgCreateRollapp) GetPermissionedAddresses

func (m *MsgCreateRollapp) GetPermissionedAddresses() types.Sequencers

func (*MsgCreateRollapp) GetRollappId

func (m *MsgCreateRollapp) GetRollappId() string

func (*MsgCreateRollapp) GetSignBytes

func (msg *MsgCreateRollapp) GetSignBytes() []byte

func (*MsgCreateRollapp) GetSigners

func (msg *MsgCreateRollapp) GetSigners() []sdk.AccAddress

func (*MsgCreateRollapp) Marshal

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

func (*MsgCreateRollapp) MarshalTo

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

func (*MsgCreateRollapp) MarshalToSizedBuffer

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

func (*MsgCreateRollapp) ProtoMessage

func (*MsgCreateRollapp) ProtoMessage()

func (*MsgCreateRollapp) Reset

func (m *MsgCreateRollapp) Reset()

func (*MsgCreateRollapp) Route

func (msg *MsgCreateRollapp) Route() string

func (*MsgCreateRollapp) Size

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

func (*MsgCreateRollapp) String

func (m *MsgCreateRollapp) String() string

func (*MsgCreateRollapp) Type

func (msg *MsgCreateRollapp) Type() string

func (*MsgCreateRollapp) Unmarshal

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

func (*MsgCreateRollapp) ValidateBasic

func (msg *MsgCreateRollapp) ValidateBasic() error

func (*MsgCreateRollapp) XXX_DiscardUnknown

func (m *MsgCreateRollapp) XXX_DiscardUnknown()

func (*MsgCreateRollapp) XXX_Marshal

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

func (*MsgCreateRollapp) XXX_Merge

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

func (*MsgCreateRollapp) XXX_Size

func (m *MsgCreateRollapp) XXX_Size() int

func (*MsgCreateRollapp) XXX_Unmarshal

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

type MsgCreateRollappResponse

type MsgCreateRollappResponse struct {
}

func (*MsgCreateRollappResponse) Descriptor

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

func (*MsgCreateRollappResponse) Marshal

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

func (*MsgCreateRollappResponse) MarshalTo

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

func (*MsgCreateRollappResponse) MarshalToSizedBuffer

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

func (*MsgCreateRollappResponse) ProtoMessage

func (*MsgCreateRollappResponse) ProtoMessage()

func (*MsgCreateRollappResponse) Reset

func (m *MsgCreateRollappResponse) Reset()

func (*MsgCreateRollappResponse) Size

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

func (*MsgCreateRollappResponse) String

func (m *MsgCreateRollappResponse) String() string

func (*MsgCreateRollappResponse) Unmarshal

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

func (*MsgCreateRollappResponse) XXX_DiscardUnknown

func (m *MsgCreateRollappResponse) XXX_DiscardUnknown()

func (*MsgCreateRollappResponse) XXX_Marshal

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

func (*MsgCreateRollappResponse) XXX_Merge

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

func (*MsgCreateRollappResponse) XXX_Size

func (m *MsgCreateRollappResponse) XXX_Size() int

func (*MsgCreateRollappResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreateRollapp(context.Context, *MsgCreateRollapp) (*MsgCreateRollappResponse, error)
	UpdateState(context.Context, *MsgUpdateState) (*MsgUpdateStateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateState

type MsgUpdateState struct {
	// creator is the bech32-encoded address of the sequencer sending the update
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// rollappId is the rollapp that the sequencer belongs to and asking to update
	// The rollappId follows the same standard as cosmos chain_id
	RollappId string `protobuf:"bytes,2,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	// startHeight is the block height of the first block in the batch
	StartHeight uint64 `protobuf:"varint,3,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	// numBlocks is the number of blocks included in this batch update
	NumBlocks uint64 `protobuf:"varint,4,opt,name=numBlocks,proto3" json:"numBlocks,omitempty"`
	// DAPath is the description of the location on the DA layer
	DAPath string `protobuf:"bytes,5,opt,name=DAPath,proto3" json:"DAPath,omitempty"`
	// version is the version of the rollapp
	Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
	// BDs is a list of block description objects (one per block)
	// the list must be ordered by height, starting from startHeight to startHeight+numBlocks-1
	BDs BlockDescriptors `protobuf:"bytes,7,opt,name=BDs,proto3" json:"BDs"`
}

===================== MsgUpdateState Updating a rollapp state with a block batch a block batch is a list of ordered blocks (by height)

func NewMsgUpdateState

func NewMsgUpdateState(creator string, rollappId string, startHeight uint64, numBlocks uint64, dAPath string, version uint64, bDs *BlockDescriptors) *MsgUpdateState

func (*MsgUpdateState) Descriptor

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

func (*MsgUpdateState) GetBDs

func (m *MsgUpdateState) GetBDs() BlockDescriptors

func (*MsgUpdateState) GetCreator

func (m *MsgUpdateState) GetCreator() string

func (*MsgUpdateState) GetDAPath

func (m *MsgUpdateState) GetDAPath() string

func (*MsgUpdateState) GetNumBlocks

func (m *MsgUpdateState) GetNumBlocks() uint64

func (*MsgUpdateState) GetRollappId

func (m *MsgUpdateState) GetRollappId() string

func (*MsgUpdateState) GetSignBytes

func (msg *MsgUpdateState) GetSignBytes() []byte

func (*MsgUpdateState) GetSigners

func (msg *MsgUpdateState) GetSigners() []sdk.AccAddress

func (*MsgUpdateState) GetStartHeight

func (m *MsgUpdateState) GetStartHeight() uint64

func (*MsgUpdateState) GetVersion

func (m *MsgUpdateState) GetVersion() uint64

func (*MsgUpdateState) Marshal

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

func (*MsgUpdateState) MarshalTo

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

func (*MsgUpdateState) MarshalToSizedBuffer

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

func (*MsgUpdateState) ProtoMessage

func (*MsgUpdateState) ProtoMessage()

func (*MsgUpdateState) Reset

func (m *MsgUpdateState) Reset()

func (*MsgUpdateState) Route

func (msg *MsgUpdateState) Route() string

func (*MsgUpdateState) Size

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

func (*MsgUpdateState) String

func (m *MsgUpdateState) String() string

func (*MsgUpdateState) Type

func (msg *MsgUpdateState) Type() string

func (*MsgUpdateState) Unmarshal

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

func (*MsgUpdateState) ValidateBasic

func (msg *MsgUpdateState) ValidateBasic() error

func (*MsgUpdateState) XXX_DiscardUnknown

func (m *MsgUpdateState) XXX_DiscardUnknown()

func (*MsgUpdateState) XXX_Marshal

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

func (*MsgUpdateState) XXX_Merge

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

func (*MsgUpdateState) XXX_Size

func (m *MsgUpdateState) XXX_Size() int

func (*MsgUpdateState) XXX_Unmarshal

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

type MsgUpdateStateResponse

type MsgUpdateStateResponse struct {
}

func (*MsgUpdateStateResponse) Descriptor

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

func (*MsgUpdateStateResponse) Marshal

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

func (*MsgUpdateStateResponse) MarshalTo

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

func (*MsgUpdateStateResponse) MarshalToSizedBuffer

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

func (*MsgUpdateStateResponse) ProtoMessage

func (*MsgUpdateStateResponse) ProtoMessage()

func (*MsgUpdateStateResponse) Reset

func (m *MsgUpdateStateResponse) Reset()

func (*MsgUpdateStateResponse) Size

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

func (*MsgUpdateStateResponse) String

func (m *MsgUpdateStateResponse) String() string

func (*MsgUpdateStateResponse) Unmarshal

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

func (*MsgUpdateStateResponse) XXX_DiscardUnknown

func (m *MsgUpdateStateResponse) XXX_DiscardUnknown()

func (*MsgUpdateStateResponse) XXX_Marshal

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

func (*MsgUpdateStateResponse) XXX_Merge

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

func (*MsgUpdateStateResponse) XXX_Size

func (m *MsgUpdateStateResponse) XXX_Size() int

func (*MsgUpdateStateResponse) XXX_Unmarshal

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

type MultiRollappHooks

type MultiRollappHooks []RollappHooks

combine multiple rollapp hooks, all hook functions are run in array sequence

func NewMultiRollappHooks

func NewMultiRollappHooks(hooks ...RollappHooks) MultiRollappHooks

Creates hooks for the Rollapp Module.

func (MultiRollappHooks) BeforeUpdateState

func (h MultiRollappHooks) BeforeUpdateState(ctx sdk.Context, seqAddr string, rollappId string)

type Params

type Params struct {
	// dispute_period_in_blocks the number of blocks it takes
	// to change a status of a state from received to finalized.
	// during that period, any user could submit fraud proof
	DisputePeriodInBlocks uint64 `` /* 161-byte string literal not displayed */
	// deployer_whitelist is a list of the
	// accounts that are allowed to create a rollapp and maximum number of rollapps.
	// In the case of an empty list, there are no restrictions
	DeployerWhitelist []DeployerParams `` /* 128-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	disputePeriodInBlocks uint64,
	deployerWhitelist []DeployerParams,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetDeployerWhitelist

func (m *Params) GetDeployerWhitelist() []DeployerParams

func (*Params) GetDisputePeriodInBlocks

func (m *Params) GetDisputePeriodInBlocks() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAllBlockHeightToFinalizationQueueRequest

type QueryAllBlockHeightToFinalizationQueueRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllBlockHeightToFinalizationQueueRequest) Descriptor

func (*QueryAllBlockHeightToFinalizationQueueRequest) GetPagination

func (*QueryAllBlockHeightToFinalizationQueueRequest) Marshal

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

func (*QueryAllBlockHeightToFinalizationQueueRequest) MarshalTo

func (*QueryAllBlockHeightToFinalizationQueueRequest) MarshalToSizedBuffer

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

func (*QueryAllBlockHeightToFinalizationQueueRequest) ProtoMessage

func (*QueryAllBlockHeightToFinalizationQueueRequest) Reset

func (*QueryAllBlockHeightToFinalizationQueueRequest) Size

func (*QueryAllBlockHeightToFinalizationQueueRequest) String

func (*QueryAllBlockHeightToFinalizationQueueRequest) Unmarshal

func (*QueryAllBlockHeightToFinalizationQueueRequest) XXX_DiscardUnknown

func (m *QueryAllBlockHeightToFinalizationQueueRequest) XXX_DiscardUnknown()

func (*QueryAllBlockHeightToFinalizationQueueRequest) XXX_Marshal

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

func (*QueryAllBlockHeightToFinalizationQueueRequest) XXX_Merge

func (*QueryAllBlockHeightToFinalizationQueueRequest) XXX_Size

func (*QueryAllBlockHeightToFinalizationQueueRequest) XXX_Unmarshal

type QueryAllBlockHeightToFinalizationQueueResponse

type QueryAllBlockHeightToFinalizationQueueResponse struct {
	BlockHeightToFinalizationQueue []BlockHeightToFinalizationQueue `protobuf:"bytes,1,rep,name=blockHeightToFinalizationQueue,proto3" json:"blockHeightToFinalizationQueue"`
	Pagination                     *query.PageResponse              `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllBlockHeightToFinalizationQueueResponse) Descriptor

func (*QueryAllBlockHeightToFinalizationQueueResponse) GetBlockHeightToFinalizationQueue

func (m *QueryAllBlockHeightToFinalizationQueueResponse) GetBlockHeightToFinalizationQueue() []BlockHeightToFinalizationQueue

func (*QueryAllBlockHeightToFinalizationQueueResponse) GetPagination

func (*QueryAllBlockHeightToFinalizationQueueResponse) Marshal

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

func (*QueryAllBlockHeightToFinalizationQueueResponse) MarshalTo

func (*QueryAllBlockHeightToFinalizationQueueResponse) MarshalToSizedBuffer

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

func (*QueryAllBlockHeightToFinalizationQueueResponse) ProtoMessage

func (*QueryAllBlockHeightToFinalizationQueueResponse) Reset

func (*QueryAllBlockHeightToFinalizationQueueResponse) Size

func (*QueryAllBlockHeightToFinalizationQueueResponse) String

func (*QueryAllBlockHeightToFinalizationQueueResponse) Unmarshal

func (*QueryAllBlockHeightToFinalizationQueueResponse) XXX_DiscardUnknown

func (m *QueryAllBlockHeightToFinalizationQueueResponse) XXX_DiscardUnknown()

func (*QueryAllBlockHeightToFinalizationQueueResponse) XXX_Marshal

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

func (*QueryAllBlockHeightToFinalizationQueueResponse) XXX_Merge

func (*QueryAllBlockHeightToFinalizationQueueResponse) XXX_Size

func (*QueryAllBlockHeightToFinalizationQueueResponse) XXX_Unmarshal

type QueryAllLatestStateInfoIndexRequest

type QueryAllLatestStateInfoIndexRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllLatestStateInfoIndexRequest) Descriptor

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

func (*QueryAllLatestStateInfoIndexRequest) GetPagination

func (*QueryAllLatestStateInfoIndexRequest) Marshal

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

func (*QueryAllLatestStateInfoIndexRequest) MarshalTo

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

func (*QueryAllLatestStateInfoIndexRequest) MarshalToSizedBuffer

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

func (*QueryAllLatestStateInfoIndexRequest) ProtoMessage

func (*QueryAllLatestStateInfoIndexRequest) ProtoMessage()

func (*QueryAllLatestStateInfoIndexRequest) Reset

func (*QueryAllLatestStateInfoIndexRequest) Size

func (*QueryAllLatestStateInfoIndexRequest) String

func (*QueryAllLatestStateInfoIndexRequest) Unmarshal

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

func (*QueryAllLatestStateInfoIndexRequest) XXX_DiscardUnknown

func (m *QueryAllLatestStateInfoIndexRequest) XXX_DiscardUnknown()

func (*QueryAllLatestStateInfoIndexRequest) XXX_Marshal

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

func (*QueryAllLatestStateInfoIndexRequest) XXX_Merge

func (*QueryAllLatestStateInfoIndexRequest) XXX_Size

func (*QueryAllLatestStateInfoIndexRequest) XXX_Unmarshal

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

type QueryAllLatestStateInfoIndexResponse

type QueryAllLatestStateInfoIndexResponse struct {
	LatestStateInfoIndex []StateInfoIndex    `protobuf:"bytes,1,rep,name=latestStateInfoIndex,proto3" json:"latestStateInfoIndex"`
	Pagination           *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllLatestStateInfoIndexResponse) Descriptor

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

func (*QueryAllLatestStateInfoIndexResponse) GetLatestStateInfoIndex

func (m *QueryAllLatestStateInfoIndexResponse) GetLatestStateInfoIndex() []StateInfoIndex

func (*QueryAllLatestStateInfoIndexResponse) GetPagination

func (*QueryAllLatestStateInfoIndexResponse) Marshal

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

func (*QueryAllLatestStateInfoIndexResponse) MarshalTo

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

func (*QueryAllLatestStateInfoIndexResponse) MarshalToSizedBuffer

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

func (*QueryAllLatestStateInfoIndexResponse) ProtoMessage

func (*QueryAllLatestStateInfoIndexResponse) ProtoMessage()

func (*QueryAllLatestStateInfoIndexResponse) Reset

func (*QueryAllLatestStateInfoIndexResponse) Size

func (*QueryAllLatestStateInfoIndexResponse) String

func (*QueryAllLatestStateInfoIndexResponse) Unmarshal

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

func (*QueryAllLatestStateInfoIndexResponse) XXX_DiscardUnknown

func (m *QueryAllLatestStateInfoIndexResponse) XXX_DiscardUnknown()

func (*QueryAllLatestStateInfoIndexResponse) XXX_Marshal

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

func (*QueryAllLatestStateInfoIndexResponse) XXX_Merge

func (*QueryAllLatestStateInfoIndexResponse) XXX_Size

func (*QueryAllLatestStateInfoIndexResponse) XXX_Unmarshal

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

type QueryAllRollappRequest

type QueryAllRollappRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllRollappRequest) Descriptor

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

func (*QueryAllRollappRequest) GetPagination

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

func (*QueryAllRollappRequest) Marshal

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

func (*QueryAllRollappRequest) MarshalTo

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

func (*QueryAllRollappRequest) MarshalToSizedBuffer

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

func (*QueryAllRollappRequest) ProtoMessage

func (*QueryAllRollappRequest) ProtoMessage()

func (*QueryAllRollappRequest) Reset

func (m *QueryAllRollappRequest) Reset()

func (*QueryAllRollappRequest) Size

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

func (*QueryAllRollappRequest) String

func (m *QueryAllRollappRequest) String() string

func (*QueryAllRollappRequest) Unmarshal

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

func (*QueryAllRollappRequest) XXX_DiscardUnknown

func (m *QueryAllRollappRequest) XXX_DiscardUnknown()

func (*QueryAllRollappRequest) XXX_Marshal

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

func (*QueryAllRollappRequest) XXX_Merge

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

func (*QueryAllRollappRequest) XXX_Size

func (m *QueryAllRollappRequest) XXX_Size() int

func (*QueryAllRollappRequest) XXX_Unmarshal

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

type QueryAllRollappResponse

type QueryAllRollappResponse struct {
	Rollapp    []Rollapp           `protobuf:"bytes,1,rep,name=rollapp,proto3" json:"rollapp"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllRollappResponse) Descriptor

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

func (*QueryAllRollappResponse) GetPagination

func (m *QueryAllRollappResponse) GetPagination() *query.PageResponse

func (*QueryAllRollappResponse) GetRollapp

func (m *QueryAllRollappResponse) GetRollapp() []Rollapp

func (*QueryAllRollappResponse) Marshal

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

func (*QueryAllRollappResponse) MarshalTo

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

func (*QueryAllRollappResponse) MarshalToSizedBuffer

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

func (*QueryAllRollappResponse) ProtoMessage

func (*QueryAllRollappResponse) ProtoMessage()

func (*QueryAllRollappResponse) Reset

func (m *QueryAllRollappResponse) Reset()

func (*QueryAllRollappResponse) Size

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

func (*QueryAllRollappResponse) String

func (m *QueryAllRollappResponse) String() string

func (*QueryAllRollappResponse) Unmarshal

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

func (*QueryAllRollappResponse) XXX_DiscardUnknown

func (m *QueryAllRollappResponse) XXX_DiscardUnknown()

func (*QueryAllRollappResponse) XXX_Marshal

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

func (*QueryAllRollappResponse) XXX_Merge

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

func (*QueryAllRollappResponse) XXX_Size

func (m *QueryAllRollappResponse) XXX_Size() int

func (*QueryAllRollappResponse) XXX_Unmarshal

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

type QueryAllStateInfoRequest

type QueryAllStateInfoRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllStateInfoRequest) Descriptor

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

func (*QueryAllStateInfoRequest) GetPagination

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

func (*QueryAllStateInfoRequest) Marshal

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

func (*QueryAllStateInfoRequest) MarshalTo

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

func (*QueryAllStateInfoRequest) MarshalToSizedBuffer

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

func (*QueryAllStateInfoRequest) ProtoMessage

func (*QueryAllStateInfoRequest) ProtoMessage()

func (*QueryAllStateInfoRequest) Reset

func (m *QueryAllStateInfoRequest) Reset()

func (*QueryAllStateInfoRequest) Size

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

func (*QueryAllStateInfoRequest) String

func (m *QueryAllStateInfoRequest) String() string

func (*QueryAllStateInfoRequest) Unmarshal

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

func (*QueryAllStateInfoRequest) XXX_DiscardUnknown

func (m *QueryAllStateInfoRequest) XXX_DiscardUnknown()

func (*QueryAllStateInfoRequest) XXX_Marshal

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

func (*QueryAllStateInfoRequest) XXX_Merge

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

func (*QueryAllStateInfoRequest) XXX_Size

func (m *QueryAllStateInfoRequest) XXX_Size() int

func (*QueryAllStateInfoRequest) XXX_Unmarshal

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

type QueryAllStateInfoResponse

type QueryAllStateInfoResponse struct {
	StateInfo  []StateInfo         `protobuf:"bytes,1,rep,name=stateInfo,proto3" json:"stateInfo"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllStateInfoResponse) Descriptor

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

func (*QueryAllStateInfoResponse) GetPagination

func (m *QueryAllStateInfoResponse) GetPagination() *query.PageResponse

func (*QueryAllStateInfoResponse) GetStateInfo

func (m *QueryAllStateInfoResponse) GetStateInfo() []StateInfo

func (*QueryAllStateInfoResponse) Marshal

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

func (*QueryAllStateInfoResponse) MarshalTo

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

func (*QueryAllStateInfoResponse) MarshalToSizedBuffer

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

func (*QueryAllStateInfoResponse) ProtoMessage

func (*QueryAllStateInfoResponse) ProtoMessage()

func (*QueryAllStateInfoResponse) Reset

func (m *QueryAllStateInfoResponse) Reset()

func (*QueryAllStateInfoResponse) Size

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

func (*QueryAllStateInfoResponse) String

func (m *QueryAllStateInfoResponse) String() string

func (*QueryAllStateInfoResponse) Unmarshal

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

func (*QueryAllStateInfoResponse) XXX_DiscardUnknown

func (m *QueryAllStateInfoResponse) XXX_DiscardUnknown()

func (*QueryAllStateInfoResponse) XXX_Marshal

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

func (*QueryAllStateInfoResponse) XXX_Merge

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

func (*QueryAllStateInfoResponse) XXX_Size

func (m *QueryAllStateInfoResponse) XXX_Size() int

func (*QueryAllStateInfoResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a Rollapp by index.
	Rollapp(ctx context.Context, in *QueryGetRollappRequest, opts ...grpc.CallOption) (*QueryGetRollappResponse, error)
	// Queries a list of Rollapp items.
	RollappAll(ctx context.Context, in *QueryAllRollappRequest, opts ...grpc.CallOption) (*QueryAllRollappResponse, error)
	// Queries a StateInfo by index.
	StateInfo(ctx context.Context, in *QueryGetStateInfoRequest, opts ...grpc.CallOption) (*QueryGetStateInfoResponse, error)
	// Queries a list of StateInfo items.
	StateInfoAll(ctx context.Context, in *QueryAllStateInfoRequest, opts ...grpc.CallOption) (*QueryAllStateInfoResponse, error)
	// Queries a LatestStateInfoIndex by index.
	LatestStateInfoIndex(ctx context.Context, in *QueryGetLatestStateInfoIndexRequest, opts ...grpc.CallOption) (*QueryGetLatestStateInfoIndexResponse, error)
	// Queries a list of LatestStateInfoIndex items.
	LatestStateInfoIndexAll(ctx context.Context, in *QueryAllLatestStateInfoIndexRequest, opts ...grpc.CallOption) (*QueryAllLatestStateInfoIndexResponse, error)
	// Queries a BlockHeightToFinalizationQueue by index.
	BlockHeightToFinalizationQueue(ctx context.Context, in *QueryGetBlockHeightToFinalizationQueueRequest, opts ...grpc.CallOption) (*QueryGetBlockHeightToFinalizationQueueResponse, error)
	// Queries a list of BlockHeightToFinalizationQueue items.
	BlockHeightToFinalizationQueueAll(ctx context.Context, in *QueryAllBlockHeightToFinalizationQueueRequest, opts ...grpc.CallOption) (*QueryAllBlockHeightToFinalizationQueueResponse, error)
	// Queries a list of LatestFinalizedStateInfo items.
	LatestFinalizedStateInfo(ctx context.Context, in *QueryGetLatestFinalizedStateInfoRequest, opts ...grpc.CallOption) (*QueryGetLatestFinalizedStateInfoResponse, error)
	// Queries a list of GetStateInfoByHeight items.
	GetStateInfoByHeight(ctx context.Context, in *QueryGetStateInfoByHeightRequest, opts ...grpc.CallOption) (*QueryGetStateInfoByHeightResponse, 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 QueryGetBlockHeightToFinalizationQueueRequest

type QueryGetBlockHeightToFinalizationQueueRequest struct {
	FinalizationHeight uint64 `protobuf:"varint,1,opt,name=finalizationHeight,proto3" json:"finalizationHeight,omitempty"`
}

func (*QueryGetBlockHeightToFinalizationQueueRequest) Descriptor

func (*QueryGetBlockHeightToFinalizationQueueRequest) GetFinalizationHeight

func (m *QueryGetBlockHeightToFinalizationQueueRequest) GetFinalizationHeight() uint64

func (*QueryGetBlockHeightToFinalizationQueueRequest) Marshal

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

func (*QueryGetBlockHeightToFinalizationQueueRequest) MarshalTo

func (*QueryGetBlockHeightToFinalizationQueueRequest) MarshalToSizedBuffer

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

func (*QueryGetBlockHeightToFinalizationQueueRequest) ProtoMessage

func (*QueryGetBlockHeightToFinalizationQueueRequest) Reset

func (*QueryGetBlockHeightToFinalizationQueueRequest) Size

func (*QueryGetBlockHeightToFinalizationQueueRequest) String

func (*QueryGetBlockHeightToFinalizationQueueRequest) Unmarshal

func (*QueryGetBlockHeightToFinalizationQueueRequest) XXX_DiscardUnknown

func (m *QueryGetBlockHeightToFinalizationQueueRequest) XXX_DiscardUnknown()

func (*QueryGetBlockHeightToFinalizationQueueRequest) XXX_Marshal

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

func (*QueryGetBlockHeightToFinalizationQueueRequest) XXX_Merge

func (*QueryGetBlockHeightToFinalizationQueueRequest) XXX_Size

func (*QueryGetBlockHeightToFinalizationQueueRequest) XXX_Unmarshal

type QueryGetBlockHeightToFinalizationQueueResponse

type QueryGetBlockHeightToFinalizationQueueResponse struct {
	BlockHeightToFinalizationQueue BlockHeightToFinalizationQueue `protobuf:"bytes,1,opt,name=blockHeightToFinalizationQueue,proto3" json:"blockHeightToFinalizationQueue"`
}

func (*QueryGetBlockHeightToFinalizationQueueResponse) Descriptor

func (*QueryGetBlockHeightToFinalizationQueueResponse) GetBlockHeightToFinalizationQueue

func (*QueryGetBlockHeightToFinalizationQueueResponse) Marshal

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

func (*QueryGetBlockHeightToFinalizationQueueResponse) MarshalTo

func (*QueryGetBlockHeightToFinalizationQueueResponse) MarshalToSizedBuffer

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

func (*QueryGetBlockHeightToFinalizationQueueResponse) ProtoMessage

func (*QueryGetBlockHeightToFinalizationQueueResponse) Reset

func (*QueryGetBlockHeightToFinalizationQueueResponse) Size

func (*QueryGetBlockHeightToFinalizationQueueResponse) String

func (*QueryGetBlockHeightToFinalizationQueueResponse) Unmarshal

func (*QueryGetBlockHeightToFinalizationQueueResponse) XXX_DiscardUnknown

func (m *QueryGetBlockHeightToFinalizationQueueResponse) XXX_DiscardUnknown()

func (*QueryGetBlockHeightToFinalizationQueueResponse) XXX_Marshal

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

func (*QueryGetBlockHeightToFinalizationQueueResponse) XXX_Merge

func (*QueryGetBlockHeightToFinalizationQueueResponse) XXX_Size

func (*QueryGetBlockHeightToFinalizationQueueResponse) XXX_Unmarshal

type QueryGetLatestFinalizedStateInfoRequest

type QueryGetLatestFinalizedStateInfoRequest struct {
	RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
}

func (*QueryGetLatestFinalizedStateInfoRequest) Descriptor

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

func (*QueryGetLatestFinalizedStateInfoRequest) GetRollappId

func (*QueryGetLatestFinalizedStateInfoRequest) Marshal

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

func (*QueryGetLatestFinalizedStateInfoRequest) MarshalTo

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

func (*QueryGetLatestFinalizedStateInfoRequest) MarshalToSizedBuffer

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

func (*QueryGetLatestFinalizedStateInfoRequest) ProtoMessage

func (*QueryGetLatestFinalizedStateInfoRequest) Reset

func (*QueryGetLatestFinalizedStateInfoRequest) Size

func (*QueryGetLatestFinalizedStateInfoRequest) String

func (*QueryGetLatestFinalizedStateInfoRequest) Unmarshal

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

func (*QueryGetLatestFinalizedStateInfoRequest) XXX_DiscardUnknown

func (m *QueryGetLatestFinalizedStateInfoRequest) XXX_DiscardUnknown()

func (*QueryGetLatestFinalizedStateInfoRequest) XXX_Marshal

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

func (*QueryGetLatestFinalizedStateInfoRequest) XXX_Merge

func (*QueryGetLatestFinalizedStateInfoRequest) XXX_Size

func (*QueryGetLatestFinalizedStateInfoRequest) XXX_Unmarshal

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

type QueryGetLatestFinalizedStateInfoResponse

type QueryGetLatestFinalizedStateInfoResponse struct {
	StateInfo StateInfo `protobuf:"bytes,1,opt,name=stateInfo,proto3" json:"stateInfo"`
}

func (*QueryGetLatestFinalizedStateInfoResponse) Descriptor

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

func (*QueryGetLatestFinalizedStateInfoResponse) GetStateInfo

func (*QueryGetLatestFinalizedStateInfoResponse) Marshal

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

func (*QueryGetLatestFinalizedStateInfoResponse) MarshalTo

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

func (*QueryGetLatestFinalizedStateInfoResponse) MarshalToSizedBuffer

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

func (*QueryGetLatestFinalizedStateInfoResponse) ProtoMessage

func (*QueryGetLatestFinalizedStateInfoResponse) Reset

func (*QueryGetLatestFinalizedStateInfoResponse) Size

func (*QueryGetLatestFinalizedStateInfoResponse) String

func (*QueryGetLatestFinalizedStateInfoResponse) Unmarshal

func (*QueryGetLatestFinalizedStateInfoResponse) XXX_DiscardUnknown

func (m *QueryGetLatestFinalizedStateInfoResponse) XXX_DiscardUnknown()

func (*QueryGetLatestFinalizedStateInfoResponse) XXX_Marshal

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

func (*QueryGetLatestFinalizedStateInfoResponse) XXX_Merge

func (*QueryGetLatestFinalizedStateInfoResponse) XXX_Size

func (*QueryGetLatestFinalizedStateInfoResponse) XXX_Unmarshal

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

type QueryGetLatestStateInfoIndexRequest

type QueryGetLatestStateInfoIndexRequest struct {
	RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
}

func (*QueryGetLatestStateInfoIndexRequest) Descriptor

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

func (*QueryGetLatestStateInfoIndexRequest) GetRollappId

func (m *QueryGetLatestStateInfoIndexRequest) GetRollappId() string

func (*QueryGetLatestStateInfoIndexRequest) Marshal

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

func (*QueryGetLatestStateInfoIndexRequest) MarshalTo

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

func (*QueryGetLatestStateInfoIndexRequest) MarshalToSizedBuffer

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

func (*QueryGetLatestStateInfoIndexRequest) ProtoMessage

func (*QueryGetLatestStateInfoIndexRequest) ProtoMessage()

func (*QueryGetLatestStateInfoIndexRequest) Reset

func (*QueryGetLatestStateInfoIndexRequest) Size

func (*QueryGetLatestStateInfoIndexRequest) String

func (*QueryGetLatestStateInfoIndexRequest) Unmarshal

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

func (*QueryGetLatestStateInfoIndexRequest) XXX_DiscardUnknown

func (m *QueryGetLatestStateInfoIndexRequest) XXX_DiscardUnknown()

func (*QueryGetLatestStateInfoIndexRequest) XXX_Marshal

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

func (*QueryGetLatestStateInfoIndexRequest) XXX_Merge

func (*QueryGetLatestStateInfoIndexRequest) XXX_Size

func (*QueryGetLatestStateInfoIndexRequest) XXX_Unmarshal

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

type QueryGetLatestStateInfoIndexResponse

type QueryGetLatestStateInfoIndexResponse struct {
	LatestStateInfoIndex StateInfoIndex `protobuf:"bytes,1,opt,name=latestStateInfoIndex,proto3" json:"latestStateInfoIndex"`
}

func (*QueryGetLatestStateInfoIndexResponse) Descriptor

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

func (*QueryGetLatestStateInfoIndexResponse) GetLatestStateInfoIndex

func (m *QueryGetLatestStateInfoIndexResponse) GetLatestStateInfoIndex() StateInfoIndex

func (*QueryGetLatestStateInfoIndexResponse) Marshal

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

func (*QueryGetLatestStateInfoIndexResponse) MarshalTo

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

func (*QueryGetLatestStateInfoIndexResponse) MarshalToSizedBuffer

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

func (*QueryGetLatestStateInfoIndexResponse) ProtoMessage

func (*QueryGetLatestStateInfoIndexResponse) ProtoMessage()

func (*QueryGetLatestStateInfoIndexResponse) Reset

func (*QueryGetLatestStateInfoIndexResponse) Size

func (*QueryGetLatestStateInfoIndexResponse) String

func (*QueryGetLatestStateInfoIndexResponse) Unmarshal

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

func (*QueryGetLatestStateInfoIndexResponse) XXX_DiscardUnknown

func (m *QueryGetLatestStateInfoIndexResponse) XXX_DiscardUnknown()

func (*QueryGetLatestStateInfoIndexResponse) XXX_Marshal

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

func (*QueryGetLatestStateInfoIndexResponse) XXX_Merge

func (*QueryGetLatestStateInfoIndexResponse) XXX_Size

func (*QueryGetLatestStateInfoIndexResponse) XXX_Unmarshal

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

type QueryGetRollappRequest

type QueryGetRollappRequest struct {
	RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
}

func (*QueryGetRollappRequest) Descriptor

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

func (*QueryGetRollappRequest) GetRollappId

func (m *QueryGetRollappRequest) GetRollappId() string

func (*QueryGetRollappRequest) Marshal

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

func (*QueryGetRollappRequest) MarshalTo

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

func (*QueryGetRollappRequest) MarshalToSizedBuffer

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

func (*QueryGetRollappRequest) ProtoMessage

func (*QueryGetRollappRequest) ProtoMessage()

func (*QueryGetRollappRequest) Reset

func (m *QueryGetRollappRequest) Reset()

func (*QueryGetRollappRequest) Size

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

func (*QueryGetRollappRequest) String

func (m *QueryGetRollappRequest) String() string

func (*QueryGetRollappRequest) Unmarshal

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

func (*QueryGetRollappRequest) XXX_DiscardUnknown

func (m *QueryGetRollappRequest) XXX_DiscardUnknown()

func (*QueryGetRollappRequest) XXX_Marshal

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

func (*QueryGetRollappRequest) XXX_Merge

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

func (*QueryGetRollappRequest) XXX_Size

func (m *QueryGetRollappRequest) XXX_Size() int

func (*QueryGetRollappRequest) XXX_Unmarshal

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

type QueryGetRollappResponse

type QueryGetRollappResponse struct {
	Rollapp Rollapp `protobuf:"bytes,1,opt,name=rollapp,proto3" json:"rollapp"`
}

func (*QueryGetRollappResponse) Descriptor

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

func (*QueryGetRollappResponse) GetRollapp

func (m *QueryGetRollappResponse) GetRollapp() Rollapp

func (*QueryGetRollappResponse) Marshal

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

func (*QueryGetRollappResponse) MarshalTo

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

func (*QueryGetRollappResponse) MarshalToSizedBuffer

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

func (*QueryGetRollappResponse) ProtoMessage

func (*QueryGetRollappResponse) ProtoMessage()

func (*QueryGetRollappResponse) Reset

func (m *QueryGetRollappResponse) Reset()

func (*QueryGetRollappResponse) Size

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

func (*QueryGetRollappResponse) String

func (m *QueryGetRollappResponse) String() string

func (*QueryGetRollappResponse) Unmarshal

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

func (*QueryGetRollappResponse) XXX_DiscardUnknown

func (m *QueryGetRollappResponse) XXX_DiscardUnknown()

func (*QueryGetRollappResponse) XXX_Marshal

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

func (*QueryGetRollappResponse) XXX_Merge

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

func (*QueryGetRollappResponse) XXX_Size

func (m *QueryGetRollappResponse) XXX_Size() int

func (*QueryGetRollappResponse) XXX_Unmarshal

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

type QueryGetStateInfoByHeightRequest

type QueryGetStateInfoByHeightRequest struct {
	RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	Height    uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

func (*QueryGetStateInfoByHeightRequest) Descriptor

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

func (*QueryGetStateInfoByHeightRequest) GetHeight

func (*QueryGetStateInfoByHeightRequest) GetRollappId

func (m *QueryGetStateInfoByHeightRequest) GetRollappId() string

func (*QueryGetStateInfoByHeightRequest) Marshal

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

func (*QueryGetStateInfoByHeightRequest) MarshalTo

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

func (*QueryGetStateInfoByHeightRequest) MarshalToSizedBuffer

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

func (*QueryGetStateInfoByHeightRequest) ProtoMessage

func (*QueryGetStateInfoByHeightRequest) ProtoMessage()

func (*QueryGetStateInfoByHeightRequest) Reset

func (*QueryGetStateInfoByHeightRequest) Size

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

func (*QueryGetStateInfoByHeightRequest) String

func (*QueryGetStateInfoByHeightRequest) Unmarshal

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

func (*QueryGetStateInfoByHeightRequest) XXX_DiscardUnknown

func (m *QueryGetStateInfoByHeightRequest) XXX_DiscardUnknown()

func (*QueryGetStateInfoByHeightRequest) XXX_Marshal

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

func (*QueryGetStateInfoByHeightRequest) XXX_Merge

func (*QueryGetStateInfoByHeightRequest) XXX_Size

func (m *QueryGetStateInfoByHeightRequest) XXX_Size() int

func (*QueryGetStateInfoByHeightRequest) XXX_Unmarshal

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

type QueryGetStateInfoByHeightResponse

type QueryGetStateInfoByHeightResponse struct {
	StateInfo StateInfo `protobuf:"bytes,1,opt,name=stateInfo,proto3" json:"stateInfo"`
}

func (*QueryGetStateInfoByHeightResponse) Descriptor

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

func (*QueryGetStateInfoByHeightResponse) GetStateInfo

func (m *QueryGetStateInfoByHeightResponse) GetStateInfo() StateInfo

func (*QueryGetStateInfoByHeightResponse) Marshal

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

func (*QueryGetStateInfoByHeightResponse) MarshalTo

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

func (*QueryGetStateInfoByHeightResponse) MarshalToSizedBuffer

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

func (*QueryGetStateInfoByHeightResponse) ProtoMessage

func (*QueryGetStateInfoByHeightResponse) ProtoMessage()

func (*QueryGetStateInfoByHeightResponse) Reset

func (*QueryGetStateInfoByHeightResponse) Size

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

func (*QueryGetStateInfoByHeightResponse) String

func (*QueryGetStateInfoByHeightResponse) Unmarshal

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

func (*QueryGetStateInfoByHeightResponse) XXX_DiscardUnknown

func (m *QueryGetStateInfoByHeightResponse) XXX_DiscardUnknown()

func (*QueryGetStateInfoByHeightResponse) XXX_Marshal

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

func (*QueryGetStateInfoByHeightResponse) XXX_Merge

func (*QueryGetStateInfoByHeightResponse) XXX_Size

func (m *QueryGetStateInfoByHeightResponse) XXX_Size() int

func (*QueryGetStateInfoByHeightResponse) XXX_Unmarshal

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

type QueryGetStateInfoRequest

type QueryGetStateInfoRequest struct {
	RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	Index     uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryGetStateInfoRequest) Descriptor

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

func (*QueryGetStateInfoRequest) GetIndex

func (m *QueryGetStateInfoRequest) GetIndex() uint64

func (*QueryGetStateInfoRequest) GetRollappId

func (m *QueryGetStateInfoRequest) GetRollappId() string

func (*QueryGetStateInfoRequest) Marshal

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

func (*QueryGetStateInfoRequest) MarshalTo

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

func (*QueryGetStateInfoRequest) MarshalToSizedBuffer

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

func (*QueryGetStateInfoRequest) ProtoMessage

func (*QueryGetStateInfoRequest) ProtoMessage()

func (*QueryGetStateInfoRequest) Reset

func (m *QueryGetStateInfoRequest) Reset()

func (*QueryGetStateInfoRequest) Size

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

func (*QueryGetStateInfoRequest) String

func (m *QueryGetStateInfoRequest) String() string

func (*QueryGetStateInfoRequest) Unmarshal

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

func (*QueryGetStateInfoRequest) XXX_DiscardUnknown

func (m *QueryGetStateInfoRequest) XXX_DiscardUnknown()

func (*QueryGetStateInfoRequest) XXX_Marshal

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

func (*QueryGetStateInfoRequest) XXX_Merge

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

func (*QueryGetStateInfoRequest) XXX_Size

func (m *QueryGetStateInfoRequest) XXX_Size() int

func (*QueryGetStateInfoRequest) XXX_Unmarshal

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

type QueryGetStateInfoResponse

type QueryGetStateInfoResponse struct {
	StateInfo StateInfo `protobuf:"bytes,1,opt,name=stateInfo,proto3" json:"stateInfo"`
}

func (*QueryGetStateInfoResponse) Descriptor

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

func (*QueryGetStateInfoResponse) GetStateInfo

func (m *QueryGetStateInfoResponse) GetStateInfo() StateInfo

func (*QueryGetStateInfoResponse) Marshal

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

func (*QueryGetStateInfoResponse) MarshalTo

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

func (*QueryGetStateInfoResponse) MarshalToSizedBuffer

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

func (*QueryGetStateInfoResponse) ProtoMessage

func (*QueryGetStateInfoResponse) ProtoMessage()

func (*QueryGetStateInfoResponse) Reset

func (m *QueryGetStateInfoResponse) Reset()

func (*QueryGetStateInfoResponse) Size

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

func (*QueryGetStateInfoResponse) String

func (m *QueryGetStateInfoResponse) String() string

func (*QueryGetStateInfoResponse) Unmarshal

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

func (*QueryGetStateInfoResponse) XXX_DiscardUnknown

func (m *QueryGetStateInfoResponse) XXX_DiscardUnknown()

func (*QueryGetStateInfoResponse) XXX_Marshal

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

func (*QueryGetStateInfoResponse) XXX_Merge

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

func (*QueryGetStateInfoResponse) XXX_Size

func (m *QueryGetStateInfoResponse) XXX_Size() int

func (*QueryGetStateInfoResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a Rollapp by index.
	Rollapp(context.Context, *QueryGetRollappRequest) (*QueryGetRollappResponse, error)
	// Queries a list of Rollapp items.
	RollappAll(context.Context, *QueryAllRollappRequest) (*QueryAllRollappResponse, error)
	// Queries a StateInfo by index.
	StateInfo(context.Context, *QueryGetStateInfoRequest) (*QueryGetStateInfoResponse, error)
	// Queries a list of StateInfo items.
	StateInfoAll(context.Context, *QueryAllStateInfoRequest) (*QueryAllStateInfoResponse, error)
	// Queries a LatestStateInfoIndex by index.
	LatestStateInfoIndex(context.Context, *QueryGetLatestStateInfoIndexRequest) (*QueryGetLatestStateInfoIndexResponse, error)
	// Queries a list of LatestStateInfoIndex items.
	LatestStateInfoIndexAll(context.Context, *QueryAllLatestStateInfoIndexRequest) (*QueryAllLatestStateInfoIndexResponse, error)
	// Queries a BlockHeightToFinalizationQueue by index.
	BlockHeightToFinalizationQueue(context.Context, *QueryGetBlockHeightToFinalizationQueueRequest) (*QueryGetBlockHeightToFinalizationQueueResponse, error)
	// Queries a list of BlockHeightToFinalizationQueue items.
	BlockHeightToFinalizationQueueAll(context.Context, *QueryAllBlockHeightToFinalizationQueueRequest) (*QueryAllBlockHeightToFinalizationQueueResponse, error)
	// Queries a list of LatestFinalizedStateInfo items.
	LatestFinalizedStateInfo(context.Context, *QueryGetLatestFinalizedStateInfoRequest) (*QueryGetLatestFinalizedStateInfoResponse, error)
	// Queries a list of GetStateInfoByHeight items.
	GetStateInfoByHeight(context.Context, *QueryGetStateInfoByHeightRequest) (*QueryGetStateInfoByHeightResponse, error)
}

QueryServer is the server API for Query service.

type Rollapp

type Rollapp struct {
	// rollappId is the unique identifier of the rollapp chain.
	// The rollappId follows the same standard as cosmos chain_id.
	RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	// creator is the bech32-encoded address of the rollapp creator.
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// version is the software and configuration version.
	// starts from 1 and increases by one on every MsgUpdateState
	Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// codeStamp is a generated hash for unique identification of the rollapp code.
	CodeStamp string `protobuf:"bytes,4,opt,name=codeStamp,proto3" json:"codeStamp,omitempty"`
	// genesisPath is the description of the genesis file location on the DA.
	GenesisPath string `protobuf:"bytes,5,opt,name=genesisPath,proto3" json:"genesisPath,omitempty"`
	// maxWithholdingBlocks is the maximum number of blocks for
	// an active sequencer to send a state update (MsgUpdateState).
	MaxWithholdingBlocks uint64 `protobuf:"varint,6,opt,name=maxWithholdingBlocks,proto3" json:"maxWithholdingBlocks,omitempty"`
	// maxSequencers is the maximum number of sequencers.
	MaxSequencers uint64 `protobuf:"varint,7,opt,name=maxSequencers,proto3" json:"maxSequencers,omitempty"`
	// permissionedAddresses is a bech32-encoded address list of the
	// sequencers that are allowed to serve this rollappId.
	// In the case of an empty list, the rollapp is considered permissionless.
	PermissionedAddresses types.Sequencers `protobuf:"bytes,8,opt,name=permissionedAddresses,proto3" json:"permissionedAddresses"`
}

Rollapp defines a rollapp object. First the RollApp is created and then sequencers can be created and attached. The RollApp is identified by rollappId

func (*Rollapp) Descriptor

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

func (*Rollapp) GetCodeStamp

func (m *Rollapp) GetCodeStamp() string

func (*Rollapp) GetCreator

func (m *Rollapp) GetCreator() string

func (*Rollapp) GetGenesisPath

func (m *Rollapp) GetGenesisPath() string

func (*Rollapp) GetMaxSequencers

func (m *Rollapp) GetMaxSequencers() uint64

func (*Rollapp) GetMaxWithholdingBlocks

func (m *Rollapp) GetMaxWithholdingBlocks() uint64

func (*Rollapp) GetPermissionedAddresses

func (m *Rollapp) GetPermissionedAddresses() types.Sequencers

func (*Rollapp) GetRollappId

func (m *Rollapp) GetRollappId() string

func (*Rollapp) GetVersion

func (m *Rollapp) GetVersion() uint64

func (*Rollapp) Marshal

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

func (*Rollapp) MarshalTo

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

func (*Rollapp) MarshalToSizedBuffer

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

func (*Rollapp) ProtoMessage

func (*Rollapp) ProtoMessage()

func (*Rollapp) Reset

func (m *Rollapp) Reset()

func (*Rollapp) Size

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

func (*Rollapp) String

func (m *Rollapp) String() string

func (*Rollapp) Unmarshal

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

func (*Rollapp) XXX_DiscardUnknown

func (m *Rollapp) XXX_DiscardUnknown()

func (*Rollapp) XXX_Marshal

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

func (*Rollapp) XXX_Merge

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

func (*Rollapp) XXX_Size

func (m *Rollapp) XXX_Size() int

func (*Rollapp) XXX_Unmarshal

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

type RollappHooks

type RollappHooks interface {
	BeforeUpdateState(ctx sdk.Context, seqAddr string, rollappId string) // Must be called when a rollapp's state changes
}

RollappHooks event hooks for rollapp object (noalias)

type StateInfo

type StateInfo struct {
	// stateInfoIndex defines what rollapp the state belongs to
	// and in which index it can be referenced
	StateInfoIndex StateInfoIndex `protobuf:"bytes,1,opt,name=stateInfoIndex,proto3" json:"stateInfoIndex"`
	// sequencer is the bech32-encoded address of the sequencer sent the update
	Sequencer string `protobuf:"bytes,2,opt,name=sequencer,proto3" json:"sequencer,omitempty"`
	// startHeight is the block height of the first block in the batch
	StartHeight uint64 `protobuf:"varint,3,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
	// numBlocks is the number of blocks included in this batch update
	NumBlocks uint64 `protobuf:"varint,4,opt,name=numBlocks,proto3" json:"numBlocks,omitempty"`
	// DAPath is the description of the location on the DA layer
	DAPath string `protobuf:"bytes,5,opt,name=DAPath,proto3" json:"DAPath,omitempty"`
	// version is the version of the rollapp
	Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
	// creationHeight is the height at which the UpdateState took place
	CreationHeight uint64 `protobuf:"varint,7,opt,name=creationHeight,proto3" json:"creationHeight,omitempty"`
	// status is the status of the state update
	Status StateStatus `protobuf:"varint,8,opt,name=status,proto3,enum=furychain.furya.rollapp.StateStatus" json:"status,omitempty"`
	// BDs is a list of block description objects (one per block)
	// the list must be ordered by height, starting from startHeight to startHeight+numBlocks-1
	BDs BlockDescriptors `protobuf:"bytes,9,opt,name=BDs,proto3" json:"BDs"`
}

StateInfo defines a rollapps' state.

func (*StateInfo) Descriptor

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

func (*StateInfo) GetBDs

func (m *StateInfo) GetBDs() BlockDescriptors

func (*StateInfo) GetCreationHeight

func (m *StateInfo) GetCreationHeight() uint64

func (*StateInfo) GetDAPath

func (m *StateInfo) GetDAPath() string

func (*StateInfo) GetNumBlocks

func (m *StateInfo) GetNumBlocks() uint64

func (*StateInfo) GetSequencer

func (m *StateInfo) GetSequencer() string

func (*StateInfo) GetStartHeight

func (m *StateInfo) GetStartHeight() uint64

func (*StateInfo) GetStateInfoIndex

func (m *StateInfo) GetStateInfoIndex() StateInfoIndex

func (*StateInfo) GetStatus

func (m *StateInfo) GetStatus() StateStatus

func (*StateInfo) GetVersion

func (m *StateInfo) GetVersion() uint64

func (*StateInfo) Marshal

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

func (*StateInfo) MarshalTo

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

func (*StateInfo) MarshalToSizedBuffer

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

func (*StateInfo) ProtoMessage

func (*StateInfo) ProtoMessage()

func (*StateInfo) Reset

func (m *StateInfo) Reset()

func (*StateInfo) Size

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

func (*StateInfo) String

func (m *StateInfo) String() string

func (*StateInfo) Unmarshal

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

func (*StateInfo) XXX_DiscardUnknown

func (m *StateInfo) XXX_DiscardUnknown()

func (*StateInfo) XXX_Marshal

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

func (*StateInfo) XXX_Merge

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

func (*StateInfo) XXX_Size

func (m *StateInfo) XXX_Size() int

func (*StateInfo) XXX_Unmarshal

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

type StateInfoIndex

type StateInfoIndex struct {
	// rollappId is the rollapp that the sequencer belongs to and asking to update
	// it used to identify the what rollapp a StateInfo belongs
	// The rollappId follows the same standard as cosmos chain_id
	RollappId string `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	// index is a sequential increasing number, updating on each
	// state update used for indexing to a specific state info, the first index is 1
	Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
}

StateInfoIndex is the data used for indexing and retrieving a StateInfo it updated and saved with every UpdateState in StateInfo. We use the this structure also for: 1. LatestStateInfoIndex which defines the rollapps' current (latest) index of the last UpdateState 2. LatestFinalizedStateIndex which defines the rollapps' current (latest) index of the latest StateInfo that was finalized

func (*StateInfoIndex) Descriptor

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

func (*StateInfoIndex) GetIndex

func (m *StateInfoIndex) GetIndex() uint64

func (*StateInfoIndex) GetRollappId

func (m *StateInfoIndex) GetRollappId() string

func (*StateInfoIndex) Marshal

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

func (*StateInfoIndex) MarshalTo

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

func (*StateInfoIndex) MarshalToSizedBuffer

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

func (*StateInfoIndex) ProtoMessage

func (*StateInfoIndex) ProtoMessage()

func (*StateInfoIndex) Reset

func (m *StateInfoIndex) Reset()

func (*StateInfoIndex) Size

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

func (*StateInfoIndex) String

func (m *StateInfoIndex) String() string

func (*StateInfoIndex) Unmarshal

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

func (*StateInfoIndex) XXX_DiscardUnknown

func (m *StateInfoIndex) XXX_DiscardUnknown()

func (*StateInfoIndex) XXX_Marshal

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

func (*StateInfoIndex) XXX_Merge

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

func (*StateInfoIndex) XXX_Size

func (m *StateInfoIndex) XXX_Size() int

func (*StateInfoIndex) XXX_Unmarshal

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

type StateStatus

type StateStatus int32
const (
	// zero-value for status ordering
	STATE_STATUS_UNSPECIFIED StateStatus = 0
	// STATE_STATUS_RECEIVED defines a rollapp state where the state update transaction was published on dYmension chain
	STATE_STATUS_RECEIVED StateStatus = 1
	// STATE_STATUS_FINALIZED defines a rollapp state where the the "Dispute Period" has ended and this state is considered final
	STATE_STATUS_FINALIZED StateStatus = 2
)

func (StateStatus) EnumDescriptor

func (StateStatus) EnumDescriptor() ([]byte, []int)

func (StateStatus) String

func (x StateStatus) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateRollapp

func (*UnimplementedMsgServer) UpdateState

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Rollapp

func (*UnimplementedQueryServer) RollappAll

func (*UnimplementedQueryServer) StateInfo

func (*UnimplementedQueryServer) StateInfoAll

Jump to

Keyboard shortcuts

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