types

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 38 Imported by: 3

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	MaxMonikerLength         = 70
	MaxIdentityLength        = 3000
	MaxWebsiteLength         = 140
	MaxSecurityContactLength = 140
	MaxDetailsLength         = 280
)

constant for maximum string length of the Description fields

View Source
const (
	// EventTypeCreateSequencer is emitted when a sequencer is created
	EventTypeCreateSequencer = "create_sequencer"
	AttributeKeyRollappId    = "rollapp_id"
	AttributeKeySequencer    = "sequencer"
	AttributeKeyBond         = "bond"
	AttributeKeyProposer     = "proposer"

	// EventTypeUnbonding is emitted when a sequencer is unbonding
	EventTypeUnbonding         = "unbonding"
	AttributeKeyCompletionTime = "completion_time"

	// EventTypeNoBondedSequencer is emitted when no bonded sequencer is found for a rollapp
	EventTypeNoBondedSequencer = "no_bonded_sequencer"

	// EventTypeProposerRotated is emitted when a proposer is rotated
	EventTypeProposerRotated = "proposer_rotated"

	// EventTypeUnbonded is emitted when a sequencer is unbonded
	EventTypeUnbonded = "unbonded"

	// EventTypeSlashed is emitted when a sequencer is slashed
	EventTypeSlashed = "slashed"
)

Incentive module event types.

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

	// 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_sequencer"
)
View Source
const (
	TypeMsgCreateSequencer = "create_sequencer"
	TypeMsgUnbond          = "unbond"
)
View Source
const DoNotModifyDesc = "[do-not-modify]"

DoNotModifyDesc constant is used in flags to indicate that description field should not be updated

Variables

View Source
var (
	ErrInvalidLengthDescription        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDescription          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDescription = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSequencerExists          = sdkerrors.Register(ModuleName, 1000, "sequencer already exist for this address; must use new sequencer address")
	ErrInvalidSequencerAddress  = sdkerrors.Register(ModuleName, 1001, "invalid sequencer address")
	ErrUnknownRollappID         = sdkerrors.Register(ModuleName, 1002, "rollapp does not exist")
	ErrMaxSequencersLimit       = sdkerrors.Register(ModuleName, 1003, "too many sequencers for rollapp")
	ErrSequencerNotPermissioned = sdkerrors.Register(ModuleName, 1004, "sequencer is not permissioned for serving the rollapp")
	ErrUnknownSequencer         = sdkerrors.Register(ModuleName, 1005, "sequencer was not registered")
	ErrSequencerRollappMismatch = sdkerrors.Register(ModuleName, 1006, "sequencer was not registered for this rollapp")
	ErrNotActiveSequencer       = sdkerrors.Register(ModuleName, 1007, "sequencer is not active")
	ErrInvalidSequencerStatus   = sdkerrors.Register(ModuleName, 1008, "invalid sequencer status")
	ErrInvalidSequencerTokens   = sdkerrors.Register(ModuleName, 1009, "invalid sequencer tokens")
	ErrInvalidCoinDenom         = sdkerrors.Register(ModuleName, 1010, "invalid coin denomination")
	ErrInsufficientBond         = sdkerrors.Register(ModuleName, 1011, "insufficient bond")
	ErrRollappJailed            = sdkerrors.Register(ModuleName, 1012, "rollapp is jailed")
)

