types

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 33 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeTimeout = "timeout"

	AttributeKeyAckSuccess = "success"
	AttributeKeyAck        = "acknowledgement"
	AttributeKeyAckError   = "error"
)

IBC events

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

	// 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_consensus"

	// Version defines the current version the IBC module supports
	Version = "consensus-1"

	// PortID is the default port id that module binds to
	PortID = "consensus"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgAddMessagesSignatures = "add_messages_signatures"
View Source
const TypeMsgDeleteJob = "delete_job"

Variables

View Source
var (
	ErrInvalidLengthConsensusQueue        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConsensusQueue          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConsensusQueue = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample               = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrInvalidPacketTimeout = sdkerrors.Register(ModuleName, 1500, "invalid packet timeout")
	ErrInvalidVersion       = sdkerrors.Register(ModuleName, 1501, "invalid version")
)

x/consensus 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 (
	ErrInvalidLengthPacket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPacket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidLengthSigningMessages        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSigningMessages          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSigningMessages = 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 (
	// PortKey defines the key to store the port ID in store
	PortKey = KeyPrefix("consensus-port-")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

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 Uint64ToByte

func Uint64ToByte(n uint64) []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 AnyUnpacker

type AnyUnpacker = types.AnyUnpacker

type AttestResult

type AttestResult struct {
}

type AttestTask

type AttestTask interface {
	Attest()
}

type Attestator

type Attestator interface {
	// ConsensusQueue tells in which ConsensusQueue to store the messages that require signatures.
	ConsensusQueue() ConsensusQueueType
	// Type tells the type of allowed message types for the ConsensusQueue.
	Type() any

	// Returns function which will be called with the underlying message and nonce
	// and it needs to return bytes for signing.
	BytesToSign() BytesToSignFunc

	// ValidateEvidence takes a task and an evidence and does a validation to make sure that it's correct.
	ValidateEvidence(ctx context.Context, task AttestTask, evidence Evidence) error
	// ProcessAllEvidence processes all given evidences and internally does whatever it needs to do with
	// that information. It returns the result back to the caller.
	ProcessAllEvidence(ctx context.Context, task AttestTask, evidence []Evidence) (AttestResult, error)
}

type BankKeeper

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

BankKeeper defines the expected interface needed to retrieve account balances.

type Batch

type Batch struct {
	Msgs        []*types.Any `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"`
	BytesToSign []byte       `protobuf:"bytes,2,opt,name=bytesToSign,proto3" json:"bytesToSign,omitempty"`
}

func (*Batch) Descriptor

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

func (*Batch) GetBytesToSign

func (m *Batch) GetBytesToSign() []byte

func (*Batch) GetMsgs

func (m *Batch) GetMsgs() []*types.Any

func (*Batch) GetSignBytes

func (b *Batch) GetSignBytes() []byte

func (*Batch) Marshal

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

func (*Batch) MarshalTo

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

func (*Batch) MarshalToSizedBuffer

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

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) Reset

func (m *Batch) Reset()

func (*Batch) Size

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

func (*Batch) String

func (m *Batch) String() string

func (*Batch) Unmarshal

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

func (*Batch) XXX_DiscardUnknown

func (m *Batch) XXX_DiscardUnknown()

func (*Batch) XXX_Marshal

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

func (*Batch) XXX_Merge

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

func (*Batch) XXX_Size

func (m *Batch) XXX_Size() int

func (*Batch) XXX_Unmarshal

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

type BatchOfConsensusMessages

type BatchOfConsensusMessages struct {
	Msg *types.Any `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*BatchOfConsensusMessages) Descriptor

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

func (*BatchOfConsensusMessages) GetMsg

func (m *BatchOfConsensusMessages) GetMsg() *types.Any

func (*BatchOfConsensusMessages) Marshal

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

func (*BatchOfConsensusMessages) MarshalTo

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

func (*BatchOfConsensusMessages) MarshalToSizedBuffer

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

func (*BatchOfConsensusMessages) ProtoMessage

func (*BatchOfConsensusMessages) ProtoMessage()

func (*BatchOfConsensusMessages) Reset

func (m *BatchOfConsensusMessages) Reset()

func (*BatchOfConsensusMessages) Size

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

func (*BatchOfConsensusMessages) String

func (m *BatchOfConsensusMessages) String() string

func (*BatchOfConsensusMessages) Unmarshal

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

func (*BatchOfConsensusMessages) XXX_DiscardUnknown

func (m *BatchOfConsensusMessages) XXX_DiscardUnknown()

func (*BatchOfConsensusMessages) XXX_Marshal

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

func (*BatchOfConsensusMessages) XXX_Merge

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

func (*BatchOfConsensusMessages) XXX_Size

func (m *BatchOfConsensusMessages) XXX_Size() int

func (*BatchOfConsensusMessages) XXX_Unmarshal

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

type BytesToSignFunc

type BytesToSignFunc func(msg ConsensusMsg, nonce uint64) []byte

func TypedBytesToSign

func TypedBytesToSign[T any](fnc func(msg T, nonce uint64) []byte) BytesToSignFunc

type ConsensusMsg

type ConsensusMsg interface {
	proto.Message
}

type ConsensusPacketData

type ConsensusPacketData struct {
	// Types that are valid to be assigned to Packet:
	//	*ConsensusPacketData_NoData
	Packet isConsensusPacketData_Packet `protobuf_oneof:"packet"`
}

func (*ConsensusPacketData) Descriptor

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

func (*ConsensusPacketData) GetNoData

func (m *ConsensusPacketData) GetNoData() *NoData

func (*ConsensusPacketData) GetPacket

func (m *ConsensusPacketData) GetPacket() isConsensusPacketData_Packet

func (*ConsensusPacketData) Marshal

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

func (*ConsensusPacketData) MarshalTo

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

func (*ConsensusPacketData) MarshalToSizedBuffer

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

func (*ConsensusPacketData) ProtoMessage

func (*ConsensusPacketData) ProtoMessage()

func (*ConsensusPacketData) Reset

func (m *ConsensusPacketData) Reset()

func (*ConsensusPacketData) Size

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

func (*ConsensusPacketData) String

func (m *ConsensusPacketData) String() string

func (*ConsensusPacketData) Unmarshal

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

func (*ConsensusPacketData) XXX_DiscardUnknown

func (m *ConsensusPacketData) XXX_DiscardUnknown()

func (*ConsensusPacketData) XXX_Marshal

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

func (*ConsensusPacketData) XXX_Merge

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

func (*ConsensusPacketData) XXX_OneofWrappers

func (*ConsensusPacketData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ConsensusPacketData) XXX_Size

func (m *ConsensusPacketData) XXX_Size() int

func (*ConsensusPacketData) XXX_Unmarshal

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

type ConsensusPacketData_NoData

type ConsensusPacketData_NoData struct {
	NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"`
}

func (*ConsensusPacketData_NoData) MarshalTo

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

func (*ConsensusPacketData_NoData) MarshalToSizedBuffer

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

func (*ConsensusPacketData_NoData) Size

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

type ConsensusQueueType

type ConsensusQueueType string

type Evidence

type Evidence struct {
	From sdk.Address
	Data []byte
}

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
}

