Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type AuthorityKeeper
- type ClientKeeper
- type MsgClient
- type MsgClientUpdate
- func (*MsgClientUpdate) Descriptor() ([]byte, []int)
- func (m *MsgClientUpdate) GetSignBytes() []byte
- func (m *MsgClientUpdate) GetSigners() []sdk.AccAddress
- func (m *MsgClientUpdate) Marshal() (dAtA []byte, err error)
- func (m *MsgClientUpdate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClientUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClientUpdate) ProtoMessage()
- func (m *MsgClientUpdate) Reset()
- func (m *MsgClientUpdate) Route() string
- func (m *MsgClientUpdate) Size() (n int)
- func (m *MsgClientUpdate) String() string
- func (m *MsgClientUpdate) Type() string
- func (m *MsgClientUpdate) Unmarshal(dAtA []byte) error
- func (m *MsgClientUpdate) ValidateBasic() error
- func (m *MsgClientUpdate) XXX_DiscardUnknown()
- func (m *MsgClientUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClientUpdate) XXX_Merge(src proto.Message)
- func (m *MsgClientUpdate) XXX_Size() int
- func (m *MsgClientUpdate) XXX_Unmarshal(b []byte) error
- type MsgClientUpdateResponse
- func (*MsgClientUpdateResponse) Descriptor() ([]byte, []int)
- func (m *MsgClientUpdateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClientUpdateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClientUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClientUpdateResponse) ProtoMessage()
- func (m *MsgClientUpdateResponse) Reset()
- func (m *MsgClientUpdateResponse) Size() (n int)
- func (m *MsgClientUpdateResponse) String() string
- func (m *MsgClientUpdateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClientUpdateResponse) XXX_DiscardUnknown()
- func (m *MsgClientUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClientUpdateResponse) XXX_Merge(src proto.Message)
- func (m *MsgClientUpdateResponse) XXX_Size() int
- func (m *MsgClientUpdateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpgrade
- func (*MsgUpgrade) Descriptor() ([]byte, []int)
- func (m *MsgUpgrade) GetAuthority() string
- func (m *MsgUpgrade) GetPlan() types.Plan
- func (m *MsgUpgrade) GetSignBytes() []byte
- func (m *MsgUpgrade) GetSigners() []sdk.AccAddress
- func (m *MsgUpgrade) GetUpgradedClientState() *types1.Any
- func (m *MsgUpgrade) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgrade) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgrade) ProtoMessage()
- func (m *MsgUpgrade) Reset()
- func (m *MsgUpgrade) Route() string
- func (m *MsgUpgrade) Size() (n int)
- func (m *MsgUpgrade) String() string
- func (m *MsgUpgrade) Type() string
- func (m *MsgUpgrade) Unmarshal(dAtA []byte) error
- func (up *MsgUpgrade) ValidateBasic() error
- func (m *MsgUpgrade) XXX_DiscardUnknown()
- func (m *MsgUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgrade) XXX_Merge(src proto.Message)
- func (m *MsgUpgrade) XXX_Size() int
- func (m *MsgUpgrade) XXX_Unmarshal(b []byte) error
- type MsgUpgradeResponse
- func (*MsgUpgradeResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpgradeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpgradeResponse) ProtoMessage()
- func (m *MsgUpgradeResponse) Reset()
- func (m *MsgUpgradeResponse) Size() (n int)
- func (m *MsgUpgradeResponse) String() string
- func (m *MsgUpgradeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpgradeResponse) XXX_DiscardUnknown()
- func (m *MsgUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpgradeResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpgradeResponse) XXX_Size() int
- func (m *MsgUpgradeResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
Constants ¶
const ModuleName = "ibc-authority"
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 (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
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 ¶
Types ¶
type AuthorityKeeper ¶
type ClientKeeper ¶
type ClientKeeper interface { ClientUpdateProposal(ctx sdk.Context, proposal *clienttypes.ClientUpdateProposal) error HandleUpgradeProposal(ctx sdk.Context, proposal *clienttypes.UpgradeProposal) error }
type MsgClient ¶
type MsgClient interface { ClientUpdate(ctx context.Context, in *MsgClientUpdate, opts ...grpc.CallOption) (*MsgClientUpdateResponse, error) Upgrade(ctx context.Context, in *MsgUpgrade, opts ...grpc.CallOption) (*MsgUpgradeResponse, 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 MsgClientUpdate ¶
type MsgClientUpdate struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // the client identifier for the client to be updated if the proposal passes SubjectClientId string `` /* 133-byte string literal not displayed */ // the substitute client identifier for the client standing in for the subject // client SubstituteClientId string `` /* 145-byte string literal not displayed */ }
MsgClientUpdate is request type for the Query/Params RPC method.
func (*MsgClientUpdate) Descriptor ¶
func (*MsgClientUpdate) Descriptor() ([]byte, []int)
func (*MsgClientUpdate) GetSignBytes ¶
func (m *MsgClientUpdate) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgClientUpdate) GetSigners ¶
func (m *MsgClientUpdate) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgClientUpdate.
func (*MsgClientUpdate) Marshal ¶
func (m *MsgClientUpdate) Marshal() (dAtA []byte, err error)
func (*MsgClientUpdate) MarshalToSizedBuffer ¶
func (m *MsgClientUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClientUpdate) ProtoMessage ¶
func (*MsgClientUpdate) ProtoMessage()
func (*MsgClientUpdate) Reset ¶
func (m *MsgClientUpdate) Reset()
func (*MsgClientUpdate) Route ¶
func (m *MsgClientUpdate) Route() string
Route implements the LegacyMsg interface.
func (*MsgClientUpdate) Size ¶
func (m *MsgClientUpdate) Size() (n int)
func (*MsgClientUpdate) String ¶
func (m *MsgClientUpdate) String() string
func (*MsgClientUpdate) Type ¶
func (m *MsgClientUpdate) Type() string
Type implements the LegacyMsg interface.
func (*MsgClientUpdate) Unmarshal ¶
func (m *MsgClientUpdate) Unmarshal(dAtA []byte) error
func (*MsgClientUpdate) ValidateBasic ¶
func (m *MsgClientUpdate) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*MsgClientUpdate) XXX_DiscardUnknown ¶
func (m *MsgClientUpdate) XXX_DiscardUnknown()
func (*MsgClientUpdate) XXX_Marshal ¶
func (m *MsgClientUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClientUpdate) XXX_Merge ¶
func (m *MsgClientUpdate) XXX_Merge(src proto.Message)
func (*MsgClientUpdate) XXX_Size ¶
func (m *MsgClientUpdate) XXX_Size() int
func (*MsgClientUpdate) XXX_Unmarshal ¶
func (m *MsgClientUpdate) XXX_Unmarshal(b []byte) error
type MsgClientUpdateResponse ¶
type MsgClientUpdateResponse struct { }
MsgClientUpdateResponse is response type for the Query/Params RPC method.
func (*MsgClientUpdateResponse) Descriptor ¶
func (*MsgClientUpdateResponse) Descriptor() ([]byte, []int)
func (*MsgClientUpdateResponse) Marshal ¶
func (m *MsgClientUpdateResponse) Marshal() (dAtA []byte, err error)
func (*MsgClientUpdateResponse) MarshalTo ¶
func (m *MsgClientUpdateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClientUpdateResponse) MarshalToSizedBuffer ¶
func (m *MsgClientUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClientUpdateResponse) ProtoMessage ¶
func (*MsgClientUpdateResponse) ProtoMessage()
func (*MsgClientUpdateResponse) Reset ¶
func (m *MsgClientUpdateResponse) Reset()
func (*MsgClientUpdateResponse) Size ¶
func (m *MsgClientUpdateResponse) Size() (n int)
func (*MsgClientUpdateResponse) String ¶
func (m *MsgClientUpdateResponse) String() string
func (*MsgClientUpdateResponse) Unmarshal ¶
func (m *MsgClientUpdateResponse) Unmarshal(dAtA []byte) error
func (*MsgClientUpdateResponse) XXX_DiscardUnknown ¶
func (m *MsgClientUpdateResponse) XXX_DiscardUnknown()
func (*MsgClientUpdateResponse) XXX_Marshal ¶
func (m *MsgClientUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClientUpdateResponse) XXX_Merge ¶
func (m *MsgClientUpdateResponse) XXX_Merge(src proto.Message)
func (*MsgClientUpdateResponse) XXX_Size ¶
func (m *MsgClientUpdateResponse) XXX_Size() int
func (*MsgClientUpdateResponse) XXX_Unmarshal ¶
func (m *MsgClientUpdateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { ClientUpdate(context.Context, *MsgClientUpdate) (*MsgClientUpdateResponse, error) Upgrade(context.Context, *MsgUpgrade) (*MsgUpgradeResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpgrade ¶
type MsgUpgrade struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Plan types.Plan `protobuf:"bytes,2,opt,name=plan,proto3" json:"plan"` // An UpgradedClientState must be provided to perform an IBC breaking upgrade. // This will make the chain commit to the correct upgraded (self) client state // before the upgrade occurs, so that connecting chains can verify that the // new upgraded client is valid by verifying a proof on the previous version // of the chain. This will allow IBC connections to persist smoothly across // planned chain upgrades UpgradedClientState *types1.Any `` /* 149-byte string literal not displayed */ }
MsgUpgrade is request type for the Query/Params RPC method.
func (*MsgUpgrade) Descriptor ¶
func (*MsgUpgrade) Descriptor() ([]byte, []int)
func (*MsgUpgrade) GetAuthority ¶
func (m *MsgUpgrade) GetAuthority() string
func (*MsgUpgrade) GetPlan ¶
func (m *MsgUpgrade) GetPlan() types.Plan
func (*MsgUpgrade) GetSignBytes ¶
func (m *MsgUpgrade) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpgrade) GetSigners ¶
func (m *MsgUpgrade) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgClientUpdate.
func (*MsgUpgrade) GetUpgradedClientState ¶
func (m *MsgUpgrade) GetUpgradedClientState() *types1.Any
func (*MsgUpgrade) Marshal ¶
func (m *MsgUpgrade) Marshal() (dAtA []byte, err error)
func (*MsgUpgrade) MarshalToSizedBuffer ¶
func (m *MsgUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgrade) ProtoMessage ¶
func (*MsgUpgrade) ProtoMessage()
func (*MsgUpgrade) Reset ¶
func (m *MsgUpgrade) Reset()
func (*MsgUpgrade) Route ¶
func (m *MsgUpgrade) Route() string
Route implements the LegacyMsg interface.
func (*MsgUpgrade) Size ¶
func (m *MsgUpgrade) Size() (n int)
func (*MsgUpgrade) String ¶
func (m *MsgUpgrade) String() string
func (*MsgUpgrade) Type ¶
func (m *MsgUpgrade) Type() string
Type implements the LegacyMsg interface.
func (*MsgUpgrade) Unmarshal ¶
func (m *MsgUpgrade) Unmarshal(dAtA []byte) error
func (*MsgUpgrade) ValidateBasic ¶
func (up *MsgUpgrade) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*MsgUpgrade) XXX_DiscardUnknown ¶
func (m *MsgUpgrade) XXX_DiscardUnknown()
func (*MsgUpgrade) XXX_Marshal ¶
func (m *MsgUpgrade) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgrade) XXX_Merge ¶
func (m *MsgUpgrade) XXX_Merge(src proto.Message)
func (*MsgUpgrade) XXX_Size ¶
func (m *MsgUpgrade) XXX_Size() int
func (*MsgUpgrade) XXX_Unmarshal ¶
func (m *MsgUpgrade) XXX_Unmarshal(b []byte) error
type MsgUpgradeResponse ¶
type MsgUpgradeResponse struct { }
MsgUpgradeResponse is response type for the Query/Params RPC method.
func (*MsgUpgradeResponse) Descriptor ¶
func (*MsgUpgradeResponse) Descriptor() ([]byte, []int)
func (*MsgUpgradeResponse) Marshal ¶
func (m *MsgUpgradeResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpgradeResponse) MarshalTo ¶
func (m *MsgUpgradeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpgradeResponse) MarshalToSizedBuffer ¶
func (m *MsgUpgradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpgradeResponse) ProtoMessage ¶
func (*MsgUpgradeResponse) ProtoMessage()
func (*MsgUpgradeResponse) Reset ¶
func (m *MsgUpgradeResponse) Reset()
func (*MsgUpgradeResponse) Size ¶
func (m *MsgUpgradeResponse) Size() (n int)
func (*MsgUpgradeResponse) String ¶
func (m *MsgUpgradeResponse) String() string
func (*MsgUpgradeResponse) Unmarshal ¶
func (m *MsgUpgradeResponse) Unmarshal(dAtA []byte) error
func (*MsgUpgradeResponse) XXX_DiscardUnknown ¶
func (m *MsgUpgradeResponse) XXX_DiscardUnknown()
func (*MsgUpgradeResponse) XXX_Marshal ¶
func (m *MsgUpgradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpgradeResponse) XXX_Merge ¶
func (m *MsgUpgradeResponse) XXX_Merge(src proto.Message)
func (*MsgUpgradeResponse) XXX_Size ¶
func (m *MsgUpgradeResponse) XXX_Size() int
func (*MsgUpgradeResponse) XXX_Unmarshal ¶
func (m *MsgUpgradeResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ClientUpdate ¶
func (*UnimplementedMsgServer) ClientUpdate(ctx context.Context, req *MsgClientUpdate) (*MsgClientUpdateResponse, error)
func (*UnimplementedMsgServer) Upgrade ¶
func (*UnimplementedMsgServer) Upgrade(ctx context.Context, req *MsgUpgrade) (*MsgUpgradeResponse, error)