types

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Overview

nolint

Index

Constants

View Source
const (
	EventTypeAddProfiler    = "add_profiler"
	EventTypeAddTrustee     = "add_trustee"
	EventTypeDeleteProfiler = "delete_profiler"
	EventTypeDeleteTrustee  = "delete_trustee"

	AttributeKeyProfilerAddress = "address"
	AttributeKeyTrusteeAddress  = "address"
	AttributeKeyAddedBy         = "added_by"
	AttributeKeyDeletedBy       = "deleted_by"

	AttributeValueCategory = ModuleName
)

guardian module event types

View Source
const (
	// module name
	ModuleName = "guardian"

	// StoreKey is the default store key for guardian
	StoreKey = ModuleName

	// RouterKey is the message route for guardian
	RouterKey = ModuleName

	// QuerierRoute is the querier route for the guardian store.
	QuerierRoute = StoreKey

	// Query endpoints supported by the guardian querier
	QueryProfilers = "profilers"
	QueryTrustees  = "trustees"
)

nolint

View Source
const (
	TypeMsgAddProfiler    = "add_profiler"    // type for MsgAddProfiler
	TypeMsgDeleteProfiler = "delete_profiler" // type for MsgDeleteProfiler
	TypeMsgAddTrustee     = "add_trustee"     // type for MsgAddTrustee
	TypeMsgDeleteTrustee  = "delete_trustee"  // type for MsgDeleteTrustee
)

Variables

View Source
var (
	ErrUnknownOperator       = sdkerrors.Register(ModuleName, 2, "unknown operator")
	ErrUnknownProfiler       = sdkerrors.Register(ModuleName, 3, "unknown profiler")
	ErrUnknownTrustee        = sdkerrors.Register(ModuleName, 4, "unknown trustee")
	ErrProfilerExists        = sdkerrors.Register(ModuleName, 5, "profiler already exists")
	ErrTrusteeExists         = sdkerrors.Register(ModuleName, 6, "trustee already exists")
	ErrDeleteGenesisProfiler = sdkerrors.Register(ModuleName, 7, "can't delete genesis profiler")
	ErrDeleteGenesisTrustee  = sdkerrors.Register(ModuleName, 8, "can't delete genesis trustee")
)