x/sequencer 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 (
	// KeySeparator defines the separator for keys
	KeySeparator = "/"

	// SequencersKeyPrefix is the prefix to retrieve all Sequencers by their address
	SequencersKeyPrefix = []byte{0x00} // prefix/seqAddr

	// SequencersByRollappKeyPrefix is the prefix to retrieve all SequencersByRollapp
	SequencersByRollappKeyPrefix = []byte{0x01} // prefix/rollappId
	BondedSequencersKeyPrefix    = []byte{0xa1}
	UnbondedSequencersKeyPrefix  = []byte{0xa2}
	UnbondingSequencersKeyPrefix = []byte{0xa3}

	UnbondingQueueKey = []byte{0x41} // prefix for the timestamps in unbonding queue
)
View Source
var (

	// MinBond is the minimum bond required to be a validator
	DefaultMinBond uint64 = 1000000
	// UnbondingTime is the time duration for unbonding
	DefaultUnbondingTime time.Duration = time.Hour * 24 * 7 * 2 // 2 weeks

	// KeyMinBond is store's key for MinBond Params
	KeyMinBond = []byte("MinBond")
	// KeyUnbondingTime is store's key for UnbondingTime Params
	KeyUnbondingTime = []byte("UnbondingTime")
)
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 (
	ErrInvalidLengthSequencer        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSequencer          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSequencer = 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 OperatingStatus_name = map[int32]string{
	0: "OPERATING_STATUS_UNBONDED",
	1: "OPERATING_STATUS_UNBONDING",
	2: "OPERATING_STATUS_BONDED",
}
View Source
var OperatingStatus_value = map[string]int32{
	"OPERATING_STATUS_UNBONDED":  0,
	"OPERATING_STATUS_UNBONDING": 1,
	"OPERATING_STATUS_BONDED":    2,
}

Functions

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

func SequencerByRollappByStatusKey(rollappId, seqAddr string, status OperatingStatus) []byte

SequencersByRollappKey returns the store key to retrieve a SequencersByRollapp from the index fields

func SequencerKey

func SequencerKey(sequencerAddress string) []byte

--------------------- specific sequencer address keys --------------------

func SequencersByRollappByStatusKey added in v3.1.0

func SequencersByRollappByStatusKey(rollappId string, status OperatingStatus) []byte

SequencersByRollappByStatusKey returns the store key to retrieve a SequencersByRollappByStatus from the index fields

func SequencersByRollappKey

func SequencersByRollappKey(rollappId string) []byte

SequencersByRollappKey returns the store key to retrieve a SequencersByRollapp from the index fields

func SequencersKey added in v3.1.0

func SequencersKey() []byte

------------------------- multiple sequencers keys ------------------------

func UnbondingQueueByTimeKey added in v3.1.0

func UnbondingQueueByTimeKey(endTime time.Time) []byte

-------------------------- unbonding queue keys --------------------------

func UnbondingSequencerKey added in v3.1.0

func UnbondingSequencerKey(sequencerAddress string, endTime time.Time) []byte

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
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Description

type Description struct {
	// moniker defines a human-readable name for the sequencer.
	Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// identity defines an optional identity signature (ex. UPort or Keybase).
	Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// website defines an optional website link.
	Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	// securityContact defines an optional email for security contact.
	SecurityContact string `protobuf:"bytes,4,opt,name=securityContact,proto3" json:"securityContact,omitempty"`
	// details define other optional details.
	Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
}

Description defines a sequencer description.

func (*Description) Descriptor

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

func (Description) EnsureLength

func (d Description) EnsureLength() (Description, error)

EnsureLength ensures the length of a sequencer's description.

func (*Description) GetDetails

func (m *Description) GetDetails() string

func (*Description) GetIdentity

func (m *Description) GetIdentity() string

func (*Description) GetMoniker

func (m *Description) GetMoniker() string

func (*Description) GetSecurityContact

func (m *Description) GetSecurityContact() string

func (*Description) GetWebsite

func (m *Description) GetWebsite() string

func (*Description) Marshal

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

func (*Description) MarshalTo

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

func (*Description) MarshalToSizedBuffer

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

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) Reset

func (m *Description) Reset()

func (*Description) Size

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

func (*Description) String

func (m *Description) String() string

func (*Description) Unmarshal

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

func (Description) UpdateDescription

func (d Description) UpdateDescription(d2 Description) (Description, error)

UpdateDescription updates the fields of a given description. An error is returned if the resulting description contains an invalid length.

func (*Description) XXX_DiscardUnknown

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal

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

func (*Description) XXX_Merge

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

func (*Description) XXX_Size

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params        Params      `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	SequencerList []Sequencer `protobuf:"bytes,2,rep,name=sequencerList,proto3" json:"sequencerList"`
}

GenesisState defines the sequencer 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) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSequencerList

func (m *GenesisState) GetSequencerList() []Sequencer

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 {
	// CreateSequencer defines a method for creating a new sequencer.
	CreateSequencer(ctx context.Context, in *MsgCreateSequencer, opts ...grpc.CallOption) (*MsgCreateSequencerResponse, error)
	// Unbond defines a method for removing coins from sequencer's bond
	Unbond(ctx context.Context, in *MsgUnbond, opts ...grpc.CallOption) (*MsgUnbondResponse, 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 MsgCreateSequencer

type MsgCreateSequencer struct {
	// creator is the bech32-encoded address of the sequencer account which is the account that the message was sent from.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// pubkey is the public key of the sequencers' dymint client, as a Protobuf Any.
	DymintPubKey *types.Any `protobuf:"bytes,2,opt,name=dymintPubKey,proto3" json:"dymintPubKey,omitempty"`
	// rollappId defines the rollapp to which the sequencer belongs.
	RollappId string `protobuf:"bytes,3,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	// description defines the descriptive terms for the sequencer.
	Description Description `protobuf:"bytes,4,opt,name=description,proto3" json:"description"`
	Bond        types1.Coin `protobuf:"bytes,5,opt,name=bond,proto3" json:"bond"`
}