GenesisState defines the consensus 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) GetPortId

func (m *GenesisState) GetPortId() string

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 MessageQueuedForBatchingI

type MessageQueuedForBatchingI interface {
	proto.Message
	GetMsg() *types.Any
}

type MessageToSign

type MessageToSign struct {
	Nonce       []byte     `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Id          uint64     `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	BytesToSign []byte     `protobuf:"bytes,3,opt,name=bytesToSign,proto3" json:"bytesToSign,omitempty"`
	Msg         *types.Any `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"`
}

func (*MessageToSign) Descriptor

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

func (*MessageToSign) GetBytesToSign

func (m *MessageToSign) GetBytesToSign() []byte

func (*MessageToSign) GetId

func (m *MessageToSign) GetId() uint64

func (*MessageToSign) GetMsg

func (m *MessageToSign) GetMsg() *types.Any

func (*MessageToSign) GetNonce

func (m *MessageToSign) GetNonce() []byte

func (*MessageToSign) Marshal

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

func (*MessageToSign) MarshalTo

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

func (*MessageToSign) MarshalToSizedBuffer

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

func (*MessageToSign) ProtoMessage

func (*MessageToSign) ProtoMessage()

func (*MessageToSign) Reset

func (m *MessageToSign) Reset()

func (*MessageToSign) Size

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

func (*MessageToSign) String

func (m *MessageToSign) String() string

func (*MessageToSign) Unmarshal

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

func (*MessageToSign) XXX_DiscardUnknown

func (m *MessageToSign) XXX_DiscardUnknown()

func (*MessageToSign) XXX_Marshal

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

func (*MessageToSign) XXX_Merge

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

func (*MessageToSign) XXX_Size

func (m *MessageToSign) XXX_Size() int

func (*MessageToSign) XXX_Unmarshal

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

type MessageWithSignatures

type MessageWithSignatures struct {
	Nonce    []byte                `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Id       uint64                `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Msg      *types.Any            `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	SignData []*ValidatorSignature `protobuf:"bytes,4,rep,name=signData,proto3" json:"signData,omitempty"`
}

func (*MessageWithSignatures) Descriptor

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

func (*MessageWithSignatures) GetId

func (m *MessageWithSignatures) GetId() uint64

func (*MessageWithSignatures) GetMsg

func (m *MessageWithSignatures) GetMsg() *types.Any

func (*MessageWithSignatures) GetNonce

func (m *MessageWithSignatures) GetNonce() []byte

func (*MessageWithSignatures) GetSignData

func (m *MessageWithSignatures) GetSignData() []*ValidatorSignature

func (*MessageWithSignatures) Marshal

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

func (*MessageWithSignatures) MarshalTo

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

func (*MessageWithSignatures) MarshalToSizedBuffer

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

func (*MessageWithSignatures) ProtoMessage

func (*MessageWithSignatures) ProtoMessage()

func (*MessageWithSignatures) Reset

func (m *MessageWithSignatures) Reset()

func (*MessageWithSignatures) Size

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

func (*MessageWithSignatures) String

func (m *MessageWithSignatures) String() string

func (*MessageWithSignatures) Unmarshal

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

func (*MessageWithSignatures) XXX_DiscardUnknown

func (m *MessageWithSignatures) XXX_DiscardUnknown()

func (*MessageWithSignatures) XXX_Marshal

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

func (*MessageWithSignatures) XXX_Merge

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

func (*MessageWithSignatures) XXX_Size

func (m *MessageWithSignatures) XXX_Size() int

func (*MessageWithSignatures) XXX_Unmarshal

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

type MsgAddMessagesSignatures

type MsgAddMessagesSignatures struct {
	Creator        string                                       `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	SignedMessages []*MsgAddMessagesSignatures_MsgSignedMessage `protobuf:"bytes,2,rep,name=signedMessages,proto3" json:"signedMessages,omitempty"`
}