guardian module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGuardian        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGuardian          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGuardian = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ProfilerKey = []byte{0x00} // profiler key
	TrusteeKey  = []byte{0x01} // trustee key
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AccountType_name = map[int32]string{
	0: "GENESIS",
	1: "ORDINARY",
}
View Source
var AccountType_value = map[string]int32{
	"GENESIS":  0,
	"ORDINARY": 1,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetProfilerKey

func GetProfilerKey(addr sdk.AccAddress) []byte

GetProfilerKey returns profiler key bytes

func GetProfilersSubspaceKey

func GetProfilersSubspaceKey() []byte

GetProfilersSubspaceKey returns the key for getting all profilers from the store

func GetTrusteeKey

func GetTrusteeKey(addr sdk.AccAddress) []byte

GetTrusteeKey returns trustee key bytes

func GetTrusteesSubspaceKey

func GetTrusteesSubspaceKey() []byte

GetProfilersSubspaceKey returns the key for getting all profilers from the store

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

RegisterCodec registers the necessary module/guardian interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidAccountType

func ValidAccountType(option AccountType) bool

ValidAccountType returns true if the AccountType option is valid and false otherwise.

Types

type AccountType

type AccountType int32

AccountType defines the guardian account type

const (
	// GENESIS defines a genesis account type
	Genesis AccountType = 0
	// ORDINARY defines a ordinary account type
	Ordinary AccountType = 1
)

func AccountTypeFromString

func AccountTypeFromString(str string) (AccountType, error)

AccountTypeFromString converts string to AccountType byte, Returns ff if invalid.

func (AccountType) EnumDescriptor

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

func (AccountType) Format

func (at AccountType) Format(s fmt.State, verb rune)

Format implements the fmt.Formatter interface.

func (AccountType) Marshal

func (at AccountType) Marshal() ([]byte, error)

Marshal needed for protobuf compatibility.

func (AccountType) String

func (x AccountType) String() string

func (*AccountType) Unmarshal

func (at *AccountType) Unmarshal(data []byte) error

Unmarshal needed for protobuf compatibility.

type AddGuardian

type AddGuardian struct {
	Description string                                        `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Address     github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
	AddedBy     github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 153-byte string literal not displayed */
}

AddGuardian defines the properties of add guardian message

func (*AddGuardian) Descriptor

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

func (AddGuardian) EnsureLength

func (g AddGuardian) EnsureLength() error

EnsureLength validate the length of AddGuardian

func (*AddGuardian) GetAddedBy

func (*AddGuardian) GetAddress

func (*AddGuardian) GetDescription

func (m *AddGuardian) GetDescription() string

func (*AddGuardian) Marshal

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

func (*AddGuardian) MarshalTo

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

func (*AddGuardian) MarshalToSizedBuffer

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

func (*AddGuardian) ProtoMessage

func (*AddGuardian) ProtoMessage()

func (*AddGuardian) Reset

func (m *AddGuardian) Reset()

func (*AddGuardian) Size

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

func (*AddGuardian) String

func (m *AddGuardian) String() string

func (*AddGuardian) Unmarshal

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

func (AddGuardian) ValidateBasic

func (g AddGuardian) ValidateBasic() error

ValidateBasic validate the AddGuardian

func (*AddGuardian) XXX_DiscardUnknown

func (m *AddGuardian) XXX_DiscardUnknown()

func (*AddGuardian) XXX_Marshal

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

func (*AddGuardian) XXX_Merge

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

func (*AddGuardian) XXX_Size

func (m *AddGuardian) XXX_Size() int

func (*AddGuardian) XXX_Unmarshal

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

type DeleteGuardian

type DeleteGuardian struct {
	Address   github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
	DeletedBy github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 161-byte string literal not displayed */
}

DeleteGuardian defines the properties of delete guardian message

func (*DeleteGuardian) Descriptor

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

func (*DeleteGuardian) GetAddress

func (*DeleteGuardian) GetDeletedBy

func (*DeleteGuardian) Marshal

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

func (*DeleteGuardian) MarshalTo

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

func (*DeleteGuardian) MarshalToSizedBuffer

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

func (*DeleteGuardian) ProtoMessage

func (*DeleteGuardian) ProtoMessage()

func (*DeleteGuardian) Reset

func (m *DeleteGuardian) Reset()

func (*DeleteGuardian) Size

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

func (*DeleteGuardian) String

func (m *DeleteGuardian) String() string

func (*DeleteGuardian) Unmarshal

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

func (DeleteGuardian) ValidateBasic

func (g DeleteGuardian) ValidateBasic() error

ValidateBasic validate the DeleteGuardian

func (*DeleteGuardian) XXX_DiscardUnknown

func (m *DeleteGuardian) XXX_DiscardUnknown()

func (*DeleteGuardian) XXX_Marshal

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

func (*DeleteGuardian) XXX_Merge

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

func (*DeleteGuardian) XXX_Size

func (m *DeleteGuardian) XXX_Size() int

func (*DeleteGuardian) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Profilers []Guardian `protobuf:"bytes,1,rep,name=profilers,proto3" json:"profilers"`
	Trustees  []Guardian `protobuf:"bytes,2,rep,name=trustees,proto3" json:"trustees"`
}

GenesisState defines the guardian module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState gets raw genesis raw message for testing

func NewGenesisState

func NewGenesisState(profilers, trustees []Guardian) *GenesisState

NewGenesisState constructs a GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetProfilers

func (m *GenesisState) GetProfilers() []Guardian

func (*GenesisState) GetTrustees

func (m *GenesisState) GetTrustees() []Guardian

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) 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 Guardian

type Guardian struct {
	Description string                                        `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	AccountType AccountType                                   `` /* 149-byte string literal not displayed */
	Address     github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,3,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
	AddedBy     github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 153-byte string literal not displayed */
}

Guardian defines the guardian standard

func NewGuardian

func NewGuardian(description string, accountType AccountType, address, addedBy sdk.AccAddress) Guardian

NewGuardian constructs a Guardian

func (*Guardian) Descriptor

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

func (Guardian) Equal

func (g Guardian) Equal(guardian Guardian) bool

Equal returns if the guardian is equal to specified guardian

func (*Guardian) GetAccountType

func (m *Guardian) GetAccountType() AccountType

func (*Guardian) GetAddedBy

func (*Guardian) GetAddress

func (*Guardian) GetDescription

func (m *Guardian) GetDescription() string

func (*Guardian) Marshal

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

func (*Guardian) MarshalTo

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

func (*Guardian) MarshalToSizedBuffer

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

func (*Guardian) ProtoMessage

func (*Guardian) ProtoMessage()

func (*Guardian) Reset

func (m *Guardian) Reset()

func (*Guardian) Size

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

func (*Guardian) String

func (m *Guardian) String() string

func (*Guardian) Unmarshal

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

func (*Guardian) XXX_DiscardUnknown

func (m *Guardian) XXX_DiscardUnknown()

func (*Guardian) XXX_Marshal

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

func (*Guardian) XXX_Merge

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

func (*Guardian) XXX_Size

func (m *Guardian) XXX_Size() int

func (*Guardian) XXX_Unmarshal

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

type GuardianI

type GuardianI interface {
	GetDescription() string
	GetAccountType() AccountType
	GetAddress() sdk.AccAddress
	GetAddedBy() sdk.AccAddress
}

type MsgAddProfiler

type MsgAddProfiler struct {
	AddGuardian AddGuardian `protobuf:"bytes,1,opt,name=add_guardian,json=addGuardian,proto3" json:"add_guardian" yaml:"add_guardian"`
}

MsgAddProfiler defines an sdk.Msg type that supports adding profiler

func NewMsgAddProfiler

func NewMsgAddProfiler(description string, address, addedBy sdk.AccAddress) *MsgAddProfiler

NewMsgAddProfiler constructs a MsgAddProfiler

func (*MsgAddProfiler) Descriptor

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

func (*MsgAddProfiler) GetAddGuardian

func (m *MsgAddProfiler) GetAddGuardian() AddGuardian

func (MsgAddProfiler) GetSignBytes

func (msg MsgAddProfiler) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgAddProfiler) GetSigners

