node

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ProposalTypeCreateValidator string = "CreateValidator"
	ProposalTypeUpdateValidator string = "UpdateValidator"
	ProposalTypeRemoveValidator string = "RemoveValidator"

	// DoNotModifyDesc used in flags to indicate that description field should not be updated
	DoNotModifyDesc = "[do-not-modify]"
)

Variables

View Source
var (
	ErrInvalidLengthNode        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNode          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNode = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

Types

type CreateValidatorProposal

type CreateValidatorProposal struct {
	Title       string     `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Summary     string     `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	Name        string     `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Pubkey      *types.Any `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Power       int64      `protobuf:"varint,5,opt,name=power,proto3" json:"power,omitempty"`
	Description string     `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Operator    string     `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"`
}

CreateValidatorProposal is a gov Content type for creating a validator

func (*CreateValidatorProposal) Descriptor

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

func (*CreateValidatorProposal) Equal

func (this *CreateValidatorProposal) Equal(that interface{}) bool

func (*CreateValidatorProposal) GetDescription

func (sup *CreateValidatorProposal) GetDescription() string

func (*CreateValidatorProposal) GetTitle

func (sup *CreateValidatorProposal) GetTitle() string

func (*CreateValidatorProposal) Marshal

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

func (*CreateValidatorProposal) MarshalTo

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

func (*CreateValidatorProposal) MarshalToSizedBuffer

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

func (*CreateValidatorProposal) ProposalRoute

func (sup *CreateValidatorProposal) ProposalRoute() string

func (*CreateValidatorProposal) ProposalType

func (sup *CreateValidatorProposal) ProposalType() string

func (*CreateValidatorProposal) ProtoMessage

func (*CreateValidatorProposal) ProtoMessage()

func (*CreateValidatorProposal) Reset

func (m *CreateValidatorProposal) Reset()

func (*CreateValidatorProposal) Size

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

func (*CreateValidatorProposal) String

func (m *CreateValidatorProposal) String() string

func (*CreateValidatorProposal) Unmarshal

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

func (CreateValidatorProposal) UnpackInterfaces

func (sup CreateValidatorProposal) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*CreateValidatorProposal) ValidateBasic

func (sup *CreateValidatorProposal) ValidateBasic() error

func (*CreateValidatorProposal) XXX_DiscardUnknown

func (m *CreateValidatorProposal) XXX_DiscardUnknown()

func (*CreateValidatorProposal) XXX_Marshal

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

func (*CreateValidatorProposal) XXX_Merge

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

func (*CreateValidatorProposal) XXX_Size

func (m *CreateValidatorProposal) XXX_Size() int

func (*CreateValidatorProposal) XXX_Unmarshal

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

type RemoveValidatorProposal

type RemoveValidatorProposal struct {
	Title    string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Summary  string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	Id       string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"`
}

RemoveValidatorProposal is a gov Content type for removing a validator

func (*RemoveValidatorProposal) Descriptor

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

func (*RemoveValidatorProposal) Equal

func (this *RemoveValidatorProposal) Equal(that interface{}) bool

func (*RemoveValidatorProposal) GetDescription

func (sup *RemoveValidatorProposal) GetDescription() string

func (*RemoveValidatorProposal) GetTitle

func (sup *RemoveValidatorProposal) GetTitle() string

func (*RemoveValidatorProposal) Marshal

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

func (*RemoveValidatorProposal) MarshalTo

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

func (*RemoveValidatorProposal) MarshalToSizedBuffer

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

func (*RemoveValidatorProposal) ProposalRoute

func (sup *RemoveValidatorProposal) ProposalRoute() string

func (*RemoveValidatorProposal) ProposalType

func (sup *RemoveValidatorProposal) ProposalType() string

func (*RemoveValidatorProposal) ProtoMessage

func (*RemoveValidatorProposal) ProtoMessage()

func (*RemoveValidatorProposal) Reset

func (m *RemoveValidatorProposal) Reset()

func (*RemoveValidatorProposal) Size

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

func (*RemoveValidatorProposal) String

func (m *RemoveValidatorProposal) String() string

func (*RemoveValidatorProposal) Unmarshal

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

func (*RemoveValidatorProposal) ValidateBasic

func (sup *RemoveValidatorProposal) ValidateBasic() error

func (*RemoveValidatorProposal) XXX_DiscardUnknown

func (m *RemoveValidatorProposal) XXX_DiscardUnknown()

func (*RemoveValidatorProposal) XXX_Marshal

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

func (*RemoveValidatorProposal) XXX_Merge

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

func (*RemoveValidatorProposal) XXX_Size

func (m *RemoveValidatorProposal) XXX_Size() int

func (*RemoveValidatorProposal) XXX_Unmarshal

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

type UpdateValidatorProposal

type UpdateValidatorProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Summary     string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	Id          string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Power       int64  `protobuf:"varint,5,opt,name=power,proto3" json:"power,omitempty"`
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Operator    string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"`
}

UpdateValidatorProposal is a gov Content type for updating a validator

func (*UpdateValidatorProposal) Descriptor

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

func (*UpdateValidatorProposal) Equal

func (this *UpdateValidatorProposal) Equal(that interface{}) bool

func (*UpdateValidatorProposal) GetDescription

func (sup *UpdateValidatorProposal) GetDescription() string

func (*UpdateValidatorProposal) GetTitle

func (sup *UpdateValidatorProposal) GetTitle() string

func (*UpdateValidatorProposal) Marshal

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

func (*UpdateValidatorProposal) MarshalTo

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

func (*UpdateValidatorProposal) MarshalToSizedBuffer

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

func (*UpdateValidatorProposal) ProposalRoute

func (sup *UpdateValidatorProposal) ProposalRoute() string

func (*UpdateValidatorProposal) ProposalType

func (sup *UpdateValidatorProposal) ProposalType() string

func (*UpdateValidatorProposal) ProtoMessage

func (*UpdateValidatorProposal) ProtoMessage()

func (*UpdateValidatorProposal) Reset

func (m *UpdateValidatorProposal) Reset()

func (*UpdateValidatorProposal) Size

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

func (*UpdateValidatorProposal) String

func (m *UpdateValidatorProposal) String() string

func (*UpdateValidatorProposal) Unmarshal

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

func (*UpdateValidatorProposal) ValidateBasic

func (sup *UpdateValidatorProposal) ValidateBasic() error

func (*UpdateValidatorProposal) XXX_DiscardUnknown

func (m *UpdateValidatorProposal) XXX_DiscardUnknown()

func (*UpdateValidatorProposal) XXX_Marshal

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

func (*UpdateValidatorProposal) XXX_Merge

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

func (*UpdateValidatorProposal) XXX_Size

func (m *UpdateValidatorProposal) XXX_Size() int

func (*UpdateValidatorProposal) XXX_Unmarshal

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

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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