types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 20 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")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

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

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type AccountKeeper

type AccountKeeper interface {
	stakingtypes.AccountKeeper

	NewAccountWithAddress(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
	SetAccount(ctx context.Context, acc sdk.AccountI)
}

type MsgClient

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

type MsgCreateValidatorWithVRF 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"`
	VrfPubkey        *types1.Any `protobuf:"bytes,8,opt,name=vrf_pubkey,json=vrfPubkey,proto3" json:"vrf_pubkey,omitempty"`
}

MsgCreateValidator defines a SDK message for creating a new validator.

func NewMsgCreateValidatorWithVRF

func NewMsgCreateValidatorWithVRF(
	valAddr string, pubKey, vrfPubKey cryptotypes.PubKey,
	selfDelegation sdk.Coin, description types.Description, commission types.CommissionRates, minSelfDelegation math.Int,
) (*MsgCreateValidatorWithVRF, error)

NewMsgCreateValidatorWithVRF creates a MsgCreateValidatorWithVRF instance.

func (*MsgCreateValidatorWithVRF) Descriptor

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

func (*MsgCreateValidatorWithVRF) Marshal

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

func (*MsgCreateValidatorWithVRF) MarshalTo

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

func (*MsgCreateValidatorWithVRF) MarshalToSizedBuffer

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

func (*MsgCreateValidatorWithVRF) ProtoMessage

func (*MsgCreateValidatorWithVRF) ProtoMessage()

func (*MsgCreateValidatorWithVRF) Reset

func (m *MsgCreateValidatorWithVRF) Reset()

func (*MsgCreateValidatorWithVRF) Size

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

func (*MsgCreateValidatorWithVRF) String

func (m *MsgCreateValidatorWithVRF) String() string

func (*MsgCreateValidatorWithVRF) Unmarshal

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

func (MsgCreateValidatorWithVRF) UnpackInterfaces

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

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateValidatorWithVRF) Validate

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

Validate validates the MsgCreateValidatorWithVRF sdk msg.

func (*MsgCreateValidatorWithVRF) XXX_DiscardUnknown

func (m *MsgCreateValidatorWithVRF) XXX_DiscardUnknown()

func (*MsgCreateValidatorWithVRF) XXX_Marshal

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

func (*MsgCreateValidatorWithVRF) XXX_Merge

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

func (*MsgCreateValidatorWithVRF) XXX_Size

func (m *MsgCreateValidatorWithVRF) XXX_Size() int

func (*MsgCreateValidatorWithVRF) XXX_Unmarshal

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

type MsgCreateValidatorWithVRFResponse

type MsgCreateValidatorWithVRFResponse struct {
}

MsgCreateValidatorResponse defines the Msg/CreateValidator response type.

func (*MsgCreateValidatorWithVRFResponse) Descriptor

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

func (*MsgCreateValidatorWithVRFResponse) Marshal

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

func (*MsgCreateValidatorWithVRFResponse) MarshalTo

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

func (*MsgCreateValidatorWithVRFResponse) MarshalToSizedBuffer

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

func (*MsgCreateValidatorWithVRFResponse) ProtoMessage

func (*MsgCreateValidatorWithVRFResponse) ProtoMessage()

func (*MsgCreateValidatorWithVRFResponse) Reset

func (*MsgCreateValidatorWithVRFResponse) Size

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

func (*MsgCreateValidatorWithVRFResponse) String

func (*MsgCreateValidatorWithVRFResponse) Unmarshal

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

func (*MsgCreateValidatorWithVRFResponse) XXX_DiscardUnknown

func (m *MsgCreateValidatorWithVRFResponse) XXX_DiscardUnknown()

func (*MsgCreateValidatorWithVRFResponse) XXX_Marshal

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

func (*MsgCreateValidatorWithVRFResponse) XXX_Merge

func (*MsgCreateValidatorWithVRFResponse) XXX_Size

func (m *MsgCreateValidatorWithVRFResponse) XXX_Size() int

func (*MsgCreateValidatorWithVRFResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateValidatorWithVRF defines a method for creating a new validator.
	CreateValidatorWithVRF(context.Context, *MsgCreateValidatorWithVRF) (*MsgCreateValidatorWithVRFResponse, error)
}

MsgServer is the server API for Msg service.

type RandomnessKeeper

type RandomnessKeeper interface {
	SetValidatorVRFPubKey(ctx context.Context, consensusAddr string, vrfPubKey cryptotypes.PubKey) error
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateValidatorWithVRF

Jump to

Keyboard shortcuts

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