MsgCreateSequencer defines a SDK message for creating a new sequencer.

func NewMsgCreateSequencer

func NewMsgCreateSequencer(creator string, pubkey cryptotypes.PubKey, rollappId string, description *Description, bond sdk.Coin) (*MsgCreateSequencer, error)

--------------------------- MsgCreateSequencer ---------------------------

func (*MsgCreateSequencer) Descriptor

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

func (*MsgCreateSequencer) GetBond added in v3.1.0

func (m *MsgCreateSequencer) GetBond() types1.Coin

func (*MsgCreateSequencer) GetCreator

func (m *MsgCreateSequencer) GetCreator() string

func (*MsgCreateSequencer) GetDescription

func (m *MsgCreateSequencer) GetDescription() Description

func (*MsgCreateSequencer) GetDymintPubKey

func (m *MsgCreateSequencer) GetDymintPubKey() *types.Any

func (*MsgCreateSequencer) GetRollappId

func (m *MsgCreateSequencer) GetRollappId() string

func (*MsgCreateSequencer) GetSignBytes

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

func (*MsgCreateSequencer) GetSigners

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

func (*MsgCreateSequencer) Marshal

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

func (*MsgCreateSequencer) MarshalTo

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

func (*MsgCreateSequencer) MarshalToSizedBuffer

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

func (*MsgCreateSequencer) ProtoMessage

func (*MsgCreateSequencer) ProtoMessage()

func (*MsgCreateSequencer) Reset

func (m *MsgCreateSequencer) Reset()

func (*MsgCreateSequencer) Route

func (msg *MsgCreateSequencer) Route() string

func (*MsgCreateSequencer) Size

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

func (*MsgCreateSequencer) String

func (m *MsgCreateSequencer) String() string

func (*MsgCreateSequencer) Type

func (msg *MsgCreateSequencer) Type() string

func (*MsgCreateSequencer) Unmarshal

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

func (MsgCreateSequencer) UnpackInterfaces

func (msg MsgCreateSequencer) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*MsgCreateSequencer) ValidateBasic

func (msg *MsgCreateSequencer) ValidateBasic() error

func (*MsgCreateSequencer) XXX_DiscardUnknown

func (m *MsgCreateSequencer) XXX_DiscardUnknown()

func (*MsgCreateSequencer) XXX_Marshal

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

func (*MsgCreateSequencer) XXX_Merge

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

func (*MsgCreateSequencer) XXX_Size

func (m *MsgCreateSequencer) XXX_Size() int

func (*MsgCreateSequencer) XXX_Unmarshal

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

type MsgCreateSequencerResponse

type MsgCreateSequencerResponse struct {
}

func (*MsgCreateSequencerResponse) Descriptor

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

func (*MsgCreateSequencerResponse) Marshal

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

func (*MsgCreateSequencerResponse) MarshalTo

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

func (*MsgCreateSequencerResponse) MarshalToSizedBuffer

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

func (*MsgCreateSequencerResponse) ProtoMessage

func (*MsgCreateSequencerResponse) ProtoMessage()

func (*MsgCreateSequencerResponse) Reset

func (m *MsgCreateSequencerResponse) Reset()

func (*MsgCreateSequencerResponse) Size

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

func (*MsgCreateSequencerResponse) String

func (m *MsgCreateSequencerResponse) String() string

func (*MsgCreateSequencerResponse) Unmarshal

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

func (*MsgCreateSequencerResponse) XXX_DiscardUnknown

func (m *MsgCreateSequencerResponse) XXX_DiscardUnknown()

func (*MsgCreateSequencerResponse) XXX_Marshal

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

func (*MsgCreateSequencerResponse) XXX_Merge

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

func (*MsgCreateSequencerResponse) XXX_Size

func (m *MsgCreateSequencerResponse) XXX_Size() int

