remove old client messages (#7218)
This commit is contained in:
parent
5560a12416
commit
d7175e12c2
@ -66,27 +66,4 @@ message TimestampedSignature {
|
||||
bytes signature = 1;
|
||||
uint64 timestamp = 2;
|
||||
}
|
||||
// MsgCreateClient defines a message to create an IBC client
|
||||
message MsgCreateClient {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
|
||||
ConsensusState consensus_state = 2
|
||||
[(gogoproto.moretags) = "yaml:\"consensus_state\""];
|
||||
}
|
||||
|
||||
// MsgUpdateClient defines a message to update an IBC client
|
||||
message MsgUpdateClient {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
|
||||
Header header = 2;
|
||||
}
|
||||
|
||||
// MsgSubmitClientMisbehaviour defines an sdk.Msg type that supports submitting
|
||||
// arbitrary Misbehaviour.
|
||||
message MsgSubmitClientMisbehaviour {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
bytes signer = 1
|
||||
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
Misbehaviour misbehaviour = 2;
|
||||
}
|
||||
|
||||
|
||||
@ -6,14 +6,6 @@ import "ibc/client/client.proto";
|
||||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/09-localhost/types";
|
||||
|
||||
// MsgCreateClient defines a message to create a localhost client state
|
||||
message MsgCreateClient {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
bytes signer = 1
|
||||
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// ClientState defines a loopback (localhost) client. It requires (read-only)
|
||||
// access to keys outside the client prefix.
|
||||
message ClientState {
|
||||
@ -21,11 +13,7 @@ message ClientState {
|
||||
// client id
|
||||
string id = 1;
|
||||
// self chain ID
|
||||
string chain_id = 2 [
|
||||
(gogoproto.moretags) = "yaml:\"chain_id\""
|
||||
];
|
||||
string chain_id = 2 [(gogoproto.moretags) = "yaml:\"chain_id\""];
|
||||
// self latest block height
|
||||
ibc.client.Height height = 3 [
|
||||
(gogoproto.nullable) = false
|
||||
];
|
||||
ibc.client.Height height = 3 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
@ -67,10 +67,8 @@ message ConsensusState {
|
||||
// commitment root (i.e app hash)
|
||||
ibc.commitment.MerkleRoot root = 2 [(gogoproto.nullable) = false];
|
||||
// height at which the consensus state was stored.
|
||||
ibc.client.Height height = 3 [
|
||||
(gogoproto.nullable) = false
|
||||
];
|
||||
bytes next_validators_hash = 4 [
|
||||
ibc.client.Height height = 3 [(gogoproto.nullable) = false];
|
||||
bytes next_validators_hash = 4 [
|
||||
(gogoproto.casttype) =
|
||||
"github.com/tendermint/tendermint/libs/bytes.HexBytes",
|
||||
(gogoproto.moretags) = "yaml:\"next_validators_hash\""
|
||||
@ -129,54 +127,3 @@ message Fraction {
|
||||
int64 denominator = 2;
|
||||
}
|
||||
|
||||
// MsgCreateClient defines a message to create a tendermint client.
|
||||
message MsgCreateClient {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
|
||||
Header header = 2;
|
||||
Fraction trust_level = 3 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.moretags) = "yaml:\"trust_level\""
|
||||
];
|
||||
google.protobuf.Duration trusting_period = 4 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.stdduration) = true,
|
||||
(gogoproto.moretags) = "yaml:\"trusting_period\""
|
||||
];
|
||||
google.protobuf.Duration unbonding_period = 5 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.stdduration) = true,
|
||||
(gogoproto.moretags) = "yaml:\"unbonding_period\""
|
||||
];
|
||||
google.protobuf.Duration max_clock_drift = 6 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.stdduration) = true,
|
||||
(gogoproto.moretags) = "yaml:\"max_clock_drift\""
|
||||
];
|
||||
repeated ics23.ProofSpec proof_specs = 7
|
||||
[(gogoproto.moretags) = "yaml:\"proof_specs\""];
|
||||
bytes signer = 8
|
||||
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// MsgCreateClient defines an sdk.Msg to update a tendermint client state to
|
||||
// the given header.
|
||||
message MsgUpdateClient {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
|
||||
Header header = 2;
|
||||
bytes signer = 3
|
||||
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// MsgSubmitClientMisbehaviour defines an sdk.Msg type that submits Evidence for
|
||||
// light client misbehaviour.
|
||||
message MsgSubmitClientMisbehaviour {
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
|
||||
Misbehaviour misbehaviour = 1;
|
||||
bytes signer = 2
|
||||
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,6 @@ package types
|
||||
|
||||
import (
|
||||
fmt "fmt"
|
||||
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
||||
types "github.com/cosmos/cosmos-sdk/x/ibc/02-client/types"
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
@ -25,44 +24,6 @@ var _ = math.Inf
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// MsgCreateClient defines a message to create a localhost client state
|
||||
type MsgCreateClient struct {
|
||||
Signer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) Reset() { *m = MsgCreateClient{} }
|
||||
func (m *MsgCreateClient) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateClient) ProtoMessage() {}
|
||||
func (*MsgCreateClient) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_6a04d924e6f8a88e, []int{0}
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MsgCreateClient.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgCreateClient.Merge(m, src)
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgCreateClient.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MsgCreateClient proto.InternalMessageInfo
|
||||
|
||||
// ClientState defines a loopback (localhost) client. It requires (read-only)
|
||||
// access to keys outside the client prefix.
|
||||
type ClientState struct {
|
||||
@ -78,7 +39,7 @@ func (m *ClientState) Reset() { *m = ClientState{} }
|
||||
func (m *ClientState) String() string { return proto.CompactTextString(m) }
|
||||
func (*ClientState) ProtoMessage() {}
|
||||
func (*ClientState) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_6a04d924e6f8a88e, []int{1}
|
||||
return fileDescriptor_6a04d924e6f8a88e, []int{0}
|
||||
}
|
||||
func (m *ClientState) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -108,64 +69,30 @@ func (m *ClientState) XXX_DiscardUnknown() {
|
||||
var xxx_messageInfo_ClientState proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*MsgCreateClient)(nil), "ibc.localhost.MsgCreateClient")
|
||||
proto.RegisterType((*ClientState)(nil), "ibc.localhost.ClientState")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("ibc/localhost/localhost.proto", fileDescriptor_6a04d924e6f8a88e) }
|
||||
|
||||
var fileDescriptor_6a04d924e6f8a88e = []byte{
|
||||
// 317 bytes of a gzipped FileDescriptorProto
|
||||
// 261 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0x4c, 0x4a, 0xd6,
|
||||
0xcf, 0xc9, 0x4f, 0x4e, 0xcc, 0xc9, 0xc8, 0x2f, 0x2e, 0x41, 0xb0, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b,
|
||||
0xf2, 0x85, 0x78, 0x33, 0x93, 0x92, 0xf5, 0xe0, 0x82, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60,
|
||||
0x19, 0x7d, 0x10, 0x0b, 0xa2, 0x48, 0x4a, 0x1c, 0x64, 0x46, 0x72, 0x4e, 0x66, 0x6a, 0x5e, 0x09,
|
||||
0x94, 0x82, 0x48, 0x28, 0x25, 0x71, 0xf1, 0xfb, 0x16, 0xa7, 0x3b, 0x17, 0xa5, 0x26, 0x96, 0xa4,
|
||||
0x3a, 0x83, 0x25, 0x84, 0x3c, 0xb9, 0xd8, 0x8a, 0x33, 0xd3, 0xf3, 0x52, 0x8b, 0x24, 0x18, 0x15,
|
||||
0x18, 0x35, 0x78, 0x9c, 0x0c, 0x7f, 0xdd, 0x93, 0xd7, 0x4d, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2,
|
||||
0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0xce, 0xcd, 0x2f, 0x86, 0x52, 0xba, 0xc5, 0x29, 0xd9,
|
||||
0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x7a, 0x8e, 0xc9, 0xc9, 0x8e, 0x29, 0x29, 0x45, 0xa9, 0xc5,
|
||||
0xc5, 0x41, 0x50, 0x03, 0xac, 0x58, 0x3a, 0x16, 0xc8, 0x33, 0x28, 0xb5, 0x32, 0x72, 0x71, 0x43,
|
||||
0xcc, 0x0e, 0x2e, 0x49, 0x2c, 0x49, 0x15, 0xe2, 0xe3, 0x62, 0xca, 0x4c, 0x01, 0x1b, 0xce, 0x19,
|
||||
0xc4, 0x94, 0x99, 0x22, 0xa4, 0xc7, 0xc5, 0x91, 0x9c, 0x91, 0x98, 0x99, 0x17, 0x9f, 0x99, 0x22,
|
||||
0xc1, 0x04, 0x12, 0x75, 0x12, 0xfe, 0x74, 0x4f, 0x9e, 0xbf, 0x32, 0x31, 0x37, 0xc7, 0x4a, 0x09,
|
||||
0x26, 0xa3, 0x14, 0xc4, 0x0e, 0x66, 0x7a, 0xa6, 0x08, 0x19, 0x70, 0xb1, 0x65, 0xa4, 0x66, 0xa6,
|
||||
0x67, 0x94, 0x48, 0x30, 0x2b, 0x30, 0x6a, 0x70, 0x1b, 0x09, 0xe9, 0x81, 0x82, 0x00, 0xea, 0x2d,
|
||||
0x0f, 0xb0, 0x8c, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x75, 0x10, 0x77, 0x38, 0xf9,
|
||||
0x9f, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb,
|
||||
0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x29, 0x5e, 0xef, 0x55, 0xe8,
|
||||
0x83, 0x42, 0xcf, 0xc0, 0x52, 0x17, 0x11, 0x09, 0x60, 0x1f, 0x27, 0xb1, 0x81, 0xc3, 0xd0, 0x18,
|
||||
0x10, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x4e, 0x4d, 0x60, 0xa2, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Signer) > 0 {
|
||||
i -= len(m.Signer)
|
||||
copy(dAtA[i:], m.Signer)
|
||||
i = encodeVarintLocalhost(dAtA, i, uint64(len(m.Signer)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
0x94, 0x82, 0x48, 0x28, 0xb5, 0x32, 0x72, 0x71, 0x3b, 0x83, 0x05, 0x82, 0x4b, 0x12, 0x4b, 0x52,
|
||||
0x85, 0xf8, 0xb8, 0x98, 0x32, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x98, 0x32, 0x53,
|
||||
0x84, 0xf4, 0xb8, 0x38, 0x92, 0x33, 0x12, 0x33, 0xf3, 0xe2, 0x33, 0x53, 0x24, 0x98, 0x40, 0xa2,
|
||||
0x4e, 0xc2, 0x9f, 0xee, 0xc9, 0xf3, 0x57, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0xc1, 0x64, 0x94, 0x82,
|
||||
0xd8, 0xc1, 0x4c, 0xcf, 0x14, 0x21, 0x03, 0x2e, 0xb6, 0x8c, 0xd4, 0xcc, 0xf4, 0x8c, 0x12, 0x09,
|
||||
0x66, 0x05, 0x46, 0x0d, 0x6e, 0x23, 0x21, 0x3d, 0x90, 0xf3, 0xa0, 0x56, 0x7a, 0x80, 0x65, 0x9c,
|
||||
0x58, 0x4e, 0xdc, 0x93, 0x67, 0x08, 0x82, 0xaa, 0xb3, 0x62, 0xe9, 0x58, 0x20, 0xcf, 0xe0, 0xe4,
|
||||
0x7f, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c,
|
||||
0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xa6, 0xe9, 0x99, 0x25, 0x19,
|
||||
0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xc9, 0xf9, 0xc5, 0xb9, 0xf9, 0xc5, 0x50, 0x4a, 0xb7,
|
||||
0x38, 0x25, 0x5b, 0xbf, 0x42, 0x1f, 0xe4, 0x33, 0x03, 0x4b, 0x5d, 0x44, 0x00, 0x95, 0x54, 0x16,
|
||||
0xa4, 0x16, 0x27, 0xb1, 0x81, 0xfd, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x3d, 0xbf, 0x65,
|
||||
0xd9, 0x3e, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *ClientState) Marshal() (dAtA []byte, err error) {
|
||||
@ -226,19 +153,6 @@ func encodeVarintLocalhost(dAtA []byte, offset int, v uint64) int {
|
||||
dAtA[offset] = uint8(v)
|
||||
return base
|
||||
}
|
||||
func (m *MsgCreateClient) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Signer)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovLocalhost(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *ClientState) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
@ -264,93 +178,6 @@ func sovLocalhost(x uint64) (n int) {
|
||||
func sozLocalhost(x uint64) (n int) {
|
||||
return sovLocalhost(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
||||
}
|
||||
func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowLocalhost
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: MsgCreateClient: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: MsgCreateClient: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
|
||||
}
|
||||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowLocalhost
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
byteLen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...)
|
||||
if m.Signer == nil {
|
||||
m.Signer = []byte{}
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipLocalhost(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthLocalhost
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *ClientState) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
|
||||
@ -6,7 +6,6 @@ package types
|
||||
import (
|
||||
fmt "fmt"
|
||||
types "github.com/cosmos/cosmos-sdk/crypto/types"
|
||||
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
io "io"
|
||||
@ -270,124 +269,6 @@ func (m *TimestampedSignature) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_TimestampedSignature proto.InternalMessageInfo
|
||||
|
||||
// MsgCreateClient defines a message to create an IBC client
|
||||
type MsgCreateClient struct {
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
|
||||
ConsensusState *ConsensusState `protobuf:"bytes,2,opt,name=consensus_state,json=consensusState,proto3" json:"consensus_state,omitempty" yaml:"consensus_state"`
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) Reset() { *m = MsgCreateClient{} }
|
||||
func (m *MsgCreateClient) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgCreateClient) ProtoMessage() {}
|
||||
func (*MsgCreateClient) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_6cc2ee18f7f86d4e, []int{6}
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MsgCreateClient.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgCreateClient.Merge(m, src)
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MsgCreateClient) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgCreateClient.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MsgCreateClient proto.InternalMessageInfo
|
||||
|
||||
// MsgUpdateClient defines a message to update an IBC client
|
||||
type MsgUpdateClient struct {
|
||||
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
|
||||
Header *Header `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MsgUpdateClient) Reset() { *m = MsgUpdateClient{} }
|
||||
func (m *MsgUpdateClient) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgUpdateClient) ProtoMessage() {}
|
||||
func (*MsgUpdateClient) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_6cc2ee18f7f86d4e, []int{7}
|
||||
}
|
||||
func (m *MsgUpdateClient) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MsgUpdateClient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MsgUpdateClient.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *MsgUpdateClient) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgUpdateClient.Merge(m, src)
|
||||
}
|
||||
func (m *MsgUpdateClient) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MsgUpdateClient) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgUpdateClient.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MsgUpdateClient proto.InternalMessageInfo
|
||||
|
||||
// MsgSubmitClientMisbehaviour defines an sdk.Msg type that supports submitting
|
||||
// arbitrary Misbehaviour.
|
||||
type MsgSubmitClientMisbehaviour struct {
|
||||
Signer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
|
||||
Misbehaviour *Misbehaviour `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"`
|
||||
}
|
||||
|
||||
func (m *MsgSubmitClientMisbehaviour) Reset() { *m = MsgSubmitClientMisbehaviour{} }
|
||||
func (m *MsgSubmitClientMisbehaviour) String() string { return proto.CompactTextString(m) }
|
||||
func (*MsgSubmitClientMisbehaviour) ProtoMessage() {}
|
||||
func (*MsgSubmitClientMisbehaviour) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_6cc2ee18f7f86d4e, []int{8}
|
||||
}
|
||||
func (m *MsgSubmitClientMisbehaviour) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *MsgSubmitClientMisbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_MsgSubmitClientMisbehaviour.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *MsgSubmitClientMisbehaviour) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_MsgSubmitClientMisbehaviour.Merge(m, src)
|
||||
}
|
||||
func (m *MsgSubmitClientMisbehaviour) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *MsgSubmitClientMisbehaviour) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_MsgSubmitClientMisbehaviour.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_MsgSubmitClientMisbehaviour proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ClientState)(nil), "ibc.lightclients.solomachine.v1.ClientState")
|
||||
proto.RegisterType((*ConsensusState)(nil), "ibc.lightclients.solomachine.v1.ConsensusState")
|
||||
@ -395,9 +276,6 @@ func init() {
|
||||
proto.RegisterType((*Misbehaviour)(nil), "ibc.lightclients.solomachine.v1.Misbehaviour")
|
||||
proto.RegisterType((*SignatureAndData)(nil), "ibc.lightclients.solomachine.v1.SignatureAndData")
|
||||
proto.RegisterType((*TimestampedSignature)(nil), "ibc.lightclients.solomachine.v1.TimestampedSignature")
|
||||
proto.RegisterType((*MsgCreateClient)(nil), "ibc.lightclients.solomachine.v1.MsgCreateClient")
|
||||
proto.RegisterType((*MsgUpdateClient)(nil), "ibc.lightclients.solomachine.v1.MsgUpdateClient")
|
||||
proto.RegisterType((*MsgSubmitClientMisbehaviour)(nil), "ibc.lightclients.solomachine.v1.MsgSubmitClientMisbehaviour")
|
||||
}
|
||||
|
||||
func init() {
|
||||
@ -405,52 +283,45 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_6cc2ee18f7f86d4e = []byte{
|
||||
// 710 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xcf, 0x6e, 0xd3, 0x4e,
|
||||
0x10, 0x8e, 0xd3, 0x28, 0x6a, 0xb6, 0xf9, 0xa5, 0xfd, 0x59, 0x29, 0x0a, 0xa1, 0x8a, 0x2b, 0x4b,
|
||||
0xa8, 0xbd, 0xc4, 0x96, 0xe1, 0xd6, 0x0b, 0xaa, 0xc3, 0x81, 0x82, 0x2a, 0xc0, 0x29, 0x12, 0x02,
|
||||
0xa4, 0x68, 0x6d, 0x6f, 0x9d, 0x55, 0x63, 0xaf, 0xf1, 0xae, 0x13, 0xc2, 0x13, 0x20, 0x71, 0xe1,
|
||||
0xc8, 0x91, 0x17, 0x40, 0xe2, 0x11, 0xe0, 0x86, 0x84, 0x84, 0x7a, 0xe4, 0x14, 0xa1, 0xf6, 0x0d,
|
||||
0x72, 0xe4, 0x84, 0xe2, 0xdd, 0x24, 0x76, 0x54, 0x35, 0xe2, 0x8f, 0xc4, 0xc9, 0xbb, 0xe3, 0x99,
|
||||
0x6f, 0xbe, 0x6f, 0x66, 0x76, 0x17, 0x18, 0xd8, 0x76, 0xf4, 0x1e, 0xf6, 0xba, 0xcc, 0xe9, 0x61,
|
||||
0x14, 0x30, 0xaa, 0x53, 0xd2, 0x23, 0x3e, 0x74, 0xba, 0x38, 0x40, 0x7a, 0xdf, 0x48, 0x6f, 0xb5,
|
||||
0x30, 0x22, 0x8c, 0xc8, 0x0a, 0xb6, 0x1d, 0x2d, 0x1d, 0xa2, 0xa5, 0x7d, 0xfa, 0x46, 0x7d, 0xc7,
|
||||
0x21, 0xd4, 0x27, 0x54, 0xb7, 0x21, 0x45, 0xba, 0x13, 0x0d, 0x43, 0x46, 0xf4, 0xbe, 0x61, 0x23,
|
||||
0x06, 0x0d, 0xb1, 0xe5, 0x48, 0xf5, 0xaa, 0x47, 0x3c, 0x92, 0x2c, 0xf5, 0xc9, 0x8a, 0x5b, 0xd5,
|
||||
0xaf, 0x12, 0x58, 0x6b, 0x25, 0xc8, 0x6d, 0x06, 0x19, 0x92, 0x5b, 0x60, 0xfd, 0x38, 0x22, 0x2f,
|
||||
0x51, 0xd0, 0xa1, 0xe8, 0x79, 0x8c, 0x02, 0x07, 0xd5, 0xa4, 0x6d, 0x69, 0xb7, 0x60, 0xd6, 0xc7,
|
||||
0x23, 0xe5, 0xca, 0x10, 0xfa, 0xbd, 0x3d, 0x75, 0xc1, 0x41, 0xb5, 0x2a, 0xdc, 0xd2, 0x16, 0x06,
|
||||
0x99, 0x81, 0x75, 0x87, 0x04, 0x14, 0x05, 0x34, 0xa6, 0x1d, 0x3a, 0xc1, 0xad, 0xe5, 0xb7, 0xa5,
|
||||
0xdd, 0xb5, 0x1b, 0xba, 0xb6, 0x44, 0x8e, 0xd6, 0x9a, 0xc6, 0x25, 0x74, 0xd2, 0x59, 0x17, 0x10,
|
||||
0x55, 0xab, 0xe2, 0x64, 0x7c, 0xf7, 0x0a, 0xaf, 0xde, 0x29, 0x39, 0xf5, 0xbd, 0x04, 0x2a, 0x59,
|
||||
0x10, 0xb9, 0x0e, 0x56, 0xb3, 0x62, 0xac, 0xd9, 0x5e, 0x7e, 0x0a, 0x40, 0x18, 0xdb, 0x3d, 0xec,
|
||||
0x74, 0x4e, 0xd0, 0x50, 0xb0, 0xbc, 0xae, 0xf1, 0x9a, 0x6a, 0x93, 0x9a, 0x6a, 0xa2, 0x88, 0xa2,
|
||||
0xa6, 0xda, 0x83, 0xc4, 0xfb, 0x1e, 0x1a, 0x9a, 0x9b, 0xe3, 0x91, 0xf2, 0x3f, 0xe7, 0x36, 0x87,
|
||||
0x50, 0xad, 0x52, 0x38, 0xf5, 0x90, 0xb7, 0x40, 0x89, 0x61, 0x1f, 0x51, 0x06, 0xfd, 0xb0, 0xb6,
|
||||
0x92, 0x64, 0x9e, 0x1b, 0x04, 0xdf, 0x0f, 0x12, 0x28, 0xde, 0x41, 0xd0, 0x45, 0xd1, 0xa5, 0x3c,
|
||||
0xb7, 0x40, 0x89, 0x62, 0x2f, 0x80, 0x2c, 0x8e, 0x78, 0x31, 0xcb, 0xd6, 0xdc, 0x20, 0x1f, 0x83,
|
||||
0x4a, 0x80, 0x06, 0x9d, 0x94, 0x92, 0x95, 0x5f, 0x51, 0x72, 0x75, 0x3c, 0x52, 0x36, 0xb9, 0x92,
|
||||
0x2c, 0x8c, 0x6a, 0x95, 0x03, 0x34, 0x98, 0x39, 0x0a, 0xca, 0x5f, 0xf2, 0xa0, 0x7c, 0x88, 0xa9,
|
||||
0x8d, 0xba, 0xb0, 0x8f, 0x49, 0x1c, 0xc9, 0x06, 0x28, 0xf1, 0x76, 0x76, 0xb0, 0x9b, 0x30, 0x2f,
|
||||
0x99, 0xd5, 0xf1, 0x48, 0xd9, 0x10, 0x8d, 0x9b, 0xfe, 0x52, 0xad, 0x55, 0xbe, 0x3e, 0x70, 0x33,
|
||||
0x5a, 0xf3, 0x0b, 0x5a, 0x43, 0xf0, 0xdf, 0x4c, 0x5a, 0x87, 0x04, 0x48, 0x88, 0x31, 0x96, 0x0e,
|
||||
0x4f, 0x7b, 0x1a, 0xb5, 0x1f, 0xb8, 0xb7, 0x21, 0x83, 0x66, 0x6d, 0x3c, 0x52, 0xaa, 0x9c, 0x45,
|
||||
0x06, 0x51, 0xb5, 0xca, 0xb3, 0xfd, 0xfd, 0x60, 0x21, 0x23, 0x1b, 0x90, 0x5a, 0xe1, 0xaf, 0x66,
|
||||
0x64, 0x03, 0x92, 0xce, 0x78, 0x34, 0x20, 0x7b, 0xab, 0x93, 0x4a, 0xbe, 0x9d, 0x54, 0xf3, 0x2e,
|
||||
0xd8, 0x58, 0x44, 0xc9, 0x76, 0x5b, 0x5a, 0xec, 0xb6, 0x0c, 0x0a, 0x2e, 0x64, 0x50, 0x8c, 0x41,
|
||||
0xb2, 0x16, 0x9d, 0x79, 0x0c, 0xaa, 0x47, 0xd3, 0xf9, 0x42, 0xee, 0x0c, 0x76, 0x09, 0x5e, 0x66,
|
||||
0x4c, 0xf3, 0x17, 0x8f, 0xe9, 0x47, 0x09, 0xac, 0x1f, 0x52, 0xaf, 0x15, 0x21, 0xc8, 0x10, 0xbf,
|
||||
0x30, 0x7e, 0xa7, 0xed, 0xff, 0xf2, 0x66, 0x78, 0xcd, 0x25, 0x3c, 0x0a, 0xdd, 0x3f, 0x92, 0x70,
|
||||
0x0b, 0x14, 0xbb, 0xc9, 0x79, 0x15, 0xcc, 0x77, 0x96, 0x32, 0xe7, 0xc7, 0xdb, 0x12, 0x61, 0x82,
|
||||
0xcd, 0x27, 0x09, 0x5c, 0x3b, 0xa4, 0x5e, 0x3b, 0xb6, 0x7d, 0xcc, 0x38, 0x9b, 0xcc, 0x99, 0x3a,
|
||||
0x00, 0xc5, 0x49, 0x87, 0x50, 0xc4, 0xfb, 0x65, 0x1a, 0x3f, 0x46, 0x4a, 0xd3, 0xc3, 0xac, 0x1b,
|
||||
0xdb, 0x9a, 0x43, 0x7c, 0x5d, 0x5c, 0xfb, 0xfc, 0xd3, 0xa4, 0xee, 0x89, 0xce, 0x86, 0x21, 0xa2,
|
||||
0xda, 0xbe, 0xe3, 0xec, 0xbb, 0x6e, 0x84, 0x28, 0xb5, 0x04, 0x80, 0xfc, 0x10, 0x94, 0xfd, 0x14,
|
||||
0xb4, 0xe0, 0xdd, 0x5c, 0xca, 0x3b, 0xcd, 0xc7, 0xca, 0x40, 0x70, 0x0d, 0xe6, 0xb3, 0xcf, 0x67,
|
||||
0x0d, 0xe9, 0xf4, 0xac, 0x21, 0x7d, 0x3f, 0x6b, 0x48, 0x6f, 0xce, 0x1b, 0xb9, 0xd3, 0xf3, 0x46,
|
||||
0xee, 0xdb, 0x79, 0x23, 0xf7, 0xc4, 0xbc, 0x94, 0xe9, 0x0b, 0x7d, 0xf6, 0x10, 0x36, 0x2f, 0x7a,
|
||||
0x09, 0x13, 0x25, 0x76, 0x31, 0x79, 0xa1, 0x6e, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x92, 0xa4,
|
||||
0xec, 0xff, 0x36, 0x07, 0x00, 0x00,
|
||||
// 597 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x8a, 0xd3, 0x5e,
|
||||
0x14, 0x6e, 0x3a, 0x65, 0x68, 0xef, 0xf4, 0xd7, 0x99, 0x5f, 0xe8, 0x48, 0x2d, 0x43, 0x32, 0x04,
|
||||
0xc4, 0xd9, 0x4c, 0x42, 0x74, 0xd7, 0x9d, 0xa9, 0x0b, 0xff, 0x20, 0x4a, 0x3a, 0x0b, 0x51, 0x21,
|
||||
0xdc, 0x24, 0x77, 0xda, 0xcb, 0x34, 0xf7, 0xc6, 0xdc, 0x9b, 0xd6, 0xfa, 0x04, 0x2e, 0x5d, 0xba,
|
||||
0xf4, 0x05, 0x04, 0x1f, 0x43, 0x10, 0x64, 0x96, 0xae, 0x8a, 0xb4, 0x6f, 0xd0, 0x27, 0x90, 0x26,
|
||||
0xb7, 0x69, 0x12, 0x06, 0x8b, 0xe0, 0x2a, 0xe7, 0x9c, 0x9c, 0xfb, 0x9d, 0xef, 0x3b, 0xe7, 0x70,
|
||||
0x80, 0x89, 0x5d, 0xcf, 0x18, 0xe3, 0xe1, 0x88, 0x7b, 0x63, 0x8c, 0x08, 0x67, 0x06, 0xa3, 0x63,
|
||||
0x1a, 0x40, 0x6f, 0x84, 0x09, 0x32, 0x26, 0x66, 0xde, 0xd5, 0xc3, 0x88, 0x72, 0x2a, 0xab, 0xd8,
|
||||
0xf5, 0xf4, 0xfc, 0x13, 0x3d, 0x9f, 0x33, 0x31, 0xbb, 0x77, 0x3d, 0xca, 0x02, 0xca, 0x0c, 0x17,
|
||||
0x32, 0x64, 0x78, 0xd1, 0x2c, 0xe4, 0xd4, 0x98, 0x98, 0x2e, 0xe2, 0xd0, 0x14, 0x6e, 0x8a, 0xd4,
|
||||
0x6d, 0x0f, 0xe9, 0x90, 0x26, 0xa6, 0xb1, 0xb6, 0xd2, 0xa8, 0xf6, 0x43, 0x02, 0x07, 0xfd, 0x04,
|
||||
0x79, 0xc0, 0x21, 0x47, 0x72, 0x1f, 0x1c, 0x5e, 0x46, 0xf4, 0x3d, 0x22, 0x0e, 0x43, 0x6f, 0x63,
|
||||
0x44, 0x3c, 0xd4, 0x91, 0x4e, 0xa5, 0xb3, 0x9a, 0xd5, 0x5d, 0xcd, 0xd5, 0x5b, 0x33, 0x18, 0x8c,
|
||||
0x7b, 0x5a, 0x29, 0x41, 0xb3, 0x5b, 0x69, 0x64, 0x20, 0x02, 0x32, 0x07, 0x87, 0x1e, 0x25, 0x0c,
|
||||
0x11, 0x16, 0x33, 0x87, 0xad, 0x71, 0x3b, 0xd5, 0x53, 0xe9, 0xec, 0xe0, 0x9e, 0xa1, 0xef, 0x90,
|
||||
0xa3, 0xf7, 0x37, 0xef, 0x12, 0x3a, 0xf9, 0xaa, 0x25, 0x44, 0xcd, 0x6e, 0x79, 0x85, 0xdc, 0x5e,
|
||||
0xed, 0xc3, 0x67, 0xb5, 0xa2, 0x7d, 0x91, 0x40, 0xab, 0x08, 0x22, 0x77, 0x41, 0xbd, 0x28, 0xc6,
|
||||
0xce, 0x7c, 0xf9, 0x35, 0x00, 0x61, 0xec, 0x8e, 0xb1, 0xe7, 0x5c, 0xa1, 0x99, 0x60, 0x79, 0x47,
|
||||
0x4f, 0x7b, 0xaa, 0xaf, 0x7b, 0xaa, 0x8b, 0x26, 0x8a, 0x9e, 0xea, 0x2f, 0x92, 0xec, 0xa7, 0x68,
|
||||
0x66, 0x1d, 0xaf, 0xe6, 0xea, 0xff, 0x29, 0xb7, 0x2d, 0x84, 0x66, 0x37, 0xc2, 0x4d, 0x86, 0x7c,
|
||||
0x02, 0x1a, 0x1c, 0x07, 0x88, 0x71, 0x18, 0x84, 0x9d, 0xbd, 0xa4, 0xf2, 0x36, 0x20, 0xf8, 0x7e,
|
||||
0x95, 0xc0, 0xfe, 0x23, 0x04, 0x7d, 0x14, 0xfd, 0x91, 0xe7, 0x09, 0x68, 0x30, 0x3c, 0x24, 0x90,
|
||||
0xc7, 0x51, 0xda, 0xcc, 0xa6, 0xbd, 0x0d, 0xc8, 0x97, 0xa0, 0x45, 0xd0, 0xd4, 0xc9, 0x29, 0xd9,
|
||||
0xfb, 0x1b, 0x25, 0xb7, 0x57, 0x73, 0xf5, 0x38, 0x55, 0x52, 0x84, 0xd1, 0xec, 0x26, 0x41, 0xd3,
|
||||
0x2c, 0x51, 0x50, 0xfe, 0x5e, 0x05, 0xcd, 0x67, 0x98, 0xb9, 0x68, 0x04, 0x27, 0x98, 0xc6, 0x91,
|
||||
0x6c, 0x82, 0x46, 0x3a, 0x4e, 0x07, 0xfb, 0x09, 0xf3, 0x86, 0xd5, 0x5e, 0xcd, 0xd5, 0x23, 0x31,
|
||||
0xb8, 0xcd, 0x2f, 0xcd, 0xae, 0xa7, 0xf6, 0x63, 0xbf, 0xa0, 0xb5, 0x5a, 0xd2, 0x1a, 0x82, 0xff,
|
||||
0x32, 0x69, 0x0e, 0x25, 0x48, 0x88, 0x31, 0x77, 0x2e, 0xcf, 0x60, 0xf3, 0xea, 0x01, 0xf1, 0x1f,
|
||||
0x42, 0x0e, 0xad, 0xce, 0x6a, 0xae, 0xb6, 0x53, 0x16, 0x05, 0x44, 0xcd, 0x6e, 0x66, 0xfe, 0x73,
|
||||
0x52, 0xaa, 0xc8, 0xa7, 0xb4, 0x53, 0xfb, 0xa7, 0x15, 0xf9, 0x94, 0xe6, 0x2b, 0x5e, 0x4c, 0x69,
|
||||
0xaf, 0xbe, 0xee, 0xe4, 0xa7, 0x75, 0x37, 0x9f, 0x80, 0xa3, 0x32, 0x4a, 0x71, 0xda, 0x52, 0x79,
|
||||
0xda, 0x32, 0xa8, 0xf9, 0x90, 0x43, 0xb1, 0x06, 0x89, 0x2d, 0x26, 0xf3, 0x12, 0xb4, 0x2f, 0x36,
|
||||
0xfb, 0x85, 0xfc, 0x0c, 0x76, 0x07, 0x5e, 0x61, 0x4d, 0xab, 0x37, 0xae, 0xa9, 0xf5, 0xe6, 0xdb,
|
||||
0x42, 0x91, 0xae, 0x17, 0x8a, 0xf4, 0x6b, 0xa1, 0x48, 0x1f, 0x97, 0x4a, 0xe5, 0x7a, 0xa9, 0x54,
|
||||
0x7e, 0x2e, 0x95, 0xca, 0x2b, 0x6b, 0x88, 0xf9, 0x28, 0x76, 0x75, 0x8f, 0x06, 0x86, 0xb8, 0x45,
|
||||
0xe9, 0xe7, 0x9c, 0xf9, 0x57, 0xc6, 0x3b, 0x23, 0xbb, 0x79, 0xe7, 0x37, 0x1d, 0x3d, 0x3e, 0x0b,
|
||||
0x11, 0x73, 0xf7, 0x93, 0x63, 0x74, 0xff, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x13, 0x3a, 0xae,
|
||||
0x05, 0x21, 0x05, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (m *ClientState) Marshal() (dAtA []byte, err error) {
|
||||
@ -716,132 +587,6 @@ func (m *TimestampedSignature) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.ConsensusState != nil {
|
||||
{
|
||||
size, err := m.ConsensusState.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintSolomachine(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.ClientId) > 0 {
|
||||
i -= len(m.ClientId)
|
||||
copy(dAtA[i:], m.ClientId)
|
||||
i = encodeVarintSolomachine(dAtA, i, uint64(len(m.ClientId)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *MsgUpdateClient) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *MsgUpdateClient) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *MsgUpdateClient) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.Header != nil {
|
||||
{
|
||||
size, err := m.Header.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintSolomachine(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.ClientId) > 0 {
|
||||
i -= len(m.ClientId)
|
||||
copy(dAtA[i:], m.ClientId)
|
||||
i = encodeVarintSolomachine(dAtA, i, uint64(len(m.ClientId)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *MsgSubmitClientMisbehaviour) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *MsgSubmitClientMisbehaviour) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *MsgSubmitClientMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.Misbehaviour != nil {
|
||||
{
|
||||
size, err := m.Misbehaviour.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintSolomachine(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Signer) > 0 {
|
||||
i -= len(m.Signer)
|
||||
copy(dAtA[i:], m.Signer)
|
||||
i = encodeVarintSolomachine(dAtA, i, uint64(len(m.Signer)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintSolomachine(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovSolomachine(v)
|
||||
base := offset
|
||||
@ -965,57 +710,6 @@ func (m *TimestampedSignature) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *MsgCreateClient) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.ClientId)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovSolomachine(uint64(l))
|
||||
}
|
||||
if m.ConsensusState != nil {
|
||||
l = m.ConsensusState.Size()
|
||||
n += 1 + l + sovSolomachine(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *MsgUpdateClient) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.ClientId)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovSolomachine(uint64(l))
|
||||
}
|
||||
if m.Header != nil {
|
||||
l = m.Header.Size()
|
||||
n += 1 + l + sovSolomachine(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *MsgSubmitClientMisbehaviour) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Signer)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovSolomachine(uint64(l))
|
||||
}
|
||||
if m.Misbehaviour != nil {
|
||||
l = m.Misbehaviour.Size()
|
||||
n += 1 + l + sovSolomachine(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovSolomachine(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
@ -1802,371 +1496,6 @@ func (m *TimestampedSignature) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *MsgCreateClient) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: MsgCreateClient: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: MsgCreateClient: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.ClientId = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field ConsensusState", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.ConsensusState == nil {
|
||||
m.ConsensusState = &ConsensusState{}
|
||||
}
|
||||
if err := m.ConsensusState.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipSolomachine(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *MsgUpdateClient) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: MsgUpdateClient: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: MsgUpdateClient: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.ClientId = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Header == nil {
|
||||
m.Header = &Header{}
|
||||
}
|
||||
if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipSolomachine(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *MsgSubmitClientMisbehaviour) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: MsgSubmitClientMisbehaviour: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: MsgSubmitClientMisbehaviour: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType)
|
||||
}
|
||||
var byteLen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
byteLen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if byteLen < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
postIndex := iNdEx + byteLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...)
|
||||
if m.Signer == nil {
|
||||
m.Signer = []byte{}
|
||||
}
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Misbehaviour", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowSolomachine
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Misbehaviour == nil {
|
||||
m.Misbehaviour = &Misbehaviour{}
|
||||
}
|
||||
if err := m.Misbehaviour.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipSolomachine(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if skippy < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if (iNdEx + skippy) < 0 {
|
||||
return ErrInvalidLengthSolomachine
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func skipSolomachine(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user