Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SequencerByRollappByStatusKey(rollappId, seqAddr string, status OperatingStatus) []byte
- func SequencerKey(sequencerAddress string) []byte
- func SequencersByRollappByStatusKey(rollappId string, status OperatingStatus) []byte
- func SequencersByRollappKey(rollappId string) []byte
- func SequencersKey() []byte
- func UnbondingQueueByTimeKey(endTime time.Time) []byte
- func UnbondingSequencerKey(sequencerAddress string, endTime time.Time) []byte
- type AccountKeeper
- type BankKeeper
- type Description
- func (*Description) Descriptor() ([]byte, []int)
- func (d Description) EnsureLength() (Description, error)
- func (m *Description) GetDetails() string
- func (m *Description) GetIdentity() string
- func (m *Description) GetMoniker() string
- func (m *Description) GetSecurityContact() string
- func (m *Description) GetWebsite() string
- func (m *Description) Marshal() (dAtA []byte, err error)
- func (m *Description) MarshalTo(dAtA []byte) (int, error)
- func (m *Description) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Description) ProtoMessage()
- func (m *Description) Reset()
- func (m *Description) Size() (n int)
- func (m *Description) String() string
- func (m *Description) Unmarshal(dAtA []byte) error
- func (d Description) UpdateDescription(d2 Description) (Description, error)
- func (m *Description) XXX_DiscardUnknown()
- func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Description) XXX_Merge(src proto.Message)
- func (m *Description) XXX_Size() int
- func (m *Description) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSequencerList() []Sequencer
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateSequencer
- func (*MsgCreateSequencer) Descriptor() ([]byte, []int)
- func (m *MsgCreateSequencer) GetBond() types1.Coin
- func (m *MsgCreateSequencer) GetCreator() string
- func (m *MsgCreateSequencer) GetDescription() Description
- func (m *MsgCreateSequencer) GetDymintPubKey() *types.Any
- func (m *MsgCreateSequencer) GetRollappId() string
- func (msg *MsgCreateSequencer) GetSignBytes() []byte
- func (msg *MsgCreateSequencer) GetSigners() []sdk.AccAddress
- func (m *MsgCreateSequencer) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSequencer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSequencer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSequencer) ProtoMessage()
- func (m *MsgCreateSequencer) Reset()
- func (msg *MsgCreateSequencer) Route() string
- func (m *MsgCreateSequencer) Size() (n int)
- func (m *MsgCreateSequencer) String() string
- func (msg *MsgCreateSequencer) Type() string
- func (m *MsgCreateSequencer) Unmarshal(dAtA []byte) error
- func (msg MsgCreateSequencer) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg *MsgCreateSequencer) ValidateBasic() error
- func (m *MsgCreateSequencer) XXX_DiscardUnknown()
- func (m *MsgCreateSequencer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSequencer) XXX_Merge(src proto.Message)
- func (m *MsgCreateSequencer) XXX_Size() int
- func (m *MsgCreateSequencer) XXX_Unmarshal(b []byte) error
- type MsgCreateSequencerResponse
- func (*MsgCreateSequencerResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateSequencerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSequencerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSequencerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSequencerResponse) ProtoMessage()
- func (m *MsgCreateSequencerResponse) Reset()
- func (m *MsgCreateSequencerResponse) Size() (n int)
- func (m *MsgCreateSequencerResponse) String() string
- func (m *MsgCreateSequencerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateSequencerResponse) XXX_DiscardUnknown()
- func (m *MsgCreateSequencerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSequencerResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateSequencerResponse) XXX_Size() int
- func (m *MsgCreateSequencerResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUnbond
- func (*MsgUnbond) Descriptor() ([]byte, []int)
- func (m *MsgUnbond) GetCreator() string
- func (msg *MsgUnbond) GetSigners() []sdk.AccAddress
- func (m *MsgUnbond) Marshal() (dAtA []byte, err error)
- func (m *MsgUnbond) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnbond) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnbond) ProtoMessage()
- func (m *MsgUnbond) Reset()
- func (m *MsgUnbond) Size() (n int)
- func (m *MsgUnbond) String() string
- func (m *MsgUnbond) Unmarshal(dAtA []byte) error
- func (msg *MsgUnbond) ValidateBasic() error
- func (m *MsgUnbond) XXX_DiscardUnknown()
- func (m *MsgUnbond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnbond) XXX_Merge(src proto.Message)
- func (m *MsgUnbond) XXX_Size() int
- func (m *MsgUnbond) XXX_Unmarshal(b []byte) error
- type MsgUnbondResponse
- func (*MsgUnbondResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnbondResponse) GetCompletionTime() time.Time
- func (m *MsgUnbondResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnbondResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnbondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnbondResponse) ProtoMessage()
- func (m *MsgUnbondResponse) Reset()
- func (m *MsgUnbondResponse) Size() (n int)
- func (m *MsgUnbondResponse) String() string
- func (m *MsgUnbondResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnbondResponse) XXX_DiscardUnknown()
- func (m *MsgUnbondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnbondResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnbondResponse) XXX_Size() int
- func (m *MsgUnbondResponse) XXX_Unmarshal(b []byte) error
- type OperatingStatus
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMinBond() types.Coin
- func (m *Params) GetUnbondingTime() time.Duration
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetSequencerRequest
- func (*QueryGetSequencerRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetSequencerRequest) GetSequencerAddress() string
- func (m *QueryGetSequencerRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSequencerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSequencerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSequencerRequest) ProtoMessage()
- func (m *QueryGetSequencerRequest) Reset()
- func (m *QueryGetSequencerRequest) Size() (n int)
- func (m *QueryGetSequencerRequest) String() string
- func (m *QueryGetSequencerRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetSequencerRequest) XXX_DiscardUnknown()
- func (m *QueryGetSequencerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSequencerRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetSequencerRequest) XXX_Size() int
- func (m *QueryGetSequencerRequest) XXX_Unmarshal(b []byte) error
- type QueryGetSequencerResponse
- func (*QueryGetSequencerResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetSequencerResponse) GetSequencer() Sequencer
- func (m *QueryGetSequencerResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSequencerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSequencerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSequencerResponse) ProtoMessage()
- func (m *QueryGetSequencerResponse) Reset()
- func (m *QueryGetSequencerResponse) Size() (n int)
- func (m *QueryGetSequencerResponse) String() string
- func (m *QueryGetSequencerResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetSequencerResponse) XXX_DiscardUnknown()
- func (m *QueryGetSequencerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSequencerResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetSequencerResponse) XXX_Size() int
- func (m *QueryGetSequencerResponse) XXX_Unmarshal(b []byte) error
- type QueryGetSequencersByRollappByStatusRequest
- func (*QueryGetSequencersByRollappByStatusRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetSequencersByRollappByStatusRequest) GetRollappId() string
- func (m *QueryGetSequencersByRollappByStatusRequest) GetStatus() OperatingStatus
- func (m *QueryGetSequencersByRollappByStatusRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSequencersByRollappByStatusRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSequencersByRollappByStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSequencersByRollappByStatusRequest) ProtoMessage()
- func (m *QueryGetSequencersByRollappByStatusRequest) Reset()
- func (m *QueryGetSequencersByRollappByStatusRequest) Size() (n int)
- func (m *QueryGetSequencersByRollappByStatusRequest) String() string
- func (m *QueryGetSequencersByRollappByStatusRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetSequencersByRollappByStatusRequest) XXX_DiscardUnknown()
- func (m *QueryGetSequencersByRollappByStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSequencersByRollappByStatusRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetSequencersByRollappByStatusRequest) XXX_Size() int
- func (m *QueryGetSequencersByRollappByStatusRequest) XXX_Unmarshal(b []byte) error
- type QueryGetSequencersByRollappByStatusResponse
- func (*QueryGetSequencersByRollappByStatusResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetSequencersByRollappByStatusResponse) GetSequencers() []Sequencer
- func (m *QueryGetSequencersByRollappByStatusResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSequencersByRollappByStatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSequencersByRollappByStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSequencersByRollappByStatusResponse) ProtoMessage()
- func (m *QueryGetSequencersByRollappByStatusResponse) Reset()
- func (m *QueryGetSequencersByRollappByStatusResponse) Size() (n int)
- func (m *QueryGetSequencersByRollappByStatusResponse) String() string
- func (m *QueryGetSequencersByRollappByStatusResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetSequencersByRollappByStatusResponse) XXX_DiscardUnknown()
- func (m *QueryGetSequencersByRollappByStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSequencersByRollappByStatusResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetSequencersByRollappByStatusResponse) XXX_Size() int
- func (m *QueryGetSequencersByRollappByStatusResponse) XXX_Unmarshal(b []byte) error
- type QueryGetSequencersByRollappRequest
- func (*QueryGetSequencersByRollappRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetSequencersByRollappRequest) GetRollappId() string
- func (m *QueryGetSequencersByRollappRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSequencersByRollappRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSequencersByRollappRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSequencersByRollappRequest) ProtoMessage()
- func (m *QueryGetSequencersByRollappRequest) Reset()
- func (m *QueryGetSequencersByRollappRequest) Size() (n int)
- func (m *QueryGetSequencersByRollappRequest) String() string
- func (m *QueryGetSequencersByRollappRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetSequencersByRollappRequest) XXX_DiscardUnknown()
- func (m *QueryGetSequencersByRollappRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSequencersByRollappRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetSequencersByRollappRequest) XXX_Size() int
- func (m *QueryGetSequencersByRollappRequest) XXX_Unmarshal(b []byte) error
- type QueryGetSequencersByRollappResponse
- func (*QueryGetSequencersByRollappResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetSequencersByRollappResponse) GetSequencers() []Sequencer
- func (m *QueryGetSequencersByRollappResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSequencersByRollappResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSequencersByRollappResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSequencersByRollappResponse) ProtoMessage()
- func (m *QueryGetSequencersByRollappResponse) Reset()
- func (m *QueryGetSequencersByRollappResponse) Size() (n int)
- func (m *QueryGetSequencersByRollappResponse) String() string
- func (m *QueryGetSequencersByRollappResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetSequencersByRollappResponse) XXX_DiscardUnknown()
- func (m *QueryGetSequencersByRollappResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSequencersByRollappResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetSequencersByRollappResponse) XXX_Size() int
- func (m *QueryGetSequencersByRollappResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QuerySequencersRequest
- func (*QuerySequencersRequest) Descriptor() ([]byte, []int)
- func (m *QuerySequencersRequest) GetPagination() *query.PageRequest
- func (m *QuerySequencersRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySequencersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySequencersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySequencersRequest) ProtoMessage()
- func (m *QuerySequencersRequest) Reset()
- func (m *QuerySequencersRequest) Size() (n int)
- func (m *QuerySequencersRequest) String() string
- func (m *QuerySequencersRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySequencersRequest) XXX_DiscardUnknown()
- func (m *QuerySequencersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySequencersRequest) XXX_Merge(src proto.Message)
- func (m *QuerySequencersRequest) XXX_Size() int
- func (m *QuerySequencersRequest) XXX_Unmarshal(b []byte) error
- type QuerySequencersResponse
- func (*QuerySequencersResponse) Descriptor() ([]byte, []int)
- func (m *QuerySequencersResponse) GetPagination() *query.PageResponse
- func (m *QuerySequencersResponse) GetSequencers() []Sequencer
- func (m *QuerySequencersResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySequencersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySequencersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySequencersResponse) ProtoMessage()
- func (m *QuerySequencersResponse) Reset()
- func (m *QuerySequencersResponse) Size() (n int)
- func (m *QuerySequencersResponse) String() string
- func (m *QuerySequencersResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySequencersResponse) XXX_DiscardUnknown()
- func (m *QuerySequencersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySequencersResponse) XXX_Merge(src proto.Message)
- func (m *QuerySequencersResponse) XXX_Size() int
- func (m *QuerySequencersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RollappKeeper
- type Sequencer
- func (*Sequencer) Descriptor() ([]byte, []int)
- func (m *Sequencer) GetDescription() Description
- func (m *Sequencer) GetDymintPubKey() *types.Any
- func (seq Sequencer) GetDymintPubKeyHash() ([]byte, error)
- func (m *Sequencer) GetJailed() bool
- func (m *Sequencer) GetProposer() bool
- func (m *Sequencer) GetRollappId() string
- func (m *Sequencer) GetSequencerAddress() string
- func (m *Sequencer) GetStatus() OperatingStatus
- func (m *Sequencer) GetTokens() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Sequencer) GetUnbondTime() time.Time
- func (m *Sequencer) GetUnbondingHeight() int64
- func (seq Sequencer) IsBonded() bool
- func (seq Sequencer) IsProposer() bool
- func (m *Sequencer) Marshal() (dAtA []byte, err error)
- func (m *Sequencer) MarshalTo(dAtA []byte) (int, error)
- func (m *Sequencer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sequencer) ProtoMessage()
- func (m *Sequencer) Reset()
- func (m *Sequencer) Size() (n int)
- func (m *Sequencer) String() string
- func (m *Sequencer) Unmarshal(dAtA []byte) error
- func (m *Sequencer) XXX_DiscardUnknown()
- func (m *Sequencer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sequencer) XXX_Merge(src proto.Message)
- func (m *Sequencer) XXX_Size() int
- func (m *Sequencer) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Sequencer(ctx context.Context, req *QueryGetSequencerRequest) (*QueryGetSequencerResponse, error)
- func (*UnimplementedQueryServer) Sequencers(ctx context.Context, req *QuerySequencersRequest) (*QuerySequencersResponse, error)
- func (*UnimplementedQueryServer) SequencersByRollapp(ctx context.Context, req *QueryGetSequencersByRollappRequest) (*QueryGetSequencersByRollappResponse, error)
- func (*UnimplementedQueryServer) SequencersByRollappByStatus(ctx context.Context, req *QueryGetSequencersByRollappByStatusRequest) (*QueryGetSequencersByRollappByStatusResponse, error)
Constants ¶
const ( MaxMonikerLength = 70 MaxIdentityLength = 3000 MaxWebsiteLength = 140 MaxSecurityContactLength = 140 MaxDetailsLength = 280 )
constant for maximum string length of the Description fields
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.
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" )
const ( TypeMsgCreateSequencer = "create_sequencer" TypeMsgUnbond = "unbond" )
const DoNotModifyDesc = "[do-not-modify]"
DoNotModifyDesc constant is used in flags to indicate that description field should not be updated
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthDescription = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDescription = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDescription = fmt.Errorf("proto: unexpected end of group") )
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
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
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 )
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") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSequencer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSequencer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSequencer = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var OperatingStatus_name = map[int32]string{
0: "OPERATING_STATUS_UNBONDED",
1: "OPERATING_STATUS_UNBONDING",
2: "OPERATING_STATUS_BONDED",
}
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 RegisterQueryHandler ¶
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 ¶
--------------------- 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 ¶
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
-------------------------- unbonding queue keys --------------------------
Types ¶
type AccountKeeper ¶
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) 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) 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
-------------------------------- MsgUnbond -------------------------------
func (*MsgUnbond) Descriptor ¶ added in v3.1.0
func (*MsgUnbond) GetCreator ¶ added in v3.1.0
func (*MsgUnbond) GetSigners ¶ added in v3.1.0
func (msg *MsgUnbond) GetSigners() []sdk.AccAddress
func (*MsgUnbond) MarshalToSizedBuffer ¶ added in v3.1.0
func (*MsgUnbond) ProtoMessage ¶ added in v3.1.0
func (*MsgUnbond) ProtoMessage()
func (*MsgUnbond) ValidateBasic ¶ added in v3.1.0
func (*MsgUnbond) XXX_DiscardUnknown ¶ added in v3.1.0
func (m *MsgUnbond) XXX_DiscardUnknown()
func (*MsgUnbond) XXX_Marshal ¶ added in v3.1.0
func (*MsgUnbond) XXX_Unmarshal ¶ added in v3.1.0
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 (*Params) Descriptor ¶
func (*Params) GetMinBond ¶ added in v3.1.0
func (*Params) GetUnbondingTime ¶ added in v3.1.0
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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) Descriptor() ([]byte, []int)
func (*QueryGetSequencersByRollappByStatusRequest) GetRollappId ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) GetRollappId() string
func (*QueryGetSequencersByRollappByStatusRequest) GetStatus ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) GetStatus() OperatingStatus
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) ProtoMessage()
func (*QueryGetSequencersByRollappByStatusRequest) Reset ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) Reset()
func (*QueryGetSequencersByRollappByStatusRequest) Size ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) Size() (n int)
func (*QueryGetSequencersByRollappByStatusRequest) String ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) String() string
func (*QueryGetSequencersByRollappByStatusRequest) Unmarshal ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) Unmarshal(dAtA []byte) error
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 (m *QueryGetSequencersByRollappByStatusRequest) XXX_Merge(src proto.Message)
func (*QueryGetSequencersByRollappByStatusRequest) XXX_Size ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) XXX_Size() int
func (*QueryGetSequencersByRollappByStatusRequest) XXX_Unmarshal ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusRequest) XXX_Unmarshal(b []byte) error
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) Descriptor() ([]byte, []int)
func (*QueryGetSequencersByRollappByStatusResponse) GetSequencers ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusResponse) GetSequencers() []Sequencer
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 (m *QueryGetSequencersByRollappByStatusResponse) MarshalTo(dAtA []byte) (int, error)
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) ProtoMessage()
func (*QueryGetSequencersByRollappByStatusResponse) Reset ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusResponse) Reset()
func (*QueryGetSequencersByRollappByStatusResponse) Size ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusResponse) Size() (n int)
func (*QueryGetSequencersByRollappByStatusResponse) String ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusResponse) String() string
func (*QueryGetSequencersByRollappByStatusResponse) Unmarshal ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusResponse) Unmarshal(dAtA []byte) error
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 (m *QueryGetSequencersByRollappByStatusResponse) XXX_Merge(src proto.Message)
func (*QueryGetSequencersByRollappByStatusResponse) XXX_Size ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusResponse) XXX_Size() int
func (*QueryGetSequencersByRollappByStatusResponse) XXX_Unmarshal ¶ added in v3.1.0
func (m *QueryGetSequencersByRollappByStatusResponse) XXX_Unmarshal(b []byte) error
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 (m *QueryGetSequencersByRollappRequest) Reset()
func (*QueryGetSequencersByRollappRequest) Size ¶
func (m *QueryGetSequencersByRollappRequest) Size() (n int)
func (*QueryGetSequencersByRollappRequest) String ¶
func (m *QueryGetSequencersByRollappRequest) String() 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 (m *QueryGetSequencersByRollappRequest) XXX_Merge(src proto.Message)
func (*QueryGetSequencersByRollappRequest) XXX_Size ¶
func (m *QueryGetSequencersByRollappRequest) XXX_Size() int
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 (m *QueryGetSequencersByRollappResponse) Reset()
func (*QueryGetSequencersByRollappResponse) Size ¶
func (m *QueryGetSequencersByRollappResponse) Size() (n int)
func (*QueryGetSequencersByRollappResponse) String ¶
func (m *QueryGetSequencersByRollappResponse) String() 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 (m *QueryGetSequencersByRollappResponse) XXX_Merge(src proto.Message)
func (*QueryGetSequencersByRollappResponse) XXX_Size ¶
func (m *QueryGetSequencersByRollappResponse) XXX_Size() int
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) GetDescription ¶
func (m *Sequencer) GetDescription() Description
func (*Sequencer) GetDymintPubKey ¶
func (Sequencer) GetDymintPubKeyHash ¶ added in v3.1.0
GetDymintPubKeyHash returns the hash of the sequencer as expected to be written on the rollapp ibc client headers
func (*Sequencer) GetProposer ¶ added in v3.1.0
func (*Sequencer) GetRollappId ¶ added in v3.1.0
func (*Sequencer) GetSequencerAddress ¶
func (*Sequencer) GetStatus ¶ added in v3.1.0
func (m *Sequencer) GetStatus() OperatingStatus
func (*Sequencer) GetTokens ¶ added in v3.1.0
func (m *Sequencer) GetTokens() github_com_cosmos_cosmos_sdk_types.Coins
func (*Sequencer) GetUnbondTime ¶ added in v3.1.0
func (*Sequencer) GetUnbondingHeight ¶ added in v3.1.0
func (*Sequencer) MarshalToSizedBuffer ¶
func (*Sequencer) ProtoMessage ¶
func (*Sequencer) ProtoMessage()
func (*Sequencer) XXX_DiscardUnknown ¶
func (m *Sequencer) XXX_DiscardUnknown()
func (*Sequencer) XXX_Marshal ¶
func (*Sequencer) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateSequencer ¶
func (*UnimplementedMsgServer) CreateSequencer(ctx context.Context, req *MsgCreateSequencer) (*MsgCreateSequencerResponse, error)
func (*UnimplementedMsgServer) Unbond ¶ added in v3.1.0
func (*UnimplementedMsgServer) Unbond(ctx context.Context, req *MsgUnbond) (*MsgUnbondResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Sequencer ¶
func (*UnimplementedQueryServer) Sequencer(ctx context.Context, req *QueryGetSequencerRequest) (*QueryGetSequencerResponse, error)
func (*UnimplementedQueryServer) Sequencers ¶ added in v3.1.0
func (*UnimplementedQueryServer) Sequencers(ctx context.Context, req *QuerySequencersRequest) (*QuerySequencersResponse, error)
func (*UnimplementedQueryServer) SequencersByRollapp ¶
func (*UnimplementedQueryServer) SequencersByRollapp(ctx context.Context, req *QueryGetSequencersByRollappRequest) (*QueryGetSequencersByRollappResponse, error)
func (*UnimplementedQueryServer) SequencersByRollappByStatus ¶ added in v3.1.0
func (*UnimplementedQueryServer) SequencersByRollappByStatus(ctx context.Context, req *QueryGetSequencersByRollappByStatusRequest) (*QueryGetSequencersByRollappByStatusResponse, error)