func (*MsgCreateSequencerResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateSequencer defines a method for creating a new sequencer.
	CreateSequencer(context.Context, *MsgCreateSequencer) (*MsgCreateSequencerResponse, error)
	// Unbond defines a method for removing coins from sequencer's bond
	Unbond(context.Context, *MsgUnbond) (*MsgUnbondResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnbond added in v3.1.0

type MsgUnbond struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

MsgUnbond defines a SDK message for performing an undelegation from a bond and a sequencer.

func NewMsgUnbond added in v3.1.0

func NewMsgUnbond(creator string) *MsgUnbond

-------------------------------- MsgUnbond -------------------------------

func (*MsgUnbond) Descriptor added in v3.1.0

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

func (*MsgUnbond) GetCreator added in v3.1.0

func (m *MsgUnbond) GetCreator() string

func (*MsgUnbond) GetSigners added in v3.1.0

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

func (*MsgUnbond) Marshal added in v3.1.0

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

func (*MsgUnbond) MarshalTo added in v3.1.0

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

func (*MsgUnbond) MarshalToSizedBuffer added in v3.1.0

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

func (*MsgUnbond) ProtoMessage added in v3.1.0

func (*MsgUnbond) ProtoMessage()

func (*MsgUnbond) Reset added in v3.1.0

func (m *MsgUnbond) Reset()

func (*MsgUnbond) Size added in v3.1.0

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

func (*MsgUnbond) String added in v3.1.0

func (m *MsgUnbond) String() string

func (*MsgUnbond) Unmarshal added in v3.1.0

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

func (*MsgUnbond) ValidateBasic added in v3.1.0

func (msg *MsgUnbond) ValidateBasic() error

func (*MsgUnbond) XXX_DiscardUnknown added in v3.1.0

func (m *MsgUnbond) XXX_DiscardUnknown()

func (*MsgUnbond) XXX_Marshal added in v3.1.0

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

func (*MsgUnbond) XXX_Merge added in v3.1.0

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

func (*MsgUnbond) XXX_Size added in v3.1.0

func (m *MsgUnbond) XXX_Size() int

func (*MsgUnbond) XXX_Unmarshal added in v3.1.0

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

type MsgUnbondResponse added in v3.1.0

type MsgUnbondResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgUnbondResponse defines the Msg/Unbond response type.

func (*MsgUnbondResponse) Descriptor added in v3.1.0

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

func (*MsgUnbondResponse) GetCompletionTime added in v3.1.0

func (m *MsgUnbondResponse) GetCompletionTime() time.Time

func (*MsgUnbondResponse) Marshal added in v3.1.0

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

func (*MsgUnbondResponse) MarshalTo added in v3.1.0

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

func (*MsgUnbondResponse) MarshalToSizedBuffer added in v3.1.0

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

func (*MsgUnbondResponse) ProtoMessage added in v3.1.0

func (*MsgUnbondResponse) ProtoMessage()

func (*MsgUnbondResponse) Reset added in v3.1.0

func (m *MsgUnbondResponse) Reset()

func (*MsgUnbondResponse) Size added in v3.1.0

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

func (*MsgUnbondResponse) String added in v3.1.0

func (m *MsgUnbondResponse) String() string

func (*MsgUnbondResponse) Unmarshal added in v3.1.0

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

func (*MsgUnbondResponse) XXX_DiscardUnknown added in v3.1.0

func (m *MsgUnbondResponse) XXX_DiscardUnknown()

func (*MsgUnbondResponse) XXX_Marshal added in v3.1.0

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

func (*MsgUnbondResponse) XXX_Merge added in v3.1.0

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

func (*MsgUnbondResponse) XXX_Size added in v3.1.0

func (m *MsgUnbondResponse) XXX_Size() int

func (*MsgUnbondResponse) XXX_Unmarshal added in v3.1.0

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

type OperatingStatus

type OperatingStatus int32

OperatingStatus defines the operating status of a sequencer

const (
	// OPERATING_STATUS_UNBONDED defines a sequencer that is not active and won't be scheduled
	Unbonded OperatingStatus = 0
	// UNBONDING defines a sequencer that is currently unbonding.
	Unbonding OperatingStatus = 1
	// OPERATING_STATUS_BONDED defines a sequencer that is bonded and can be scheduled
	Bonded OperatingStatus = 2
)

func (OperatingStatus) EnumDescriptor

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

func (OperatingStatus) String

func (x OperatingStatus) String() string

type Params

type Params struct {
	MinBond types.Coin `protobuf:"bytes,1,opt,name=min_bond,json=minBond,proto3" json:"min_bond,omitempty"`
	// unbonding_time is the time duration of unbonding.
	UnbondingTime time.Duration `protobuf:"bytes,2,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(minBond sdk.Coin, unbondingPeriod time.Duration) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal added in v3.1.0

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

func (*Params) GetMinBond added in v3.1.0

func (m *Params) GetMinBond() types.Coin

func (*Params) GetUnbondingTime added in v3.1.0

func (m *Params) GetUnbondingTime() time.Duration

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 QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a Sequencer by address.
	Sequencer(ctx context.Context, in *QueryGetSequencerRequest, opts ...grpc.CallOption) (*QueryGetSequencerResponse, error)
	// Queries a list of Sequencer items.
	Sequencers(ctx context.Context, in *QuerySequencersRequest, opts ...grpc.CallOption) (*QuerySequencersResponse, error)
	// Queries a SequencersByRollapp by rollappId.
	SequencersByRollapp(ctx context.Context, in *QueryGetSequencersByRollappRequest, opts ...grpc.CallOption) (*QueryGetSequencersByRollappResponse, error)
	// Queries a SequencersByRollappByStatus
	SequencersByRollappByStatus(ctx context.Context, in *QueryGetSequencersByRollappByStatusRequest, opts ...grpc.CallOption) (*QueryGetSequencersByRollappByStatusResponse, 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 QueryGetSequencerRequest

type QueryGetSequencerRequest struct {
	SequencerAddress string `protobuf:"bytes,1,opt,name=sequencerAddress,proto3" json:"sequencerAddress,omitempty"`
}

func (*QueryGetSequencerRequest) Descriptor

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

func (*QueryGetSequencerRequest) GetSequencerAddress

func (m *QueryGetSequencerRequest) GetSequencerAddress() string

func (*QueryGetSequencerRequest) Marshal

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

func (*QueryGetSequencerRequest) MarshalTo

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

func (*QueryGetSequencerRequest) MarshalToSizedBuffer

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

func (*QueryGetSequencerRequest) ProtoMessage

func (*QueryGetSequencerRequest) ProtoMessage()

func (*QueryGetSequencerRequest) Reset

func (m *QueryGetSequencerRequest) Reset()

func (*QueryGetSequencerRequest) Size

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

func (*QueryGetSequencerRequest) String

func (m *QueryGetSequencerRequest) String() string

func (*QueryGetSequencerRequest) Unmarshal

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

func (*QueryGetSequencerRequest) XXX_DiscardUnknown

func (m *QueryGetSequencerRequest) XXX_DiscardUnknown()

func (*QueryGetSequencerRequest) XXX_Marshal

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

func (*QueryGetSequencerRequest) XXX_Merge

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

func (*QueryGetSequencerRequest) XXX_Size

func (m *QueryGetSequencerRequest) XXX_Size() int

func (*QueryGetSequencerRequest) XXX_Unmarshal

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

type QueryGetSequencerResponse

type QueryGetSequencerResponse struct {
	Sequencer Sequencer `protobuf:"bytes,1,opt,name=sequencer,proto3" json:"sequencer"`
}

func (*QueryGetSequencerResponse) Descriptor

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

func (*QueryGetSequencerResponse) GetSequencer added in v3.1.0

func (m *QueryGetSequencerResponse) GetSequencer() Sequencer

func (*QueryGetSequencerResponse) Marshal

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

func (*QueryGetSequencerResponse) MarshalTo

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

func (*QueryGetSequencerResponse) MarshalToSizedBuffer

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

func (*QueryGetSequencerResponse) ProtoMessage

func (*QueryGetSequencerResponse) ProtoMessage()

func (*QueryGetSequencerResponse) Reset

func (m *QueryGetSequencerResponse) Reset()

func (*QueryGetSequencerResponse) Size

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

func (*QueryGetSequencerResponse) String

func (m *QueryGetSequencerResponse) String() string

func (*QueryGetSequencerResponse) Unmarshal

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

func (*QueryGetSequencerResponse) XXX_DiscardUnknown

func (m *QueryGetSequencerResponse) XXX_DiscardUnknown()

func (*QueryGetSequencerResponse) XXX_Marshal

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

func (*QueryGetSequencerResponse) XXX_Merge

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

func (*QueryGetSequencerResponse) XXX_Size

func (m *QueryGetSequencerResponse) XXX_Size() int

func (*QueryGetSequencerResponse) XXX_Unmarshal

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

type QueryGetSequencersByRollappByStatusRequest added in v3.1.0

type QueryGetSequencersByRollappByStatusRequest struct {
	RollappId string          `protobuf:"bytes,1,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	Status    OperatingStatus `protobuf:"varint,2,opt,name=status,proto3,enum=dymensionxyz.dymension.sequencer.OperatingStatus" json:"status,omitempty"`
}

func (*QueryGetSequencersByRollappByStatusRequest) Descriptor added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) GetRollappId added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) GetStatus added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) Marshal added in v3.1.0

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