func (msg MsgAddProfiler) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgAddProfiler) Marshal

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

func (*MsgAddProfiler) MarshalTo

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

func (*MsgAddProfiler) MarshalToSizedBuffer

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

func (*MsgAddProfiler) ProtoMessage

func (*MsgAddProfiler) ProtoMessage()

func (*MsgAddProfiler) Reset

func (m *MsgAddProfiler) Reset()

func (MsgAddProfiler) Route

func (msg MsgAddProfiler) Route() string

Route implements Msg.

func (*MsgAddProfiler) Size

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

func (*MsgAddProfiler) String

func (m *MsgAddProfiler) String() string

func (MsgAddProfiler) Type

func (msg MsgAddProfiler) Type() string

Type implements Msg.

func (*MsgAddProfiler) Unmarshal

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

func (MsgAddProfiler) ValidateBasic

func (msg MsgAddProfiler) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgAddProfiler) XXX_DiscardUnknown

func (m *MsgAddProfiler) XXX_DiscardUnknown()

func (*MsgAddProfiler) XXX_Marshal

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

func (*MsgAddProfiler) XXX_Merge

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

func (*MsgAddProfiler) XXX_Size

func (m *MsgAddProfiler) XXX_Size() int

func (*MsgAddProfiler) XXX_Unmarshal

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

type MsgAddTrustee

type MsgAddTrustee struct {
	AddGuardian AddGuardian `protobuf:"bytes,1,opt,name=add_guardian,json=addGuardian,proto3" json:"add_guardian" yaml:"add_guardian"`
}

MsgAddTrustee defines an sdk.Msg type that supports adding trustee

func NewMsgAddTrustee

func NewMsgAddTrustee(description string, address, addedAddress sdk.AccAddress) *MsgAddTrustee

NewMsgAddTrustee constructs a MsgAddTrustee

func (*MsgAddTrustee) Descriptor

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

func (*MsgAddTrustee) GetAddGuardian

func (m *MsgAddTrustee) GetAddGuardian() AddGuardian

func (MsgAddTrustee) GetSignBytes

func (msg MsgAddTrustee) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgAddTrustee) GetSigners

func (msg MsgAddTrustee) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgAddTrustee) Marshal

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

