types

package
v0.0.0-...-7257e70 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

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

	// 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_orionis"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const OnrInrClaim = "OnrInrClaim"

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	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 (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/orionis module sentinel errors

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper

type BankKeeper interface {
}

type GenesisState

type GenesisState struct {
}

GenesisState defines the orionis 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) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	OnrInr(ctx context.Context, in *MsgOnrInr, opts ...grpc.CallOption) (*MsgOnrInrResponse, 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 MsgOnrInr

type MsgOnrInr struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount      uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	BlockHeight uint64 `protobuf:"varint,3,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	Result      string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
	TxnId       string `protobuf:"bytes,5,opt,name=txnId,proto3" json:"txnId,omitempty"`
}

this line is used by starport scaffolding # proto/tx/message

func NewMsgOnrInr

func NewMsgOnrInr(creator string, amount uint64, blockHeight uint64, result string, txnId string) *MsgOnrInr

func (*MsgOnrInr) Descriptor

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

func (*MsgOnrInr) GetAmount

func (m *MsgOnrInr) GetAmount() uint64

func (*MsgOnrInr) GetBlockHeight

func (m *MsgOnrInr) GetBlockHeight() uint64

func (*MsgOnrInr) GetConcensusKey

func (c *MsgOnrInr) GetConcensusKey() string

GetConcensusKey returns a key the oracle will use of vote consensus for deterministic results it should be the same as the hash of the content for nondeterministic content it should be a constant

func (*MsgOnrInr) GetCreator

func (m *MsgOnrInr) GetCreator() string

func (*MsgOnrInr) GetResult

func (m *MsgOnrInr) GetResult() string

func (*MsgOnrInr) GetRoundID

func (c *MsgOnrInr) GetRoundID() uint64

GetRoundID returns the block height for when the data was used.

func (*MsgOnrInr) GetSignBytes

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

func (*MsgOnrInr) GetSigners

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

func (*MsgOnrInr) GetTxnId

func (m *MsgOnrInr) GetTxnId() string

func (*MsgOnrInr) Hash

func (c *MsgOnrInr) Hash() tmbytes.HexBytes

Hash returns the hash of an Claim Content.

func (*MsgOnrInr) Marshal

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

func (*MsgOnrInr) MarshalTo

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

func (*MsgOnrInr) MarshalToSizedBuffer

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

func (*MsgOnrInr) ProtoMessage

func (*MsgOnrInr) ProtoMessage()

func (*MsgOnrInr) Reset

func (m *MsgOnrInr) Reset()

func (*MsgOnrInr) Route

func (msg *MsgOnrInr) Route() string

func (*MsgOnrInr) Size

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

func (*MsgOnrInr) String

func (m *MsgOnrInr) String() string

func (*MsgOnrInr) Type

func (msg *MsgOnrInr) Type() string

func (*MsgOnrInr) Unmarshal

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

func (*MsgOnrInr) ValidateBasic

func (msg *MsgOnrInr) ValidateBasic() error

func (*MsgOnrInr) XXX_DiscardUnknown

func (m *MsgOnrInr) XXX_DiscardUnknown()

func (*MsgOnrInr) XXX_Marshal

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

func (*MsgOnrInr) XXX_Merge

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

func (*MsgOnrInr) XXX_Size

func (m *MsgOnrInr) XXX_Size() int

func (*MsgOnrInr) XXX_Unmarshal

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

type MsgOnrInrResponse

type MsgOnrInrResponse struct {
}

func (*MsgOnrInrResponse) Descriptor

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

func (*MsgOnrInrResponse) Marshal

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

func (*MsgOnrInrResponse) MarshalTo

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

func (*MsgOnrInrResponse) MarshalToSizedBuffer

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

func (*MsgOnrInrResponse) ProtoMessage

func (*MsgOnrInrResponse) ProtoMessage()

func (*MsgOnrInrResponse) Reset

func (m *MsgOnrInrResponse) Reset()

func (*MsgOnrInrResponse) Size

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

func (*MsgOnrInrResponse) String

func (m *MsgOnrInrResponse) String() string

func (*MsgOnrInrResponse) Unmarshal

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

func (*MsgOnrInrResponse) XXX_DiscardUnknown

func (m *MsgOnrInrResponse) XXX_DiscardUnknown()

func (*MsgOnrInrResponse) XXX_Marshal

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

func (*MsgOnrInrResponse) XXX_Merge

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

func (*MsgOnrInrResponse) XXX_Size

func (m *MsgOnrInrResponse) XXX_Size() int

func (*MsgOnrInrResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	OnrInr(context.Context, *MsgOnrInr) (*MsgOnrInrResponse, error)
}

MsgServer is the server API for Msg service.

type QueryClient

type QueryClient interface {
}

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 QueryServer

type QueryServer interface {
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) OnrInr

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

Jump to

Keyboard shortcuts

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