func (*QueryGetSequencersByRollappByStatusRequest) MarshalTo added in v3.1.0

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

func (*QueryGetSequencersByRollappByStatusRequest) MarshalToSizedBuffer added in v3.1.0

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

func (*QueryGetSequencersByRollappByStatusRequest) ProtoMessage added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) Reset added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) Size added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) String added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) Unmarshal added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) XXX_DiscardUnknown added in v3.1.0

func (m *QueryGetSequencersByRollappByStatusRequest) XXX_DiscardUnknown()

func (*QueryGetSequencersByRollappByStatusRequest) XXX_Marshal added in v3.1.0

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

func (*QueryGetSequencersByRollappByStatusRequest) XXX_Merge added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) XXX_Size added in v3.1.0

func (*QueryGetSequencersByRollappByStatusRequest) XXX_Unmarshal added in v3.1.0

type QueryGetSequencersByRollappByStatusResponse added in v3.1.0

type QueryGetSequencersByRollappByStatusResponse struct {
	Sequencers []Sequencer `protobuf:"bytes,1,rep,name=sequencers,proto3" json:"sequencers"`
}

func (*QueryGetSequencersByRollappByStatusResponse) Descriptor added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) GetSequencers added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) Marshal added in v3.1.0

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

func (*QueryGetSequencersByRollappByStatusResponse) MarshalTo added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) MarshalToSizedBuffer added in v3.1.0

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

