types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 19 Imported by: 7

Documentation

Index

Constants

View Source
const (
	AuthorityKey = "authority"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

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 (
	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 KeyAuthority = []byte("authority")
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable type declaration for parameters

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the param module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 MsgCancelUpgrade

type MsgCancelUpgrade struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
}

MsgCancelUpgrade is the Msg/CancelUpgrade request type.

Since: cosmos-sdk 0.46

func (*MsgCancelUpgrade) Descriptor

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

func (*MsgCancelUpgrade) GetAuthority

func (m *MsgCancelUpgrade) GetAuthority() string

func (MsgCancelUpgrade) GetSignBytes

func (m MsgCancelUpgrade) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgCancelUpgrade) GetSigners

func (m *MsgCancelUpgrade) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgCancelUpgrade.

func (*MsgCancelUpgrade) Marshal

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

func (*MsgCancelUpgrade) MarshalTo

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

func (*MsgCancelUpgrade) MarshalToSizedBuffer

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

func (*MsgCancelUpgrade) ProtoMessage

func (*MsgCancelUpgrade) ProtoMessage()

func (*MsgCancelUpgrade) Reset

func (m *MsgCancelUpgrade) Reset()

func (MsgCancelUpgrade) Route

func (m MsgCancelUpgrade) Route() string

Route implements the LegacyMsg interface.

func (*MsgCancelUpgrade) Size

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

func (*MsgCancelUpgrade) String

func (m *MsgCancelUpgrade) String() string

func (MsgCancelUpgrade) Type

func (m MsgCancelUpgrade) Type() string

Type implements the LegacyMsg interface.

func (*MsgCancelUpgrade) Unmarshal

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

func (*MsgCancelUpgrade) ValidateBasic

func (m *MsgCancelUpgrade) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgCancelUpgrade) XXX_DiscardUnknown

func (m *MsgCancelUpgrade) XXX_DiscardUnknown()

func (*MsgCancelUpgrade) XXX_Marshal

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

func (*MsgCancelUpgrade) XXX_Merge

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

func (*MsgCancelUpgrade) XXX_Size

func (m *MsgCancelUpgrade) XXX_Size() int

func (*MsgCancelUpgrade) XXX_Unmarshal

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

type MsgCancelUpgradeResponse

type MsgCancelUpgradeResponse struct {
}

MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type.

Since: cosmos-sdk 0.46

func (*MsgCancelUpgradeResponse) Descriptor

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

func (*MsgCancelUpgradeResponse) Marshal

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

func (*MsgCancelUpgradeResponse) MarshalTo

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

func (*MsgCancelUpgradeResponse) MarshalToSizedBuffer

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

func (*MsgCancelUpgradeResponse) ProtoMessage

func (*MsgCancelUpgradeResponse) ProtoMessage()

func (*MsgCancelUpgradeResponse) Reset

func (m *MsgCancelUpgradeResponse) Reset()

func (*MsgCancelUpgradeResponse) Size

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

func (*MsgCancelUpgradeResponse) String

func (m *MsgCancelUpgradeResponse) String() string

func (*MsgCancelUpgradeResponse) Unmarshal

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

func (*MsgCancelUpgradeResponse) XXX_DiscardUnknown

func (m *MsgCancelUpgradeResponse) XXX_DiscardUnknown()

func (*MsgCancelUpgradeResponse) XXX_Marshal

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

func (*MsgCancelUpgradeResponse) XXX_Merge

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

func (*MsgCancelUpgradeResponse) XXX_Size

func (m *MsgCancelUpgradeResponse) XXX_Size() int