func NewMsgAddMessagesSignatures

func NewMsgAddMessagesSignatures(creator string) *MsgAddMessagesSignatures

func (*MsgAddMessagesSignatures) Descriptor

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

func (*MsgAddMessagesSignatures) GetCreator

func (m *MsgAddMessagesSignatures) GetCreator() string

func (*MsgAddMessagesSignatures) GetSignBytes

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

func (*MsgAddMessagesSignatures) GetSignedMessages

func (*MsgAddMessagesSignatures) GetSigners

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

func (*MsgAddMessagesSignatures) Marshal

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

func (*MsgAddMessagesSignatures) MarshalTo

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

func (*MsgAddMessagesSignatures) MarshalToSizedBuffer

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

func (*MsgAddMessagesSignatures) ProtoMessage

func (*MsgAddMessagesSignatures) ProtoMessage()

func (*MsgAddMessagesSignatures) Reset

func (m *MsgAddMessagesSignatures) Reset()

func (*MsgAddMessagesSignatures) Route

func (msg *MsgAddMessagesSignatures) Route() string

func (*MsgAddMessagesSignatures) Size

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

func (*MsgAddMessagesSignatures) String

func (m *MsgAddMessagesSignatures) String() string

func (*MsgAddMessagesSignatures) Type

func (msg *MsgAddMessagesSignatures) Type() string

func (*MsgAddMessagesSignatures) Unmarshal

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

func (*MsgAddMessagesSignatures) ValidateBasic

func (msg *MsgAddMessagesSignatures) ValidateBasic() error

func (*MsgAddMessagesSignatures) XXX_DiscardUnknown

func (m *MsgAddMessagesSignatures) XXX_DiscardUnknown()

func (*MsgAddMessagesSignatures) XXX_Marshal

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

func (*MsgAddMessagesSignatures) XXX_Merge

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

func (*MsgAddMessagesSignatures) XXX_Size

func (m *MsgAddMessagesSignatures) XXX_Size() int

func (*MsgAddMessagesSignatures) XXX_Unmarshal

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

type MsgAddMessagesSignaturesResponse

type MsgAddMessagesSignaturesResponse struct {
}

func (*MsgAddMessagesSignaturesResponse) Descriptor

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

func (*MsgAddMessagesSignaturesResponse) Marshal

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

func (*MsgAddMessagesSignaturesResponse) MarshalTo

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

func (*MsgAddMessagesSignaturesResponse) MarshalToSizedBuffer

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

func (*MsgAddMessagesSignaturesResponse) ProtoMessage

func (*MsgAddMessagesSignaturesResponse) ProtoMessage()

func (*MsgAddMessagesSignaturesResponse) Reset

func (*MsgAddMessagesSignaturesResponse) Size

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

func (*MsgAddMessagesSignaturesResponse) String

func (*MsgAddMessagesSignaturesResponse) Unmarshal

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

func (*MsgAddMessagesSignaturesResponse) XXX_DiscardUnknown

func (m *MsgAddMessagesSignaturesResponse) XXX_DiscardUnknown()

func (*MsgAddMessagesSignaturesResponse) XXX_Marshal

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

func (*MsgAddMessagesSignaturesResponse) XXX_Merge

func (*MsgAddMessagesSignaturesResponse) XXX_Size

func (m *MsgAddMessagesSignaturesResponse) XXX_Size() int

func (*MsgAddMessagesSignaturesResponse) XXX_Unmarshal

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

type MsgAddMessagesSignatures_MsgSignedMessage

type MsgAddMessagesSignatures_MsgSignedMessage struct {
	Id            uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	QueueTypeName string `protobuf:"bytes,2,opt,name=queueTypeName,proto3" json:"queueTypeName,omitempty"`
	Signature     []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	ExtraData     []byte `protobuf:"bytes,4,opt,name=extraData,proto3" json:"extraData,omitempty"`
}

func (*MsgAddMessagesSignatures_MsgSignedMessage) Descriptor

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

func (*MsgAddMessagesSignatures_MsgSignedMessage) GetExtraData