func (*QueryGetSequencersByRollappByStatusResponse) ProtoMessage added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) Reset added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) Size added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) String added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) Unmarshal added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) XXX_DiscardUnknown added in v3.1.0

func (m *QueryGetSequencersByRollappByStatusResponse) XXX_DiscardUnknown()

func (*QueryGetSequencersByRollappByStatusResponse) XXX_Marshal added in v3.1.0

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

func (*QueryGetSequencersByRollappByStatusResponse) XXX_Merge added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) XXX_Size added in v3.1.0

func (*QueryGetSequencersByRollappByStatusResponse) XXX_Unmarshal added in v3.1.0

type QueryGetSequencersByRollappRequest

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

func (*QueryGetSequencersByRollappRequest) Descriptor

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

func (*QueryGetSequencersByRollappRequest) GetRollappId

func (m *QueryGetSequencersByRollappRequest) GetRollappId() string

func (*QueryGetSequencersByRollappRequest) Marshal

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

func (*QueryGetSequencersByRollappRequest) MarshalTo

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

func (*QueryGetSequencersByRollappRequest) MarshalToSizedBuffer

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

func (*QueryGetSequencersByRollappRequest) ProtoMessage

func (*QueryGetSequencersByRollappRequest) ProtoMessage()

func (*QueryGetSequencersByRollappRequest) Reset

func (*QueryGetSequencersByRollappRequest) Size

func (*QueryGetSequencersByRollappRequest) String

func (*QueryGetSequencersByRollappRequest) Unmarshal

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

func (*QueryGetSequencersByRollappRequest) XXX_DiscardUnknown

func (m *QueryGetSequencersByRollappRequest) XXX_DiscardUnknown()

func (*QueryGetSequencersByRollappRequest) XXX_Marshal

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

func (*QueryGetSequencersByRollappRequest) XXX_Merge

func (*QueryGetSequencersByRollappRequest) XXX_Size

func (*QueryGetSequencersByRollappRequest) XXX_Unmarshal

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

type QueryGetSequencersByRollappResponse

type QueryGetSequencersByRollappResponse struct {
	Sequencers []Sequencer `protobuf:"bytes,1,rep,name=sequencers,proto3" json:"sequencers"`
}

func (*QueryGetSequencersByRollappResponse) Descriptor

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

func (*QueryGetSequencersByRollappResponse) GetSequencers added in v3.1.0

func (m *QueryGetSequencersByRollappResponse) GetSequencers() []Sequencer

func (*QueryGetSequencersByRollappResponse) Marshal

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

func (*QueryGetSequencersByRollappResponse) MarshalTo

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

func (*QueryGetSequencersByRollappResponse) MarshalToSizedBuffer

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

func (*QueryGetSequencersByRollappResponse) ProtoMessage

func (*QueryGetSequencersByRollappResponse) ProtoMessage()

func (*QueryGetSequencersByRollappResponse) Reset

func (*QueryGetSequencersByRollappResponse) Size

func (*QueryGetSequencersByRollappResponse) String

func (*QueryGetSequencersByRollappResponse) Unmarshal

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

func (*QueryGetSequencersByRollappResponse) XXX_DiscardUnknown

func (m *QueryGetSequencersByRollappResponse) XXX_DiscardUnknown()

func (*QueryGetSequencersByRollappResponse) XXX_Marshal

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

func (*QueryGetSequencersByRollappResponse) XXX_Merge

func (*QueryGetSequencersByRollappResponse) XXX_Size

func (*QueryGetSequencersByRollappResponse) XXX_Unmarshal