func (*MsgCancelUpgradeResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// SoftwareUpgrade is a governance operation for initiating a software upgrade.
	//
	// Since: cosmos-sdk 0.46
	SoftwareUpgrade(ctx context.Context, in *MsgSoftwareUpgrade, opts ...grpc.CallOption) (*MsgSoftwareUpgradeResponse, error)
	// CancelUpgrade is a governance operation for cancelling a previously
	// approvid software upgrade.
	//
	// Since: cosmos-sdk 0.46
	CancelUpgrade(ctx context.Context, in *MsgCancelUpgrade, opts ...grpc.CallOption) (*MsgCancelUpgradeResponse, 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 MsgServer

type MsgServer interface {
	// SoftwareUpgrade is a governance operation for initiating a software upgrade.
	//
	// Since: cosmos-sdk 0.46
	SoftwareUpgrade(context.Context, *MsgSoftwareUpgrade) (*MsgSoftwareUpgradeResponse, error)
	// CancelUpgrade is a governance operation for cancelling a previously
	// approvid software upgrade.
	//
	// Since: cosmos-sdk 0.46
	CancelUpgrade(context.Context, *MsgCancelUpgrade) (*MsgCancelUpgradeResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSoftwareUpgrade

type MsgSoftwareUpgrade struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// plan is the upgrade plan.
	Plan github_com_cosmos_cosmos_sdk_x_upgrade_types.Plan `protobuf:"bytes,2,opt,name=plan,proto3,casttype=github.com/cosmos/cosmos-sdk/x/upgrade/types.Plan" json:"plan"`
}

MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type.

Since: cosmos-sdk 0.46

func (*MsgSoftwareUpgrade) Descriptor

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

func (*MsgSoftwareUpgrade) GetAuthority

func (m *MsgSoftwareUpgrade) GetAuthority() string

func (*MsgSoftwareUpgrade) GetPlan

func (MsgSoftwareUpgrade) GetSignBytes

func (m MsgSoftwareUpgrade) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgSoftwareUpgrade) GetSigners

func (m *MsgSoftwareUpgrade) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgSoftwareUpgrade.

func (*MsgSoftwareUpgrade) Marshal

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

func (*MsgSoftwareUpgrade) MarshalTo

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

func (*MsgSoftwareUpgrade) MarshalToSizedBuffer

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

func (*MsgSoftwareUpgrade) ProtoMessage

func (*MsgSoftwareUpgrade) ProtoMessage()

func (*MsgSoftwareUpgrade) Reset

func (m *MsgSoftwareUpgrade) Reset()

func (MsgSoftwareUpgrade) Route

func (m MsgSoftwareUpgrade) Route() string

Route implements the LegacyMsg interface.

func (*MsgSoftwareUpgrade) Size

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

func (*MsgSoftwareUpgrade) String

func (m *MsgSoftwareUpgrade) String() string

func (MsgSoftwareUpgrade) Type

func (m MsgSoftwareUpgrade) Type() string

Type implements the LegacyMsg interface.

func (*MsgSoftwareUpgrade) Unmarshal

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

func (*MsgSoftwareUpgrade) ValidateBasic

func (m *MsgSoftwareUpgrade) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgSoftwareUpgrade) XXX_DiscardUnknown

func (m *MsgSoftwareUpgrade) XXX_DiscardUnknown()

func (*MsgSoftwareUpgrade) XXX_Marshal

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

func (*MsgSoftwareUpgrade) XXX_Merge

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

func (*MsgSoftwareUpgrade) XXX_Size

func (m *MsgSoftwareUpgrade) XXX_Size() int

func (*MsgSoftwareUpgrade) XXX_Unmarshal

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

type MsgSoftwareUpgradeResponse

type MsgSoftwareUpgradeResponse struct {
}

MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type.

Since: cosmos-sdk 0.46

func (*MsgSoftwareUpgradeResponse) Descriptor

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

func (*MsgSoftwareUpgradeResponse) Marshal

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

func (*MsgSoftwareUpgradeResponse) MarshalTo

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

func (*MsgSoftwareUpgradeResponse) MarshalToSizedBuffer

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

func (*MsgSoftwareUpgradeResponse) ProtoMessage

func (*MsgSoftwareUpgradeResponse) ProtoMessage()

func (*MsgSoftwareUpgradeResponse) Reset

func (m *MsgSoftwareUpgradeResponse) Reset()

func (*MsgSoftwareUpgradeResponse) Size

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

func (*MsgSoftwareUpgradeResponse) String

func (m *MsgSoftwareUpgradeResponse) String() string

func (*MsgSoftwareUpgradeResponse) Unmarshal

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

func (*MsgSoftwareUpgradeResponse) XXX_DiscardUnknown

func (m *MsgSoftwareUpgradeResponse) XXX_DiscardUnknown()

func (*MsgSoftwareUpgradeResponse) XXX_Marshal

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

func (*MsgSoftwareUpgradeResponse) XXX_Merge

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

func (*MsgSoftwareUpgradeResponse) XXX_Size

func (m *MsgSoftwareUpgradeResponse) XXX_Size() int

func (*MsgSoftwareUpgradeResponse) XXX_Unmarshal

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

type Params

type Params struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"`
}

Params defines the set of params module parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams is the default parameter configuration for the params module

func NewParams

func NewParams(authority string) Params

NewParams creates a new parameter configuration for the params module

func (*Params) Descriptor

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

func (*Params) GetAuthority

func (m *Params) GetAuthority() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate all upgrade module parameters

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CancelUpgrade

func (*UnimplementedMsgServer) SoftwareUpgrade

Jump to

Keyboard shortcuts

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