func (*MsgAddTrustee) MarshalTo

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

func (*MsgAddTrustee) MarshalToSizedBuffer

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

func (*MsgAddTrustee) ProtoMessage

func (*MsgAddTrustee) ProtoMessage()

func (*MsgAddTrustee) Reset

func (m *MsgAddTrustee) Reset()

func (MsgAddTrustee) Route

func (msg MsgAddTrustee) Route() string

Route implements Msg.

func (*MsgAddTrustee) Size

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

func (*MsgAddTrustee) String

func (m *MsgAddTrustee) String() string

func (MsgAddTrustee) Type

func (msg MsgAddTrustee) Type() string

Type implements Msg.

func (*MsgAddTrustee) Unmarshal

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

func (MsgAddTrustee) ValidateBasic

func (msg MsgAddTrustee) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgAddTrustee) XXX_DiscardUnknown

func (m *MsgAddTrustee) XXX_DiscardUnknown()

func (*MsgAddTrustee) XXX_Marshal

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

func (*MsgAddTrustee) XXX_Merge

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

func (*MsgAddTrustee) XXX_Size

func (m *MsgAddTrustee) XXX_Size() int

func (*MsgAddTrustee) XXX_Unmarshal

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

type MsgDeleteProfiler

type MsgDeleteProfiler struct {
	DeleteGuardian DeleteGuardian `protobuf:"bytes,1,opt,name=delete_guardian,json=deleteGuardian,proto3" json:"delete_guardian" yaml:"delete_guardian"`
}

MsgDeleteProfiler defines an sdk.Msg type that supports deleting profiler

func NewMsgDeleteProfiler

func NewMsgDeleteProfiler(address, deletedBy sdk.AccAddress) *MsgDeleteProfiler

NewMsgDeleteProfiler constructs a MsgDeleteProfiler

func (*MsgDeleteProfiler) Descriptor

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

func (*MsgDeleteProfiler) GetDeleteGuardian

func (m *MsgDeleteProfiler) GetDeleteGuardian() DeleteGuardian

func (MsgDeleteProfiler) GetSignBytes

func (msg MsgDeleteProfiler) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgDeleteProfiler) GetSigners

func (msg MsgDeleteProfiler) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgDeleteProfiler) Marshal

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

func (*MsgDeleteProfiler) MarshalTo

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

func (*MsgDeleteProfiler) MarshalToSizedBuffer

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

func (*MsgDeleteProfiler) ProtoMessage

func (*MsgDeleteProfiler) ProtoMessage()

func (*MsgDeleteProfiler) Reset

func (m *MsgDeleteProfiler) Reset()

func (MsgDeleteProfiler) Route

func (msg MsgDeleteProfiler) Route() string

Route implements Msg.

func (*MsgDeleteProfiler) Size

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

func (*MsgDeleteProfiler) String

func (m *MsgDeleteProfiler) String() string

func (MsgDeleteProfiler) Type

func (msg MsgDeleteProfiler) Type() string

Type implements Msg.

func (*MsgDeleteProfiler) Unmarshal

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

func (MsgDeleteProfiler) ValidateBasic

func (msg MsgDeleteProfiler) ValidateBasic() error

RoValidateBasicute implements Msg.

func (*MsgDeleteProfiler) XXX_DiscardUnknown

func (m *MsgDeleteProfiler) XXX_DiscardUnknown()

func (*MsgDeleteProfiler) XXX_Marshal

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

func (*MsgDeleteProfiler) XXX_Merge

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

func (*MsgDeleteProfiler) XXX_Size

func (m *MsgDeleteProfiler) XXX_Size() int

func (*MsgDeleteProfiler) XXX_Unmarshal

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

type MsgDeleteTrustee

type MsgDeleteTrustee struct {
	DeleteGuardian DeleteGuardian `protobuf:"bytes,1,opt,name=delete_guardian,json=deleteGuardian,proto3" json:"delete_guardian" yaml:"delete_guardian"`
}

MsgDeleteTrustee defines an sdk.Msg type that supports deleting trustee

func NewMsgDeleteTrustee

func NewMsgDeleteTrustee(address, deletedBy sdk.AccAddress) *MsgDeleteTrustee