func (m *MsgAddMessagesSignatures_MsgSignedMessage) GetExtraData() []byte

func (*MsgAddMessagesSignatures_MsgSignedMessage) GetId

func (*MsgAddMessagesSignatures_MsgSignedMessage) GetQueueTypeName

func (m *MsgAddMessagesSignatures_MsgSignedMessage) GetQueueTypeName() string

func (*MsgAddMessagesSignatures_MsgSignedMessage) GetSignature

func (m *MsgAddMessagesSignatures_MsgSignedMessage) GetSignature() []byte

func (*MsgAddMessagesSignatures_MsgSignedMessage) Marshal

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

func (*MsgAddMessagesSignatures_MsgSignedMessage) MarshalTo

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

func (*MsgAddMessagesSignatures_MsgSignedMessage) MarshalToSizedBuffer

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

func (*MsgAddMessagesSignatures_MsgSignedMessage) ProtoMessage

func (*MsgAddMessagesSignatures_MsgSignedMessage) Reset

func (*MsgAddMessagesSignatures_MsgSignedMessage) Size

func (*MsgAddMessagesSignatures_MsgSignedMessage) String

func (*MsgAddMessagesSignatures_MsgSignedMessage) Unmarshal

func (*MsgAddMessagesSignatures_MsgSignedMessage) XXX_DiscardUnknown

func (m *MsgAddMessagesSignatures_MsgSignedMessage) XXX_DiscardUnknown()

func (*MsgAddMessagesSignatures_MsgSignedMessage) XXX_Marshal

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

func (*MsgAddMessagesSignatures_MsgSignedMessage) XXX_Merge

func (*MsgAddMessagesSignatures_MsgSignedMessage) XXX_Size

func (*MsgAddMessagesSignatures_MsgSignedMessage) XXX_Unmarshal

type MsgClient

