types

package
v0.4.0-dev.10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc

Functions

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the x/staking interfaces types with the interface registry.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type MsgClient

type MsgClient interface {
	// CreateSEDAValidator defines a method for creating a new validator.
	CreateSEDAValidator(ctx context.Context, in *MsgCreateSEDAValidator, opts ...grpc.CallOption) (*MsgCreateSEDAValidatorResponse, 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 MsgCreateSEDAValidator

type MsgCreateSEDAValidator struct {
	Description       types.Description     `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	Commission        types.CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"`
	MinSelfDelegation cosmossdk_io_math.Int `` /* 137-byte string literal not displayed */
	// Deprecated: Use of Delegator Address in MsgCreateValidator is deprecated.
	// The validator address bytes and delegator address bytes refer to the same
	// account while creating validator (defer only in bech32 notation).
	DelegatorAddress string                 `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // Deprecated: Do not use.
	ValidatorAddress string                 `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Pubkey           *types1.Any            `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Value            types2.Coin            `protobuf:"bytes,7,opt,name=value,proto3" json:"value"`
	IndexedPubKeys   []types3.IndexedPubKey `protobuf:"bytes,8,rep,name=indexed_pub_keys,json=indexedPubKeys,proto3" json:"indexed_pub_keys"`
}

MsgCreateSEDAValidator defines a message for creating a new SEDA validator.

func NewMsgCreateSEDAValidator

func NewMsgCreateSEDAValidator(
	valAddr string, pubKey cryptotypes.PubKey, sedaPubKeys []pubkeytypes.IndexedPubKey,
	selfDelegation sdk.Coin, description types.Description, commission types.CommissionRates,
	minSelfDelegation math.Int,
) (*MsgCreateSEDAValidator, error)

NewMsgCreateSEDAValidator creates a MsgCreateSEDAValidator instance.

func (*MsgCreateSEDAValidator) Descriptor

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

func (*MsgCreateSEDAValidator) Marshal

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

func (*MsgCreateSEDAValidator) MarshalTo

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

func (*MsgCreateSEDAValidator) MarshalToSizedBuffer

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

func (*MsgCreateSEDAValidator) ProtoMessage

func (*MsgCreateSEDAValidator) ProtoMessage()

func (*MsgCreateSEDAValidator) Reset

func (m *MsgCreateSEDAValidator) Reset()

func (*MsgCreateSEDAValidator) Size

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

func (*MsgCreateSEDAValidator) String

func (m *MsgCreateSEDAValidator) String() string

func (*MsgCreateSEDAValidator) Unmarshal

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

func (MsgCreateSEDAValidator) UnpackInterfaces

func (msg MsgCreateSEDAValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateSEDAValidator) Validate

func (msg MsgCreateSEDAValidator) Validate(ac address.Codec) error

Validate validates the MsgCreateSEDAValidator sdk msg.

func (*MsgCreateSEDAValidator) XXX_DiscardUnknown

func (m *MsgCreateSEDAValidator) XXX_DiscardUnknown()

func (*MsgCreateSEDAValidator) XXX_Marshal

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

func (*MsgCreateSEDAValidator) XXX_Merge

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

func (*MsgCreateSEDAValidator) XXX_Size

func (m *MsgCreateSEDAValidator) XXX_Size() int

func (*MsgCreateSEDAValidator) XXX_Unmarshal

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

type MsgCreateSEDAValidatorResponse

type MsgCreateSEDAValidatorResponse struct {
}

MsgCreateSEDAValidatorResponse defines the Msg/MsgCreateSEDAValidator response type.

func (*MsgCreateSEDAValidatorResponse) Descriptor

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

func (*MsgCreateSEDAValidatorResponse) Marshal

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

func (*MsgCreateSEDAValidatorResponse) MarshalTo

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

func (*MsgCreateSEDAValidatorResponse) MarshalToSizedBuffer

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

func (*MsgCreateSEDAValidatorResponse) ProtoMessage

func (*MsgCreateSEDAValidatorResponse) ProtoMessage()

func (*MsgCreateSEDAValidatorResponse) Reset

func (m *MsgCreateSEDAValidatorResponse) Reset()

func (*MsgCreateSEDAValidatorResponse) Size

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

func (*MsgCreateSEDAValidatorResponse) String

func (*MsgCreateSEDAValidatorResponse) Unmarshal

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

func (*MsgCreateSEDAValidatorResponse) XXX_DiscardUnknown

func (m *MsgCreateSEDAValidatorResponse) XXX_DiscardUnknown()

func (*MsgCreateSEDAValidatorResponse) XXX_Marshal

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

func (*MsgCreateSEDAValidatorResponse) XXX_Merge

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

func (*MsgCreateSEDAValidatorResponse) XXX_Size

func (m *MsgCreateSEDAValidatorResponse) XXX_Size() int

func (*MsgCreateSEDAValidatorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateSEDAValidator defines a method for creating a new validator.
	CreateSEDAValidator(context.Context, *MsgCreateSEDAValidator) (*MsgCreateSEDAValidatorResponse, error)
}

MsgServer is the server API for Msg service.

type PubKeyKeeper

type PubKeyKeeper interface {
	StoreIndexedPubKeys(ctx sdk.Context, valAddr sdk.ValAddress, pubKeys []types.IndexedPubKey) error
	IsProvingSchemeActivated(ctx context.Context, index utils.SEDAKeyIndex) (bool, error)
	HasRegisteredKey(ctx context.Context, validatorAddr sdk.ValAddress, index utils.SEDAKeyIndex) (bool, error)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateSEDAValidator

Jump to

Keyboard shortcuts

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