func (m *QueryGetSequencersByRollappResponse) 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 QuerySequencersRequest added in v3.1.0

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

func (*QuerySequencersRequest) Descriptor added in v3.1.0

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

func (*QuerySequencersRequest) GetPagination added in v3.1.0

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

func (*QuerySequencersRequest) Marshal added in v3.1.0

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

func (*QuerySequencersRequest) MarshalTo added in v3.1.0

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

func (*QuerySequencersRequest) MarshalToSizedBuffer added in v3.1.0

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

func (*QuerySequencersRequest) ProtoMessage added in v3.1.0

func (*QuerySequencersRequest) ProtoMessage()

func (*QuerySequencersRequest) Reset added in v3.1.0

func (m *QuerySequencersRequest) Reset()

func (*QuerySequencersRequest) Size added in v3.1.0

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

func (*QuerySequencersRequest) String added in v3.1.0

func (m *QuerySequencersRequest) String() string

func (*QuerySequencersRequest) Unmarshal added in v3.1.0

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

func (*QuerySequencersRequest) XXX_DiscardUnknown added in v3.1.0

func (m *QuerySequencersRequest) XXX_DiscardUnknown()

func (*QuerySequencersRequest) XXX_Marshal added in v3.1.0

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

func (*QuerySequencersRequest) XXX_Merge added in v3.1.0

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

func (*QuerySequencersRequest) XXX_Size added in v3.1.0

func (m *QuerySequencersRequest) XXX_Size() int

func (*QuerySequencersRequest) XXX_Unmarshal added in v3.1.0

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

type QuerySequencersResponse added in v3.1.0

type QuerySequencersResponse struct {
	Sequencers []Sequencer         `protobuf:"bytes,1,rep,name=sequencers,proto3" json:"sequencers"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QuerySequencersResponse) Descriptor added in v3.1.0

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

func (*QuerySequencersResponse) GetPagination added in v3.1.0

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

func (*QuerySequencersResponse) GetSequencers added in v3.1.0

func (m *QuerySequencersResponse) GetSequencers() []Sequencer

func (*QuerySequencersResponse) Marshal added in v3.1.0

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

func (*QuerySequencersResponse) MarshalTo added in v3.1.0

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

func (*QuerySequencersResponse) MarshalToSizedBuffer added in v3.1.0

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

func (*QuerySequencersResponse) ProtoMessage added in v3.1.0

func (*QuerySequencersResponse) ProtoMessage()

func (*QuerySequencersResponse) Reset added in v3.1.0

func (m *QuerySequencersResponse) Reset()

func (*QuerySequencersResponse) Size added in v3.1.0

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

func (*QuerySequencersResponse) String added in v3.1.0

func (m *QuerySequencersResponse) String() string

func (*QuerySequencersResponse) Unmarshal added in v3.1.0

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

func (*QuerySequencersResponse) XXX_DiscardUnknown added in v3.1.0

func (m *QuerySequencersResponse) XXX_DiscardUnknown()

func (*QuerySequencersResponse) XXX_Marshal added in v3.1.0

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

func (*QuerySequencersResponse) XXX_Merge added in v3.1.0

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

func (*QuerySequencersResponse) XXX_Size added in v3.1.0

func (m *QuerySequencersResponse) XXX_Size() int

func (*QuerySequencersResponse) XXX_Unmarshal added in v3.1.0

func (m *QuerySequencersResponse) 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 Sequencer by address.
	Sequencer(context.Context, *QueryGetSequencerRequest) (*QueryGetSequencerResponse, error)
	// Queries a list of Sequencer items.
	Sequencers(context.Context, *QuerySequencersRequest) (*QuerySequencersResponse, error)
	// Queries a SequencersByRollapp by rollappId.
	SequencersByRollapp(context.Context, *QueryGetSequencersByRollappRequest) (*QueryGetSequencersByRollappResponse, error)
	// Queries a SequencersByRollappByStatus
	SequencersByRollappByStatus(context.Context, *QueryGetSequencersByRollappByStatusRequest) (*QueryGetSequencersByRollappByStatusResponse, error)
}

QueryServer is the server API for Query service.

type RollappKeeper

type RollappKeeper interface {
	GetRollapp(ctx sdk.Context, rollappId string) (val rollapptypes.Rollapp, found bool)
	GetAllRollapps(ctx sdk.Context) (list []rollapptypes.Rollapp)
}

RollappKeeper defines the expected rollapp keeper used for retrieve rollapp.

type Sequencer

type Sequencer struct {
	// sequencerAddress is the bech32-encoded address of the sequencer account which is the account that the message was sent from.
	SequencerAddress string `protobuf:"bytes,1,opt,name=sequencerAddress,proto3" json:"sequencerAddress,omitempty"`
	// pubkey is the public key of the sequencers' dymint client, as a Protobuf Any.
	DymintPubKey *types.Any `protobuf:"bytes,2,opt,name=dymintPubKey,proto3" json:"dymintPubKey,omitempty"`
	// rollappId defines the rollapp to which the sequencer belongs.
	RollappId string `protobuf:"bytes,3,opt,name=rollappId,proto3" json:"rollappId,omitempty"`
	// description defines the descriptive terms for the sequencer.
	Description Description `protobuf:"bytes,4,opt,name=description,proto3" json:"description"`
	// jailed defined whether the sequencer has been jailed from bonded status or not.
	Jailed bool `protobuf:"varint,5,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// proposer defines whether the sequencer is a proposer or not.
	Proposer bool `protobuf:"varint,6,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// status is the sequencer status (bonded/unbonding/unbonded).
	Status OperatingStatus `protobuf:"varint,7,opt,name=status,proto3,enum=dymensionxyz.dymension.sequencer.OperatingStatus" json:"status,omitempty"`
	// tokens define the delegated tokens (incl. self-delegation).
	Tokens github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,8,rep,name=tokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"tokens"`
	// unbonding_height defines, if unbonding, the height at which this sequencer has begun unbonding.
	UnbondingHeight int64 `protobuf:"varint,9,opt,name=unbonding_height,json=unbondingHeight,proto3" json:"unbonding_height,omitempty"`
	// unbond_time defines, if unbonding, the min time for the sequencer to complete unbonding.
	UnbondTime time.Time `protobuf:"bytes,10,opt,name=unbond_time,json=unbondTime,proto3,stdtime" json:"unbond_time"`
}

