Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type MsgCancelUpgrade
- func (*MsgCancelUpgrade) Descriptor() ([]byte, []int)
- func (m *MsgCancelUpgrade) GetOperator() string
- func (m MsgCancelUpgrade) GetSignBytes() []byte
- func (m MsgCancelUpgrade) GetSigners() []sdk.AccAddress
- func (m *MsgCancelUpgrade) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelUpgrade) ProtoMessage()
- func (m *MsgCancelUpgrade) Reset()
- func (m MsgCancelUpgrade) Route() string
- func (m *MsgCancelUpgrade) Size() (n int)
- func (m *MsgCancelUpgrade) String() string
- func (m MsgCancelUpgrade) Type() string
- func (m *MsgCancelUpgrade) Unmarshal(dAtA []byte) error
- func (m MsgCancelUpgrade) ValidateBasic() error
- func (m *MsgCancelUpgrade) XXX_DiscardUnknown()
- func (m *MsgCancelUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelUpgrade) XXX_Merge(src proto.Message)
- func (m *MsgCancelUpgrade) XXX_Size() int
- func (m *MsgCancelUpgrade) XXX_Unmarshal(b []byte) error
- type MsgCancelUpgradeResponse
- func (*MsgCancelUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelUpgradeResponse) ProtoMessage()
- func (m *MsgCancelUpgradeResponse) Reset()
- func (m *MsgCancelUpgradeResponse) Size() (n int)
- func (m *MsgCancelUpgradeResponse) String() string
- func (m *MsgCancelUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelUpgradeResponse) XXX_DiscardUnknown()
- func (m *MsgCancelUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelUpgradeResponse) XXX_Size() int
- func (m *MsgCancelUpgradeResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpgradeSoftware
- func (*MsgUpgradeSoftware) Descriptor() ([]byte, []int)
- func (this *MsgUpgradeSoftware) Equal(that interface{}) bool
- func (m *MsgUpgradeSoftware) GetHeight() int64
- func (m *MsgUpgradeSoftware) GetInfo() string
- func (m *MsgUpgradeSoftware) GetName() string
- func (m *MsgUpgradeSoftware) GetOperator() string
- func (m MsgUpgradeSoftware) GetSignBytes() []byte
- func (m MsgUpgradeSoftware) GetSigners() []sdk.AccAddress
- func (m *MsgUpgradeSoftware) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgradeSoftware) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgradeSoftware) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgradeSoftware) ProtoMessage()
- func (m *MsgUpgradeSoftware) Reset()
- func (m MsgUpgradeSoftware) Route() string
- func (m *MsgUpgradeSoftware) Size() (n int)
- func (m *MsgUpgradeSoftware) String() string
- func (m MsgUpgradeSoftware) Type() string
- func (m *MsgUpgradeSoftware) Unmarshal(dAtA []byte) error
- func (m MsgUpgradeSoftware) ValidateBasic() error
- func (m *MsgUpgradeSoftware) XXX_DiscardUnknown()
- func (m *MsgUpgradeSoftware) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgradeSoftware) XXX_Merge(src proto.Message)
- func (m *MsgUpgradeSoftware) XXX_Size() int
- func (m *MsgUpgradeSoftware) XXX_Unmarshal(b []byte) error
- type MsgUpgradeSoftwareResponse
- func (*MsgUpgradeSoftwareResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpgradeSoftwareResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgradeSoftwareResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgradeSoftwareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgradeSoftwareResponse) ProtoMessage()
- func (m *MsgUpgradeSoftwareResponse) Reset()
- func (m *MsgUpgradeSoftwareResponse) Size() (n int)
- func (m *MsgUpgradeSoftwareResponse) String() string
- func (m *MsgUpgradeSoftwareResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpgradeSoftwareResponse) XXX_DiscardUnknown()
- func (m *MsgUpgradeSoftwareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgradeSoftwareResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpgradeSoftwareResponse) XXX_Size() int
- func (m *MsgUpgradeSoftwareResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
Constants ¶
const ( // ModuleName is the name of the upgrade module ModuleName = "upgrade" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route for the upgrade module QuerierRoute = ModuleName QuerierKey = ModuleName // RouterKey is the msg router key for the upgrade module RouterKey = ModuleName AttributeValueCategory = ModuleName )
Variables ¶
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // SubModuleCdc references the global x/ibc/02-client module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding. // // The actual codec used for serialization should be provided to x/ibc/02-client and // defined at the application level. SubModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the ibc client module interfaces to protobuf Any.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
func RegisterMsgServer ¶
Types ¶
type MsgCancelUpgrade ¶
type MsgCancelUpgrade struct {
Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
}
MsgCancelUpgrade - struct for cancel software upgrade
func NewMsgCancelUpgrade ¶
func NewMsgCancelUpgrade(operator sdk.AccAddress) *MsgCancelUpgrade
NewMsgCancelUpgrade creates a new MsgCancelUpgrade instance.
func (*MsgCancelUpgrade) Descriptor ¶
func (*MsgCancelUpgrade) Descriptor() ([]byte, []int)
func (*MsgCancelUpgrade) GetOperator ¶
func (m *MsgCancelUpgrade) GetOperator() string
func (MsgCancelUpgrade) GetSignBytes ¶
func (m MsgCancelUpgrade) GetSignBytes() []byte
func (MsgCancelUpgrade) GetSigners ¶
func (m MsgCancelUpgrade) GetSigners() []sdk.AccAddress
func (*MsgCancelUpgrade) Marshal ¶
func (m *MsgCancelUpgrade) Marshal() (dAtA []byte, err 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
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
func (*MsgCancelUpgrade) Unmarshal ¶
func (m *MsgCancelUpgrade) Unmarshal(dAtA []byte) error
func (MsgCancelUpgrade) ValidateBasic ¶
func (m MsgCancelUpgrade) ValidateBasic() error
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 defines the Msg/CancelUpgrade response type.
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 { // CreateClient defines a method for creating a light client. UpgradeSoftware(ctx context.Context, in *MsgUpgradeSoftware, opts ...grpc.CallOption) (*MsgUpgradeSoftwareResponse, error) // CancelUpgrade defines a method for updating a light client state. 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 { // CreateClient defines a method for creating a light client. UpgradeSoftware(context.Context, *MsgUpgradeSoftware) (*MsgUpgradeSoftwareResponse, error) // CancelUpgrade defines a method for updating a light client state. CancelUpgrade(context.Context, *MsgCancelUpgrade) (*MsgCancelUpgradeResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpgradeSoftware ¶
type MsgUpgradeSoftware struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The height at which the upgrade must be performed. // Only used if Time is not set. Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // Any application specific upgrade info to be included on-chain // such as a git commit that validators could automatically upgrade to Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` }
MsgUpgradeSoftware - struct for upgrade software
func NewMsgUpgradeSoftware ¶
func NewMsgUpgradeSoftware(name string, height int64, info string, operator sdk.AccAddress) *MsgUpgradeSoftware
NewMsgUpgradeSoftware creates a new MsgUpgradeSoftware instance.
func (*MsgUpgradeSoftware) Descriptor ¶
func (*MsgUpgradeSoftware) Descriptor() ([]byte, []int)
func (*MsgUpgradeSoftware) Equal ¶
func (this *MsgUpgradeSoftware) Equal(that interface{}) bool
func (*MsgUpgradeSoftware) GetHeight ¶
func (m *MsgUpgradeSoftware) GetHeight() int64
func (*MsgUpgradeSoftware) GetInfo ¶
func (m *MsgUpgradeSoftware) GetInfo() string
func (*MsgUpgradeSoftware) GetName ¶
func (m *MsgUpgradeSoftware) GetName() string
func (*MsgUpgradeSoftware) GetOperator ¶
func (m *MsgUpgradeSoftware) GetOperator() string
func (MsgUpgradeSoftware) GetSignBytes ¶
func (m MsgUpgradeSoftware) GetSignBytes() []byte
func (MsgUpgradeSoftware) GetSigners ¶
func (m MsgUpgradeSoftware) GetSigners() []sdk.AccAddress
func (*MsgUpgradeSoftware) Marshal ¶
func (m *MsgUpgradeSoftware) Marshal() (dAtA []byte, err error)
func (*MsgUpgradeSoftware) MarshalTo ¶
func (m *MsgUpgradeSoftware) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpgradeSoftware) MarshalToSizedBuffer ¶
func (m *MsgUpgradeSoftware) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgradeSoftware) ProtoMessage ¶
func (*MsgUpgradeSoftware) ProtoMessage()
func (*MsgUpgradeSoftware) Reset ¶
func (m *MsgUpgradeSoftware) Reset()
func (MsgUpgradeSoftware) Route ¶
func (m MsgUpgradeSoftware) Route() string
func (*MsgUpgradeSoftware) Size ¶
func (m *MsgUpgradeSoftware) Size() (n int)
func (*MsgUpgradeSoftware) String ¶
func (m *MsgUpgradeSoftware) String() string
func (MsgUpgradeSoftware) Type ¶
func (m MsgUpgradeSoftware) Type() string
func (*MsgUpgradeSoftware) Unmarshal ¶
func (m *MsgUpgradeSoftware) Unmarshal(dAtA []byte) error
func (MsgUpgradeSoftware) ValidateBasic ¶
func (m MsgUpgradeSoftware) ValidateBasic() error
func (*MsgUpgradeSoftware) XXX_DiscardUnknown ¶
func (m *MsgUpgradeSoftware) XXX_DiscardUnknown()
func (*MsgUpgradeSoftware) XXX_Marshal ¶
func (m *MsgUpgradeSoftware) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgradeSoftware) XXX_Merge ¶
func (m *MsgUpgradeSoftware) XXX_Merge(src proto.Message)
func (*MsgUpgradeSoftware) XXX_Size ¶
func (m *MsgUpgradeSoftware) XXX_Size() int
func (*MsgUpgradeSoftware) XXX_Unmarshal ¶
func (m *MsgUpgradeSoftware) XXX_Unmarshal(b []byte) error
type MsgUpgradeSoftwareResponse ¶
type MsgUpgradeSoftwareResponse struct { }
MsgUpgradeSoftwareResponse defines the Msg/UpgradeSoftware response type.
func (*MsgUpgradeSoftwareResponse) Descriptor ¶
func (*MsgUpgradeSoftwareResponse) Descriptor() ([]byte, []int)
func (*MsgUpgradeSoftwareResponse) Marshal ¶
func (m *MsgUpgradeSoftwareResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpgradeSoftwareResponse) MarshalTo ¶
func (m *MsgUpgradeSoftwareResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpgradeSoftwareResponse) MarshalToSizedBuffer ¶
func (m *MsgUpgradeSoftwareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgradeSoftwareResponse) ProtoMessage ¶
func (*MsgUpgradeSoftwareResponse) ProtoMessage()
func (*MsgUpgradeSoftwareResponse) Reset ¶
func (m *MsgUpgradeSoftwareResponse) Reset()
func (*MsgUpgradeSoftwareResponse) Size ¶
func (m *MsgUpgradeSoftwareResponse) Size() (n int)
func (*MsgUpgradeSoftwareResponse) String ¶
func (m *MsgUpgradeSoftwareResponse) String() string
func (*MsgUpgradeSoftwareResponse) Unmarshal ¶
func (m *MsgUpgradeSoftwareResponse) Unmarshal(dAtA []byte) error
func (*MsgUpgradeSoftwareResponse) XXX_DiscardUnknown ¶
func (m *MsgUpgradeSoftwareResponse) XXX_DiscardUnknown()
func (*MsgUpgradeSoftwareResponse) XXX_Marshal ¶
func (m *MsgUpgradeSoftwareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgradeSoftwareResponse) XXX_Merge ¶
func (m *MsgUpgradeSoftwareResponse) XXX_Merge(src proto.Message)
func (*MsgUpgradeSoftwareResponse) XXX_Size ¶
func (m *MsgUpgradeSoftwareResponse) XXX_Size() int
func (*MsgUpgradeSoftwareResponse) XXX_Unmarshal ¶
func (m *MsgUpgradeSoftwareResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CancelUpgrade ¶
func (*UnimplementedMsgServer) CancelUpgrade(ctx context.Context, req *MsgCancelUpgrade) (*MsgCancelUpgradeResponse, error)
func (*UnimplementedMsgServer) UpgradeSoftware ¶
func (*UnimplementedMsgServer) UpgradeSoftware(ctx context.Context, req *MsgUpgradeSoftware) (*MsgUpgradeSoftwareResponse, error)