Documentation ¶
Overview ¶
Package types defines the message types for the cert module.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CertificateStoreKey(id uint64) []byte
- func CertificatesStoreKey() []byte
- func CertifierAliasStoreKey(alias string) []byte
- func CertifierAliasesStoreKey() []byte
- func CertifierStoreKey(certifier sdk.AccAddress) []byte
- func CertifiersStoreKey() []byte
- func LibrariesStoreKey() []byte
- func LibraryStoreKey(library sdk.AccAddress) []byte
- func NextCertificateIDStoreKey() []byte
- func PlatformStoreKey(validator cryptotypes.PubKey) []byte
- func PlatformsStoreKey() []byte
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 ValidateGenesis(bz json.RawMessage) error
- func ValidatorStoreKey(validator cryptotypes.PubKey) []byte
- func ValidatorsStoreKey() []byte
- type AccountKeeper
- type AddOrRemove
- type Auditing
- func (*Auditing) Descriptor() ([]byte, []int)
- func (m *Auditing) GetContent() string
- func (m *Auditing) Marshal() (dAtA []byte, err error)
- func (m *Auditing) MarshalTo(dAtA []byte) (int, error)
- func (m *Auditing) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Auditing) ProtoMessage()
- func (m *Auditing) Reset()
- func (m *Auditing) Size() (n int)
- func (m *Auditing) String() string
- func (m *Auditing) Unmarshal(dAtA []byte) error
- func (m *Auditing) XXX_DiscardUnknown()
- func (m *Auditing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Auditing) XXX_Merge(src proto.Message)
- func (m *Auditing) XXX_Size() int
- func (m *Auditing) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type BountyAdmin
- func (*BountyAdmin) Descriptor() ([]byte, []int)
- func (m *BountyAdmin) GetContent() string
- func (m *BountyAdmin) Marshal() (dAtA []byte, err error)
- func (m *BountyAdmin) MarshalTo(dAtA []byte) (int, error)
- func (m *BountyAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BountyAdmin) ProtoMessage()
- func (m *BountyAdmin) Reset()
- func (m *BountyAdmin) Size() (n int)
- func (m *BountyAdmin) String() string
- func (m *BountyAdmin) Unmarshal(dAtA []byte) error
- func (m *BountyAdmin) XXX_DiscardUnknown()
- func (m *BountyAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BountyAdmin) XXX_Merge(src proto.Message)
- func (m *BountyAdmin) XXX_Size() int
- func (m *BountyAdmin) XXX_Unmarshal(b []byte) error
- type Certificate
- func (*Certificate) Descriptor() ([]byte, []int)
- func (c Certificate) FormattedCompilationContent() []KVPair
- func (c Certificate) GetCertifier() sdk.AccAddress
- func (c Certificate) GetContent() Content
- func (c Certificate) GetContentString() string
- func (m *Certificate) Marshal() (dAtA []byte, err error)
- func (m *Certificate) MarshalTo(dAtA []byte) (int, error)
- func (m *Certificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Certificate) ProtoMessage()
- func (m *Certificate) Reset()
- func (m *Certificate) Size() (n int)
- func (m *Certificate) String() string
- func (c Certificate) ToString() string
- func (m *Certificate) Unmarshal(dAtA []byte) error
- func (c Certificate) UnpackInterfaces(unpacker codecTypes.AnyUnpacker) error
- func (m *Certificate) XXX_DiscardUnknown()
- func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Certificate) XXX_Merge(src proto.Message)
- func (m *Certificate) XXX_Size() int
- func (m *Certificate) XXX_Unmarshal(b []byte) error
- type CertificateType
- type Certifier
- func (*Certifier) Descriptor() ([]byte, []int)
- func (m *Certifier) Marshal() (dAtA []byte, err error)
- func (m *Certifier) MarshalTo(dAtA []byte) (int, error)
- func (m *Certifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Certifier) ProtoMessage()
- func (m *Certifier) Reset()
- func (m *Certifier) Size() (n int)
- func (m *Certifier) String() string
- func (m *Certifier) Unmarshal(dAtA []byte) error
- func (m *Certifier) XXX_DiscardUnknown()
- func (m *Certifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Certifier) XXX_Merge(src proto.Message)
- func (m *Certifier) XXX_Size() int
- func (m *Certifier) XXX_Unmarshal(b []byte) error
- type CertifierUpdateProposal
- func (*CertifierUpdateProposal) Descriptor() ([]byte, []int)
- func (cup CertifierUpdateProposal) GetDescription() string
- func (cup CertifierUpdateProposal) GetTitle() string
- func (m *CertifierUpdateProposal) Marshal() (dAtA []byte, err error)
- func (m *CertifierUpdateProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *CertifierUpdateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cup CertifierUpdateProposal) ProposalRoute() string
- func (cup CertifierUpdateProposal) ProposalType() string
- func (*CertifierUpdateProposal) ProtoMessage()
- func (m *CertifierUpdateProposal) Reset()
- func (m *CertifierUpdateProposal) Size() (n int)
- func (m *CertifierUpdateProposal) String() string
- func (m *CertifierUpdateProposal) Unmarshal(dAtA []byte) error
- func (cup CertifierUpdateProposal) ValidateBasic() error
- func (m *CertifierUpdateProposal) XXX_DiscardUnknown()
- func (m *CertifierUpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertifierUpdateProposal) XXX_Merge(src proto.Message)
- func (m *CertifierUpdateProposal) XXX_Size() int
- func (m *CertifierUpdateProposal) XXX_Unmarshal(b []byte) error
- type Certifiers
- type Compilation
- func (*Compilation) Descriptor() ([]byte, []int)
- func (m *Compilation) GetContent() string
- func (m *Compilation) Marshal() (dAtA []byte, err error)
- func (m *Compilation) MarshalTo(dAtA []byte) (int, error)
- func (m *Compilation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Compilation) ProtoMessage()
- func (m *Compilation) Reset()
- func (m *Compilation) Size() (n int)
- func (m *Compilation) String() string
- func (m *Compilation) Unmarshal(dAtA []byte) error
- func (m *Compilation) XXX_DiscardUnknown()
- func (m *Compilation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Compilation) XXX_Merge(src proto.Message)
- func (m *Compilation) XXX_Size() int
- func (m *Compilation) XXX_Unmarshal(b []byte) error
- type CompilationContent
- func (*CompilationContent) Descriptor() ([]byte, []int)
- func (m *CompilationContent) Marshal() (dAtA []byte, err error)
- func (m *CompilationContent) MarshalTo(dAtA []byte) (int, error)
- func (m *CompilationContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CompilationContent) ProtoMessage()
- func (m *CompilationContent) Reset()
- func (m *CompilationContent) Size() (n int)
- func (m *CompilationContent) String() string
- func (m *CompilationContent) Unmarshal(dAtA []byte) error
- func (m *CompilationContent) XXX_DiscardUnknown()
- func (m *CompilationContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompilationContent) XXX_Merge(src proto.Message)
- func (m *CompilationContent) XXX_Size() int
- func (m *CompilationContent) XXX_Unmarshal(b []byte) error
- type Content
- type ConversionToShentuAddrRequest
- func (*ConversionToShentuAddrRequest) Descriptor() ([]byte, []int)
- func (m *ConversionToShentuAddrRequest) GetAddress() string
- func (m *ConversionToShentuAddrRequest) Marshal() (dAtA []byte, err error)
- func (m *ConversionToShentuAddrRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ConversionToShentuAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConversionToShentuAddrRequest) ProtoMessage()
- func (m *ConversionToShentuAddrRequest) Reset()
- func (m *ConversionToShentuAddrRequest) Size() (n int)
- func (m *ConversionToShentuAddrRequest) String() string
- func (m *ConversionToShentuAddrRequest) Unmarshal(dAtA []byte) error
- func (m *ConversionToShentuAddrRequest) XXX_DiscardUnknown()
- func (m *ConversionToShentuAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConversionToShentuAddrRequest) XXX_Merge(src proto.Message)
- func (m *ConversionToShentuAddrRequest) XXX_Size() int
- func (m *ConversionToShentuAddrRequest) XXX_Unmarshal(b []byte) error
- type ConversionToShentuAddrResponse
- func (*ConversionToShentuAddrResponse) Descriptor() ([]byte, []int)
- func (m *ConversionToShentuAddrResponse) GetAddress() string
- func (m *ConversionToShentuAddrResponse) Marshal() (dAtA []byte, err error)
- func (m *ConversionToShentuAddrResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ConversionToShentuAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConversionToShentuAddrResponse) ProtoMessage()
- func (m *ConversionToShentuAddrResponse) Reset()
- func (m *ConversionToShentuAddrResponse) Size() (n int)
- func (m *ConversionToShentuAddrResponse) String() string
- func (m *ConversionToShentuAddrResponse) Unmarshal(dAtA []byte) error
- func (m *ConversionToShentuAddrResponse) XXX_DiscardUnknown()
- func (m *ConversionToShentuAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConversionToShentuAddrResponse) XXX_Merge(src proto.Message)
- func (m *ConversionToShentuAddrResponse) XXX_Size() int
- func (m *ConversionToShentuAddrResponse) XXX_Unmarshal(b []byte) error
- type General
- func (*General) Descriptor() ([]byte, []int)
- func (m *General) GetContent() string
- func (m *General) Marshal() (dAtA []byte, err error)
- func (m *General) MarshalTo(dAtA []byte) (int, error)
- func (m *General) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*General) ProtoMessage()
- func (m *General) Reset()
- func (m *General) Size() (n int)
- func (m *General) String() string
- func (m *General) Unmarshal(dAtA []byte) error
- func (m *General) XXX_DiscardUnknown()
- func (m *General) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *General) XXX_Merge(src proto.Message)
- func (m *General) XXX_Size() int
- func (m *General) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (g GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) 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 Identity
- func (*Identity) Descriptor() ([]byte, []int)
- func (m *Identity) GetContent() string
- func (m *Identity) Marshal() (dAtA []byte, err error)
- func (m *Identity) MarshalTo(dAtA []byte) (int, error)
- func (m *Identity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Identity) ProtoMessage()
- func (m *Identity) Reset()
- func (m *Identity) Size() (n int)
- func (m *Identity) String() string
- func (m *Identity) Unmarshal(dAtA []byte) error
- func (m *Identity) XXX_DiscardUnknown()
- func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Identity) XXX_Merge(src proto.Message)
- func (m *Identity) XXX_Size() int
- func (m *Identity) XXX_Unmarshal(b []byte) error
- type KVPair
- func (*KVPair) Descriptor() ([]byte, []int)
- func (m *KVPair) GetKey() string
- func (m *KVPair) GetValue() string
- func (m *KVPair) Marshal() (dAtA []byte, err error)
- func (m *KVPair) MarshalTo(dAtA []byte) (int, error)
- func (m *KVPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KVPair) ProtoMessage()
- func (m *KVPair) Reset()
- func (m *KVPair) Size() (n int)
- func (m *KVPair) String() string
- func (m *KVPair) Unmarshal(dAtA []byte) error
- func (m *KVPair) XXX_DiscardUnknown()
- func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KVPair) XXX_Merge(src proto.Message)
- func (m *KVPair) XXX_Size() int
- func (m *KVPair) XXX_Unmarshal(b []byte) error
- type Libraries
- type Library
- func (*Library) Descriptor() ([]byte, []int)
- func (m *Library) Marshal() (dAtA []byte, err error)
- func (m *Library) MarshalTo(dAtA []byte) (int, error)
- func (m *Library) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Library) ProtoMessage()
- func (m *Library) Reset()
- func (m *Library) Size() (n int)
- func (m *Library) String() string
- func (m *Library) Unmarshal(dAtA []byte) error
- func (m *Library) XXX_DiscardUnknown()
- func (m *Library) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Library) XXX_Merge(src proto.Message)
- func (m *Library) XXX_Size() int
- func (m *Library) XXX_Unmarshal(b []byte) error
- type MsgCertifyPlatform
- func (*MsgCertifyPlatform) Descriptor() ([]byte, []int)
- func (m MsgCertifyPlatform) GetSignBytes() []byte
- func (m MsgCertifyPlatform) GetSigners() []sdk.AccAddress
- func (m *MsgCertifyPlatform) Marshal() (dAtA []byte, err error)
- func (m *MsgCertifyPlatform) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCertifyPlatform) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCertifyPlatform) ProtoMessage()
- func (m *MsgCertifyPlatform) Reset()
- func (m MsgCertifyPlatform) Route() string
- func (m *MsgCertifyPlatform) Size() (n int)
- func (m *MsgCertifyPlatform) String() string
- func (m MsgCertifyPlatform) Type() string
- func (m *MsgCertifyPlatform) Unmarshal(dAtA []byte) error
- func (m MsgCertifyPlatform) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m MsgCertifyPlatform) ValidateBasic() error
- func (m *MsgCertifyPlatform) XXX_DiscardUnknown()
- func (m *MsgCertifyPlatform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCertifyPlatform) XXX_Merge(src proto.Message)
- func (m *MsgCertifyPlatform) XXX_Size() int
- func (m *MsgCertifyPlatform) XXX_Unmarshal(b []byte) error
- type MsgCertifyPlatformResponse
- func (*MsgCertifyPlatformResponse) Descriptor() ([]byte, []int)
- func (m *MsgCertifyPlatformResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCertifyPlatformResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCertifyPlatformResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCertifyPlatformResponse) ProtoMessage()
- func (m *MsgCertifyPlatformResponse) Reset()
- func (m *MsgCertifyPlatformResponse) Size() (n int)
- func (m *MsgCertifyPlatformResponse) String() string
- func (m *MsgCertifyPlatformResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCertifyPlatformResponse) XXX_DiscardUnknown()
- func (m *MsgCertifyPlatformResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCertifyPlatformResponse) XXX_Merge(src proto.Message)
- func (m *MsgCertifyPlatformResponse) XXX_Size() int
- func (m *MsgCertifyPlatformResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgIssueCertificate
- func (*MsgIssueCertificate) Descriptor() ([]byte, []int)
- func (m MsgIssueCertificate) GetSignBytes() []byte
- func (m MsgIssueCertificate) GetSigners() []sdk.AccAddress
- func (m *MsgIssueCertificate) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueCertificate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueCertificate) ProtoMessage()
- func (m *MsgIssueCertificate) Reset()
- func (m MsgIssueCertificate) Route() string
- func (m *MsgIssueCertificate) Size() (n int)
- func (m *MsgIssueCertificate) String() string
- func (m MsgIssueCertificate) Type() string
- func (m *MsgIssueCertificate) Unmarshal(dAtA []byte) error
- func (m MsgIssueCertificate) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m MsgIssueCertificate) ValidateBasic() error
- func (m *MsgIssueCertificate) XXX_DiscardUnknown()
- func (m *MsgIssueCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueCertificate) XXX_Merge(src proto.Message)
- func (m *MsgIssueCertificate) XXX_Size() int
- func (m *MsgIssueCertificate) XXX_Unmarshal(b []byte) error
- type MsgIssueCertificateResponse
- func (*MsgIssueCertificateResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueCertificateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueCertificateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueCertificateResponse) ProtoMessage()
- func (m *MsgIssueCertificateResponse) Reset()
- func (m *MsgIssueCertificateResponse) Size() (n int)
- func (m *MsgIssueCertificateResponse) String() string
- func (m *MsgIssueCertificateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueCertificateResponse) XXX_DiscardUnknown()
- func (m *MsgIssueCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueCertificateResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueCertificateResponse) XXX_Size() int
- func (m *MsgIssueCertificateResponse) XXX_Unmarshal(b []byte) error
- type MsgProposeCertifier
- func (*MsgProposeCertifier) Descriptor() ([]byte, []int)
- func (m MsgProposeCertifier) GetSignBytes() []byte
- func (m MsgProposeCertifier) GetSigners() []sdk.AccAddress
- func (m *MsgProposeCertifier) Marshal() (dAtA []byte, err error)
- func (m *MsgProposeCertifier) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProposeCertifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProposeCertifier) ProtoMessage()
- func (m *MsgProposeCertifier) Reset()
- func (m MsgProposeCertifier) Route() string
- func (m *MsgProposeCertifier) Size() (n int)
- func (m *MsgProposeCertifier) String() string
- func (m MsgProposeCertifier) Type() string
- func (m *MsgProposeCertifier) Unmarshal(dAtA []byte) error
- func (m MsgProposeCertifier) ValidateBasic() error
- func (m *MsgProposeCertifier) XXX_DiscardUnknown()
- func (m *MsgProposeCertifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProposeCertifier) XXX_Merge(src proto.Message)
- func (m *MsgProposeCertifier) XXX_Size() int
- func (m *MsgProposeCertifier) XXX_Unmarshal(b []byte) error
- type MsgProposeCertifierResponse
- func (*MsgProposeCertifierResponse) Descriptor() ([]byte, []int)
- func (m *MsgProposeCertifierResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgProposeCertifierResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProposeCertifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProposeCertifierResponse) ProtoMessage()
- func (m *MsgProposeCertifierResponse) Reset()
- func (m *MsgProposeCertifierResponse) Size() (n int)
- func (m *MsgProposeCertifierResponse) String() string
- func (m *MsgProposeCertifierResponse) Unmarshal(dAtA []byte) error
- func (m *MsgProposeCertifierResponse) XXX_DiscardUnknown()
- func (m *MsgProposeCertifierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProposeCertifierResponse) XXX_Merge(src proto.Message)
- func (m *MsgProposeCertifierResponse) XXX_Size() int
- func (m *MsgProposeCertifierResponse) XXX_Unmarshal(b []byte) error
- type MsgRevokeCertificate
- func (*MsgRevokeCertificate) Descriptor() ([]byte, []int)
- func (m MsgRevokeCertificate) GetSignBytes() []byte
- func (m MsgRevokeCertificate) GetSigners() []sdk.AccAddress
- func (m *MsgRevokeCertificate) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeCertificate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeCertificate) ProtoMessage()
- func (m *MsgRevokeCertificate) Reset()
- func (m MsgRevokeCertificate) Route() string
- func (m *MsgRevokeCertificate) Size() (n int)
- func (m *MsgRevokeCertificate) String() string
- func (m MsgRevokeCertificate) Type() string
- func (m *MsgRevokeCertificate) Unmarshal(dAtA []byte) error
- func (m MsgRevokeCertificate) ValidateBasic() error
- func (m *MsgRevokeCertificate) XXX_DiscardUnknown()
- func (m *MsgRevokeCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeCertificate) XXX_Merge(src proto.Message)
- func (m *MsgRevokeCertificate) XXX_Size() int
- func (m *MsgRevokeCertificate) XXX_Unmarshal(b []byte) error
- type MsgRevokeCertificateResponse
- func (*MsgRevokeCertificateResponse) Descriptor() ([]byte, []int)
- func (m *MsgRevokeCertificateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeCertificateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeCertificateResponse) ProtoMessage()
- func (m *MsgRevokeCertificateResponse) Reset()
- func (m *MsgRevokeCertificateResponse) Size() (n int)
- func (m *MsgRevokeCertificateResponse) String() string
- func (m *MsgRevokeCertificateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRevokeCertificateResponse) XXX_DiscardUnknown()
- func (m *MsgRevokeCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeCertificateResponse) XXX_Merge(src proto.Message)
- func (m *MsgRevokeCertificateResponse) XXX_Size() int
- func (m *MsgRevokeCertificateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type OracleOperator
- func (*OracleOperator) Descriptor() ([]byte, []int)
- func (m *OracleOperator) GetContent() string
- func (m *OracleOperator) Marshal() (dAtA []byte, err error)
- func (m *OracleOperator) MarshalTo(dAtA []byte) (int, error)
- func (m *OracleOperator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OracleOperator) ProtoMessage()
- func (m *OracleOperator) Reset()
- func (m *OracleOperator) Size() (n int)
- func (m *OracleOperator) String() string
- func (m *OracleOperator) Unmarshal(dAtA []byte) error
- func (m *OracleOperator) XXX_DiscardUnknown()
- func (m *OracleOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleOperator) XXX_Merge(src proto.Message)
- func (m *OracleOperator) XXX_Size() int
- func (m *OracleOperator) XXX_Unmarshal(b []byte) error
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)
- func (m *Platform) Marshal() (dAtA []byte, err error)
- func (m *Platform) MarshalTo(dAtA []byte) (int, error)
- func (m *Platform) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Platform) ProtoMessage()
- func (m *Platform) Reset()
- func (m *Platform) Size() (n int)
- func (m *Platform) String() string
- func (m *Platform) Unmarshal(dAtA []byte) error
- func (p Platform) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *Platform) XXX_DiscardUnknown()
- func (m *Platform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Platform) XXX_Merge(src proto.Message)
- func (m *Platform) XXX_Size() int
- func (m *Platform) XXX_Unmarshal(b []byte) error
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (m *Proof) GetContent() string
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type QueryCertificateRequest
- func (*QueryCertificateRequest) Descriptor() ([]byte, []int)
- func (m *QueryCertificateRequest) GetCertificateId() uint64
- func (m *QueryCertificateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCertificateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertificateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertificateRequest) ProtoMessage()
- func (m *QueryCertificateRequest) Reset()
- func (m *QueryCertificateRequest) Size() (n int)
- func (m *QueryCertificateRequest) String() string
- func (m *QueryCertificateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCertificateRequest) XXX_DiscardUnknown()
- func (m *QueryCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertificateRequest) XXX_Merge(src proto.Message)
- func (m *QueryCertificateRequest) XXX_Size() int
- func (m *QueryCertificateRequest) XXX_Unmarshal(b []byte) error
- type QueryCertificateResponse
- func (*QueryCertificateResponse) Descriptor() ([]byte, []int)
- func (m *QueryCertificateResponse) GetCertificate() Certificate
- func (m *QueryCertificateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCertificateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertificateResponse) ProtoMessage()
- func (m *QueryCertificateResponse) Reset()
- func (m *QueryCertificateResponse) Size() (n int)
- func (m *QueryCertificateResponse) String() string
- func (m *QueryCertificateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCertificateResponse) XXX_DiscardUnknown()
- func (m *QueryCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertificateResponse) XXX_Merge(src proto.Message)
- func (m *QueryCertificateResponse) XXX_Size() int
- func (m *QueryCertificateResponse) XXX_Unmarshal(b []byte) error
- type QueryCertificatesParams
- type QueryCertificatesRequest
- func (*QueryCertificatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryCertificatesRequest) GetCertificateType() string
- func (m *QueryCertificatesRequest) GetCertifier() string
- func (m *QueryCertificatesRequest) GetPagination() *query.PageRequest
- func (m *QueryCertificatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCertificatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertificatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertificatesRequest) ProtoMessage()
- func (m *QueryCertificatesRequest) Reset()
- func (m *QueryCertificatesRequest) Size() (n int)
- func (m *QueryCertificatesRequest) String() string
- func (m *QueryCertificatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCertificatesRequest) XXX_DiscardUnknown()
- func (m *QueryCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertificatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryCertificatesRequest) XXX_Size() int
- func (m *QueryCertificatesRequest) XXX_Unmarshal(b []byte) error
- type QueryCertificatesResponse
- func (*QueryCertificatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryCertificatesResponse) GetCertificates() []QueryCertificateResponse
- func (m *QueryCertificatesResponse) GetTotal() uint64
- func (m *QueryCertificatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCertificatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertificatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertificatesResponse) ProtoMessage()
- func (m *QueryCertificatesResponse) Reset()
- func (m *QueryCertificatesResponse) Size() (n int)
- func (m *QueryCertificatesResponse) String() string
- func (m *QueryCertificatesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCertificatesResponse) XXX_DiscardUnknown()
- func (m *QueryCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertificatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryCertificatesResponse) XXX_Size() int
- func (m *QueryCertificatesResponse) XXX_Unmarshal(b []byte) error
- type QueryCertifierRequest
- func (*QueryCertifierRequest) Descriptor() ([]byte, []int)
- func (m *QueryCertifierRequest) GetAddress() string
- func (m *QueryCertifierRequest) GetAlias() string
- func (m *QueryCertifierRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCertifierRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertifierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertifierRequest) ProtoMessage()
- func (m *QueryCertifierRequest) Reset()
- func (m *QueryCertifierRequest) Size() (n int)
- func (m *QueryCertifierRequest) String() string
- func (m *QueryCertifierRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCertifierRequest) XXX_DiscardUnknown()
- func (m *QueryCertifierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertifierRequest) XXX_Merge(src proto.Message)
- func (m *QueryCertifierRequest) XXX_Size() int
- func (m *QueryCertifierRequest) XXX_Unmarshal(b []byte) error
- type QueryCertifierResponse
- func (*QueryCertifierResponse) Descriptor() ([]byte, []int)
- func (m *QueryCertifierResponse) GetCertifier() Certifier
- func (m *QueryCertifierResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCertifierResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertifierResponse) ProtoMessage()
- func (m *QueryCertifierResponse) Reset()
- func (m *QueryCertifierResponse) Size() (n int)
- func (m *QueryCertifierResponse) String() string
- func (m *QueryCertifierResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCertifierResponse) XXX_DiscardUnknown()
- func (m *QueryCertifierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertifierResponse) XXX_Merge(src proto.Message)
- func (m *QueryCertifierResponse) XXX_Size() int
- func (m *QueryCertifierResponse) XXX_Unmarshal(b []byte) error
- type QueryCertifiersRequest
- func (*QueryCertifiersRequest) Descriptor() ([]byte, []int)
- func (m *QueryCertifiersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCertifiersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertifiersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertifiersRequest) ProtoMessage()
- func (m *QueryCertifiersRequest) Reset()
- func (m *QueryCertifiersRequest) Size() (n int)
- func (m *QueryCertifiersRequest) String() string
- func (m *QueryCertifiersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCertifiersRequest) XXX_DiscardUnknown()
- func (m *QueryCertifiersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertifiersRequest) XXX_Merge(src proto.Message)
- func (m *QueryCertifiersRequest) XXX_Size() int
- func (m *QueryCertifiersRequest) XXX_Unmarshal(b []byte) error
- type QueryCertifiersResponse
- func (*QueryCertifiersResponse) Descriptor() ([]byte, []int)
- func (m *QueryCertifiersResponse) GetCertifiers() []Certifier
- func (m *QueryCertifiersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCertifiersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCertifiersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCertifiersResponse) ProtoMessage()
- func (m *QueryCertifiersResponse) Reset()
- func (m *QueryCertifiersResponse) Size() (n int)
- func (m *QueryCertifiersResponse) String() string
- func (m *QueryCertifiersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCertifiersResponse) XXX_DiscardUnknown()
- func (m *QueryCertifiersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCertifiersResponse) XXX_Merge(src proto.Message)
- func (m *QueryCertifiersResponse) XXX_Size() int
- func (m *QueryCertifiersResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryPlatformRequest
- func (*QueryPlatformRequest) Descriptor() ([]byte, []int)
- func (m *QueryPlatformRequest) GetPubkey() *types.Any
- func (m *QueryPlatformRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPlatformRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlatformRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlatformRequest) ProtoMessage()
- func (m *QueryPlatformRequest) Reset()
- func (m *QueryPlatformRequest) Size() (n int)
- func (m *QueryPlatformRequest) String() string
- func (m *QueryPlatformRequest) Unmarshal(dAtA []byte) error
- func (q QueryPlatformRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryPlatformRequest) XXX_DiscardUnknown()
- func (m *QueryPlatformRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlatformRequest) XXX_Merge(src proto.Message)
- func (m *QueryPlatformRequest) XXX_Size() int
- func (m *QueryPlatformRequest) XXX_Unmarshal(b []byte) error
- type QueryPlatformResponse
- func (*QueryPlatformResponse) Descriptor() ([]byte, []int)
- func (m *QueryPlatformResponse) GetPlatform() Platform
- func (m *QueryPlatformResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPlatformResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPlatformResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPlatformResponse) ProtoMessage()
- func (m *QueryPlatformResponse) Reset()
- func (m *QueryPlatformResponse) Size() (n int)
- func (m *QueryPlatformResponse) String() string
- func (m *QueryPlatformResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPlatformResponse) XXX_DiscardUnknown()
- func (m *QueryPlatformResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPlatformResponse) XXX_Merge(src proto.Message)
- func (m *QueryPlatformResponse) XXX_Size() int
- func (m *QueryPlatformResponse) XXX_Unmarshal(b []byte) error
- type QueryResCertifiers
- type QueryResValidator
- type QueryResValidators
- type QueryServer
- type ShieldPoolCreator
- func (*ShieldPoolCreator) Descriptor() ([]byte, []int)
- func (m *ShieldPoolCreator) GetContent() string
- func (m *ShieldPoolCreator) Marshal() (dAtA []byte, err error)
- func (m *ShieldPoolCreator) MarshalTo(dAtA []byte) (int, error)
- func (m *ShieldPoolCreator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShieldPoolCreator) ProtoMessage()
- func (m *ShieldPoolCreator) Reset()
- func (m *ShieldPoolCreator) Size() (n int)
- func (m *ShieldPoolCreator) String() string
- func (m *ShieldPoolCreator) Unmarshal(dAtA []byte) error
- func (m *ShieldPoolCreator) XXX_DiscardUnknown()
- func (m *ShieldPoolCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShieldPoolCreator) XXX_Merge(src proto.Message)
- func (m *ShieldPoolCreator) XXX_Size() int
- func (m *ShieldPoolCreator) XXX_Unmarshal(b []byte) error
- type SlashingKeeper
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CertifyPlatform(ctx context.Context, req *MsgCertifyPlatform) (*MsgCertifyPlatformResponse, error)
- func (*UnimplementedMsgServer) IssueCertificate(ctx context.Context, req *MsgIssueCertificate) (*MsgIssueCertificateResponse, error)
- func (*UnimplementedMsgServer) ProposeCertifier(ctx context.Context, req *MsgProposeCertifier) (*MsgProposeCertifierResponse, error)
- func (*UnimplementedMsgServer) RevokeCertificate(ctx context.Context, req *MsgRevokeCertificate) (*MsgRevokeCertificateResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AddrConversion(ctx context.Context, req *ConversionToShentuAddrRequest) (*ConversionToShentuAddrResponse, error)
- func (*UnimplementedQueryServer) Certificate(ctx context.Context, req *QueryCertificateRequest) (*QueryCertificateResponse, error)
- func (*UnimplementedQueryServer) Certificates(ctx context.Context, req *QueryCertificatesRequest) (*QueryCertificatesResponse, error)
- func (*UnimplementedQueryServer) Certifier(ctx context.Context, req *QueryCertifierRequest) (*QueryCertifierResponse, error)
- func (*UnimplementedQueryServer) Certifiers(ctx context.Context, req *QueryCertifiersRequest) (*QueryCertifiersResponse, error)
- func (*UnimplementedQueryServer) Platform(ctx context.Context, req *QueryPlatformRequest) (*QueryPlatformResponse, error)
Constants ¶
const ( EventTypeCertifyCompilation = "certify_compilation" EventTypeCertify = "certify" EventTypeRevokeCertificate = "revoke_certificate" )
const ( TypeMsgProposeCertifier = "propose_certifier" TypeMsgCertifyValidator = "certify_validator" TypeMsgDecertifyValidator = "decertify_validator" TypeMsgCertifyGeneral = "certify_general" TypeMsgRevokeCertificate = "revoke_certificate" TypeMsgCertifyCompilation = "certify_compilation" TypeMsgCertifyPlatform = "certify_platform" )
const ( // ModuleName is the name of the cert module ModuleName = "cert" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route for the cert module QuerierRoute = ModuleName // RouterKey is the msg router key for the cert module RouterKey = ModuleName )
const ( Add AddOrRemove = false Remove AddOrRemove = true StringAdd = "add" StringRemove = "remove" )
const ( // QueryCertifier is the query endpoint for certifier information. QueryCertifier = "certifier" // QueryCertifiers is the query endpoint for all certifiers information. QueryCertifiers = "certifiers" // QueryCertifierByAlias QueryCertifierByAlias = "certifieralias" // QueryValidator is the query endpoint for validator node certification. QueryCertifiedValidator = "validator" // QueryValidators is the query endpoint for all certified validator nodes. QueryCertifiedValidators = "validators" // QueryPlatform is the query endpoint for validator host platform. QueryPlatform = "platform" // QueryCertificate is the query endpoint for a certificate. QueryCertificate = "certificate" // QueryCertificate is the query endpoint for a certificate type. QueryCertificateType = "certificateType" // QueryCertificates is the query endpoint for certificates. QueryCertificates = "certificates" )
const (
// ProposalTypeCertifierUpdate defines the type for a CertifierUpdateProposal
ProposalTypeCertifierUpdate = "CertifierUpdate"
)
Variables ¶
var ( ErrInvalidLengthCert = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCert = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCert = fmt.Errorf("proto: unexpected end of group") )
var ( ErrUnqualifiedCertifier = sdkerrors.Register(ModuleName, errUnqualifiedCertifier, "certifier not qualified") ErrCertifierAlreadyExists = sdkerrors.Register(ModuleName, errCertifierAlreadyExists, "certifier already added") ErrCertifierNotExists = sdkerrors.Register(ModuleName, errCertifierNotExists, "certifier does not exist") ErrRepeatedAlias = sdkerrors.Register(ModuleName, errRepeatedAlias, "the alias has been used by other certifiers") ErrUnqualifiedProposer = sdkerrors.Register(ModuleName, errUnqualifiedProposer, "proposer not qualified") ErrEmptyCertifier = sdkerrors.Register(ModuleName, errEmptyCertifier, "certifier address empty") ErrAddOrRemove = sdkerrors.Register(ModuleName, errAddOrRemove, "must be `add` or `remove`") ErrInvalidCertifierAlias = sdkerrors.Register(ModuleName, errInvalidCertifierAlias, "invalid certifier alias`") ErrOnlyOneCertifier = sdkerrors.Register(ModuleName, errOnlyOneCertifier, "cannot remove only certifier") )
[1xx] Certifier
var ( ErrRejectedValidator = sdkerrors.Register(ModuleName, errRejectedValidator, "only certifiers can certify or de-certify validators") ErrValidatorCertified = sdkerrors.Register(ModuleName, errValidatorCertified, "validator has already been certified") ErrValidatorUncertified = sdkerrors.Register(ModuleName, errValidatorUncertified, "validator has not been certified") ErrTombstonedValidator = sdkerrors.Register(ModuleName, errTombstonedValidator, "validator has already been tombstoned") ErrMissingValidator = sdkerrors.Register(ModuleName, errMissingValidator, "validator missing from staking store") )
[2xx] Validator
var ( ErrCertificateNotExists = sdkerrors.Register(ModuleName, errCertificateNotExists, "certificate id does not exist") ErrCertificateGenesis = sdkerrors.Register(ModuleName, errCertificateGenesis, "invalid certificate genesis") ErrInvalidCertificateType = sdkerrors.Register(ModuleName, errInvalidCertificateType, "invalid certificate type") ErrSourceCodeHash = sdkerrors.Register(ModuleName, errSourceCodeHash, "invalid source code hash") ErrCompiler = sdkerrors.Register(ModuleName, errCompiler, "invalid compiler") ErrBytecodeHash = sdkerrors.Register(ModuleName, errBytecodeHash, "invalid bytecode hash") ErrInvalidRequestContentType = sdkerrors.Register(ModuleName, errInvalidRequestContentType, "invalid request content type") ErrUnqualifiedRevoker = sdkerrors.Register(ModuleName, errUnqualifiedRevoker, "only certifiers can revoke this certificate") )
[3xx] Certificate
var ( ErrLibraryNotExists = sdkerrors.Register(ModuleName, errLibraryNotExists, "library does not exist") ErrLibraryAlreadyExists = sdkerrors.Register(ModuleName, errLibraryAlreadyExists, "library already exists") )
[4xx] Library
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = 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 CertificateType_name = map[int32]string{
0: "CERT_TYPE_UNSPECIFIED",
1: "CERT_TYPE_COMPILATION",
2: "CERT_TYPE_AUDITING",
3: "CERT_TYPE_PROOF",
4: "CERT_TYPE_ORACLE_OPERATOR",
5: "CERT_TYPE_SHIELD_POOL_CREATOR",
6: "CERT_TYPE_IDENTITY",
7: "CERT_TYPE_GENERAL",
8: "CERT_TYPE_BOUNTY_ADMIN",
}
var CertificateType_value = map[string]int32{
"CERT_TYPE_UNSPECIFIED": 0,
"CERT_TYPE_COMPILATION": 1,
"CERT_TYPE_AUDITING": 2,
"CERT_TYPE_PROOF": 3,
"CERT_TYPE_ORACLE_OPERATOR": 4,
"CERT_TYPE_SHIELD_POOL_CREATOR": 5,
"CERT_TYPE_IDENTITY": 6,
"CERT_TYPE_GENERAL": 7,
"CERT_TYPE_BOUNTY_ADMIN": 8,
}
var ( // ModuleCdc references the global x/cert module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/cert and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func CertificateStoreKey ¶
CertificateStoreKey returns the kv-store key for accessing a given certificate (ID).
func CertificatesStoreKey ¶
func CertificatesStoreKey() []byte
CertificatesStoreKey returns the kv-store key for accessing all certificates.
func CertifierAliasStoreKey ¶
CertifierAliasStoreKey returns the kv-store key for the certifier alias.
func CertifierAliasesStoreKey ¶
func CertifierAliasesStoreKey() []byte
CertifierAliasesStoreKey returns the kv-store key for accessing aliases of all current certifiers.
func CertifierStoreKey ¶
func CertifierStoreKey(certifier sdk.AccAddress) []byte
CertifierStoreKey returns the kv-store key for the certifier registration.
func CertifiersStoreKey ¶
func CertifiersStoreKey() []byte
CertifiersStoreKey returns the kv-store key for accessing all current certifiers in the security council.
func LibrariesStoreKey ¶
func LibrariesStoreKey() []byte
LibrariesStoreKey returns the kv-store key for accessing all certificate library addresses.
func LibraryStoreKey ¶
func LibraryStoreKey(library sdk.AccAddress) []byte
LibraryStoreKey returns the kv-store key for accessing certificate library address.
func NextCertificateIDStoreKey ¶
func NextCertificateIDStoreKey() []byte
NextCertificateIDStoreKey returns the kv-store key for next certificate ID to assign.
func PlatformStoreKey ¶
func PlatformStoreKey(validator cryptotypes.PubKey) []byte
PlatformStoreKey returns the kv-store key for the validator host platform certificate.
func PlatformsStoreKey ¶
func PlatformsStoreKey() []byte
PlatformsStoreKey returns the kv-store key for accessing all platform certificates.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the x/cert interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
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 ValidateGenesis ¶
func ValidateGenesis(bz json.RawMessage) error
ValidateGenesis - validate crisis genesis data
func ValidatorStoreKey ¶
func ValidatorStoreKey(validator cryptotypes.PubKey) []byte
ValidatorStoreKey returns the kv-store key for the validator node certification.
func ValidatorsStoreKey ¶
func ValidatorsStoreKey() []byte
ValidatorsStoreKey returns the kv-store key for accessing all validator node certifications.
Types ¶
type AccountKeeper ¶
type AddOrRemove ¶
type AddOrRemove bool
func AddOrRemoveFromString ¶
func AddOrRemoveFromString(str string) (AddOrRemove, error)
func (AddOrRemove) MarshalJSON ¶
func (aor AddOrRemove) MarshalJSON() ([]byte, error)
MarshalJSON marshals to JSON using string
func (AddOrRemove) String ¶
func (aor AddOrRemove) String() string
func (*AddOrRemove) UnmarshalJSON ¶
func (aor *AddOrRemove) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals from JSON assuming Bech32 encoding
type Auditing ¶
type Auditing struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*Auditing) Descriptor ¶
func (*Auditing) GetContent ¶
func (*Auditing) MarshalToSizedBuffer ¶
func (*Auditing) ProtoMessage ¶
func (*Auditing) ProtoMessage()
func (*Auditing) XXX_DiscardUnknown ¶
func (m *Auditing) XXX_DiscardUnknown()
func (*Auditing) XXX_Marshal ¶
func (*Auditing) XXX_Unmarshal ¶
type BankKeeper ¶
type BountyAdmin ¶ added in v2.9.0
type BountyAdmin struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*BountyAdmin) Descriptor ¶ added in v2.9.0
func (*BountyAdmin) Descriptor() ([]byte, []int)
func (*BountyAdmin) GetContent ¶ added in v2.9.0
func (m *BountyAdmin) GetContent() string
func (*BountyAdmin) Marshal ¶ added in v2.9.0
func (m *BountyAdmin) Marshal() (dAtA []byte, err error)
func (*BountyAdmin) MarshalTo ¶ added in v2.9.0
func (m *BountyAdmin) MarshalTo(dAtA []byte) (int, error)
func (*BountyAdmin) MarshalToSizedBuffer ¶ added in v2.9.0
func (m *BountyAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BountyAdmin) ProtoMessage ¶ added in v2.9.0
func (*BountyAdmin) ProtoMessage()
func (*BountyAdmin) Reset ¶ added in v2.9.0
func (m *BountyAdmin) Reset()
func (*BountyAdmin) Size ¶ added in v2.9.0
func (m *BountyAdmin) Size() (n int)
func (*BountyAdmin) String ¶ added in v2.9.0
func (m *BountyAdmin) String() string
func (*BountyAdmin) Unmarshal ¶ added in v2.9.0
func (m *BountyAdmin) Unmarshal(dAtA []byte) error
func (*BountyAdmin) XXX_DiscardUnknown ¶ added in v2.9.0
func (m *BountyAdmin) XXX_DiscardUnknown()
func (*BountyAdmin) XXX_Marshal ¶ added in v2.9.0
func (m *BountyAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BountyAdmin) XXX_Merge ¶ added in v2.9.0
func (m *BountyAdmin) XXX_Merge(src proto.Message)
func (*BountyAdmin) XXX_Size ¶ added in v2.9.0
func (m *BountyAdmin) XXX_Size() int
func (*BountyAdmin) XXX_Unmarshal ¶ added in v2.9.0
func (m *BountyAdmin) XXX_Unmarshal(b []byte) error
type Certificate ¶
type Certificate struct { CertificateId uint64 `protobuf:"varint,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty" yaml:"certificate_id"` Content *types.Any `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` CompilationContent *CompilationContent `` /* 142-byte string literal not displayed */ Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Certifier string `protobuf:"bytes,5,opt,name=certifier,proto3" json:"certifier,omitempty" yaml:"certifier"` }
func NewCertificate ¶
func NewCertificate( certTypeStr, contStr, compiler, bytecodeHash, description string, certifier sdk.AccAddress, ) (Certificate, error)
NewCertificate returns a new certificate.
func (*Certificate) Descriptor ¶
func (*Certificate) Descriptor() ([]byte, []int)
func (Certificate) FormattedCompilationContent ¶
func (c Certificate) FormattedCompilationContent() []KVPair
FormattedCompilationContent returns formatted certificate content of the certificate.
func (Certificate) GetCertifier ¶
func (c Certificate) GetCertifier() sdk.AccAddress
GetCertifier returns certificer of the certificate.
func (Certificate) GetContent ¶
func (c Certificate) GetContent() Content
GetContent returns content of the certificate.
func (Certificate) GetContentString ¶
func (c Certificate) GetContentString() string
GetContentString returns string content of the certificate.
func (*Certificate) Marshal ¶
func (m *Certificate) Marshal() (dAtA []byte, err error)
func (*Certificate) MarshalToSizedBuffer ¶
func (m *Certificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) Reset ¶
func (m *Certificate) Reset()
func (*Certificate) Size ¶
func (m *Certificate) Size() (n int)
func (*Certificate) String ¶
func (m *Certificate) String() string
func (Certificate) ToString ¶ added in v2.8.0
func (c Certificate) ToString() string
func (*Certificate) Unmarshal ¶
func (m *Certificate) Unmarshal(dAtA []byte) error
func (Certificate) UnpackInterfaces ¶
func (c Certificate) UnpackInterfaces(unpacker codecTypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces.
func (*Certificate) XXX_DiscardUnknown ¶
func (m *Certificate) XXX_DiscardUnknown()
func (*Certificate) XXX_Marshal ¶
func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Certificate) XXX_Merge ¶
func (m *Certificate) XXX_Merge(src proto.Message)
func (*Certificate) XXX_Size ¶
func (m *Certificate) XXX_Size() int
func (*Certificate) XXX_Unmarshal ¶
func (m *Certificate) XXX_Unmarshal(b []byte) error
type CertificateType ¶
type CertificateType int32
const ( CertificateTypeNil CertificateType = 0 CertificateTypeCompilation CertificateType = 1 CertificateTypeAuditing CertificateType = 2 CertificateTypeProof CertificateType = 3 CertificateTypeOracleOperator CertificateType = 4 CertificateTypeShieldPoolCreator CertificateType = 5 CertificateTypeIdentity CertificateType = 6 CertificateTypeGeneral CertificateType = 7 CertificateTypeBountyAdmin CertificateType = 8 )
func CertificateTypeFromString ¶
func CertificateTypeFromString(s string) CertificateType
CertificateTypeFromString returns a certificate type by parsing a string.
func TranslateCertificateType ¶
func TranslateCertificateType(certificate Certificate) CertificateType
TranslateCertificateType determines certificate type based on content interface type switch.
func (CertificateType) EnumDescriptor ¶
func (CertificateType) EnumDescriptor() ([]byte, []int)
func (CertificateType) String ¶
func (x CertificateType) String() string
type Certifier ¶
type Certifier struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty" yaml:"alias"` Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty" yaml:"proposer"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` }
func NewCertifier ¶
func NewCertifier(address sdk.AccAddress, alias string, proposer sdk.AccAddress, description string) Certifier
NewCertifier returns a new certifier.
func (*Certifier) Descriptor ¶
func (*Certifier) MarshalToSizedBuffer ¶
func (*Certifier) ProtoMessage ¶
func (*Certifier) ProtoMessage()
func (*Certifier) XXX_DiscardUnknown ¶
func (m *Certifier) XXX_DiscardUnknown()
func (*Certifier) XXX_Marshal ¶
func (*Certifier) XXX_Unmarshal ¶
type CertifierUpdateProposal ¶
type CertifierUpdateProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty" yaml:"proposer"` Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty" yaml:"alias"` Certifier string `protobuf:"bytes,4,opt,name=certifier,proto3" json:"certifier,omitempty" yaml:"certifier"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` AddOrRemove AddOrRemove `` /* 139-byte string literal not displayed */ }
CertifierUpdateProposal adds or removes a certifier
func NewCertifierUpdateProposal ¶
func NewCertifierUpdateProposal(title, description string, certifier sdk.AccAddress, alias string, proposer sdk.AccAddress, addorremove AddOrRemove, ) *CertifierUpdateProposal
NewCertifierUpdateProposal creates a new certifier update proposal.
func (*CertifierUpdateProposal) Descriptor ¶
func (*CertifierUpdateProposal) Descriptor() ([]byte, []int)
func (CertifierUpdateProposal) GetDescription ¶
func (cup CertifierUpdateProposal) GetDescription() string
GetDescription returns the description of a certifier update proposal.
func (CertifierUpdateProposal) GetTitle ¶
func (cup CertifierUpdateProposal) GetTitle() string
GetTitle returns the title of a certifier update proposal.
func (*CertifierUpdateProposal) Marshal ¶
func (m *CertifierUpdateProposal) Marshal() (dAtA []byte, err error)
func (*CertifierUpdateProposal) MarshalTo ¶
func (m *CertifierUpdateProposal) MarshalTo(dAtA []byte) (int, error)
func (*CertifierUpdateProposal) MarshalToSizedBuffer ¶
func (m *CertifierUpdateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (CertifierUpdateProposal) ProposalRoute ¶
func (cup CertifierUpdateProposal) ProposalRoute() string
ProposalRoute returns the routing key of a certifier update proposal.
func (CertifierUpdateProposal) ProposalType ¶
func (cup CertifierUpdateProposal) ProposalType() string
ProposalType returns the type of a certifier update proposal.
func (*CertifierUpdateProposal) ProtoMessage ¶
func (*CertifierUpdateProposal) ProtoMessage()
func (*CertifierUpdateProposal) Reset ¶
func (m *CertifierUpdateProposal) Reset()
func (*CertifierUpdateProposal) Size ¶
func (m *CertifierUpdateProposal) Size() (n int)
func (*CertifierUpdateProposal) String ¶
func (m *CertifierUpdateProposal) String() string
func (*CertifierUpdateProposal) Unmarshal ¶
func (m *CertifierUpdateProposal) Unmarshal(dAtA []byte) error
func (CertifierUpdateProposal) ValidateBasic ¶
func (cup CertifierUpdateProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*CertifierUpdateProposal) XXX_DiscardUnknown ¶
func (m *CertifierUpdateProposal) XXX_DiscardUnknown()
func (*CertifierUpdateProposal) XXX_Marshal ¶
func (m *CertifierUpdateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertifierUpdateProposal) XXX_Merge ¶
func (m *CertifierUpdateProposal) XXX_Merge(src proto.Message)
func (*CertifierUpdateProposal) XXX_Size ¶
func (m *CertifierUpdateProposal) XXX_Size() int
func (*CertifierUpdateProposal) XXX_Unmarshal ¶
func (m *CertifierUpdateProposal) XXX_Unmarshal(b []byte) error
type Certifiers ¶
type Certifiers []Certifier
Certifiers is a collection of certifier objects.
func (Certifiers) String ¶
func (c Certifiers) String() (out string)
type Compilation ¶
type Compilation struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*Compilation) Descriptor ¶
func (*Compilation) Descriptor() ([]byte, []int)
func (*Compilation) GetContent ¶
func (m *Compilation) GetContent() string
func (*Compilation) Marshal ¶
func (m *Compilation) Marshal() (dAtA []byte, err error)
func (*Compilation) MarshalToSizedBuffer ¶
func (m *Compilation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Compilation) ProtoMessage ¶
func (*Compilation) ProtoMessage()
func (*Compilation) Reset ¶
func (m *Compilation) Reset()
func (*Compilation) Size ¶
func (m *Compilation) Size() (n int)
func (*Compilation) String ¶
func (m *Compilation) String() string
func (*Compilation) Unmarshal ¶
func (m *Compilation) Unmarshal(dAtA []byte) error
func (*Compilation) XXX_DiscardUnknown ¶
func (m *Compilation) XXX_DiscardUnknown()
func (*Compilation) XXX_Marshal ¶
func (m *Compilation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Compilation) XXX_Merge ¶
func (m *Compilation) XXX_Merge(src proto.Message)
func (*Compilation) XXX_Size ¶
func (m *Compilation) XXX_Size() int
func (*Compilation) XXX_Unmarshal ¶
func (m *Compilation) XXX_Unmarshal(b []byte) error
type CompilationContent ¶
type CompilationContent struct { Compiler string `protobuf:"bytes,1,opt,name=compiler,proto3" json:"compiler,omitempty" yaml:"compiler"` BytecodeHash string `protobuf:"bytes,2,opt,name=bytecode_hash,json=bytecodeHash,proto3" json:"bytecode_hash,omitempty" yaml:"bytecode_hash"` }
func NewCompilationCertificateContent ¶
func NewCompilationCertificateContent(compiler, bytecodeHash string) CompilationContent
NewCompilationCertificateContent returns a new compilation content.
func (*CompilationContent) Descriptor ¶
func (*CompilationContent) Descriptor() ([]byte, []int)
func (*CompilationContent) Marshal ¶
func (m *CompilationContent) Marshal() (dAtA []byte, err error)
func (*CompilationContent) MarshalTo ¶
func (m *CompilationContent) MarshalTo(dAtA []byte) (int, error)
func (*CompilationContent) MarshalToSizedBuffer ¶
func (m *CompilationContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CompilationContent) ProtoMessage ¶
func (*CompilationContent) ProtoMessage()
func (*CompilationContent) Reset ¶
func (m *CompilationContent) Reset()
func (*CompilationContent) Size ¶
func (m *CompilationContent) Size() (n int)
func (*CompilationContent) String ¶
func (m *CompilationContent) String() string
func (*CompilationContent) Unmarshal ¶
func (m *CompilationContent) Unmarshal(dAtA []byte) error
func (*CompilationContent) XXX_DiscardUnknown ¶
func (m *CompilationContent) XXX_DiscardUnknown()
func (*CompilationContent) XXX_Marshal ¶
func (m *CompilationContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompilationContent) XXX_Merge ¶
func (m *CompilationContent) XXX_Merge(src proto.Message)
func (*CompilationContent) XXX_Size ¶
func (m *CompilationContent) XXX_Size() int
func (*CompilationContent) XXX_Unmarshal ¶
func (m *CompilationContent) XXX_Unmarshal(b []byte) error
type Content ¶
Content is the interface for all kinds of certificate content.
func AssembleContent ¶
AssembleContent constructs a struct instance that implements content interface.
type ConversionToShentuAddrRequest ¶ added in v2.9.0
type ConversionToShentuAddrRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*ConversionToShentuAddrRequest) Descriptor ¶ added in v2.9.0
func (*ConversionToShentuAddrRequest) Descriptor() ([]byte, []int)
func (*ConversionToShentuAddrRequest) GetAddress ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) GetAddress() string
func (*ConversionToShentuAddrRequest) Marshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) Marshal() (dAtA []byte, err error)
func (*ConversionToShentuAddrRequest) MarshalTo ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) MarshalTo(dAtA []byte) (int, error)
func (*ConversionToShentuAddrRequest) MarshalToSizedBuffer ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConversionToShentuAddrRequest) ProtoMessage ¶ added in v2.9.0
func (*ConversionToShentuAddrRequest) ProtoMessage()
func (*ConversionToShentuAddrRequest) Reset ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) Reset()
func (*ConversionToShentuAddrRequest) Size ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) Size() (n int)
func (*ConversionToShentuAddrRequest) String ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) String() string
func (*ConversionToShentuAddrRequest) Unmarshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) Unmarshal(dAtA []byte) error
func (*ConversionToShentuAddrRequest) XXX_DiscardUnknown ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) XXX_DiscardUnknown()
func (*ConversionToShentuAddrRequest) XXX_Marshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConversionToShentuAddrRequest) XXX_Merge ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) XXX_Merge(src proto.Message)
func (*ConversionToShentuAddrRequest) XXX_Size ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) XXX_Size() int
func (*ConversionToShentuAddrRequest) XXX_Unmarshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrRequest) XXX_Unmarshal(b []byte) error
type ConversionToShentuAddrResponse ¶ added in v2.9.0
type ConversionToShentuAddrResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*ConversionToShentuAddrResponse) Descriptor ¶ added in v2.9.0
func (*ConversionToShentuAddrResponse) Descriptor() ([]byte, []int)
func (*ConversionToShentuAddrResponse) GetAddress ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) GetAddress() string
func (*ConversionToShentuAddrResponse) Marshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) Marshal() (dAtA []byte, err error)
func (*ConversionToShentuAddrResponse) MarshalTo ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) MarshalTo(dAtA []byte) (int, error)
func (*ConversionToShentuAddrResponse) MarshalToSizedBuffer ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConversionToShentuAddrResponse) ProtoMessage ¶ added in v2.9.0
func (*ConversionToShentuAddrResponse) ProtoMessage()
func (*ConversionToShentuAddrResponse) Reset ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) Reset()
func (*ConversionToShentuAddrResponse) Size ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) Size() (n int)
func (*ConversionToShentuAddrResponse) String ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) String() string
func (*ConversionToShentuAddrResponse) Unmarshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) Unmarshal(dAtA []byte) error
func (*ConversionToShentuAddrResponse) XXX_DiscardUnknown ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) XXX_DiscardUnknown()
func (*ConversionToShentuAddrResponse) XXX_Marshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConversionToShentuAddrResponse) XXX_Merge ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) XXX_Merge(src proto.Message)
func (*ConversionToShentuAddrResponse) XXX_Size ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) XXX_Size() int
func (*ConversionToShentuAddrResponse) XXX_Unmarshal ¶ added in v2.9.0
func (m *ConversionToShentuAddrResponse) XXX_Unmarshal(b []byte) error
type General ¶
type General struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*General) Descriptor ¶
func (*General) GetContent ¶
func (*General) MarshalToSizedBuffer ¶
func (*General) ProtoMessage ¶
func (*General) ProtoMessage()
func (*General) XXX_DiscardUnknown ¶
func (m *General) XXX_DiscardUnknown()
func (*General) XXX_Marshal ¶
func (*General) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Certifiers []Certifier `protobuf:"bytes,1,rep,name=certifiers,proto3" json:"certifiers" yaml:"certifiers"` Platforms []Platform `protobuf:"bytes,2,rep,name=platforms,proto3" json:"platforms" yaml:"platforms"` Certificates []Certificate `protobuf:"bytes,3,rep,name=certificates,proto3" json:"certificates" yaml:"certificates"` Libraries []Library `protobuf:"bytes,4,rep,name=libraries,proto3" json:"libraries" yaml:"libraries"` NextCertificateId uint64 `` /* 142-byte string literal not displayed */ }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns cert module GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(constantFee sdk.Coin, startingCertificateID uint64) GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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) UnpackInterfaces ¶
func (g GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
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 Identity ¶
type Identity struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*Identity) Descriptor ¶
func (*Identity) GetContent ¶
func (*Identity) MarshalToSizedBuffer ¶
func (*Identity) ProtoMessage ¶
func (*Identity) ProtoMessage()
func (*Identity) XXX_DiscardUnknown ¶
func (m *Identity) XXX_DiscardUnknown()
func (*Identity) XXX_Marshal ¶
func (*Identity) XXX_Unmarshal ¶
type KVPair ¶
type KVPair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*KVPair) Descriptor ¶
func (*KVPair) MarshalToSizedBuffer ¶
func (*KVPair) ProtoMessage ¶
func (*KVPair) ProtoMessage()
func (*KVPair) XXX_DiscardUnknown ¶
func (m *KVPair) XXX_DiscardUnknown()
func (*KVPair) XXX_Marshal ¶
func (*KVPair) XXX_Unmarshal ¶
type Library ¶
type Library struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Publisher string `protobuf:"bytes,2,opt,name=publisher,proto3" json:"publisher,omitempty"` }
Library is a type for certified libraries.
func (*Library) Descriptor ¶
func (*Library) MarshalToSizedBuffer ¶
func (*Library) ProtoMessage ¶
func (*Library) ProtoMessage()
func (*Library) XXX_DiscardUnknown ¶
func (m *Library) XXX_DiscardUnknown()
func (*Library) XXX_Marshal ¶
func (*Library) XXX_Unmarshal ¶
type MsgCertifyPlatform ¶
type MsgCertifyPlatform struct { Certifier string `protobuf:"bytes,1,opt,name=certifier,proto3" json:"certifier,omitempty" yaml:"certifier"` ValidatorPubkey *types.Any `protobuf:"bytes,2,opt,name=validator_pubkey,json=validatorPubkey,proto3" json:"validator_pubkey,omitempty"` Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty" yaml:"platform"` }
MsgCertifyPlatform is the message for certifying a validator's host platform.
func NewMsgCertifyPlatform ¶
func NewMsgCertifyPlatform(certifier sdk.AccAddress, pk cryptotypes.PubKey, platform string) (*MsgCertifyPlatform, error)
NewMsgCertifyPlatform returns a new validator host platform certification message.
func (*MsgCertifyPlatform) Descriptor ¶
func (*MsgCertifyPlatform) Descriptor() ([]byte, []int)
func (MsgCertifyPlatform) GetSignBytes ¶
func (m MsgCertifyPlatform) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (MsgCertifyPlatform) GetSigners ¶
func (m MsgCertifyPlatform) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgCertifyPlatform) Marshal ¶
func (m *MsgCertifyPlatform) Marshal() (dAtA []byte, err error)
func (*MsgCertifyPlatform) MarshalTo ¶
func (m *MsgCertifyPlatform) MarshalTo(dAtA []byte) (int, error)
func (*MsgCertifyPlatform) MarshalToSizedBuffer ¶
func (m *MsgCertifyPlatform) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCertifyPlatform) ProtoMessage ¶
func (*MsgCertifyPlatform) ProtoMessage()
func (*MsgCertifyPlatform) Reset ¶
func (m *MsgCertifyPlatform) Reset()
func (MsgCertifyPlatform) Route ¶
func (m MsgCertifyPlatform) Route() string
Route returns the module name.
func (*MsgCertifyPlatform) Size ¶
func (m *MsgCertifyPlatform) Size() (n int)
func (*MsgCertifyPlatform) String ¶
func (m *MsgCertifyPlatform) String() string
func (MsgCertifyPlatform) Type ¶
func (m MsgCertifyPlatform) Type() string
Type returns the action name.
func (*MsgCertifyPlatform) Unmarshal ¶
func (m *MsgCertifyPlatform) Unmarshal(dAtA []byte) error
func (MsgCertifyPlatform) UnpackInterfaces ¶
func (m MsgCertifyPlatform) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (MsgCertifyPlatform) ValidateBasic ¶
func (m MsgCertifyPlatform) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgCertifyPlatform) XXX_DiscardUnknown ¶
func (m *MsgCertifyPlatform) XXX_DiscardUnknown()
func (*MsgCertifyPlatform) XXX_Marshal ¶
func (m *MsgCertifyPlatform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCertifyPlatform) XXX_Merge ¶
func (m *MsgCertifyPlatform) XXX_Merge(src proto.Message)
func (*MsgCertifyPlatform) XXX_Size ¶
func (m *MsgCertifyPlatform) XXX_Size() int
func (*MsgCertifyPlatform) XXX_Unmarshal ¶
func (m *MsgCertifyPlatform) XXX_Unmarshal(b []byte) error
type MsgCertifyPlatformResponse ¶
type MsgCertifyPlatformResponse struct { }
func (*MsgCertifyPlatformResponse) Descriptor ¶
func (*MsgCertifyPlatformResponse) Descriptor() ([]byte, []int)
func (*MsgCertifyPlatformResponse) Marshal ¶
func (m *MsgCertifyPlatformResponse) Marshal() (dAtA []byte, err error)
func (*MsgCertifyPlatformResponse) MarshalTo ¶
func (m *MsgCertifyPlatformResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCertifyPlatformResponse) MarshalToSizedBuffer ¶
func (m *MsgCertifyPlatformResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCertifyPlatformResponse) ProtoMessage ¶
func (*MsgCertifyPlatformResponse) ProtoMessage()
func (*MsgCertifyPlatformResponse) Reset ¶
func (m *MsgCertifyPlatformResponse) Reset()
func (*MsgCertifyPlatformResponse) Size ¶
func (m *MsgCertifyPlatformResponse) Size() (n int)
func (*MsgCertifyPlatformResponse) String ¶
func (m *MsgCertifyPlatformResponse) String() string
func (*MsgCertifyPlatformResponse) Unmarshal ¶
func (m *MsgCertifyPlatformResponse) Unmarshal(dAtA []byte) error
func (*MsgCertifyPlatformResponse) XXX_DiscardUnknown ¶
func (m *MsgCertifyPlatformResponse) XXX_DiscardUnknown()
func (*MsgCertifyPlatformResponse) XXX_Marshal ¶
func (m *MsgCertifyPlatformResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCertifyPlatformResponse) XXX_Merge ¶
func (m *MsgCertifyPlatformResponse) XXX_Merge(src proto.Message)
func (*MsgCertifyPlatformResponse) XXX_Size ¶
func (m *MsgCertifyPlatformResponse) XXX_Size() int
func (*MsgCertifyPlatformResponse) XXX_Unmarshal ¶
func (m *MsgCertifyPlatformResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { ProposeCertifier(ctx context.Context, in *MsgProposeCertifier, opts ...grpc.CallOption) (*MsgProposeCertifierResponse, error) IssueCertificate(ctx context.Context, in *MsgIssueCertificate, opts ...grpc.CallOption) (*MsgIssueCertificateResponse, error) RevokeCertificate(ctx context.Context, in *MsgRevokeCertificate, opts ...grpc.CallOption) (*MsgRevokeCertificateResponse, error) CertifyPlatform(ctx context.Context, in *MsgCertifyPlatform, opts ...grpc.CallOption) (*MsgCertifyPlatformResponse, 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 MsgIssueCertificate ¶
type MsgIssueCertificate struct { Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Compiler string `protobuf:"bytes,2,opt,name=compiler,proto3" json:"compiler,omitempty" yaml:"compiler"` BytecodeHash string `protobuf:"bytes,3,opt,name=bytecode_hash,json=bytecodeHash,proto3" json:"bytecode_hash,omitempty" yaml:"bytecodehash"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Certifier string `protobuf:"bytes,5,opt,name=certifier,proto3" json:"certifier,omitempty" yaml:"certifier"` }
MsgCertifyGeneral is the message for issuing a general certificate.
func NewMsgIssueCertificate ¶
func NewMsgIssueCertificate( content Content, compiler, bytecodeHash, description string, certifier sdk.AccAddress, ) *MsgIssueCertificate
NewMsgIssueCertificate returns a new certification message.
func (*MsgIssueCertificate) Descriptor ¶
func (*MsgIssueCertificate) Descriptor() ([]byte, []int)
func (MsgIssueCertificate) GetSignBytes ¶
func (m MsgIssueCertificate) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (MsgIssueCertificate) GetSigners ¶
func (m MsgIssueCertificate) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgIssueCertificate) Marshal ¶
func (m *MsgIssueCertificate) Marshal() (dAtA []byte, err error)
func (*MsgIssueCertificate) MarshalTo ¶
func (m *MsgIssueCertificate) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueCertificate) MarshalToSizedBuffer ¶
func (m *MsgIssueCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueCertificate) ProtoMessage ¶
func (*MsgIssueCertificate) ProtoMessage()
func (*MsgIssueCertificate) Reset ¶
func (m *MsgIssueCertificate) Reset()
func (MsgIssueCertificate) Route ¶
func (m MsgIssueCertificate) Route() string
Route returns the module name.
func (*MsgIssueCertificate) Size ¶
func (m *MsgIssueCertificate) Size() (n int)
func (*MsgIssueCertificate) String ¶
func (m *MsgIssueCertificate) String() string
func (MsgIssueCertificate) Type ¶
func (m MsgIssueCertificate) Type() string
Type returns the action name.
func (*MsgIssueCertificate) Unmarshal ¶
func (m *MsgIssueCertificate) Unmarshal(dAtA []byte) error
func (MsgIssueCertificate) UnpackInterfaces ¶
func (m MsgIssueCertificate) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces.
func (MsgIssueCertificate) ValidateBasic ¶
func (m MsgIssueCertificate) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgIssueCertificate) XXX_DiscardUnknown ¶
func (m *MsgIssueCertificate) XXX_DiscardUnknown()
func (*MsgIssueCertificate) XXX_Marshal ¶
func (m *MsgIssueCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueCertificate) XXX_Merge ¶
func (m *MsgIssueCertificate) XXX_Merge(src proto.Message)
func (*MsgIssueCertificate) XXX_Size ¶
func (m *MsgIssueCertificate) XXX_Size() int
func (*MsgIssueCertificate) XXX_Unmarshal ¶
func (m *MsgIssueCertificate) XXX_Unmarshal(b []byte) error
type MsgIssueCertificateResponse ¶
type MsgIssueCertificateResponse struct { }
func (*MsgIssueCertificateResponse) Descriptor ¶
func (*MsgIssueCertificateResponse) Descriptor() ([]byte, []int)
func (*MsgIssueCertificateResponse) Marshal ¶
func (m *MsgIssueCertificateResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueCertificateResponse) MarshalTo ¶
func (m *MsgIssueCertificateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueCertificateResponse) MarshalToSizedBuffer ¶
func (m *MsgIssueCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueCertificateResponse) ProtoMessage ¶
func (*MsgIssueCertificateResponse) ProtoMessage()
func (*MsgIssueCertificateResponse) Reset ¶
func (m *MsgIssueCertificateResponse) Reset()
func (*MsgIssueCertificateResponse) Size ¶
func (m *MsgIssueCertificateResponse) Size() (n int)
func (*MsgIssueCertificateResponse) String ¶
func (m *MsgIssueCertificateResponse) String() string
func (*MsgIssueCertificateResponse) Unmarshal ¶
func (m *MsgIssueCertificateResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueCertificateResponse) XXX_DiscardUnknown ¶
func (m *MsgIssueCertificateResponse) XXX_DiscardUnknown()
func (*MsgIssueCertificateResponse) XXX_Marshal ¶
func (m *MsgIssueCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueCertificateResponse) XXX_Merge ¶
func (m *MsgIssueCertificateResponse) XXX_Merge(src proto.Message)
func (*MsgIssueCertificateResponse) XXX_Size ¶
func (m *MsgIssueCertificateResponse) XXX_Size() int
func (*MsgIssueCertificateResponse) XXX_Unmarshal ¶
func (m *MsgIssueCertificateResponse) XXX_Unmarshal(b []byte) error
type MsgProposeCertifier ¶
type MsgProposeCertifier struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty" yaml:"proposer"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty" yaml:"alias"` Certifier string `protobuf:"bytes,3,opt,name=certifier,proto3" json:"certifier,omitempty" yaml:"certifier"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` }
MsgProposeCertifier is the message for proposing new certifier.
func NewMsgProposeCertifier ¶
func NewMsgProposeCertifier(proposer, certifier sdk.AccAddress, alias string, description string) *MsgProposeCertifier
NewMsgProposeCertifier returns a new certifier proposal message.
func (*MsgProposeCertifier) Descriptor ¶
func (*MsgProposeCertifier) Descriptor() ([]byte, []int)
func (MsgProposeCertifier) GetSignBytes ¶
func (m MsgProposeCertifier) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (MsgProposeCertifier) GetSigners ¶
func (m MsgProposeCertifier) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgProposeCertifier) Marshal ¶
func (m *MsgProposeCertifier) Marshal() (dAtA []byte, err error)
func (*MsgProposeCertifier) MarshalTo ¶
func (m *MsgProposeCertifier) MarshalTo(dAtA []byte) (int, error)
func (*MsgProposeCertifier) MarshalToSizedBuffer ¶
func (m *MsgProposeCertifier) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProposeCertifier) ProtoMessage ¶
func (*MsgProposeCertifier) ProtoMessage()
func (*MsgProposeCertifier) Reset ¶
func (m *MsgProposeCertifier) Reset()
func (MsgProposeCertifier) Route ¶
func (m MsgProposeCertifier) Route() string
Route returns the module name.
func (*MsgProposeCertifier) Size ¶
func (m *MsgProposeCertifier) Size() (n int)
func (*MsgProposeCertifier) String ¶
func (m *MsgProposeCertifier) String() string
func (MsgProposeCertifier) Type ¶
func (m MsgProposeCertifier) Type() string
Type returns the action name.
func (*MsgProposeCertifier) Unmarshal ¶
func (m *MsgProposeCertifier) Unmarshal(dAtA []byte) error
func (MsgProposeCertifier) ValidateBasic ¶
func (m MsgProposeCertifier) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgProposeCertifier) XXX_DiscardUnknown ¶
func (m *MsgProposeCertifier) XXX_DiscardUnknown()
func (*MsgProposeCertifier) XXX_Marshal ¶
func (m *MsgProposeCertifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProposeCertifier) XXX_Merge ¶
func (m *MsgProposeCertifier) XXX_Merge(src proto.Message)
func (*MsgProposeCertifier) XXX_Size ¶
func (m *MsgProposeCertifier) XXX_Size() int
func (*MsgProposeCertifier) XXX_Unmarshal ¶
func (m *MsgProposeCertifier) XXX_Unmarshal(b []byte) error
type MsgProposeCertifierResponse ¶
type MsgProposeCertifierResponse struct { }
func (*MsgProposeCertifierResponse) Descriptor ¶
func (*MsgProposeCertifierResponse) Descriptor() ([]byte, []int)
func (*MsgProposeCertifierResponse) Marshal ¶
func (m *MsgProposeCertifierResponse) Marshal() (dAtA []byte, err error)
func (*MsgProposeCertifierResponse) MarshalTo ¶
func (m *MsgProposeCertifierResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgProposeCertifierResponse) MarshalToSizedBuffer ¶
func (m *MsgProposeCertifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProposeCertifierResponse) ProtoMessage ¶
func (*MsgProposeCertifierResponse) ProtoMessage()
func (*MsgProposeCertifierResponse) Reset ¶
func (m *MsgProposeCertifierResponse) Reset()
func (*MsgProposeCertifierResponse) Size ¶
func (m *MsgProposeCertifierResponse) Size() (n int)
func (*MsgProposeCertifierResponse) String ¶
func (m *MsgProposeCertifierResponse) String() string
func (*MsgProposeCertifierResponse) Unmarshal ¶
func (m *MsgProposeCertifierResponse) Unmarshal(dAtA []byte) error
func (*MsgProposeCertifierResponse) XXX_DiscardUnknown ¶
func (m *MsgProposeCertifierResponse) XXX_DiscardUnknown()
func (*MsgProposeCertifierResponse) XXX_Marshal ¶
func (m *MsgProposeCertifierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProposeCertifierResponse) XXX_Merge ¶
func (m *MsgProposeCertifierResponse) XXX_Merge(src proto.Message)
func (*MsgProposeCertifierResponse) XXX_Size ¶
func (m *MsgProposeCertifierResponse) XXX_Size() int
func (*MsgProposeCertifierResponse) XXX_Unmarshal ¶
func (m *MsgProposeCertifierResponse) XXX_Unmarshal(b []byte) error
type MsgRevokeCertificate ¶
type MsgRevokeCertificate struct { Revoker string `protobuf:"bytes,1,opt,name=revoker,proto3" json:"revoker,omitempty" yaml:"revoker"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` }
MsgRevokeCertificate returns a certificate revoking operation.
func NewMsgRevokeCertificate ¶
func NewMsgRevokeCertificate(revoker sdk.AccAddress, id uint64, description string) *MsgRevokeCertificate
NewMsgRevokeCertificate creates a new instance of MsgRevokeCertificate.
func (*MsgRevokeCertificate) Descriptor ¶
func (*MsgRevokeCertificate) Descriptor() ([]byte, []int)
func (MsgRevokeCertificate) GetSignBytes ¶
func (m MsgRevokeCertificate) GetSignBytes() []byte
GetSignBytes encodes the message for signing.
func (MsgRevokeCertificate) GetSigners ¶
func (m MsgRevokeCertificate) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgRevokeCertificate) Marshal ¶
func (m *MsgRevokeCertificate) Marshal() (dAtA []byte, err error)
func (*MsgRevokeCertificate) MarshalTo ¶
func (m *MsgRevokeCertificate) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeCertificate) MarshalToSizedBuffer ¶
func (m *MsgRevokeCertificate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeCertificate) ProtoMessage ¶
func (*MsgRevokeCertificate) ProtoMessage()
func (*MsgRevokeCertificate) Reset ¶
func (m *MsgRevokeCertificate) Reset()
func (MsgRevokeCertificate) Route ¶
func (m MsgRevokeCertificate) Route() string
Route returns the module name.
func (*MsgRevokeCertificate) Size ¶
func (m *MsgRevokeCertificate) Size() (n int)
func (*MsgRevokeCertificate) String ¶
func (m *MsgRevokeCertificate) String() string
func (MsgRevokeCertificate) Type ¶
func (m MsgRevokeCertificate) Type() string
Type returns the action name.
func (*MsgRevokeCertificate) Unmarshal ¶
func (m *MsgRevokeCertificate) Unmarshal(dAtA []byte) error
func (MsgRevokeCertificate) ValidateBasic ¶
func (m MsgRevokeCertificate) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgRevokeCertificate) XXX_DiscardUnknown ¶
func (m *MsgRevokeCertificate) XXX_DiscardUnknown()
func (*MsgRevokeCertificate) XXX_Marshal ¶
func (m *MsgRevokeCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeCertificate) XXX_Merge ¶
func (m *MsgRevokeCertificate) XXX_Merge(src proto.Message)
func (*MsgRevokeCertificate) XXX_Size ¶
func (m *MsgRevokeCertificate) XXX_Size() int
func (*MsgRevokeCertificate) XXX_Unmarshal ¶
func (m *MsgRevokeCertificate) XXX_Unmarshal(b []byte) error
type MsgRevokeCertificateResponse ¶
type MsgRevokeCertificateResponse struct { }
func (*MsgRevokeCertificateResponse) Descriptor ¶
func (*MsgRevokeCertificateResponse) Descriptor() ([]byte, []int)
func (*MsgRevokeCertificateResponse) Marshal ¶
func (m *MsgRevokeCertificateResponse) Marshal() (dAtA []byte, err error)
func (*MsgRevokeCertificateResponse) MarshalTo ¶
func (m *MsgRevokeCertificateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeCertificateResponse) MarshalToSizedBuffer ¶
func (m *MsgRevokeCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeCertificateResponse) ProtoMessage ¶
func (*MsgRevokeCertificateResponse) ProtoMessage()
func (*MsgRevokeCertificateResponse) Reset ¶
func (m *MsgRevokeCertificateResponse) Reset()
func (*MsgRevokeCertificateResponse) Size ¶
func (m *MsgRevokeCertificateResponse) Size() (n int)
func (*MsgRevokeCertificateResponse) String ¶
func (m *MsgRevokeCertificateResponse) String() string
func (*MsgRevokeCertificateResponse) Unmarshal ¶
func (m *MsgRevokeCertificateResponse) Unmarshal(dAtA []byte) error
func (*MsgRevokeCertificateResponse) XXX_DiscardUnknown ¶
func (m *MsgRevokeCertificateResponse) XXX_DiscardUnknown()
func (*MsgRevokeCertificateResponse) XXX_Marshal ¶
func (m *MsgRevokeCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeCertificateResponse) XXX_Merge ¶
func (m *MsgRevokeCertificateResponse) XXX_Merge(src proto.Message)
func (*MsgRevokeCertificateResponse) XXX_Size ¶
func (m *MsgRevokeCertificateResponse) XXX_Size() int
func (*MsgRevokeCertificateResponse) XXX_Unmarshal ¶
func (m *MsgRevokeCertificateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { ProposeCertifier(context.Context, *MsgProposeCertifier) (*MsgProposeCertifierResponse, error) IssueCertificate(context.Context, *MsgIssueCertificate) (*MsgIssueCertificateResponse, error) RevokeCertificate(context.Context, *MsgRevokeCertificate) (*MsgRevokeCertificateResponse, error) CertifyPlatform(context.Context, *MsgCertifyPlatform) (*MsgCertifyPlatformResponse, error) }
MsgServer is the server API for Msg service.
type OracleOperator ¶
type OracleOperator struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*OracleOperator) Descriptor ¶
func (*OracleOperator) Descriptor() ([]byte, []int)
func (*OracleOperator) GetContent ¶
func (m *OracleOperator) GetContent() string
func (*OracleOperator) Marshal ¶
func (m *OracleOperator) Marshal() (dAtA []byte, err error)
func (*OracleOperator) MarshalToSizedBuffer ¶
func (m *OracleOperator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OracleOperator) ProtoMessage ¶
func (*OracleOperator) ProtoMessage()
func (*OracleOperator) Reset ¶
func (m *OracleOperator) Reset()
func (*OracleOperator) Size ¶
func (m *OracleOperator) Size() (n int)
func (*OracleOperator) String ¶
func (m *OracleOperator) String() string
func (*OracleOperator) Unmarshal ¶
func (m *OracleOperator) Unmarshal(dAtA []byte) error
func (*OracleOperator) XXX_DiscardUnknown ¶
func (m *OracleOperator) XXX_DiscardUnknown()
func (*OracleOperator) XXX_Marshal ¶
func (m *OracleOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OracleOperator) XXX_Merge ¶
func (m *OracleOperator) XXX_Merge(src proto.Message)
func (*OracleOperator) XXX_Size ¶
func (m *OracleOperator) XXX_Size() int
func (*OracleOperator) XXX_Unmarshal ¶
func (m *OracleOperator) XXX_Unmarshal(b []byte) error
type Platform ¶
type Platform struct { ValidatorPubkey *types.Any `protobuf:"bytes,1,opt,name=validator_pubkey,json=validatorPubkey,proto3" json:"validator_pubkey,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` }
Platform is a genesis type for certified platform of a validator
func (*Platform) Descriptor ¶
func (*Platform) MarshalToSizedBuffer ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (Platform) UnpackInterfaces ¶
func (p Platform) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*Platform) XXX_DiscardUnknown ¶
func (m *Platform) XXX_DiscardUnknown()
func (*Platform) XXX_Marshal ¶
func (*Platform) XXX_Unmarshal ¶
type Proof ¶
type Proof struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*Proof) Descriptor ¶
func (*Proof) GetContent ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) XXX_DiscardUnknown ¶
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶
func (*Proof) XXX_Unmarshal ¶
type QueryCertificateRequest ¶
type QueryCertificateRequest struct {
CertificateId uint64 `protobuf:"varint,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"`
}
func (*QueryCertificateRequest) Descriptor ¶
func (*QueryCertificateRequest) Descriptor() ([]byte, []int)
func (*QueryCertificateRequest) GetCertificateId ¶
func (m *QueryCertificateRequest) GetCertificateId() uint64
func (*QueryCertificateRequest) Marshal ¶
func (m *QueryCertificateRequest) Marshal() (dAtA []byte, err error)
func (*QueryCertificateRequest) MarshalTo ¶
func (m *QueryCertificateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertificateRequest) MarshalToSizedBuffer ¶
func (m *QueryCertificateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertificateRequest) ProtoMessage ¶
func (*QueryCertificateRequest) ProtoMessage()
func (*QueryCertificateRequest) Reset ¶
func (m *QueryCertificateRequest) Reset()
func (*QueryCertificateRequest) Size ¶
func (m *QueryCertificateRequest) Size() (n int)
func (*QueryCertificateRequest) String ¶
func (m *QueryCertificateRequest) String() string
func (*QueryCertificateRequest) Unmarshal ¶
func (m *QueryCertificateRequest) Unmarshal(dAtA []byte) error
func (*QueryCertificateRequest) XXX_DiscardUnknown ¶
func (m *QueryCertificateRequest) XXX_DiscardUnknown()
func (*QueryCertificateRequest) XXX_Marshal ¶
func (m *QueryCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertificateRequest) XXX_Merge ¶
func (m *QueryCertificateRequest) XXX_Merge(src proto.Message)
func (*QueryCertificateRequest) XXX_Size ¶
func (m *QueryCertificateRequest) XXX_Size() int
func (*QueryCertificateRequest) XXX_Unmarshal ¶
func (m *QueryCertificateRequest) XXX_Unmarshal(b []byte) error
type QueryCertificateResponse ¶
type QueryCertificateResponse struct {
Certificate Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate"`
}
func (*QueryCertificateResponse) Descriptor ¶
func (*QueryCertificateResponse) Descriptor() ([]byte, []int)
func (*QueryCertificateResponse) GetCertificate ¶
func (m *QueryCertificateResponse) GetCertificate() Certificate
func (*QueryCertificateResponse) Marshal ¶
func (m *QueryCertificateResponse) Marshal() (dAtA []byte, err error)
func (*QueryCertificateResponse) MarshalTo ¶
func (m *QueryCertificateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertificateResponse) MarshalToSizedBuffer ¶
func (m *QueryCertificateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertificateResponse) ProtoMessage ¶
func (*QueryCertificateResponse) ProtoMessage()
func (*QueryCertificateResponse) Reset ¶
func (m *QueryCertificateResponse) Reset()
func (*QueryCertificateResponse) Size ¶
func (m *QueryCertificateResponse) Size() (n int)
func (*QueryCertificateResponse) String ¶
func (m *QueryCertificateResponse) String() string
func (*QueryCertificateResponse) Unmarshal ¶
func (m *QueryCertificateResponse) Unmarshal(dAtA []byte) error
func (*QueryCertificateResponse) XXX_DiscardUnknown ¶
func (m *QueryCertificateResponse) XXX_DiscardUnknown()
func (*QueryCertificateResponse) XXX_Marshal ¶
func (m *QueryCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertificateResponse) XXX_Merge ¶
func (m *QueryCertificateResponse) XXX_Merge(src proto.Message)
func (*QueryCertificateResponse) XXX_Size ¶
func (m *QueryCertificateResponse) XXX_Size() int
func (*QueryCertificateResponse) XXX_Unmarshal ¶
func (m *QueryCertificateResponse) XXX_Unmarshal(b []byte) error
type QueryCertificatesParams ¶
type QueryCertificatesParams struct { Page int Limit int Certifier sdk.AccAddress CertificateType CertificateType }
QueryCertificatesParams is the type for parameters of querying certificates.
func NewQueryCertificatesParams ¶
func NewQueryCertificatesParams(page, limit int, certifier sdk.AccAddress, certType CertificateType) QueryCertificatesParams
NewQueryCertificatesParams creates a new instance of QueryCertificatesParams.
type QueryCertificatesRequest ¶
type QueryCertificatesRequest struct { Certifier string `protobuf:"bytes,1,opt,name=certifier,proto3" json:"certifier,omitempty"` CertificateType string `protobuf:"bytes,2,opt,name=certificate_type,json=certificateType,proto3" json:"certificate_type,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryCertificatesRequest) Descriptor ¶
func (*QueryCertificatesRequest) Descriptor() ([]byte, []int)
func (*QueryCertificatesRequest) GetCertificateType ¶
func (m *QueryCertificatesRequest) GetCertificateType() string
func (*QueryCertificatesRequest) GetCertifier ¶
func (m *QueryCertificatesRequest) GetCertifier() string
func (*QueryCertificatesRequest) GetPagination ¶
func (m *QueryCertificatesRequest) GetPagination() *query.PageRequest
func (*QueryCertificatesRequest) Marshal ¶
func (m *QueryCertificatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryCertificatesRequest) MarshalTo ¶
func (m *QueryCertificatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertificatesRequest) MarshalToSizedBuffer ¶
func (m *QueryCertificatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertificatesRequest) ProtoMessage ¶
func (*QueryCertificatesRequest) ProtoMessage()
func (*QueryCertificatesRequest) Reset ¶
func (m *QueryCertificatesRequest) Reset()
func (*QueryCertificatesRequest) Size ¶
func (m *QueryCertificatesRequest) Size() (n int)
func (*QueryCertificatesRequest) String ¶
func (m *QueryCertificatesRequest) String() string
func (*QueryCertificatesRequest) Unmarshal ¶
func (m *QueryCertificatesRequest) Unmarshal(dAtA []byte) error
func (*QueryCertificatesRequest) XXX_DiscardUnknown ¶
func (m *QueryCertificatesRequest) XXX_DiscardUnknown()
func (*QueryCertificatesRequest) XXX_Marshal ¶
func (m *QueryCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertificatesRequest) XXX_Merge ¶
func (m *QueryCertificatesRequest) XXX_Merge(src proto.Message)
func (*QueryCertificatesRequest) XXX_Size ¶
func (m *QueryCertificatesRequest) XXX_Size() int
func (*QueryCertificatesRequest) XXX_Unmarshal ¶
func (m *QueryCertificatesRequest) XXX_Unmarshal(b []byte) error
type QueryCertificatesResponse ¶
type QueryCertificatesResponse struct { Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Certificates []QueryCertificateResponse `protobuf:"bytes,2,rep,name=certificates,proto3" json:"certificates"` }
func (*QueryCertificatesResponse) Descriptor ¶
func (*QueryCertificatesResponse) Descriptor() ([]byte, []int)
func (*QueryCertificatesResponse) GetCertificates ¶
func (m *QueryCertificatesResponse) GetCertificates() []QueryCertificateResponse
func (*QueryCertificatesResponse) GetTotal ¶
func (m *QueryCertificatesResponse) GetTotal() uint64
func (*QueryCertificatesResponse) Marshal ¶
func (m *QueryCertificatesResponse) Marshal() (dAtA []byte, err error)
func (*QueryCertificatesResponse) MarshalTo ¶
func (m *QueryCertificatesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertificatesResponse) MarshalToSizedBuffer ¶
func (m *QueryCertificatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertificatesResponse) ProtoMessage ¶
func (*QueryCertificatesResponse) ProtoMessage()
func (*QueryCertificatesResponse) Reset ¶
func (m *QueryCertificatesResponse) Reset()
func (*QueryCertificatesResponse) Size ¶
func (m *QueryCertificatesResponse) Size() (n int)
func (*QueryCertificatesResponse) String ¶
func (m *QueryCertificatesResponse) String() string
func (*QueryCertificatesResponse) Unmarshal ¶
func (m *QueryCertificatesResponse) Unmarshal(dAtA []byte) error
func (*QueryCertificatesResponse) XXX_DiscardUnknown ¶
func (m *QueryCertificatesResponse) XXX_DiscardUnknown()
func (*QueryCertificatesResponse) XXX_Marshal ¶
func (m *QueryCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertificatesResponse) XXX_Merge ¶
func (m *QueryCertificatesResponse) XXX_Merge(src proto.Message)
func (*QueryCertificatesResponse) XXX_Size ¶
func (m *QueryCertificatesResponse) XXX_Size() int
func (*QueryCertificatesResponse) XXX_Unmarshal ¶
func (m *QueryCertificatesResponse) XXX_Unmarshal(b []byte) error
type QueryCertifierRequest ¶
type QueryCertifierRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` }
func (*QueryCertifierRequest) Descriptor ¶
func (*QueryCertifierRequest) Descriptor() ([]byte, []int)
func (*QueryCertifierRequest) GetAddress ¶
func (m *QueryCertifierRequest) GetAddress() string
func (*QueryCertifierRequest) GetAlias ¶
func (m *QueryCertifierRequest) GetAlias() string
func (*QueryCertifierRequest) Marshal ¶
func (m *QueryCertifierRequest) Marshal() (dAtA []byte, err error)
func (*QueryCertifierRequest) MarshalTo ¶
func (m *QueryCertifierRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertifierRequest) MarshalToSizedBuffer ¶
func (m *QueryCertifierRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertifierRequest) ProtoMessage ¶
func (*QueryCertifierRequest) ProtoMessage()
func (*QueryCertifierRequest) Reset ¶
func (m *QueryCertifierRequest) Reset()
func (*QueryCertifierRequest) Size ¶
func (m *QueryCertifierRequest) Size() (n int)
func (*QueryCertifierRequest) String ¶
func (m *QueryCertifierRequest) String() string
func (*QueryCertifierRequest) Unmarshal ¶
func (m *QueryCertifierRequest) Unmarshal(dAtA []byte) error
func (*QueryCertifierRequest) XXX_DiscardUnknown ¶
func (m *QueryCertifierRequest) XXX_DiscardUnknown()
func (*QueryCertifierRequest) XXX_Marshal ¶
func (m *QueryCertifierRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertifierRequest) XXX_Merge ¶
func (m *QueryCertifierRequest) XXX_Merge(src proto.Message)
func (*QueryCertifierRequest) XXX_Size ¶
func (m *QueryCertifierRequest) XXX_Size() int
func (*QueryCertifierRequest) XXX_Unmarshal ¶
func (m *QueryCertifierRequest) XXX_Unmarshal(b []byte) error
type QueryCertifierResponse ¶
type QueryCertifierResponse struct {
Certifier Certifier `protobuf:"bytes,1,opt,name=certifier,proto3" json:"certifier"`
}
func (*QueryCertifierResponse) Descriptor ¶
func (*QueryCertifierResponse) Descriptor() ([]byte, []int)
func (*QueryCertifierResponse) GetCertifier ¶
func (m *QueryCertifierResponse) GetCertifier() Certifier
func (*QueryCertifierResponse) Marshal ¶
func (m *QueryCertifierResponse) Marshal() (dAtA []byte, err error)
func (*QueryCertifierResponse) MarshalTo ¶
func (m *QueryCertifierResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertifierResponse) MarshalToSizedBuffer ¶
func (m *QueryCertifierResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertifierResponse) ProtoMessage ¶
func (*QueryCertifierResponse) ProtoMessage()
func (*QueryCertifierResponse) Reset ¶
func (m *QueryCertifierResponse) Reset()
func (*QueryCertifierResponse) Size ¶
func (m *QueryCertifierResponse) Size() (n int)
func (*QueryCertifierResponse) String ¶
func (m *QueryCertifierResponse) String() string
func (*QueryCertifierResponse) Unmarshal ¶
func (m *QueryCertifierResponse) Unmarshal(dAtA []byte) error
func (*QueryCertifierResponse) XXX_DiscardUnknown ¶
func (m *QueryCertifierResponse) XXX_DiscardUnknown()
func (*QueryCertifierResponse) XXX_Marshal ¶
func (m *QueryCertifierResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertifierResponse) XXX_Merge ¶
func (m *QueryCertifierResponse) XXX_Merge(src proto.Message)
func (*QueryCertifierResponse) XXX_Size ¶
func (m *QueryCertifierResponse) XXX_Size() int
func (*QueryCertifierResponse) XXX_Unmarshal ¶
func (m *QueryCertifierResponse) XXX_Unmarshal(b []byte) error
type QueryCertifiersRequest ¶
type QueryCertifiersRequest struct { }
func (*QueryCertifiersRequest) Descriptor ¶
func (*QueryCertifiersRequest) Descriptor() ([]byte, []int)
func (*QueryCertifiersRequest) Marshal ¶
func (m *QueryCertifiersRequest) Marshal() (dAtA []byte, err error)
func (*QueryCertifiersRequest) MarshalTo ¶
func (m *QueryCertifiersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertifiersRequest) MarshalToSizedBuffer ¶
func (m *QueryCertifiersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertifiersRequest) ProtoMessage ¶
func (*QueryCertifiersRequest) ProtoMessage()
func (*QueryCertifiersRequest) Reset ¶
func (m *QueryCertifiersRequest) Reset()
func (*QueryCertifiersRequest) Size ¶
func (m *QueryCertifiersRequest) Size() (n int)
func (*QueryCertifiersRequest) String ¶
func (m *QueryCertifiersRequest) String() string
func (*QueryCertifiersRequest) Unmarshal ¶
func (m *QueryCertifiersRequest) Unmarshal(dAtA []byte) error
func (*QueryCertifiersRequest) XXX_DiscardUnknown ¶
func (m *QueryCertifiersRequest) XXX_DiscardUnknown()
func (*QueryCertifiersRequest) XXX_Marshal ¶
func (m *QueryCertifiersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertifiersRequest) XXX_Merge ¶
func (m *QueryCertifiersRequest) XXX_Merge(src proto.Message)
func (*QueryCertifiersRequest) XXX_Size ¶
func (m *QueryCertifiersRequest) XXX_Size() int
func (*QueryCertifiersRequest) XXX_Unmarshal ¶
func (m *QueryCertifiersRequest) XXX_Unmarshal(b []byte) error
type QueryCertifiersResponse ¶
type QueryCertifiersResponse struct {
Certifiers []Certifier `protobuf:"bytes,1,rep,name=certifiers,proto3" json:"certifiers"`
}
func (*QueryCertifiersResponse) Descriptor ¶
func (*QueryCertifiersResponse) Descriptor() ([]byte, []int)
func (*QueryCertifiersResponse) GetCertifiers ¶
func (m *QueryCertifiersResponse) GetCertifiers() []Certifier
func (*QueryCertifiersResponse) Marshal ¶
func (m *QueryCertifiersResponse) Marshal() (dAtA []byte, err error)
func (*QueryCertifiersResponse) MarshalTo ¶
func (m *QueryCertifiersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCertifiersResponse) MarshalToSizedBuffer ¶
func (m *QueryCertifiersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCertifiersResponse) ProtoMessage ¶
func (*QueryCertifiersResponse) ProtoMessage()
func (*QueryCertifiersResponse) Reset ¶
func (m *QueryCertifiersResponse) Reset()
func (*QueryCertifiersResponse) Size ¶
func (m *QueryCertifiersResponse) Size() (n int)
func (*QueryCertifiersResponse) String ¶
func (m *QueryCertifiersResponse) String() string
func (*QueryCertifiersResponse) Unmarshal ¶
func (m *QueryCertifiersResponse) Unmarshal(dAtA []byte) error
func (*QueryCertifiersResponse) XXX_DiscardUnknown ¶
func (m *QueryCertifiersResponse) XXX_DiscardUnknown()
func (*QueryCertifiersResponse) XXX_Marshal ¶
func (m *QueryCertifiersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCertifiersResponse) XXX_Merge ¶
func (m *QueryCertifiersResponse) XXX_Merge(src proto.Message)
func (*QueryCertifiersResponse) XXX_Size ¶
func (m *QueryCertifiersResponse) XXX_Size() int
func (*QueryCertifiersResponse) XXX_Unmarshal ¶
func (m *QueryCertifiersResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { Certifier(ctx context.Context, in *QueryCertifierRequest, opts ...grpc.CallOption) (*QueryCertifierResponse, error) Certifiers(ctx context.Context, in *QueryCertifiersRequest, opts ...grpc.CallOption) (*QueryCertifiersResponse, error) Platform(ctx context.Context, in *QueryPlatformRequest, opts ...grpc.CallOption) (*QueryPlatformResponse, error) Certificate(ctx context.Context, in *QueryCertificateRequest, opts ...grpc.CallOption) (*QueryCertificateResponse, error) Certificates(ctx context.Context, in *QueryCertificatesRequest, opts ...grpc.CallOption) (*QueryCertificatesResponse, error) AddrConversion(ctx context.Context, in *ConversionToShentuAddrRequest, opts ...grpc.CallOption) (*ConversionToShentuAddrResponse, 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 QueryPlatformRequest ¶
type QueryPlatformRequest struct {
Pubkey *types.Any `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
}
func (*QueryPlatformRequest) Descriptor ¶
func (*QueryPlatformRequest) Descriptor() ([]byte, []int)
func (*QueryPlatformRequest) GetPubkey ¶
func (m *QueryPlatformRequest) GetPubkey() *types.Any
func (*QueryPlatformRequest) Marshal ¶
func (m *QueryPlatformRequest) Marshal() (dAtA []byte, err error)
func (*QueryPlatformRequest) MarshalTo ¶
func (m *QueryPlatformRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlatformRequest) MarshalToSizedBuffer ¶
func (m *QueryPlatformRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlatformRequest) ProtoMessage ¶
func (*QueryPlatformRequest) ProtoMessage()
func (*QueryPlatformRequest) Reset ¶
func (m *QueryPlatformRequest) Reset()
func (*QueryPlatformRequest) Size ¶
func (m *QueryPlatformRequest) Size() (n int)
func (*QueryPlatformRequest) String ¶
func (m *QueryPlatformRequest) String() string
func (*QueryPlatformRequest) Unmarshal ¶
func (m *QueryPlatformRequest) Unmarshal(dAtA []byte) error
func (QueryPlatformRequest) UnpackInterfaces ¶
func (q QueryPlatformRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*QueryPlatformRequest) XXX_DiscardUnknown ¶
func (m *QueryPlatformRequest) XXX_DiscardUnknown()
func (*QueryPlatformRequest) XXX_Marshal ¶
func (m *QueryPlatformRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlatformRequest) XXX_Merge ¶
func (m *QueryPlatformRequest) XXX_Merge(src proto.Message)
func (*QueryPlatformRequest) XXX_Size ¶
func (m *QueryPlatformRequest) XXX_Size() int
func (*QueryPlatformRequest) XXX_Unmarshal ¶
func (m *QueryPlatformRequest) XXX_Unmarshal(b []byte) error
type QueryPlatformResponse ¶
type QueryPlatformResponse struct {
Platform Platform `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform"`
}
func (*QueryPlatformResponse) Descriptor ¶
func (*QueryPlatformResponse) Descriptor() ([]byte, []int)
func (*QueryPlatformResponse) GetPlatform ¶
func (m *QueryPlatformResponse) GetPlatform() Platform
func (*QueryPlatformResponse) Marshal ¶
func (m *QueryPlatformResponse) Marshal() (dAtA []byte, err error)
func (*QueryPlatformResponse) MarshalTo ¶
func (m *QueryPlatformResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPlatformResponse) MarshalToSizedBuffer ¶
func (m *QueryPlatformResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPlatformResponse) ProtoMessage ¶
func (*QueryPlatformResponse) ProtoMessage()
func (*QueryPlatformResponse) Reset ¶
func (m *QueryPlatformResponse) Reset()
func (*QueryPlatformResponse) Size ¶
func (m *QueryPlatformResponse) Size() (n int)
func (*QueryPlatformResponse) String ¶
func (m *QueryPlatformResponse) String() string
func (*QueryPlatformResponse) Unmarshal ¶
func (m *QueryPlatformResponse) Unmarshal(dAtA []byte) error
func (*QueryPlatformResponse) XXX_DiscardUnknown ¶
func (m *QueryPlatformResponse) XXX_DiscardUnknown()
func (*QueryPlatformResponse) XXX_Marshal ¶
func (m *QueryPlatformResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPlatformResponse) XXX_Merge ¶
func (m *QueryPlatformResponse) XXX_Merge(src proto.Message)
func (*QueryPlatformResponse) XXX_Size ¶
func (m *QueryPlatformResponse) XXX_Size() int
func (*QueryPlatformResponse) XXX_Unmarshal ¶
func (m *QueryPlatformResponse) XXX_Unmarshal(b []byte) error
type QueryResCertifiers ¶
type QueryResCertifiers struct {
Certifiers Certifiers `json:"certifiers"`
}
QueryResCertifiers is the query result payload for all certifiers.
func (QueryResCertifiers) String ¶
func (q QueryResCertifiers) String() string
String implements fmt.Stringer.
type QueryResValidator ¶
type QueryResValidator struct {
Certifier sdk.AccAddress `json:"certifier"`
}
QueryResValidator is the query result payload for a certified validator query.
func (QueryResValidator) String ¶
func (q QueryResValidator) String() string
String implements fmt.Stringer.
type QueryResValidators ¶
type QueryResValidators struct {
Validators []string `json:"validators"`
}
QueryResValidators is the query result payload for all certified validators.
func (QueryResValidators) String ¶
func (q QueryResValidators) String() string
String implements fmt.Stringer.
type QueryServer ¶
type QueryServer interface { Certifier(context.Context, *QueryCertifierRequest) (*QueryCertifierResponse, error) Certifiers(context.Context, *QueryCertifiersRequest) (*QueryCertifiersResponse, error) Platform(context.Context, *QueryPlatformRequest) (*QueryPlatformResponse, error) Certificate(context.Context, *QueryCertificateRequest) (*QueryCertificateResponse, error) Certificates(context.Context, *QueryCertificatesRequest) (*QueryCertificatesResponse, error) AddrConversion(context.Context, *ConversionToShentuAddrRequest) (*ConversionToShentuAddrResponse, error) }
QueryServer is the server API for Query service.
type ShieldPoolCreator ¶
type ShieldPoolCreator struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
}
func (*ShieldPoolCreator) Descriptor ¶
func (*ShieldPoolCreator) Descriptor() ([]byte, []int)
func (*ShieldPoolCreator) GetContent ¶
func (m *ShieldPoolCreator) GetContent() string
func (*ShieldPoolCreator) Marshal ¶
func (m *ShieldPoolCreator) Marshal() (dAtA []byte, err error)
func (*ShieldPoolCreator) MarshalTo ¶
func (m *ShieldPoolCreator) MarshalTo(dAtA []byte) (int, error)
func (*ShieldPoolCreator) MarshalToSizedBuffer ¶
func (m *ShieldPoolCreator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShieldPoolCreator) ProtoMessage ¶
func (*ShieldPoolCreator) ProtoMessage()
func (*ShieldPoolCreator) Reset ¶
func (m *ShieldPoolCreator) Reset()
func (*ShieldPoolCreator) Size ¶
func (m *ShieldPoolCreator) Size() (n int)
func (*ShieldPoolCreator) String ¶
func (m *ShieldPoolCreator) String() string
func (*ShieldPoolCreator) Unmarshal ¶
func (m *ShieldPoolCreator) Unmarshal(dAtA []byte) error
func (*ShieldPoolCreator) XXX_DiscardUnknown ¶
func (m *ShieldPoolCreator) XXX_DiscardUnknown()
func (*ShieldPoolCreator) XXX_Marshal ¶
func (m *ShieldPoolCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShieldPoolCreator) XXX_Merge ¶
func (m *ShieldPoolCreator) XXX_Merge(src proto.Message)
func (*ShieldPoolCreator) XXX_Size ¶
func (m *ShieldPoolCreator) XXX_Size() int
func (*ShieldPoolCreator) XXX_Unmarshal ¶
func (m *ShieldPoolCreator) XXX_Unmarshal(b []byte) error
type SlashingKeeper ¶
type SlashingKeeper interface { IsTombstoned(sdk.Context, sdk.ConsAddress) bool Tombstone(sdk.Context, sdk.ConsAddress) Jail(sdk.Context, sdk.ConsAddress) JailUntil(sdk.Context, sdk.ConsAddress, time.Time) }
type StakingKeeper ¶
type StakingKeeper interface { ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI GetAllValidators(ctx sdk.Context) []stakingtypes.Validator GetValidatorDelegations(ctx sdk.Context, valAddr sdk.ValAddress) []stakingtypes.Delegation }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CertifyPlatform ¶
func (*UnimplementedMsgServer) CertifyPlatform(ctx context.Context, req *MsgCertifyPlatform) (*MsgCertifyPlatformResponse, error)
func (*UnimplementedMsgServer) IssueCertificate ¶
func (*UnimplementedMsgServer) IssueCertificate(ctx context.Context, req *MsgIssueCertificate) (*MsgIssueCertificateResponse, error)
func (*UnimplementedMsgServer) ProposeCertifier ¶
func (*UnimplementedMsgServer) ProposeCertifier(ctx context.Context, req *MsgProposeCertifier) (*MsgProposeCertifierResponse, error)
func (*UnimplementedMsgServer) RevokeCertificate ¶
func (*UnimplementedMsgServer) RevokeCertificate(ctx context.Context, req *MsgRevokeCertificate) (*MsgRevokeCertificateResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AddrConversion ¶ added in v2.9.0
func (*UnimplementedQueryServer) AddrConversion(ctx context.Context, req *ConversionToShentuAddrRequest) (*ConversionToShentuAddrResponse, error)
func (*UnimplementedQueryServer) Certificate ¶
func (*UnimplementedQueryServer) Certificate(ctx context.Context, req *QueryCertificateRequest) (*QueryCertificateResponse, error)
func (*UnimplementedQueryServer) Certificates ¶
func (*UnimplementedQueryServer) Certificates(ctx context.Context, req *QueryCertificatesRequest) (*QueryCertificatesResponse, error)
func (*UnimplementedQueryServer) Certifier ¶
func (*UnimplementedQueryServer) Certifier(ctx context.Context, req *QueryCertifierRequest) (*QueryCertifierResponse, error)
func (*UnimplementedQueryServer) Certifiers ¶
func (*UnimplementedQueryServer) Certifiers(ctx context.Context, req *QueryCertifiersRequest) (*QueryCertifiersResponse, error)
func (*UnimplementedQueryServer) Platform ¶
func (*UnimplementedQueryServer) Platform(ctx context.Context, req *QueryPlatformRequest) (*QueryPlatformResponse, error)