Sequencer defines a sequencer identified by its' address (sequencerAddress). The sequencer could be attached to only one rollapp (rollappId).

func (*Sequencer) Descriptor

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

func (*Sequencer) GetDescription

func (m *Sequencer) GetDescription() Description

func (*Sequencer) GetDymintPubKey

func (m *Sequencer) GetDymintPubKey() *types.Any

func (Sequencer) GetDymintPubKeyHash added in v3.1.0

func (seq Sequencer) GetDymintPubKeyHash() ([]byte, error)

GetDymintPubKeyHash returns the hash of the sequencer as expected to be written on the rollapp ibc client headers

func (*Sequencer) GetJailed added in v3.1.0

func (m *Sequencer) GetJailed() bool

func (*Sequencer) GetProposer added in v3.1.0

func (m *Sequencer) GetProposer() bool

func (*Sequencer) GetRollappId added in v3.1.0

func (m *Sequencer) GetRollappId() string

func (*Sequencer) GetSequencerAddress

func (m *Sequencer) GetSequencerAddress() string

func (*Sequencer) GetStatus added in v3.1.0

func (m *Sequencer) GetStatus() OperatingStatus

func (*Sequencer) GetTokens added in v3.1.0

func (*Sequencer) GetUnbondTime added in v3.1.0

func (m *Sequencer) GetUnbondTime() time.Time

func (*Sequencer) GetUnbondingHeight added in v3.1.0

func (m *Sequencer) GetUnbondingHeight() int64

func (Sequencer) IsBonded added in v3.1.0

func (seq Sequencer) IsBonded() bool

func (Sequencer) IsProposer added in v3.1.0

func (seq Sequencer) IsProposer() bool

is proposer

func (*Sequencer) Marshal

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

func (*Sequencer) MarshalTo

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

func (*Sequencer) MarshalToSizedBuffer

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

func (*Sequencer) ProtoMessage

func (*Sequencer) ProtoMessage()

func (*Sequencer) Reset

func (m *Sequencer) Reset()

func (*Sequencer) Size

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

func (*Sequencer) String

func (m *Sequencer) String() string

func (*Sequencer) Unmarshal

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

func (*Sequencer) XXX_DiscardUnknown

func (m *Sequencer) XXX_DiscardUnknown()

func (*Sequencer) XXX_Marshal

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

func (*Sequencer) XXX_Merge

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

func (*Sequencer) XXX_Size

func (m *Sequencer) XXX_Size() int

func (*Sequencer) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateSequencer

func (*UnimplementedMsgServer) Unbond added in v3.1.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Sequencer

func (*UnimplementedQueryServer) Sequencers added in v3.1.0

func (*UnimplementedQueryServer) SequencersByRollappByStatus added in v3.1.0

Jump to

Keyboard shortcuts

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