type MsgClient interface {
	AddMessagesSignatures(ctx context.Context, in *MsgAddMessagesSignatures, opts ...grpc.CallOption) (*MsgAddMessagesSignaturesResponse, error)
	DeleteJob(ctx context.Context, in *MsgDeleteJob, opts ...grpc.CallOption) (*MsgDeleteJobResponse, 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 MsgDeleteJob

type MsgDeleteJob struct {
	Creator       string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	QueueTypeName string `protobuf:"bytes,2,opt,name=queueTypeName,proto3" json:"queueTypeName,omitempty"`
	MessageID     uint64 `protobuf:"varint,3,opt,name=messageID,proto3" json:"messageID,omitempty"`
}

func NewMsgDeleteJob

func NewMsgDeleteJob(creator string, queueTypeName string, messageID uint64) *MsgDeleteJob

func (*MsgDeleteJob) Descriptor

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

func (*MsgDeleteJob) GetCreator

func (m *MsgDeleteJob) GetCreator() string

func (*MsgDeleteJob) GetMessageID

func (m *MsgDeleteJob) GetMessageID() uint64

func (*MsgDeleteJob) GetQueueTypeName

func (m *MsgDeleteJob) GetQueueTypeName() string

func (*MsgDeleteJob) GetSignBytes

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

func (*MsgDeleteJob) GetSigners

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

func (*MsgDeleteJob) Marshal

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

func (*MsgDeleteJob) MarshalTo

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

func (*MsgDeleteJob) MarshalToSizedBuffer

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

func (*MsgDeleteJob) ProtoMessage

func (*MsgDeleteJob) ProtoMessage()

func (*MsgDeleteJob) Reset

func (m *MsgDeleteJob) Reset()

func (*MsgDeleteJob) Route

func (msg *MsgDeleteJob) Route() string

func (*MsgDeleteJob) Size

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

func (*MsgDeleteJob) String

func (m *MsgDeleteJob) String() string

func (*MsgDeleteJob) Type

func (msg *MsgDeleteJob) Type() string

func (*MsgDeleteJob) Unmarshal

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

func (*MsgDeleteJob) ValidateBasic

func (msg *MsgDeleteJob) ValidateBasic() error

func (*MsgDeleteJob) XXX_DiscardUnknown

func (m *MsgDeleteJob) XXX_DiscardUnknown()

func (*MsgDeleteJob) XXX_Marshal

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

func (*MsgDeleteJob) XXX_Merge

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

func (*MsgDeleteJob) XXX_Size

func (m *MsgDeleteJob) XXX_Size() int

func (*MsgDeleteJob) XXX_Unmarshal

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

type MsgDeleteJobResponse

type MsgDeleteJobResponse struct {
}

func (*MsgDeleteJobResponse) Descriptor

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

func (*MsgDeleteJobResponse) Marshal

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

func (*MsgDeleteJobResponse) MarshalTo

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

func (*MsgDeleteJobResponse) MarshalToSizedBuffer

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

func (*MsgDeleteJobResponse) ProtoMessage

func (*MsgDeleteJobResponse) ProtoMessage()

func (*MsgDeleteJobResponse) Reset

func (m *MsgDeleteJobResponse) Reset()

func (*MsgDeleteJobResponse) Size

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

func (*MsgDeleteJobResponse) String

func (m *MsgDeleteJobResponse) String() string

func (*MsgDeleteJobResponse) Unmarshal

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

func (*MsgDeleteJobResponse) XXX_DiscardUnknown

func (m *MsgDeleteJobResponse) XXX_DiscardUnknown()

func (*MsgDeleteJobResponse) XXX_Marshal

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

func (*MsgDeleteJobResponse) XXX_Merge

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

func (*MsgDeleteJobResponse) XXX_Size

func (m *MsgDeleteJobResponse) XXX_Size() int

func (*MsgDeleteJobResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	AddMessagesSignatures(context.Context, *MsgAddMessagesSignatures) (*MsgAddMessagesSignaturesResponse, error)
	DeleteJob(context.Context, *MsgDeleteJob) (*MsgDeleteJobResponse, error)
}

MsgServer is the server API for Msg service.

type NoData

type NoData struct {
}

func (*NoData) Descriptor

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

func (*NoData) Marshal

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

func (*NoData) MarshalTo

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

func (*NoData) MarshalToSizedBuffer

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

func (*NoData) ProtoMessage

func (*NoData) ProtoMessage()

func (*NoData) Reset

func (m *NoData) Reset()

func (*NoData) Size

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

func (*NoData) String

func (m *NoData) String() string

func (*NoData) Unmarshal

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

func (*NoData) XXX_DiscardUnknown

func (m *NoData) XXX_DiscardUnknown()

func (*NoData) XXX_Marshal

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

func (*NoData) XXX_Merge

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

func (*NoData) XXX_Size

func (m *NoData) XXX_Size() int

func (*NoData) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

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 list of QueuedMessagesForSigning items.
	QueuedMessagesForSigning(ctx context.Context, in *QueryQueuedMessagesForSigningRequest, opts ...grpc.CallOption) (*QueryQueuedMessagesForSigningResponse, error)
	// Queries a list of MessagesInQueue items.
	MessagesInQueue(ctx context.Context, in *QueryMessagesInQueueRequest, opts ...grpc.CallOption) (*QueryMessagesInQueueResponse, error)
	// Queries a list of GetAllQueueNames items.
	GetAllQueueNames(ctx context.Context, in *QueryGetAllQueueNamesRequest, opts ...grpc.CallOption) (*QueryGetAllQueueNamesResponse, 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 QueryGetAllQueueNamesRequest

type QueryGetAllQueueNamesRequest struct {
}

func (*QueryGetAllQueueNamesRequest) Descriptor

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

func (*QueryGetAllQueueNamesRequest) Marshal

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

func (*QueryGetAllQueueNamesRequest) MarshalTo

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

func (*QueryGetAllQueueNamesRequest) MarshalToSizedBuffer

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

func (*QueryGetAllQueueNamesRequest) ProtoMessage

func (*QueryGetAllQueueNamesRequest) ProtoMessage()

func (*QueryGetAllQueueNamesRequest) Reset

func (m *QueryGetAllQueueNamesRequest) Reset()

func (*QueryGetAllQueueNamesRequest) Size

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

func (*QueryGetAllQueueNamesRequest) String

func (*QueryGetAllQueueNamesRequest) Unmarshal

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

func (*QueryGetAllQueueNamesRequest) XXX_DiscardUnknown

func (m *QueryGetAllQueueNamesRequest) XXX_DiscardUnknown()

func (*QueryGetAllQueueNamesRequest) XXX_Marshal

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

func (*QueryGetAllQueueNamesRequest) XXX_Merge

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

func (*QueryGetAllQueueNamesRequest) XXX_Size

func (m *QueryGetAllQueueNamesRequest) XXX_Size() int

func (*QueryGetAllQueueNamesRequest) XXX_Unmarshal

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

type QueryGetAllQueueNamesResponse

type QueryGetAllQueueNamesResponse struct {
	Queues []string `protobuf:"bytes,1,rep,name=queues,proto3" json:"queues,omitempty"`
}

func (*QueryGetAllQueueNamesResponse) Descriptor

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

func (*QueryGetAllQueueNamesResponse) GetQueues

func (m *QueryGetAllQueueNamesResponse) GetQueues() []string

func (*QueryGetAllQueueNamesResponse) Marshal

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

func (*QueryGetAllQueueNamesResponse) MarshalTo

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

func (*QueryGetAllQueueNamesResponse) MarshalToSizedBuffer

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

func (*QueryGetAllQueueNamesResponse) ProtoMessage

func (*QueryGetAllQueueNamesResponse) ProtoMessage()

func (*QueryGetAllQueueNamesResponse) Reset

func (m *QueryGetAllQueueNamesResponse) Reset()

func (*QueryGetAllQueueNamesResponse) Size

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

func (*QueryGetAllQueueNamesResponse) String

func (*QueryGetAllQueueNamesResponse) Unmarshal

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

func (*QueryGetAllQueueNamesResponse) XXX_DiscardUnknown

func (m *QueryGetAllQueueNamesResponse) XXX_DiscardUnknown()

func (*QueryGetAllQueueNamesResponse) XXX_Marshal

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

func (*QueryGetAllQueueNamesResponse) XXX_Merge

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

func (*QueryGetAllQueueNamesResponse) XXX_Size

func (m *QueryGetAllQueueNamesResponse) XXX_Size() int

func (*QueryGetAllQueueNamesResponse) XXX_Unmarshal

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

type QueryMessagesInQueueRequest

type QueryMessagesInQueueRequest struct {
	QueueTypeName string `protobuf:"bytes,1,opt,name=queueTypeName,proto3" json:"queueTypeName,omitempty"`
}

func (*QueryMessagesInQueueRequest) Descriptor

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

func (*QueryMessagesInQueueRequest) GetQueueTypeName

func (m *QueryMessagesInQueueRequest) GetQueueTypeName() string

func (*QueryMessagesInQueueRequest) Marshal

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

func (*QueryMessagesInQueueRequest) MarshalTo

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

func (*QueryMessagesInQueueRequest) MarshalToSizedBuffer

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

func (*QueryMessagesInQueueRequest) ProtoMessage

func (*QueryMessagesInQueueRequest) ProtoMessage()

func (*QueryMessagesInQueueRequest) Reset

func (m *QueryMessagesInQueueRequest) Reset()

func (*QueryMessagesInQueueRequest) Size

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

func (*QueryMessagesInQueueRequest) String

func (m *QueryMessagesInQueueRequest) String() string

func (*QueryMessagesInQueueRequest) Unmarshal

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

func (*QueryMessagesInQueueRequest) XXX_DiscardUnknown

func (m *QueryMessagesInQueueRequest) XXX_DiscardUnknown()

func (*QueryMessagesInQueueRequest) XXX_Marshal

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

func (*QueryMessagesInQueueRequest) XXX_Merge

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

func (*QueryMessagesInQueueRequest) XXX_Size

func (m *QueryMessagesInQueueRequest) XXX_Size() int

func (*QueryMessagesInQueueRequest) XXX_Unmarshal

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

type QueryMessagesInQueueResponse

type QueryMessagesInQueueResponse struct {
	Messages []*MessageWithSignatures `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
}

func (*QueryMessagesInQueueResponse) Descriptor

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

func (*QueryMessagesInQueueResponse) GetMessages

func (*QueryMessagesInQueueResponse) Marshal

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

func (*QueryMessagesInQueueResponse) MarshalTo

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

func (*QueryMessagesInQueueResponse) MarshalToSizedBuffer

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

func (*QueryMessagesInQueueResponse) ProtoMessage

func (*QueryMessagesInQueueResponse) ProtoMessage()

func (*QueryMessagesInQueueResponse) Reset

func (m *QueryMessagesInQueueResponse) Reset()

func (*QueryMessagesInQueueResponse) Size

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

func (*QueryMessagesInQueueResponse) String

func (*QueryMessagesInQueueResponse) Unmarshal

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

func (*QueryMessagesInQueueResponse) XXX_DiscardUnknown

func (m *QueryMessagesInQueueResponse) XXX_DiscardUnknown()

func (*QueryMessagesInQueueResponse) XXX_Marshal

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

func (*QueryMessagesInQueueResponse) XXX_Merge

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

func (*QueryMessagesInQueueResponse) XXX_Size

func (m *QueryMessagesInQueueResponse) XXX_Size() int

func (*QueryMessagesInQueueResponse) XXX_Unmarshal

func (m *QueryMessagesInQueueResponse) 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 QueryQueuedMessagesForSigningRequest

type QueryQueuedMessagesForSigningRequest struct {
	ValAddress    github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 128-byte string literal not displayed */
	QueueTypeName string                                        `protobuf:"bytes,2,opt,name=queueTypeName,proto3" json:"queueTypeName,omitempty"`
}

func (*QueryQueuedMessagesForSigningRequest) Descriptor

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

func (*QueryQueuedMessagesForSigningRequest) GetQueueTypeName

func (m *QueryQueuedMessagesForSigningRequest) GetQueueTypeName() string

func (*QueryQueuedMessagesForSigningRequest) GetValAddress

func (*QueryQueuedMessagesForSigningRequest) Marshal

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

func (*QueryQueuedMessagesForSigningRequest) MarshalTo

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

func (*QueryQueuedMessagesForSigningRequest) MarshalToSizedBuffer

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

func (*QueryQueuedMessagesForSigningRequest) ProtoMessage

func (*QueryQueuedMessagesForSigningRequest) ProtoMessage()

func (*QueryQueuedMessagesForSigningRequest) Reset

func (*QueryQueuedMessagesForSigningRequest) Size

func (*QueryQueuedMessagesForSigningRequest) String

func (*QueryQueuedMessagesForSigningRequest) Unmarshal

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

func (*QueryQueuedMessagesForSigningRequest) XXX_DiscardUnknown

func (m *QueryQueuedMessagesForSigningRequest) XXX_DiscardUnknown()

func (*QueryQueuedMessagesForSigningRequest) XXX_Marshal

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

func (*QueryQueuedMessagesForSigningRequest) XXX_Merge

func (*QueryQueuedMessagesForSigningRequest) XXX_Size

func (*QueryQueuedMessagesForSigningRequest) XXX_Unmarshal

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

type QueryQueuedMessagesForSigningResponse

type QueryQueuedMessagesForSigningResponse struct {
	MessageToSign []*MessageToSign `protobuf:"bytes,1,rep,name=messageToSign,proto3" json:"messageToSign,omitempty"`
}

func (*QueryQueuedMessagesForSigningResponse) Descriptor

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

func (*QueryQueuedMessagesForSigningResponse) GetMessageToSign

func (m *QueryQueuedMessagesForSigningResponse) GetMessageToSign() []*MessageToSign

func (*QueryQueuedMessagesForSigningResponse) Marshal

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

func (*QueryQueuedMessagesForSigningResponse) MarshalTo

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

func (*QueryQueuedMessagesForSigningResponse) MarshalToSizedBuffer

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

func (*QueryQueuedMessagesForSigningResponse) ProtoMessage

func (*QueryQueuedMessagesForSigningResponse) ProtoMessage()

func (*QueryQueuedMessagesForSigningResponse) Reset

func (*QueryQueuedMessagesForSigningResponse) Size

func (*QueryQueuedMessagesForSigningResponse) String

func (*QueryQueuedMessagesForSigningResponse) Unmarshal

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

func (*QueryQueuedMessagesForSigningResponse) XXX_DiscardUnknown

func (m *QueryQueuedMessagesForSigningResponse) XXX_DiscardUnknown()

func (*QueryQueuedMessagesForSigningResponse) XXX_Marshal

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

func (*QueryQueuedMessagesForSigningResponse) XXX_Merge

func (*QueryQueuedMessagesForSigningResponse) XXX_Size

func (*QueryQueuedMessagesForSigningResponse) XXX_Unmarshal

func (m *QueryQueuedMessagesForSigningResponse) 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 list of QueuedMessagesForSigning items.
	QueuedMessagesForSigning(context.Context, *QueryQueuedMessagesForSigningRequest) (*QueryQueuedMessagesForSigningResponse, error)
	// Queries a list of MessagesInQueue items.
	MessagesInQueue(context.Context, *QueryMessagesInQueueRequest) (*QueryMessagesInQueueResponse, error)
	// Queries a list of GetAllQueueNames items.
	GetAllQueueNames(context.Context, *QueryGetAllQueueNamesRequest) (*QueryGetAllQueueNamesResponse, error)
}

QueryServer is the server API for Query service.

type QueuedSignedMessage

type QueuedSignedMessage struct {
	Id          uint64      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Msg         *types.Any  `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	BytesToSign []byte      `protobuf:"bytes,3,opt,name=bytesToSign,proto3" json:"bytesToSign,omitempty"`
	SignData    []*SignData `protobuf:"bytes,4,rep,name=signData,proto3" json:"signData,omitempty"`
}

message for storing the queued signed message in the internal queue

func (*QueuedSignedMessage) AddSignData

func (q *QueuedSignedMessage) AddSignData(data *SignData)

func (*QueuedSignedMessage) ConsensusMsg

func (q *QueuedSignedMessage) ConsensusMsg(unpacker AnyUnpacker) (ConsensusMsg, error)

func (*QueuedSignedMessage) Descriptor

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

func (*QueuedSignedMessage) GetBytesToSign

func (m *QueuedSignedMessage) GetBytesToSign() []byte

func (*QueuedSignedMessage) GetId

func (m *QueuedSignedMessage) GetId() uint64

func (*QueuedSignedMessage) GetMsg

func (m *QueuedSignedMessage) GetMsg() *types.Any

func (*QueuedSignedMessage) GetSignData

func (m *QueuedSignedMessage) GetSignData() []*SignData

func (*QueuedSignedMessage) Marshal

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

func (*QueuedSignedMessage) MarshalTo

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

func (*QueuedSignedMessage) MarshalToSizedBuffer

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

func (*QueuedSignedMessage) Nonce

func (q *QueuedSignedMessage) Nonce() []byte

func (*QueuedSignedMessage) ProtoMessage

func (*QueuedSignedMessage) ProtoMessage()

func (*QueuedSignedMessage) Reset

func (m *QueuedSignedMessage) Reset()

func (*QueuedSignedMessage) Size

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

func (*QueuedSignedMessage) String

func (m *QueuedSignedMessage) String() string

func (*QueuedSignedMessage) Unmarshal

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

func (*QueuedSignedMessage) XXX_DiscardUnknown

func (m *QueuedSignedMessage) XXX_DiscardUnknown()

func (*QueuedSignedMessage) XXX_Marshal

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

func (*QueuedSignedMessage) XXX_Merge

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

func (*QueuedSignedMessage) XXX_Size

func (m *QueuedSignedMessage) XXX_Size() int

func (*QueuedSignedMessage) XXX_Unmarshal

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

type QueuedSignedMessageI

type QueuedSignedMessageI interface {
	proto.Message
	GetId() uint64
	Nonce() []byte
	ConsensusMsg(AnyUnpacker) (ConsensusMsg, error)
	GetSignData() []*SignData
	AddSignData(*SignData)
	GetBytesToSign() []byte
}

type RegistryAdder

type RegistryAdder interface {
	AddConcencusQueueType(queueTypeName ConsensusQueueType, typ any, bytesToSign BytesToSignFunc)
}

type SignData

type SignData struct {
	ValAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 128-byte string literal not displayed */
	Signature  []byte                                        `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	ExtraData  []byte                                        `protobuf:"bytes,3,opt,name=extraData,proto3" json:"extraData,omitempty"`
}

func (*SignData) Descriptor

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

func (*SignData) GetExtraData

func (m *SignData) GetExtraData() []byte

func (*SignData) GetSignature

func (m *SignData) GetSignature() []byte

func (*SignData) GetValAddress

func (*SignData) Marshal

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

func (*SignData) MarshalTo

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

func (*SignData) MarshalToSizedBuffer

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

func (*SignData) ProtoMessage

func (*SignData) ProtoMessage()

func (*SignData) Reset

func (m *SignData) Reset()

func (*SignData) Size

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

func (*SignData) String

func (m *SignData) String() string

func (*SignData) Unmarshal

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

func (*SignData) XXX_DiscardUnknown

func (m *SignData) XXX_DiscardUnknown()

func (*SignData) XXX_Marshal

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

func (*SignData) XXX_Merge

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

func (*SignData) XXX_Size

func (m *SignData) XXX_Size() int

func (*SignData) XXX_Unmarshal

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

type SignSmartContractExecute

type SignSmartContractExecute struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

THIS IS ONLY TEPORARY HERE TO TEST THINGS OUT

func (*SignSmartContractExecute) Descriptor

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

func (*SignSmartContractExecute) GetId

func (m *SignSmartContractExecute) GetId() uint64

func (*SignSmartContractExecute) Marshal

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

func (*SignSmartContractExecute) MarshalTo

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

func (*SignSmartContractExecute) MarshalToSizedBuffer

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

func (*SignSmartContractExecute) ProtoMessage

func (*SignSmartContractExecute) ProtoMessage()

func (*SignSmartContractExecute) Reset

func (m *SignSmartContractExecute) Reset()

func (*SignSmartContractExecute) Size

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

func (*SignSmartContractExecute) String

func (m *SignSmartContractExecute) String() string

func (*SignSmartContractExecute) Unmarshal

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

func (*SignSmartContractExecute) XXX_DiscardUnknown

func (m *SignSmartContractExecute) XXX_DiscardUnknown()

func (*SignSmartContractExecute) XXX_Marshal

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

func (*SignSmartContractExecute) XXX_Merge

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

func (*SignSmartContractExecute) XXX_Size

func (m *SignSmartContractExecute) XXX_Size() int

func (*SignSmartContractExecute) XXX_Unmarshal

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

type SupportsConsensusQueue

type SupportsConsensusQueue interface {
	RegisterConsensusQueues(adder RegistryAdder)
}

type TypeChecker

type TypeChecker func(any) bool

func BatchedTypeChecker

func BatchedTypeChecker(static TypeChecker) TypeChecker

func StaticTypeChecker

func StaticTypeChecker(typ any) TypeChecker

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddMessagesSignatures

func (*UnimplementedMsgServer) DeleteJob

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetAllQueueNames

func (*UnimplementedQueryServer) MessagesInQueue

func (*UnimplementedQueryServer) Params

type ValidatorSignature

type ValidatorSignature struct {
	ValAddress github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 128-byte string literal not displayed */
	Signature  []byte                                        `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*ValidatorSignature) Descriptor

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

func (*ValidatorSignature) GetSignature

func (m *ValidatorSignature) GetSignature() []byte

func (*ValidatorSignature) GetValAddress

func (*ValidatorSignature) Marshal

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

func (*ValidatorSignature) MarshalTo

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

func (*ValidatorSignature) MarshalToSizedBuffer

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

func (*ValidatorSignature) ProtoMessage

func (*ValidatorSignature) ProtoMessage()

func (*ValidatorSignature) Reset

func (m *ValidatorSignature) Reset()

func (*ValidatorSignature) Size

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

func (*ValidatorSignature) String

func (m *ValidatorSignature) String() string

func (*ValidatorSignature) Unmarshal

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

func (*ValidatorSignature) XXX_DiscardUnknown

func (m *ValidatorSignature) XXX_DiscardUnknown()

func (*ValidatorSignature) XXX_Marshal

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

func (*ValidatorSignature) XXX_Merge

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

func (*ValidatorSignature) XXX_Size

func (m *ValidatorSignature) XXX_Size() int

func (*ValidatorSignature) XXX_Unmarshal

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

type ValsetKeeper

type ValsetKeeper interface {
	GetSigningKey(ctx sdk.Context, valAddr sdk.ValAddress) crypto.PubKey
	GetCurrentSnapshot(ctx sdk.Context) (*valsettypes.Snapshot, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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