NewMsgDeleteTrustee constructs a MsgDeleteTrustee

func (*MsgDeleteTrustee) Descriptor

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

func (*MsgDeleteTrustee) GetDeleteGuardian

func (m *MsgDeleteTrustee) GetDeleteGuardian() DeleteGuardian

func (MsgDeleteTrustee) GetSignBytes

func (msg MsgDeleteTrustee) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgDeleteTrustee) GetSigners

func (msg MsgDeleteTrustee) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgDeleteTrustee) Marshal

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

func (*MsgDeleteTrustee) MarshalTo

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

func (*MsgDeleteTrustee) MarshalToSizedBuffer

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

func (*MsgDeleteTrustee) ProtoMessage

func (*MsgDeleteTrustee) ProtoMessage()

func (*MsgDeleteTrustee) Reset

func (m *MsgDeleteTrustee) Reset()

func (MsgDeleteTrustee) Route

func (msg MsgDeleteTrustee) Route() string

Route implements Msg.

func (*MsgDeleteTrustee) Size

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

func (*MsgDeleteTrustee) String

func (m *MsgDeleteTrustee) String() string

func (MsgDeleteTrustee) Type

func (msg MsgDeleteTrustee) Type() string

Type implements Msg.

func (*MsgDeleteTrustee) Unmarshal

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

func (MsgDeleteTrustee) ValidateBasic

func (msg MsgDeleteTrustee) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgDeleteTrustee) XXX_DiscardUnknown

func (m *MsgDeleteTrustee) XXX_DiscardUnknown()

func (*MsgDeleteTrustee) XXX_Marshal

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

func (*MsgDeleteTrustee) XXX_Merge

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

func (*MsgDeleteTrustee) XXX_Size

func (m *MsgDeleteTrustee) XXX_Size() int

func (*MsgDeleteTrustee) XXX_Unmarshal

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

type Profilers

type Profilers []Guardian

Profilers is a collection of Guardian

func (Profilers) String

func (ps Profilers) String() (out string)

String implements string

type QueryClient

type QueryClient interface {
	// Profilers returns all profilers
	Profilers(ctx context.Context, in *QueryProfilersRequest, opts ...grpc.CallOption) (*QueryProfilersResponse, error)
	// Trustees returns all trustees
	Trustees(ctx context.Context, in *QueryTrusteesRequest, opts ...grpc.CallOption) (*QueryTrusteesResponse, 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 QueryProfilersRequest

type QueryProfilersRequest struct {
}

QueryProfilersRequest is request type for the Query/Profilers RPC method

func (*QueryProfilersRequest) Descriptor

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

func (*QueryProfilersRequest) Marshal

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

func (*QueryProfilersRequest) MarshalTo

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

func (*QueryProfilersRequest) MarshalToSizedBuffer

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

func (*QueryProfilersRequest) ProtoMessage

func (*QueryProfilersRequest) ProtoMessage()

func (*QueryProfilersRequest) Reset

func (m *QueryProfilersRequest) Reset()

func (*QueryProfilersRequest) Size

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

func (*QueryProfilersRequest) String

func (m *QueryProfilersRequest) String() string

func (*QueryProfilersRequest) Unmarshal

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

func (*QueryProfilersRequest) XXX_DiscardUnknown

func (m *QueryProfilersRequest) XXX_DiscardUnknown()

func (*QueryProfilersRequest) XXX_Marshal

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

func (*QueryProfilersRequest) XXX_Merge

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

func (*QueryProfilersRequest) XXX_Size

func (m *QueryProfilersRequest) XXX_Size() int

func (*QueryProfilersRequest) XXX_Unmarshal

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

type QueryProfilersResponse

type QueryProfilersResponse struct {
	Profilers []Guardian `protobuf:"bytes,1,rep,name=profilers,proto3" json:"profilers"`
}

QueryProfilersResponse is response type for the Query/Profilers RPC method

func (*QueryProfilersResponse) Descriptor

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

func (*QueryProfilersResponse) GetProfilers

func (m *QueryProfilersResponse) GetProfilers() []Guardian

func (*QueryProfilersResponse) Marshal

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

func (*QueryProfilersResponse) MarshalTo

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

func (*QueryProfilersResponse) MarshalToSizedBuffer

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

func (*QueryProfilersResponse) ProtoMessage

func (*QueryProfilersResponse) ProtoMessage()

func (*QueryProfilersResponse) Reset

func (m *QueryProfilersResponse) Reset()

func (*QueryProfilersResponse) Size

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

func (*QueryProfilersResponse) String

func (m *QueryProfilersResponse) String() string

func (*QueryProfilersResponse) Unmarshal

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

func (*QueryProfilersResponse) XXX_DiscardUnknown

func (m *QueryProfilersResponse) XXX_DiscardUnknown()

func (*QueryProfilersResponse) XXX_Marshal

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

func (*QueryProfilersResponse) XXX_Merge

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

func (*QueryProfilersResponse) XXX_Size

func (m *QueryProfilersResponse) XXX_Size() int

func (*QueryProfilersResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Profilers returns all profilers
	Profilers(context.Context, *QueryProfilersRequest) (*QueryProfilersResponse, error)
	// Trustees returns all trustees
	Trustees(context.Context, *QueryTrusteesRequest) (*QueryTrusteesResponse, error)
}

QueryServer is the server API for Query service.

type QueryTrusteesRequest

type QueryTrusteesRequest struct {
}

QueryTrusteesRequest is request type for the Query/Trustees RPC method

func (*QueryTrusteesRequest) Descriptor

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

func (*QueryTrusteesRequest) Marshal

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

func (*QueryTrusteesRequest) MarshalTo

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

func (*QueryTrusteesRequest) MarshalToSizedBuffer

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

func (*QueryTrusteesRequest) ProtoMessage

func (*QueryTrusteesRequest) ProtoMessage()

func (*QueryTrusteesRequest) Reset

func (m *QueryTrusteesRequest) Reset()

func (*QueryTrusteesRequest) Size

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

func (*QueryTrusteesRequest) String

func (m *QueryTrusteesRequest) String() string

func (*QueryTrusteesRequest) Unmarshal

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

func (*QueryTrusteesRequest) XXX_DiscardUnknown

func (m *QueryTrusteesRequest) XXX_DiscardUnknown()

func (*QueryTrusteesRequest) XXX_Marshal

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

func (*QueryTrusteesRequest) XXX_Merge

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

func (*QueryTrusteesRequest) XXX_Size

func (m *QueryTrusteesRequest) XXX_Size() int

func (*QueryTrusteesRequest) XXX_Unmarshal

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

type QueryTrusteesResponse

type QueryTrusteesResponse struct {
	Trustees []Guardian `protobuf:"bytes,1,rep,name=trustees,proto3" json:"trustees"`
}

QueryTrusteesResponse is response type for the Query/Trustees RPC method

func (*QueryTrusteesResponse) Descriptor

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

func (*QueryTrusteesResponse) GetTrustees

func (m *QueryTrusteesResponse) GetTrustees() []Guardian

func (*QueryTrusteesResponse) Marshal

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

func (*QueryTrusteesResponse) MarshalTo

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

func (*QueryTrusteesResponse) MarshalToSizedBuffer

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

func (*QueryTrusteesResponse) ProtoMessage

func (*QueryTrusteesResponse) ProtoMessage()

func (*QueryTrusteesResponse) Reset

func (m *QueryTrusteesResponse) Reset()

func (*QueryTrusteesResponse) Size

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

func (*QueryTrusteesResponse) String

func (m *QueryTrusteesResponse) String() string

func (*QueryTrusteesResponse) Unmarshal

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

func (*QueryTrusteesResponse) XXX_DiscardUnknown

func (m *QueryTrusteesResponse) XXX_DiscardUnknown()

func (*QueryTrusteesResponse) XXX_Marshal

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

func (*QueryTrusteesResponse) XXX_Merge

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

func (*QueryTrusteesResponse) XXX_Size

func (m *QueryTrusteesResponse) XXX_Size() int

func (*QueryTrusteesResponse) XXX_Unmarshal

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

type Trustees

type Trustees []Guardian

Trustees is a collection of Guardian

func (Trustees) String

func (ts Trustees) String() (out string)

String implements string

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Profilers

func (*UnimplementedQueryServer) Trustees

Jump to

Keyboard shortcuts

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